/* Existing UI styles are isolated from the profile source components. */
@layer legacy {
@scope (:root) to (#main) {
:root {
  --bg: #07111f;
  --bg-alt: #0d1b2c;
  --panel: rgba(11, 24, 42, 0.88);
  --header-frame-height: 88px;
  --footer-frame-height: 92px;
  --panel-2: rgba(16, 31, 52, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --text: #edf4ff;
  --muted: #9fb0c8;
  --accent: #7ec7ff;
  --accent-2: #89fff1;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html.site-loading-cursor-active,
html.site-loading-cursor-active body,
html.site-loading-cursor-active body * {
  cursor: none !important;
}

.site-loading-cursor {
  position: fixed;
  z-index: 2147483647;
  width: 22px;
  height: 22px;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 100ms ease;
  will-change: transform;
}

.site-loading-cursor.is-visible {
  opacity: 1;
}

.site-loading-cursor__spinner {
  display: block;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-right-color: #fff;
  border-radius: 50%;
  animation: site-loading-cursor-spin 900ms linear infinite;
  will-change: transform;
}

@keyframes site-loading-cursor-spin {
  to { transform: rotate(360deg); }
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(126, 199, 255, 0.55) rgba(8, 20, 36, 0.92);
}

*::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(6, 16, 28, 0.96), rgba(9, 24, 42, 0.92));
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(126, 199, 255, 0.62), rgba(86, 146, 214, 0.72));
  border: 2px solid rgba(8, 20, 36, 0.95);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(144, 214, 255, 0.8), rgba(98, 168, 240, 0.9));
}

*::-webkit-scrollbar-corner {
  background: rgba(8, 20, 36, 0.96);
}

body {
  margin: 0;
  position: relative;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: #07111f;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(126, 199, 255, 0.17), transparent 24%),
    radial-gradient(circle at top right, rgba(137, 255, 241, 0.09), transparent 20%),
    linear-gradient(180deg, #06101c 0%, #081523 36%, #07111f 100%);
  background-repeat: no-repeat;
}


body.page-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
}


main {
  min-width: 0;
  min-height: 0;
}


a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(16px);
  background: rgba(6, 16, 28, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

.logo-image {
  display: block;
  height: clamp(34px, 4vw, 52px);
  width: auto;
  max-width: min(300px, 24vw);
  object-fit: contain;
}

.menu {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  min-height: 50px;
  padding: 10px 8px 6px;
  border-radius: 12px;
  display: grid;
  grid-template-rows: auto 2px;
  align-items: end;
  gap: 7px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-label {
  line-height: 1.1;
}

.menu-slider {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.menu a.active {
  color: var(--text);
}

.menu a.active .menu-slider {
  background: rgba(126, 199, 255, 0.58);
  box-shadow: 0 1px 4px rgba(126, 199, 255, 0.1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 190px;
  min-width: 190px;
}

.auth-button,
.hero-button,
.card-link,
.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s ease;
}

.auth-button {
  min-width: 120px;
  min-height: 44px;
  height: 44px;
  padding: 0 18px 2px;
  border-radius: 14px;
}

.auth-button-label {
  display: block;
  line-height: 1;
  transform: translateY(-2px);
}

.auth-button,
.hero-button.primary,
.search-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111f;
  box-shadow: var(--shadow);
}

.hero-button.secondary,
.card-link,
.profile-trigger {
  min-width: 190px;
  min-height: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 6px 0 0;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
}

.profile-trigger:hover,
.profile-trigger:focus-visible {
  background: transparent;
}

.profile-trigger:focus-visible {
  outline: 1px solid rgba(126, 199, 255, 0.28);
  outline-offset: 3px;
  border-radius: 12px;
}

.profile-trigger:hover .profile-name,
.profile-trigger:focus-visible .profile-name,
.profile-trigger.is-open .profile-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.profile-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.header-messages-unread-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #ff4d5d;
  box-shadow: 0 0 0 3px rgba(255, 77, 93, 0.12);
}

.header-messages-unread-dot[hidden],
.dropdown-messages-unread-dot[hidden] {
  display: none !important;
}

.profile-name {
  max-width: 126px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
}

.profile-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
  margin-top: 1px;
}

.profile-trigger.is-open .profile-caret {
  transform: rotate(180deg);
}

.profile-dropdown-menu {
  position: fixed;
  top: 72px;
  right: max(16px, calc((100vw - 1180px) / 2 + 16px));
  width: 280px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 18, 31, 0.98);
  box-shadow: var(--shadow);
  display: none;
  z-index: 220;
}

.profile-dropdown-menu.open {
  display: block;
}

.dropdown-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}

.dropdown-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(126, 199, 255, 0.38), rgba(137, 255, 241, 0.28));
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.dropdown-header-text {
  min-width: 0;
}

.dropdown-header strong,
.dropdown-header span {
  display: block;
}

.dropdown-header strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-header span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dropdown-list {
  display: grid;
}

.dropdown-list a,
.dropdown-list button {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 14px 18px;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-list a:hover,
.dropdown-list button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 84px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 4.35vw, 4.25rem);
  line-height: 0.98;
}

h1 span,
.accent {
  color: var(--accent-2);
}

.lead,
.section-intro,
.info-card p,
.feature-card p,
.help-list li,
.search-note,
.site-footer p,
.footer-list a,
.footer-list li,
.meta-line,
.hero-panel p,
.kb-list li,
.forum-list li,
.about-grid li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.hero-stats li,
.hero-panel,
.info-card,
.feature-card,
.inner-page-box,
.search-box,
.wide-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 18px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats span {
  margin-top: 6px;
  color: var(--accent-2);
  font-weight: 700;
}

.hero-panel {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(126, 199, 255, 0.25), transparent 65%);
  pointer-events: none;
}

.hero-panel h2 {
  margin-bottom: 12px;
  font-size: 1.9rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.section {
  padding: 38px 0 72px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.cards-3,
.cards-2,
.about-grid {
  display: grid;
  gap: 18px;
}

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

.cards-2,
.about-grid {
  grid-template-columns: repeat(2, 1fr);
}

.info-card,
.feature-card,
.inner-page-box,
.search-box,
.wide-panel {
  padding: 24px;
}

.info-card h3,
.feature-card h3,
.inner-page-box h2,
.search-box h2,
.wide-panel h2 {
  margin-bottom: 10px;
}

.card-link {
  margin-top: 16px;
}

.page-hero {
  padding: 72px 0 24px;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-grid {
  display: grid;
  gap: 18px;
}

.help-list,
.kb-list,
.forum-list,
.about-grid ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.search-input::placeholder {
  color: #7f93af;
}

.mock-results {
  display: grid;
  gap: 12px;
}

.result-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.result-item strong,
.result-item span {
  display: block;
}

.result-item span {
  margin-top: 5px;
  color: var(--muted);
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(6, 16, 28, 0.55);
}

.footer-grid {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 22px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.hidden {
  display: none !important;
}



.hero-home {
  padding-bottom: 28px;
}

.hero-grid-home {
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-stats-home li {
  min-height: 118px;
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 4px 0 18px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.status-row span {
  color: var(--muted);
}

.status-row strong {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.panel-note {
  margin-bottom: 0;
}

.compact-heading {
  margin-bottom: 22px;
}

.feature-highlight h3,
.step-card h3,
.preview-panel h2,
.cta-banner h2 {
  margin-bottom: 10px;
}

.section-steps {
  padding-top: 8px;
}

.steps-grid,
.mini-preview-grid {
  display: grid;
  gap: 18px;
}

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

.step-card,
.mini-preview-card,
.cta-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.step-card {
  padding: 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(126, 199, 255, 0.12);
  border: 1px solid rgba(126, 199, 255, 0.2);
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.media-preview-grid {
  align-items: stretch;
}

.preview-panel {
  height: 100%;
}

.mini-preview-grid {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.mini-preview-card {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mini-preview-card strong,
.mini-preview-card span {
  display: block;
}

.mini-preview-card span,
.plan-list li,
.step-card p {
  color: var(--muted);
  line-height: 1.7;
}

.mini-preview-card span {
  margin-top: 6px;
}

.mini-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 199, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.accent-panel {
  position: relative;
  overflow: hidden;
}

.accent-panel::after {
  content: "";
  position: absolute;
  inset: auto -100px -120px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(137, 255, 241, 0.17), transparent 67%);
  pointer-events: none;
}

.plan-list {
  margin: 0;
  padding-left: 20px;
}

.cta-section {
  padding-top: 0;
}

.cta-banner {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#site-header,
#site-footer {
  width: 100%;
  display: block;
}

#site-header {
  min-height: var(--header-frame-height);
}

#site-footer {
  min-height: var(--footer-frame-height);
}



/* Forum tree index */
.forum-layout--index,
.forum-layout--section {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.forum-main--index {
  gap: 18px;
}

.forum-section-panels {
  display: grid;
  gap: 18px;
}

.forum-section-panel {
  border: 1px solid rgba(126, 199, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(126, 199, 255, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(11, 28, 49, 0.72), rgba(7, 19, 34, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 16px 34px rgba(0,0,0,0.14);
  padding: 20px;
}

.forum-section-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.forum-section-panel-head h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
}

.forum-section-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.forum-section-open {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(126, 199, 255, 0.16);
  border-radius: 999px;
  background: rgba(126, 199, 255, 0.055);
}

.forum-section-panel-meta {
  margin-bottom: 6px;
}

.forum-tree {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding-left: 10px;
}

.forum-tree-branch {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 88px;
}

.forum-tree-branch::before {
  content: '';
  position: absolute;
  left: 22px;
  top: -4px;
  bottom: -4px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(126,199,255,0.38), rgba(126,199,255,0.08));
}

.forum-tree-branch:first-child::before {
  top: 24px;
}

.forum-tree-branch:last-child::before {
  bottom: calc(100% - 24px);
}

.forum-tree-line {
  position: relative;
  z-index: 1;
}

.forum-tree-line::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 24px;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: rgba(126,199,255,0.38);
}

.forum-tree-content {
  min-width: 0;
  padding: 13px 14px 15px;
  border: 1px solid rgba(126, 199, 255, 0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.026);
}

.forum-tree-branch.is-closed .forum-tree-content {
  border-color: rgba(239, 83, 80, 0.15);
  background: rgba(239, 83, 80, 0.035);
}

.forum-tree-subsection-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-tree-subsection-title {
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 900;
}

.forum-tree-subsection-title:hover,
.forum-tree-subsection-title:focus-visible {
  color: var(--accent-2);
  outline: none;
}

.forum-tree-description {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.forum-tree-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.forum-tree-topic,
.forum-tree-more,
.forum-tree-topic-empty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.25;
}

.forum-tree-topic span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-tree-topic small {
  flex: 0 0 auto;
  color: rgba(196,210,231,0.58);
  font-size: 0.78rem;
}

.forum-tree-topic:hover,
.forum-tree-topic:focus-visible,
.forum-tree-more:hover,
.forum-tree-more:focus-visible {
  color: var(--text);
  border-color: rgba(126, 199, 255, 0.22);
  background: rgba(126, 199, 255, 0.07);
  outline: none;
}

.forum-tree-more {
  color: var(--accent-2);
  font-weight: 800;
}

.forum-tree-meta,
.forum-tree-actions {
  margin-top: 10px;
}

.forum-subsection-summary,
.forum-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.forum-subsection-summary span,
.forum-page-link,
.forum-page-dots {
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.forum-page-link:hover,
.forum-page-link:focus-visible,
.forum-page-link.is-active {
  color: var(--text);
  border-color: rgba(126, 199, 255, 0.24);
  background: rgba(126, 199, 255, 0.08);
  outline: none;
}

.forum-page-link.is-active {
  pointer-events: none;
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
    justify-self: end;
  }

  .header-actions {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
  }

  #auth-widget,
  .profile-menu,
  .auth-button,
  .profile-trigger,
  .profile-dropdown-menu {
    width: 100%;
  }

  .menu {
    display: none;
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
  }

  .menu.is-open {
    display: flex;
  }

  .hero-grid,
  .cards-3,
  .cards-2,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-actions,
  .search-form {
    grid-template-columns: 1fr;
    display: grid;
  }
}


.site-frame {
  display: block;
  width: 100%;
  border: 0;
  overflow: hidden;
}

.site-frame-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-frame-height);
}

.site-frame-footer {
  height: var(--footer-frame-height);
}

.frame-doc,
.frame-page {
  overflow: hidden !important;
  background: transparent;
}

.frame-page {
  min-height: auto;
}

.frame-page .container {
  width: min(1180px, calc(100% - 32px));
}

.frame-embedded-header {
  position: relative;
  top: 0;
}

.frame-header-page,
.frame-footer-page {
  overflow: hidden;
}

.frame-header-page .site-header {
  min-height: var(--header-frame-height);
}


.frame-header-page::before,
.frame-footer-page::before {
  display: none;
}

.frame-footer-page {
  background: rgba(6, 16, 28, 0.72);
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(6, 16, 28, 0.72);
  backdrop-filter: blur(16px);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.06) 18%, rgba(255, 255, 255, 0.06) 82%, rgba(255, 255, 255, 0));
}

.footer-row {
  min-height: var(--footer-frame-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.footer-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 960px) {
  :root {
    --header-frame-height: 154px;
    --footer-frame-height: 116px;
  }

  .site-frame-header {
    height: var(--header-frame-height);
  }

  .site-frame-footer {
    height: var(--footer-frame-height);
  }

  .footer-row {
    min-height: var(--footer-frame-height);
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
    flex-direction: column;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}


.auth-submit {
  border-color: rgba(126, 199, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 34, 58, 0.96), rgba(10, 25, 45, 0.96));
}

.auth-submit:hover {
  border-color: rgba(126, 199, 255, 0.24);
}

.auth-secondary {
  color: rgba(237, 244, 255, 0.92);
}

@media (max-width: 720px) {
  :root {
    --header-frame-height: 228px;
  }

  .site-frame-header {
    height: var(--header-frame-height);
  }
}

@media (max-width: 980px) {
  .steps-grid,
  .media-preview-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .status-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.frame-doc body,
.frame-page {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

body.overlay-open {
  overflow: hidden;
}

#auth-widget {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 44px;
}

.header-auth-placeholder {
  display: block;
  width: 190px;
  height: 44px;
  flex: 0 0 190px;
}



.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
}

.auth-overlay.hidden {
  display: none;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.auth-dropdown {
  position: fixed;
  top: calc(var(--header-frame-height) + 12px);
  left: auto;
  right: max(16px, calc((100vw - min(1180px, calc(100% - 32px))) / 2));
  width: min(320px, calc(100vw - 24px));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(4,16,31,0.98), rgba(2,12,24,0.98));
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  padding: 12px;
}

.auth-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-tab {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.98rem;
}

.auth-tab.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(126, 199, 255, 0.14);
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: block;
}

.auth-pane[data-auth-pane="recover"] .auth-form + .auth-form {
  margin-top: 14px;
}

.auth-pane[data-auth-pane="recover"] .auth-field {
  display: block;
  padding: 0 12px;
  border: 1px solid rgba(126, 199, 255, 0.14);
  border-radius: 15px;
  background: rgba(4, 14, 28, 0.96);
}

.auth-pane[data-auth-pane="recover"] .auth-field input,
.auth-pane[data-auth-pane="recover"] .auth-field select {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.auth-pane[data-auth-pane="recover"] .auth-field select option {
  background: #071526;
}

.auth-kicker {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-field-compact {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 15px;
  border: 1px solid rgba(126, 199, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(6, 18, 34, 0.96), rgba(4, 14, 28, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.025),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}

.auth-field-icon,
.auth-action-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(198, 216, 239, 0.72);
}

.auth-field-icon svg,
.auth-action-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.auth-field-compact input {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.auth-field-compact input::placeholder {
  color: rgba(196, 210, 231, 0.46);
}

.auth-field-compact:hover {
  border-color: rgba(126, 199, 255, 0.14);
}

.auth-field-compact:focus-within {
  border-color: rgba(126, 199, 255, 0.24);
  box-shadow:
    0 0 0 3px rgba(126, 199, 255, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.auth-ghost-button {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(126, 199, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 30, 52, 0.88), rgba(8, 22, 40, 0.88));
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 18px rgba(0,0,0,0.12);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.auth-ghost-button:hover {
  background:
    linear-gradient(180deg, rgba(15, 35, 60, 0.94), rgba(10, 26, 46, 0.94));
  border-color: rgba(126, 199, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 22px rgba(0,0,0,0.16);
}

.auth-ghost-button:active {
  transform: translateY(1px);
}

.auth-submit,
.auth-back,
.auth-secondary {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 18px rgba(0,0,0,0.12);
}

@media (max-width: 720px) {
  .auth-dropdown {
    width: min(360px, calc(100vw - 20px)) !important;
    left: 10px !important;
    right: 10px !important;
  }
}


.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-item.has-unread-messages .dropdown-item-label {
  color: var(--text);
}

.dropdown-messages-unread-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: auto;
  border-radius: 999px;
  background: #ff4d5d;
  box-shadow: 0 0 0 3px rgba(255, 77, 93, 0.12);
}

.dropdown-item-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  opacity: 0.95;
}

.dropdown-item-label {
  min-width: 0;
}

.dropdown-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.96);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}


.nav-search-button {
  width: 38px;
  height: 38px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 12px;
  padding: 0;
  transition: opacity .18s ease;
}

.nav-search-button:hover {
  opacity: 0.88;
}

.nav-search-button svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.92);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.search-modal-overlay[hidden] {
  display: none;
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 8, 16, 0.58);
  backdrop-filter: blur(8px);
  padding: 24px;
}

.search-modal-panel {
  width: min(520px, calc(100vw - 32px));
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(4,16,31,0.98), rgba(2,12,24,0.98));
  box-shadow: 0 24px 60px rgba(0,0,0,0.38);
  padding: 22px;
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-modal-kicker {
  color: #7de8f0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.search-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.search-modal-title {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
}

.search-modal-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 10px;
  color: #dce9f8;
  font-size: 15px;
  font-weight: 700;
}

.search-modal-input {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.search-modal-input::placeholder {
  color: rgba(220,233,248,0.46);
}

.search-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.search-modal-submit,
.search-modal-back {
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.search-modal-submit {
  background: linear-gradient(90deg, #79c3ff, #84ebe9);
  color: #041523;
  border: 0;
}

.search-modal-back {
  background: rgba(255,255,255,0.04);
  color: #fff;
}


.header-search-button {
  width: 42px;
  min-width: 42px;
  height: 50px;
  padding: 10px 10px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-rows: auto 2px;
  align-items: end;
  gap: 8px;
  cursor: pointer;
  border-radius: 12px;
}

.header-search-button::after {
  content: "";
  display: block;
  width: 100%;
  min-width: 24px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.header-search-button:hover {
  color: var(--text);
}

.header-search-button svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  justify-self: center;
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 10, 18, 0.58);
  backdrop-filter: blur(8px);
}

.search-modal-overlay.hidden {
  display: none;
}

.search-modal-panel {
  width: min(520px, calc(100vw - 32px));
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 16, 29, 0.98), rgba(4, 12, 22, 0.98));
  box-shadow: 0 24px 60px rgba(0,0,0,0.38);
  padding: 22px;
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-modal-kicker {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-modal-title {
  margin-top: 14px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.search-modal-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
}

.search-modal-input {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.search-modal-input::placeholder {
  color: rgba(237,244,255,0.42);
}

.search-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.search-modal-submit,
.search-modal-back {
  height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}

.search-modal-submit {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041320;
}

.search-modal-back {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}


.search-dropdown-overlay.hidden {
  display: none;
}

.search-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 215;
}



@media (max-width: 980px) {
  .search-dropdown-menu {
    top: calc(var(--header-frame-height) + 12px);
    left: max(16px, calc((100vw - min(1180px, calc(100% - 32px))) / 2));
  }
}

@media (max-width: 720px) {
  .search-dropdown-menu {
    right: 10px;
    left: 10px;
    width: auto;
  }
}


.dropdown-avatar {
  background-color: rgba(126, 199, 255, 0.12);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.search-dropdown-overlay,
.profile-dropdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
}

.search-dropdown-backdrop,
.profile-dropdown-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.search-dropdown-menu {
  position: fixed;
  top: 72px;
  left: max(16px, calc((100vw - 1180px) / 2 + 16px));
  width: 300px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 18, 31, 0.98);
  box-shadow: var(--shadow);
  display: none;
  z-index: 220;
}

.search-dropdown-menu.open {
  display: block;
}

.search-dropdown-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.search-dropdown-label {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
}

.search-dropdown-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.search-dropdown-input:focus {
  border-color: rgba(126, 199, 255, 0.28);
  background: rgba(255,255,255,0.05);
}

.search-dropdown-filters {
  display: grid;
  gap: 10px;
}

.search-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.search-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-filter-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 3px rgba(8, 18, 31, 0.98);
  transition: border-color 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
}

.search-filter-option.is-active {
  color: var(--text);
}

.search-filter-option.is-active .search-filter-mark {
  border-color: rgba(126, 199, 255, 0.4);
  background: var(--accent);
}

.search-filter-text {
  line-height: 1.2;
}

.search-dropdown-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.search-dropdown-submit,
.search-dropdown-back {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  padding: 0;
  cursor: pointer;
}

.search-dropdown-submit:hover,
.search-dropdown-back:hover {
  color: var(--accent);
}

.search-dropdown-overlay.hidden {
  display: none;
}

.search-dropdown-panel {
  position: fixed;
  top: 72px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 18, 31, 0.98);
  box-shadow: var(--shadow);
  z-index: 220;
  display: none;
}

.search-dropdown-menu,
.search-results-dropdown-menu {
  width: 320px;
}

.search-dropdown-menu.open,
.search-results-dropdown-menu.open {
  display: block;
}

.search-dropdown-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.search-dropdown-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.search-dropdown-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.search-dropdown-input:focus {
  border-color: rgba(126, 199, 255, 0.28);
  background: rgba(255,255,255,0.05);
}

.search-dropdown-filters {
  display: grid;
  gap: 10px;
}

.search-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.search-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-filter-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 3px rgba(8, 18, 31, 0.98);
  transition: border-color 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
}

.search-filter-option.is-active {
  color: var(--text);
}

.search-filter-option.is-active .search-filter-mark {
  border-color: rgba(126, 199, 255, 0.4);
  background: var(--accent);
}

.search-results-box {
  display: grid;
  gap: 1px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
}

.search-result-item {
  display: grid;
  gap: 6px;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
}

.search-result-title {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.search-result-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.search-results-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
}

.search-results-empty strong {
  color: var(--text);
}

@media (max-width: 1120px) {
  .search-results-dropdown-menu {
    width: 320px;
  }
}

@media (max-width: 860px) {
  .search-dropdown-panel {
    left: 12px !important;
    right: 12px;
    width: auto !important;
  }

  .search-results-dropdown-menu {
    top: auto !important;
    margin-top: 12px;
  }
}


.frame-doc,
.frame-header-page {
  overflow-y: hidden !important;
  scrollbar-gutter: auto !important;
}

.frame-header-page body,
.frame-page.frame-header-page {
  width: 100%;
}


.home-hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-weight: 600;
}

.welcome-panel {
  min-height: 0;
  height: fit-content;
  align-self: start;
}

.hero-home .hero-copy {
  max-width: 760px;
}

.hero-home h1 {
  max-width: 11ch;
  letter-spacing: -0.03em;
}

.home-summary-section {
  padding-top: 6px;
}

.home-value-card {
  min-height: 100%;
}

.home-overview-grid {
  align-items: stretch;
}

.home-overview-panel {
  height: 100%;
}

.home-pillars {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.pillar-row {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.pillar-row strong {
  font-size: 1rem;
}

.pillar-row span {
  color: var(--muted);
  line-height: 1.65;
}

.home-audience-list {
  margin-top: 18px;
}

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

@media (max-width: 980px) {
  .home-hero-grid,
  .home-link-grid {
    grid-template-columns: 1fr;
  }
}


.home-story-section {
  padding-top: 12px;
}

.home-story-section-tight {
  padding-top: 0;
}

.story-panel {
  padding: 30px 32px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.story-grid-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-panel h2 {
  margin-bottom: 0;
  max-width: 14ch;
}

.story-panel p:last-child {
  margin-bottom: 0;
}

.story-split,
.story-stack,
.story-links-list {
  display: grid;
  gap: 18px;
}

.story-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-split h3 {
  margin-bottom: 8px;
}

.story-split p,
.story-stack p,
.story-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.story-links-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.story-links-list a:first-child {
  padding-top: 0;
}

.story-links-list a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.story-links-list a:hover {
  color: var(--accent-2);
  padding-left: 6px;
}

.home-story-links-section {
  padding-bottom: 40px;
}

@media (max-width: 980px) {
  .story-grid,
  .story-grid-equal,
  .story-split {
    grid-template-columns: 1fr;
  }

  .story-panel {
    padding: 24px;
  }

  .story-panel h2 {
    max-width: none;
  }
}


.start-panel {
  gap: 20px;
  padding: 28px 28px 30px;
}

  .start-panel-stats {
  display: grid;
  gap: 12px;
}

.start-panel-stat {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.start-panel-line,
.start-panel-heading {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}

.start-panel-value {
  margin: 0;
  color: var(--accent-2);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}

.start-panel-heading {
  margin-top: 14px;
}

.start-panel .eyebrow {
  margin-bottom: 0;
}

.start-steps {
  display: grid;
  gap: 14px;
}

.start-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 199, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(126, 199, 255, 0.05));
}

.start-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(126, 199, 255, 0.06);
}

.start-step-text {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
}

.start-step-action {
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.start-step-action:hover,
.start-step-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(126, 199, 255, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(126, 199, 255, 0.1));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  outline: none;
}

.start-step-action:hover .start-step-number,
.start-step-action:focus-visible .start-step-number {
  box-shadow: 0 0 0 5px rgba(126, 199, 255, 0.11);
}



.races-showcase-section {
  padding-top: 20px;
  padding-bottom: 84px;
}

.races-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.races-showcase-art {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.races-showcase-image {
  display: block;
  width: min(100%, 620px);
  max-height: 640px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.45));
}

.races-showcase-copy {
  display: flex;
  align-items: center;
  min-height: 420px;
}

.races-showcase-title {
  max-width: 9ch;
}

@media (max-width: 980px) {
  .races-showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .races-showcase-art,
  .races-showcase-copy {
    min-height: auto;
  }

  .races-showcase-image {
    width: min(100%, 520px);
    max-height: none;
  }

  .races-showcase-title {
    max-width: none;
  }
}


.races-showcase-copy-inner {
  max-width: 520px;
}

.races-showcase-lead {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.races-showcase-lead a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.18s ease;
}

.races-showcase-lead a:hover {
  opacity: 0.85;
  text-decoration: underline;
}


.showcase-section {
  padding-top: 12px;
  padding-bottom: 84px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.showcase-grid-reverse {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
}

.showcase-copy {
  display: flex;
  align-items: center;
  min-height: 420px;
}

.showcase-copy-inner {
  max-width: 540px;
}

.showcase-title {
  max-width: 9ch;
}

.showcase-lead {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.showcase-art {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-image {
  display: block;
  width: min(100%, 720px);
  max-height: 640px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.42));
}

.showcase-image-engineer {
  width: min(100%, 760px);
  transform: translateY(-56px);
}

@media (max-width: 980px) {
  .showcase-grid,
  .showcase-grid-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase-copy,
  .showcase-art {
    min-height: auto;
  }

  .showcase-title {
    max-width: none;
  }

  .showcase-image,
  .showcase-image-engineer {
    width: min(100%, 560px);
    max-height: none;
  }

  .showcase-image-engineer {
    transform: translateY(-20px);
  }
}


.showcase-main-title,
.races-showcase-title,
.showcase-title {
  margin: 0;
  font-size: clamp(2.75rem, 4.5vw, 4.35rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-copy .showcase-main-title {
  margin-bottom: 18px;
  max-width: 12.5ch;
}

.races-showcase-title,
.showcase-title {
  max-width: 9ch;
}


.showcase-full-note {
  margin-top: 28px;
  width: min(100vw - 120px, 1120px);
}

.showcase-full-note p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.showcase-full-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .showcase-full-note {
    width: 100%;
  }
}


                                 
.auth-field-compact {
  position: relative;
}

.auth-field-compact input[type="password"],
.auth-field-compact input[type="text"] {
  padding-right: 38px;
}

.auth-password-toggle,
.password-toggle,
.auth-eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  color: rgba(255,255,255,0.92) !important;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.auth-password-toggle svg,
.password-toggle svg,
.auth-eye-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor !important;
  fill: none !important;
  opacity: 1 !important;
}

.auth-field-compact:focus-within .auth-password-toggle,
.auth-field-compact:focus-within .password-toggle,
.auth-field-compact:focus-within .auth-eye-toggle,
.auth-field-compact:hover .auth-password-toggle,
.auth-field-compact:hover .password-toggle,
.auth-field-compact:hover .auth-eye-toggle {
  opacity: 1 !important;
  visibility: visible !important;
}


.site-footer-minimal {
  padding: 20px 0 34px;
}

.footer-minimal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 76px;
}

.footer-minimal-spacer {
  flex: 1 1 auto;
}

.footer-minimal-meta {
  margin-left: auto;
  text-align: right;
}

.footer-minimal-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-minimal-gap {
  height: 18px;
}


.footer-no-band {
  margin-top: 0;
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer-minimal {
  padding: 10px 0 34px;
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#site-footer,
.site-frame-footer,
.site-footer {
  background: transparent !important;
  border-top: 0 !important;
  box-shadow: none !important;
}


/* hide legacy password icons/toggles */
.auth-field-compact .password-visibility-toggle,
.auth-field-compact .password-toggle-icon,
.auth-field-compact .password-eye,
.auth-field-compact .toggle-password,
.auth-field-compact [data-password-toggle]:not(.auth-password-toggle),
.auth-field-compact button[aria-label*="парол"]:not(.auth-password-toggle),
.auth-field-compact button[aria-label*="арол"]:not(.auth-password-toggle) {
  display: none !important;
}


/* remove any old/embedded eye controls completely */
.auth-field-compact input::-ms-reveal,
.auth-field-compact input::-ms-clear,
.auth-field-compact input::-webkit-credentials-auto-fill-button,
.auth-field-compact input::-webkit-textfield-decoration-container {
  display: none !important;
}

.auth-field-compact .password-visibility-toggle,
.auth-field-compact .password-toggle-icon,
.auth-field-compact .password-eye,
.auth-field-compact .toggle-password,
.auth-field-compact [data-password-toggle]:not(.auth-password-toggle),
.auth-field-compact button[aria-label*="парол"]:not(.auth-password-toggle),
.auth-field-compact button[aria-label*="арол"]:not(.auth-password-toggle),
.auth-field-compact .auth-field-icon + button,
.auth-field-compact input + button:not(.auth-password-toggle) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.96) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  z-index: 20;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor !important;
  fill: none !important;
  pointer-events: none;
}

#auth-form-message.is-error {
  color: #ffb4b4;
  border: 1px solid rgba(255, 120, 120, 0.25);
}

#auth-form-message.is-success {
  color: #d6f5d6;
  border: 1px solid rgba(140, 255, 140, 0.2);
}

.profile-info-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.45;
}

.profile-characters-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-character-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


.auth-field-with-status input {
  padding-right: 72px;
}

.auth-status-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.auth-status-indicator svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.auth-status-indicator.is-valid,
.auth-status-indicator.is-invalid,
.auth-status-indicator.is-checking {
  opacity: 1;
}

.auth-status-indicator.is-valid {
  color: #77e18a;
}

.auth-status-indicator.is-invalid {
  color: #ff8d8d;
}

.auth-status-indicator.is-checking {
  color: rgba(224, 233, 249, 0.72);
}

.auth-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}


.auth-autofill-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-autofill-trap input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.auth-field-with-prefix {
  grid-template-columns: 16px auto 1fr;
  gap: 6px;
}

.auth-field-with-prefix .auth-field-prefix {
  position: static;
  transform: none;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  min-width: 0;
}

.auth-field-with-prefix input[type="text"] {
  padding-left: 0;
}

.auth-field-with-prefix input::selection {
  background: rgba(255,255,255,0.12);
}

.auth-password-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus,
.auth-field input:-webkit-autofill:active,
.auth-field-compact input:-webkit-autofill,
.auth-field-compact input:-webkit-autofill:hover,
.auth-field-compact input:-webkit-autofill:focus,
.auth-field-compact input:-webkit-autofill:active {
  -webkit-text-fill-color: rgba(224, 233, 249, 0.92) !important;
  caret-color: rgba(224, 233, 249, 0.92) !important;
  border-radius: inherit;
  -webkit-box-shadow: 0 0 0 1000px rgba(6, 16, 28, 0) inset !important;
  box-shadow: 0 0 0 1000px rgba(6, 16, 28, 0) inset !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-background-clip: text !important;
  transition: background-color 99999s ease-in-out 0s, color 99999s ease-in-out 0s;
}

.auth-field-compact input {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}


.auth-field-with-prefix {
  grid-template-columns: 16px max-content 1fr;
  gap: 3px;
}

.auth-field-with-prefix .auth-field-prefix {
  margin-right: 0;
}

.auth-field-with-prefix input[type="text"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.auth-field-with-prefix[data-register-phone-field] {
  column-gap: 3px;
}

.auth-field-with-prefix[data-register-phone-field] .auth-field-prefix {
  letter-spacing: 0;
  min-width: auto;
}


.auth-field-with-prefix[data-register-phone-field] {
  grid-template-columns: 16px max-content 1fr;
  column-gap: 1px !important;
}

.auth-field-with-prefix[data-register-phone-field] .auth-field-prefix {
  margin-right: 0 !important;
  padding-right: 0 !important;
}

.auth-field-with-prefix[data-register-phone-field] input[data-register-phone-input] {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
}

                                                   
.auth-dropdown {
  top: 72px;
  right: max(16px, calc((100vw - 1180px) / 2 + 16px));
  width: 280px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 18, 31, 0.98);
  box-shadow: var(--shadow);
  padding: 0;
}

.auth-switcher {
  gap: 0;
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.01);
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background .16s ease, color .16s ease;
}

.auth-tab:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.auth-tab.active {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 0;
}

.auth-pane {
  padding: 14px 18px 18px;
}

.auth-kicker {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.auth-form {
  gap: 12px;
}

.auth-field-compact {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  box-shadow: none;
}

.auth-field-compact:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.auth-field-compact:focus-within {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  box-shadow: none;
}

.auth-field-compact input {
  min-height: 44px;
}

.auth-actions {
  gap: 0;
  margin-top: 4px;
}

.auth-actions .auth-ghost-button + .auth-ghost-button {
  margin-top: 8px;
}

.auth-ghost-button,
.auth-submit,
.auth-secondary,
.auth-back {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  font-weight: 600;
  justify-content: flex-start;
  padding: 0 14px;
  box-shadow: none;
}

.auth-ghost-button:hover,
.auth-submit:hover,
.auth-secondary:hover,
.auth-back:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}

.auth-ghost-button:focus-visible,
.auth-submit:focus-visible,
.auth-secondary:focus-visible,
.auth-back:focus-visible,
.auth-tab:focus-visible {
  outline: 1px solid rgba(126, 199, 255, 0.28);
  outline-offset: 2px;
}

.profile-info-note#auth-form-message {
  margin: 12px 18px 0;
}

@media (max-width: 720px) {
  .auth-dropdown {
    width: min(320px, calc(100vw - 20px)) !important;
    left: 10px !important;
    right: 10px !important;
  }
}


                                             
.auth-actions {
  gap: 0;
  margin-top: 6px;
}

.auth-actions .auth-ghost-button + .auth-ghost-button {
  margin-top: 2px;
}

.auth-ghost-button,
.auth-submit,
.auth-secondary,
.auth-back {
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  justify-content: flex-start;
  padding: 6px 0;
  box-shadow: none;
}

.auth-ghost-button:hover,
.auth-submit:hover,
.auth-secondary:hover,
.auth-back:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: rgba(255,255,255,0.88);
}

.auth-ghost-button:active,
.auth-submit:active,
.auth-secondary:active,
.auth-back:active {
  transform: none;
  opacity: 0.88;
}

.auth-ghost-button .auth-action-icon,
.auth-submit .auth-action-icon,
.auth-secondary .auth-action-icon,
.auth-back .auth-action-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  opacity: 0.9;
}

.auth-form button[disabled] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}


                                                 
.auth-actions {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.auth-ghost-button,
.auth-submit,
.auth-secondary,
.auth-back {
  position: relative;
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;
  padding: 12px 14px;
  border-radius: 0;
  transition: background-color .16s ease, color .16s ease, opacity .16s ease;
}

.auth-ghost-button:hover,
.auth-submit:hover,
.auth-secondary:hover,
.auth-back:hover,
.auth-ghost-button:focus-visible,
.auth-submit:focus-visible,
.auth-secondary:focus-visible,
.auth-back:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: none;
  outline: none;
}

.auth-ghost-button + .auth-ghost-button,
.auth-secondary + .auth-submit,
.auth-back + .auth-submit,
.auth-back + .auth-secondary,
.auth-submit + .auth-secondary {
  margin-top: 0;
}

.auth-action-icon {
  flex: 0 0 18px;
}

/* profile page */
.profile-page-section {
  padding-top: 36px;
}

.profile-page-layout {
  display: grid;
  gap: 22px;
}

.profile-summary-card,
.profile-block,
.profile-character-entry,
.profile-character-entry-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-summary-card,
.profile-block {
  padding: 26px;
}

.profile-summary-card h2,
.profile-block h2 {
  margin: 0 0 18px;
}

.profile-not-found-card h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .profile-not-found-card h1 {
    font-size: clamp(1.45rem, 7vw, 2.15rem);
    line-height: 1.12;
  }
}

.profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.profile-lines,
.profile-character-stats {
  display: grid;
  gap: 12px;
}

.profile-characters-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.profile-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.profile-line span {
  color: var(--muted);
}

.profile-line strong {
  text-align: right;
  font-weight: 700;
}

.profile-character-entry {
  width: 100%;
  min-width: 0;
  padding: 22px;
}

.profile-character-entry h3 {
  margin: 0;
  font-size: 1.2rem;
}

.profile-character-subtitle {
  margin: 0;
  color: var(--accent-2);
}

.profile-character-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-character-level {
  color: rgba(224, 233, 249, 0.86);
  font-weight: 800;
  white-space: nowrap;
}

.profile-character-clan {
  margin: 12px 0 0;
  color: rgba(224, 233, 249, 0.9);
}

.profile-character-clan strong {
  color: #ffffff;
}

.profile-character-inline-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-character-entry-empty {
  padding: 20px 22px;
}

.profile-character-entry-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .profile-columns {
    grid-template-columns: 1fr;
  }

  .profile-characters-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-summary-card,
  .profile-block,
  .profile-character-entry,
  .profile-character-entry-empty {
    padding: 20px;
  }

  .profile-characters-stack,
  .profile-character-inline-stats {
    grid-template-columns: 1fr;
  }

  .profile-character-header,
  .profile-line {
    flex-direction: column;
    gap: 6px;
  }

  .profile-line strong {
    text-align: left;
  }
}



                     
.profile-tabs-card,
.profile-summary-card,
.profile-block,
.profile-character-entry,
.profile-character-entry-empty,
.profile-wall-entry,
.profile-placeholder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-tabs-card,
.profile-summary-card,
.profile-block {
  padding: 26px;
}

.profile-tabs-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tab-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.profile-tab-button:hover,
.profile-tab-button:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.profile-tab-button.active {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-wall,
.profile-placeholder-list {
  display: grid;
  gap: 14px;
}

.profile-wall-entry,
.profile-placeholder-card {
  padding: 20px 22px;
}

.profile-wall-entry-empty p,
.profile-placeholder-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.profile-wall-head span {
  color: var(--muted);
  white-space: nowrap;
}

.profile-wall-entry p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-tabs-card,
  .profile-summary-card,
  .profile-block,
  .profile-character-entry,
  .profile-character-entry-empty,
  .profile-wall-entry,
  .profile-placeholder-card {
    padding: 20px;
  }

  .profile-tab-button {
    width: 100%;
    justify-content: center;
  }

  .profile-wall-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}


/* compact profile summary */
.profile-summary-card {
  width: min(100%, 560px);
  justify-self: start;
  padding: 20px 22px;
  background:
    linear-gradient(180deg, rgba(15, 34, 58, 0.96), rgba(8, 21, 37, 0.96)),
    var(--panel);
}

.profile-summary-compact {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.profile-summary-avatar {
  min-height: 132px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--text);
  background: linear-gradient(135deg, #2f7cff, #2562d9);
  box-shadow: 0 12px 30px rgba(37, 98, 217, 0.28);
}

.profile-summary-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-summary-name {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1.05;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-summary-status {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.45;
}

.profile-summary-meta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.profile-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 0.98rem;
  line-height: 1.4;
}

.profile-summary-row span {
  color: var(--accent);
}

.profile-summary-row strong {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .profile-summary-card {
    width: 100%;
    padding: 18px;
  }

  .profile-summary-compact {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-summary-avatar {
    min-height: 116px;
    border-radius: 18px;
    font-size: 1.8rem;
  }

  .profile-summary-name {
    font-size: 1.5rem;
  }

  .profile-summary-status,
  .profile-summary-row {
    font-size: 0.92rem;
  }
}


                                
.profile-summary-shell {
  width: fit-content;
  max-width: min(100%, 760px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-summary-compact {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}

.profile-summary-avatar {
  width: 132px;
  min-height: 132px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--text);
  background: linear-gradient(135deg, #2f7cff, #2562d9);
  box-shadow: 0 12px 30px rgba(37, 98, 217, 0.28);
}

.profile-summary-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}

.profile-summary-name {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1.05;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-summary-status {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.45;
}

.profile-summary-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.profile-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 0.98rem;
  line-height: 1.4;
}

.profile-summary-row span {
  color: var(--accent);
}

.profile-summary-row strong {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .profile-summary-shell {
    width: 100%;
    max-width: 100%;
  }

  .profile-summary-compact {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
  }

  .profile-summary-avatar {
    width: 88px;
    min-height: 88px;
    border-radius: 20px;
    font-size: 1.8rem;
  }

  .profile-summary-name {
    font-size: 1.5rem;
  }

  .profile-summary-status,
  .profile-summary-row {
    font-size: 0.92rem;
  }
}


/* profile tabs without outer box */
.profile-tabs-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.profile-tabs-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.profile-tab-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.profile-tab-button:hover,
.profile-tab-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.055);
}

.profile-tab-button.active {
  color: var(--text);
  background: rgba(17, 38, 63, 0.96);
  border-color: rgba(126, 199, 255, 0.32);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(126, 199, 255, 0.08);
}

.profile-tab-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47,124,255,0.95), rgba(37,98,217,0.92));
  box-shadow: 0 10px 24px rgba(37, 98, 217, 0.22);
}

.profile-tab-button.active .profile-tab-icon {
  background: linear-gradient(135deg, rgba(126, 199, 255, 1), rgba(137, 255, 241, 0.96));
  box-shadow: 0 12px 26px rgba(126, 199, 255, 0.22);
}

.profile-tab-icon svg {
  width: 22px;
  height: 22px;
  stroke: #f4f8ff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-tab-button.active .profile-tab-icon svg {
  stroke: #f4f8ff;
}

.profile-tab-text {
  display: block;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
}

@media (max-width: 1100px) {
  .profile-tabs-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .profile-tabs-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .profile-tabs-nav {
    grid-template-columns: 1fr;
  }

  .profile-tab-button {
    min-height: 66px;
  }
}


/* profile tabs icon-only */
.profile-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  align-items: center;
}

.profile-tab-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-height: 45px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.profile-tab-button:hover,
.profile-tab-button:focus-visible {
  transform: none;
  background: transparent;
  outline: none;
}

.profile-tab-button.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.profile-tab-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(18, 42, 70, 0.98), rgba(9, 24, 41, 0.98));
  border: 1px solid rgba(126, 199, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-tab-button:hover .profile-tab-icon,
.profile-tab-button:focus-visible .profile-tab-icon {
  transform: translateY(-1px);
  border-color: rgba(126, 199, 255, 0.3);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.profile-tab-button.active .profile-tab-icon {
  background: linear-gradient(180deg, rgba(112, 182, 236, 0.96), rgba(72, 143, 210, 0.96));
  border-color: rgba(145, 210, 255, 0.18);
  box-shadow: 0 14px 32px rgba(72, 143, 210, 0.22);
}

.profile-tab-icon svg {
  width: 26px;
  height: 26px;
  stroke: #e9f3ff;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-tab-button.active .profile-tab-icon svg {
  stroke: #04111f;
}

.profile-tab-text {
  display: none;
}

.profile-tab-tooltip {
  position: fixed;
  z-index: 350;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.96);
  border: 1px solid rgba(126, 199, 255, 0.18);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
  white-space: nowrap;
}

.profile-tab-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .profile-tabs-nav {
    gap: 12px;
  }

  .profile-tab-button,
  .profile-tab-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .profile-tab-icon svg {
    width: 18px;
    height: 18px;
  }
}


/* profile summary avatar + text adjustments */
.profile-summary-avatar {
  width: 132px;
  min-height: 132px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(126, 199, 255, 0.38), rgba(137, 255, 241, 0.28));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--text);
}

.profile-summary-status {
  color: #b4c1d3;
}

.profile-summary-row span {
  color: #ffffff;
}

@media (max-width: 640px) {
  .profile-summary-avatar {
    width: 88px;
    min-height: 88px;
    border-radius: 20px;
    font-size: 1.8rem;
  }
}


/* profile summary avatar should use the same image logic as dropdown */
.profile-summary-avatar {
  background-color: rgba(8, 18, 31, 0.98);
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
  overflow: hidden;
}

.profile-summary-status {
  font-style: italic;
}


/* working wall prototype */
.profile-wall {
  display: grid;
  gap: 18px;
}

.profile-wall-editor,
.profile-wall-post {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.profile-wall-editor {
  padding: 18px;
  gap: 14px;
  display: grid;
}

.profile-wall-mode strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.profile-wall-mode p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-wall-compose textarea,
.profile-wall-comment-editor textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(126, 199, 255, 0.12);
  background: linear-gradient(180deg, rgba(6, 18, 34, 0.96), rgba(4, 14, 28, 0.96));
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.profile-wall-comment-editor textarea {
  min-height: 78px;
}

.profile-wall-compose textarea::placeholder,
.profile-wall-comment-editor textarea::placeholder {
  color: rgba(196, 210, 231, 0.46);
}

.profile-wall-compose.is-disabled textarea,
.profile-wall-comment-editor.is-disabled textarea {
  opacity: 0.72;
  cursor: not-allowed;
}

.profile-wall-editor-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.profile-wall-editor-hint {
  color: var(--muted);
  line-height: 1.5;
}

.profile-wall-publish-button,
.profile-wall-comment-submit {
  min-height: 46px;
}

.profile-wall-list {
  display: grid;
  gap: 16px;
}

.profile-wall-post {
  padding: 18px;
}

.profile-wall-post-head,
.profile-wall-comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.profile-wall-post-head {
  justify-content: space-between;
}

.profile-wall-author,
.profile-wall-comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.profile-wall-author {
  min-width: 0;
}

.profile-wall-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background-color: rgba(8, 18, 31, 0.98);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,0.12);
}

.profile-wall-author-text,
.profile-wall-comment-body {
  min-width: 0;
}

.profile-wall-comment-body {
  width: 100%;
}

.profile-wall-author-text strong,
.profile-wall-comment-head strong {
  display: block;
  color: var(--text);
}

.profile-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.profile-name-link:hover,
.profile-name-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.profile-name-link:focus-visible {
  outline: none;
}


.profile-wall-comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-wall-comment-meta {
  min-width: 0;
}

.profile-wall-author-text span,
.profile-wall-comment-head span,
.profile-wall-comments-empty,
.profile-wall-comments-title {
  color: var(--muted);
  font-size: 0.93rem;
}

.profile-wall-post-body {
  margin-top: 14px;
  margin-left: calc(42px + 12px);
}

.profile-wall-post-body p,
.profile-wall-comment-body p {
  margin: 0;
  color: var(--text);
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-wall-comments {
  --wall-avatar-size: 42px;
  --wall-avatar-gap: 12px;
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-wall-comments-empty {
  margin-left: calc(var(--wall-avatar-size) + var(--wall-avatar-gap));
}

.profile-wall-comment {
  margin-left: calc(var(--wall-avatar-size) + var(--wall-avatar-gap));
}

.profile-wall-comment-editor {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: 4px;
  margin-left: calc(var(--wall-avatar-size) + var(--wall-avatar-gap));
}

.profile-wall-comment-submit {
  align-self: flex-end;
  width: auto;
  min-width: 0;
  margin-left: auto;
  margin-right: 0;
  padding-inline: 0;
  text-align: right;
}

.profile-wall-entry-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-wall-comment-delete,
.profile-wall-post-delete,
.profile-wall-comment-edit,
.profile-wall-post-edit,
.profile-wall-post-pin,
.profile-wall-report-button {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.profile-wall-comment-edit,
.profile-wall-post-edit {
  background: rgba(123, 189, 255, 0.12);
  color: #9fd2ff;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18);
}

.profile-wall-post-pin {
  background: transparent;
  color: rgba(255, 214, 102, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.18);
}

.profile-wall-post-pin.is-active {
  background: rgba(255, 214, 102, 0.18);
  color: #ffd666;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.32);
}

.profile-wall-comment-delete,
.profile-wall-post-delete {
  background: rgba(255, 73, 73, 0.12);
  color: #ff7272;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.18);
}

.profile-wall-delete-pair {
  position: relative;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-wall-delete-toggle,
.profile-wall-delete-direct {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.profile-wall-delete-toggle {
  z-index: 2;
  background: rgba(255, 73, 73, 0.12);
  color: #ff5b5b;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18);
}

.profile-wall-delete-direct {
  z-index: 1;
  background: rgba(255, 73, 73, 0.12);
  color: #ff5b5b;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-wall-delete-pair.is-confirming .profile-wall-delete-direct {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-wall-delete-toggle.is-hidden-by-test {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-wall-delete-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-wall-delete-icon img {
  width: 12px;
  height: 12px;
  display: block;
}

.profile-wall-report-button {
  background: rgba(255, 73, 73, 0.12);
  color: #ff5b5b;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.22);
}

.profile-wall-post-delete,
.profile-wall-post-edit,
.profile-wall-post-pin,
.profile-wall-report-button {
  margin-top: 2px;
}

.profile-wall-comment-edit:hover,
.profile-wall-post-edit:hover,
.profile-wall-comment-edit:focus-visible,
.profile-wall-post-edit:focus-visible {
  background: rgba(123, 189, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.3);
  transform: translateY(-1px);
}

.profile-wall-post-pin:hover,
.profile-wall-post-pin:focus-visible {
  background: rgba(255, 214, 102, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.28);
  transform: translateY(-1px);
}

.profile-wall-post-pin.is-active:hover,
.profile-wall-post-pin.is-active:focus-visible {
  background: rgba(255, 214, 102, 0.22);
}

.profile-wall-comment-delete:hover,
.profile-wall-post-delete:hover,
.profile-wall-comment-delete:focus-visible,
.profile-wall-post-delete:focus-visible,
.profile-wall-report-button:hover,
.profile-wall-report-button:focus-visible {
  background: rgba(255, 73, 73, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.28);
  transform: translateY(-1px);
}

.profile-wall-comment-delete.is-confirming,
.profile-wall-post-delete.is-confirming {
  background: rgba(255, 73, 73, 0.24);
  color: #ffd8d8;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 138, 0.38), 0 0 0 1px rgba(255, 73, 73, 0.12);
}

.profile-wall-comment-delete svg,
.profile-wall-post-delete svg,
.profile-wall-delete-toggle svg,
.profile-wall-delete-direct svg,
.profile-wall-comment-edit svg,
.profile-wall-post-edit svg,
.profile-wall-post-pin svg,
.profile-wall-report-button svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.profile-wall-post-pin svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.profile-wall-post-pin.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

@media (max-width: 640px) {
  .profile-wall-editor,
  .profile-wall-post {
    padding: 16px;
    border-radius: 18px;
  }

  .profile-wall-editor-actions {
    align-items: stretch;
  }

  .profile-wall-publish-button {
    width: 100%;
  }

  .profile-wall-comment,
  .profile-wall-comment-editor {
    margin-left: 0;
  }
}


/* overview layout: wall + right sidebar instead of separate social tab */
.profile-overview-grid-with-sidebar {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  align-items: start;
}

.profile-wall-block {
  min-width: 0;
}

.profile-overview-sidecard {
  min-width: 0;
  align-self: stretch;
}

.profile-overview-sidecard .profile-lines {
  gap: 10px;
}

.profile-overview-sidecard .profile-line {
  min-height: 58px;
}

@media (max-width: 980px) {
  .profile-overview-grid-with-sidebar {
    grid-template-columns: 1fr;
  }
}


/* profile tabs reduced to 4 after moving social block into overview */
.profile-tabs-nav {
  gap: 7px;
}


/* overview layout tightened */
.profile-overview-grid-with-sidebar {
  grid-template-columns: minmax(0, 1.56fr) minmax(224px, 0.58fr);
  align-items: start;
}

.profile-overview-sidecard {
  align-self: start;
  height: auto;
}

.profile-overview-sidecard .profile-lines {
  gap: 10px;
}

.profile-overview-sidecard .profile-line {
  min-height: unset;
}

.profile-overview-sidecard .profile-line:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .profile-overview-grid-with-sidebar {
    grid-template-columns: 1fr;
  }
}


/* modern profile nav */
.profile-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: min(100%, calc(100% - clamp(246px, 30%, 320px) - 22px));
}

.profile-tab-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-height: 45px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.profile-tab-button:hover,
.profile-tab-button:focus-visible,
.profile-tab-button.active {
  background: transparent;
  box-shadow: none;
  transform: none;
  outline: none;
}

.profile-tab-button[data-profile-tab="settings"] {
  margin-left: auto;
}

.profile-tab-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(14, 30, 49, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.profile-tab-button:hover .profile-tab-icon,
.profile-tab-button:focus-visible .profile-tab-icon {
  background: rgba(19, 38, 60, 0.98);
  border-color: rgba(126, 199, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: none;
}

.profile-tab-button.active .profile-tab-icon {
  background: rgba(72, 143, 210, 0.96);
  border-color: rgba(145, 210, 255, 0.22);
  box-shadow: none;
}

.profile-tab-icon svg {
  width: 26px;
  height: 26px;
  stroke: #f4f8ff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-tab-button.active .profile-tab-icon svg {
  stroke: #f4f8ff;
}

@media (max-width: 980px) {
  .profile-tabs-nav {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .profile-tabs-nav {
    flex-wrap: wrap;
  }

  .profile-tab-button[data-profile-tab="settings"] {
    margin-left: 0;
  }
}


/* layout adjustment: wider right card + settings aligned to wall outer edge */
.profile-overview-grid-with-sidebar {
  grid-template-columns: minmax(0, 1.48fr) minmax(246px, 0.64fr);
}


/* Align the settings button to the right edge of the wall block instead of the whole page row */
.profile-page-layout {
  position: relative;
}

.profile-tabs-nav {
  display: flex;
  align-items: center;
}

.profile-tab-button[data-profile-tab="settings"] {
  margin-left: auto;
}

@media (max-width: 980px) {
  .profile-overview-grid-with-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-tabs-nav {
    width: 100%;
  }
}


/* precise settings alignment above wall box */
.profile-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 45px) 1fr 45px;
  justify-content: start;
  align-items: center;
  column-gap: 8px;
  row-gap: 8px;
  width: calc(100% - clamp(246px, 30%, 320px) - 22px);
  max-width: calc(100% - clamp(246px, 30%, 320px) - 22px);
}

.profile-tab-button[data-profile-tab="settings"] {
  grid-column: 5;
  justify-self: end;
  margin-left: 0;
}

@media (max-width: 980px) {
  .profile-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .profile-tab-button[data-profile-tab="settings"] {
    margin-left: auto;
  }
}


                                                                 
.profile-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(246px, 0.64fr);
  gap: 22px;
  align-items: start;
}

.profile-summary-shell {
  grid-column: 1 / -1;
}

.profile-tabs-nav {
  grid-column: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.profile-tab-button[data-profile-tab="settings"] {
  margin-left: auto;
  justify-self: auto;
  grid-column: auto;
}

.profile-tab-panel {
  grid-column: 1 / -1;
}

.profile-overview-grid-with-sidebar {
  grid-template-columns: minmax(0, 1.48fr) minmax(246px, 0.64fr);
}

@media (max-width: 980px) {
  .profile-page-layout {
    grid-template-columns: 1fr;
  }

  .profile-tabs-nav,
  .profile-tab-panel,
  .profile-summary-shell {
    grid-column: 1;
  }

  .profile-tabs-nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .profile-tab-button[data-profile-tab="settings"] {
    margin-left: auto;
  }

  .profile-overview-grid-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.profile-presence-value.is-online {
  color: #57d37b;
}

.profile-presence-value.is-offline {
  color: #ff6b6b;
}


.profile-nav-icon-button,
.profile-tab-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-height: 45px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.profile-nav-icon-button:hover,
.profile-nav-icon-button:focus-visible,
.profile-nav-icon-button.active {
  background: transparent;
  box-shadow: none;
  transform: none;
  outline: none;
}

.profile-nav-icon-button .profile-tab-icon svg {
  width: 24px;
  height: 24px;
}

.profile-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 45px) 1fr 45px;
  justify-content: start;
  align-items: center;
  column-gap: 8px;
  row-gap: 8px;
  width: 100%;
  max-width: 100%;
}

.profile-new-post-button {
  grid-column: 4;
}

.profile-tab-button[data-profile-tab="settings"] {
  grid-column: 6;
  margin-left: 0;
  justify-self: end;
}

.profile-wall-editor-readonly {
  gap: 14px;
}

.profile-post-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 10, 18, 0.76);
  backdrop-filter: blur(10px);
  z-index: 1200;
}

.profile-post-overlay.hidden {
  display: none;
}

.profile-post-modal {
  width: min(100%, 1040px);
  border-radius: 24px;
  border: 1px solid rgba(144, 190, 255, 0.14);
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.98), rgba(4, 13, 25, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  padding: 24px;
}

.profile-post-modal-header {
  width: min(100%, 920px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 12px;
}

.profile-post-editor-shell {
  width: min(100%, 920px);
  margin: 0 auto;
}

.profile-post-editor-shell .wall-editor-toolbar-wrap,
.profile-post-editor-shell .profile-post-modal-textarea,
.profile-post-editor-shell .profile-post-modal-meta {
  width: 100%;
}

.profile-post-modal-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.profile-post-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14, 30, 49, 0.92);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}


.profile-post-modal-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(93, 137, 192, 0.2);
  background: rgba(2, 12, 25, 0.82);
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
  line-height: 1.55;
  outline: none;
}

.profile-post-modal-textarea::placeholder {
  color: rgba(162, 181, 207, 0.5);
}

.profile-post-modal-textarea:focus {
  border-color: rgba(114, 173, 238, 0.42);
  box-shadow: 0 0 0 1px rgba(114, 173, 238, 0.22);
}

.profile-post-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.profile-post-modal-hint {
  color: rgba(159, 176, 200, 0.72);
  font-size: 14px;
}

.profile-post-modal-counter {
  margin-left: auto;
  color: rgba(228, 238, 255, 0.86);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.profile-post-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(100%, 920px);
  margin: 18px auto 0;
}

.profile-post-modal-submit {
  min-height: 46px;
  min-width: 170px;
  margin-left: 0;
  padding: 0 18px;
  border-radius: 14px;
}

.profile-post-confirm-modal {
  width: min(100%, 560px);
}

.profile-post-confirm-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-post-confirm-actions {
  margin-top: 22px;
}

.profile-post-confirm-cancel,
.profile-post-confirm-submit {
  min-width: 110px;
}

@media (max-width: 980px) {
  .profile-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .profile-new-post-button,
  .profile-tab-button[data-profile-tab="settings"] {
    grid-column: auto;
  }

  .profile-tab-button[data-profile-tab="settings"] {
    margin-left: auto;
  }
}


                                                     
.profile-tabs-nav {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.profile-new-post-button {
  margin-left: auto;
}

.profile-tab-button[data-profile-tab="settings"] {
  margin-left: 0 !important;
}

.profile-nav-icon-button:hover .profile-tab-icon,
.profile-nav-icon-button:focus-visible .profile-tab-icon {
  background: rgba(19, 38, 60, 0.98);
  border-color: rgba(126, 199, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: none;
}

@media (max-width: 980px) {
  .profile-tabs-nav {
    flex-wrap: wrap;
  }

  .profile-new-post-button {
    margin-left: 0;
  }

  .profile-tab-button[data-profile-tab="settings"] {
    margin-left: auto !important;
  }
}


.profile-wall-comments-header {
  margin-left: calc(var(--wall-avatar-size) + var(--wall-avatar-gap));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-wall-comments-toggle {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.profile-wall-comments-toggle:hover,
.profile-wall-comments-toggle:focus-visible {
  color: var(--text);
  outline: none;
}

.profile-wall-comments-toggle-icon {
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.18s ease;
}

.profile-wall-comments-toggle[aria-expanded="true"] .profile-wall-comments-toggle-icon {
  transform: rotate(180deg);
}

.profile-wall-comments-list.is-collapsed .profile-wall-comment:not(:last-child) {
  display: none;
}

.profile-post-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-post-confirm-cancel,
.profile-post-confirm-submit {
  min-width: 110px;
  width: auto;
  margin: 0;
  justify-content: center;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}


.profile-wall-post-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.profile-wall-author {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
  width: 100%;
}

.profile-wall-author-text {
  grid-column: 2;
}

.profile-wall-post-body {
  grid-column: 2;
  margin-top: 0;
  margin-left: 0;
}

.profile-wall-post-body p,
.profile-wall-comment-body p,
.profile-wall-comments-empty,
.profile-wall-comments-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.profile-wall-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.profile-wall-list + .profile-wall-pagination {
  margin: 10px 0 0;
}

.profile-wall-pagination-button,
.profile-wall-pagination-ellipsis {
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
}

.profile-wall-pagination-button {
  border: 1px solid rgba(93, 137, 192, 0.22);
  background: rgba(8, 20, 36, 0.82);
  color: var(--text);
  cursor: pointer;
  padding: 0 10px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.profile-wall-pagination-button:hover,
.profile-wall-pagination-button:focus-visible {
  outline: none;
  border-color: rgba(114, 173, 238, 0.42);
  background: rgba(14, 30, 49, 0.92);
  transform: translateY(-1px);
}

.profile-wall-pagination-button.is-active {
  background: rgba(72, 143, 210, 0.2);
  border-color: rgba(114, 173, 238, 0.5);
}

.profile-wall-pagination-button[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.profile-wall-pagination-nav {
  padding: 0 8px;
}

.profile-wall-pagination-nav span {
  display: inline-block;
  transform: translateY(-1px);
}


.profile-wall-pagination-ellipsis {
  color: var(--muted);
  min-width: auto;
  padding: 0 2px;
}


/* profile nav text-style refresh */
.profile-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  width: 100%;
}

.profile-tab-button {
  appearance: none;
  display: grid;
  grid-template-rows: auto 2px;
  align-items: end;
  gap: 7px;
  min-height: 50px;
  padding: 10px 12px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-tab-button:hover,
.profile-tab-button:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  outline: none;
  transform: none;
}

.profile-tab-button.active {
  color: var(--text);
  background: transparent;
}

.profile-tab-text {
  display: block;
}

.profile-tab-slider {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.profile-tab-button.active .profile-tab-slider {
  background: rgba(126, 199, 255, 0.58);
  box-shadow: 0 1px 4px rgba(126, 199, 255, 0.1);
}

.profile-tab-icon {
  display: none !important;
}

.profile-wall-block-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.profile-inline-action {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  padding: 0 0 3px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.profile-inline-action::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  margin-top: 7px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.profile-inline-action:hover,
.profile-inline-action:focus-visible {
  color: var(--text);
  outline: none;
}

.profile-inline-action:hover::after,
.profile-inline-action:focus-visible::after {
  background: rgba(126, 199, 255, 0.38);
}

.profile-summary-avatar {
  position: relative;
}

.profile-avatar-presence-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(8, 18, 31, 0.96);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.profile-avatar-presence-dot.is-online {
  background: #4ee073;
}

.profile-avatar-presence-dot.is-offline {
  background: #ef5350;
}

.profile-summary-meta {
  display: none;
}

.profile-overview-sidecard {
  align-self: start;
}

@media (max-width: 640px) {
  .profile-tabs-nav {
    gap: 10px;
  }

  .profile-tab-button {
    min-height: 44px;
    padding: 8px 10px 5px;
  }

  .profile-avatar-presence-dot {
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
  }
}


                               
.profile-tabs-nav {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.profile-tab-button {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  padding: 0 0 6px;
  border-radius: 0;
  background: transparent !important;
  color: var(--muted);
  white-space: nowrap;
}

.profile-tab-button:hover,
.profile-tab-button:focus-visible,
.profile-tab-button.active {
  background: transparent !important;
  box-shadow: none;
  transform: none;
}

.profile-tab-text {
  font-size: 1.12rem;
  line-height: 1.1;
}

.profile-summary-compact {
  align-items: center;
  gap: 18px;
}

.profile-summary-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 118px;
}

.profile-summary-name {
  margin: -10px 0 0;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1;
}

.profile-summary-status {
  margin-top: 10px;
}

.profile-wall-block-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 -40px;
  pointer-events: none;
}

.profile-wall-block-top .profile-inline-action {
  pointer-events: auto;
}

.profile-inline-action {
  padding-bottom: 0;
  white-space: nowrap;
}

.profile-inline-action::after {
  margin-top: 6px;
}

.profile-wall > .profile-wall-pagination:first-child {
  margin-top: 0;
}

.profile-wall-pagination {
  min-height: 30px;
}

.profile-wall {
  position: relative;
}

@media (max-width: 980px) {
  .profile-wall-block-top {
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .profile-tab-text {
    font-size: 1rem;
  }

  .profile-summary-main {
    min-height: 96px;
  }

  .profile-summary-name {
    margin-top: -4px;
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }
}


                                        
.profile-wall-block-top {
  margin: 0 0 14px;
  min-height: 30px;
}

.profile-wall-block-top.has-pagination {
  margin: 0 0 -40px;
}

.profile-wall-block-top.is-empty {
  margin-bottom: 10px;
}

.profile-wall:not(.has-pagination) > .profile-wall-pagination:first-child,
.profile-wall:not(.has-pagination) > .profile-wall-list + .profile-wall-pagination {
  display: none;
}

.profile-wall.is-empty {
  min-height: 244px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.profile-wall.is-empty .profile-wall-list {
  display: flex;
  flex: 1 1 auto;
}

.profile-wall.is-empty .profile-wall-entry-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 18px 0 0;
  min-height: 0;
}

.profile-wall-entry-empty strong {
  font-size: 1.06rem;
}

@media (max-width: 980px) {
  .profile-wall-block-top.has-pagination,
  .profile-wall-block-top.is-empty,
  .profile-wall-block-top {
    margin-bottom: 12px;
  }

  .profile-wall.is-empty {
    min-height: 220px;
  }
}


                                                   
.profile-wall.is-empty {
  min-height: 152px;
}

.profile-wall-settings-card {
  display: grid;
  gap: 16px;
}

.profile-wall-settings-list {
  display: grid;
  gap: 14px;
}

.profile-wall-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-wall-setting-label {
  color: var(--text);
  font-weight: 600;
}

.profile-wall-setting-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-wall-setting-option {
  min-width: 50px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, color .18s ease;
}

.profile-wall-setting-option:hover,
.profile-wall-setting-option:focus-visible {
  border-color: rgba(123, 189, 255, 0.42);
  background: rgba(123, 189, 255, 0.08);
  transform: translateY(-1px);
}

.profile-wall-setting-option.is-active {
  border-color: rgba(123, 189, 255, 0.58);
  background: rgba(123, 189, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18);
}

.profile-notifications-settings-card {
  display: grid;
  gap: 14px;
}

.profile-notifications-settings-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.profile-sound-toggle {
  justify-self: start;
}

.profile-signature-settings-card {
  display: grid;
  gap: 14px;
}

.profile-signature-input-label,
.profile-signature-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-signature-input {
  width: 100%;
  min-height: 108px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.profile-signature-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-contacts-settings-card {
  display: grid;
  gap: 16px;
}

.profile-contacts-trigger {
  justify-self: start;
}

.profile-contacts-editor.hidden {
  display: none;
}

.profile-contacts-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.profile-contacts-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-contact-service-option {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.profile-contact-service-option:hover,
.profile-contact-service-option:focus-visible {
  border-color: rgba(123, 189, 255, 0.45);
  background: rgba(123, 189, 255, 0.08);
  transform: translateY(-1px);
}

.profile-contact-service-option.is-active {
  border-color: rgba(123, 189, 255, 0.6);
  background: rgba(123, 189, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.2);
}

.profile-contact-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.profile-contact-service-icon svg {
  width: 100%;
  height: 100%;
}

.profile-contact-service-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-contacts-input-label {
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-contacts-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
}

.profile-contacts-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.profile-contacts-actions {
  display: flex;
  justify-content: flex-start;
}

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

.profile-contacts-empty {
  margin: 0;
  color: var(--muted);
}

.profile-contact-chip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.profile-contact-chip-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.profile-contact-chip-icon svg {
  width: 100%;
  height: 100%;
}

.profile-contact-chip-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-contact-chip-text strong,
.profile-contact-chip-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-contact-chip-text span {
  color: var(--muted);
}

.profile-contact-chip-remove {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 112, 112, 0.22);
  background: rgba(255, 82, 82, 0.1);
  color: #ff8c8c;
  font-size: 1.25rem;
  line-height: 1;
}

.profile-contact-chip-remove:hover,
.profile-contact-chip-remove:focus-visible {
  background: rgba(255, 82, 82, 0.16);
  border-color: rgba(255, 112, 112, 0.35);
}

@media (max-width: 720px) {
  .profile-contacts-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


                                  
.profile-info-card-value-contacts {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.profile-contacts-display-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.profile-contact-display-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: right;
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.profile-contact-display-item:hover,
.profile-contact-display-item:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

.profile-contact-display-item.is-copied .profile-contact-display-value {
  color: var(--accent, #7bbdff);
}

.profile-contact-display-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.profile-contact-display-icon svg {
  width: 100%;
  height: 100%;
}

.profile-contact-display-value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.18);
  text-underline-offset: 3px;
}

.profile-contact-display-item:hover .profile-contact-display-icon,
.profile-contact-display-item:focus-visible .profile-contact-display-icon {
  color: var(--text);
}


                                           
.profile-line:has(.profile-info-card-value-contacts) {
  align-items: flex-start;
}

.profile-info-card-value-contacts {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin-top: 6px;
}

.profile-contacts-display-list {
  align-items: flex-start;
  width: 100%;
}

.profile-contact-display-item {
  justify-content: flex-start;
  text-align: left;
}

.profile-copy-toast {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .16s ease, transform .16s ease;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(123, 189, 255, 0.25);
  background: rgba(10, 18, 34, 0.96);
  color: #eaf4ff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.profile-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%);
}


                                    
.profile-line:has(.profile-info-card-value-contacts) {
  align-items: center;
}

.profile-line:has(.profile-info-card-value-contacts) > span {
  align-self: center;
}

.profile-info-card-value-contacts {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: auto;
  margin-top: 0;
  margin-left: auto;
}

.profile-contacts-display-list {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: auto;
}

.profile-contact-display-item {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  min-width: 24px;
  min-height: 24px;
}

.profile-contact-display-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.profile-contact-display-value {
  display: none;
}


                                            
.profile-contact-display-item {
  position: relative;
}

.profile-contact-display-icon {
  color: #ffffff;
}

.profile-contact-display-item:hover .profile-contact-display-icon,
.profile-contact-display-item:focus-visible .profile-contact-display-icon,
.profile-contact-display-item.is-copied .profile-contact-display-icon {
  color: #ffffff;
}

/* duplicate contact pseudo-tooltip disabled: using shared .profile-tab-tooltip only */
.profile-contact-display-item::after {
  content: none !important;
  display: none !important;
}


                                         
.profile-post-modal-textarea,
.profile-wall-comment-input,
.wall-rich-editor {
  min-height: 154px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  outline: none;
  overflow: auto;
}

.wall-rich-editor-shell-comment .wall-rich-editor {
  min-height: 132px;
  font-size: 1rem;
}

.wall-rich-editor[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,.42);
}

.wall-rich-editor.ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,.42);
  float: left;
  height: 0;
  pointer-events: none;
}

.wall-rich-editor.ProseMirror {
  white-space: pre-wrap;
}

.wall-rich-editor.ProseMirror:focus {
  outline: none;
}

.wall-rich-editor-shell {
  position: relative;
  display: grid;
  gap: 10px;
}

.wall-rich-editor-comment-wrap {
  display: grid;
  gap: 8px;
}

.wall-editor-toolbar-wrap {
  display: flex;
  justify-content: flex-end;
}

.wall-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.wall-tool-button,
.wall-tool-select,
.wall-tool-color {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
}

.wall-tool-button {
  min-width: 34px;
  padding: 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.wall-tool-select {
  padding: 0 10px;
}

.wall-tool-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  overflow: hidden;
}

.wall-tool-color input {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  padding: 0;
}

.profile-wall-comment-editor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.profile-wall-comment-submit {
  align-self: end;
}

.profile-wall-rich-content {
  font-size: 1rem;
  line-height: 1.55;
  word-break: break-word;
}

.profile-wall-rich-content p,
.profile-wall-rich-content div {
  margin: 0;
}

.profile-wall-rich-content > * + * {
  margin-top: 10px;
}

.profile-wall-rich-content p:last-child,
.profile-wall-rich-content div:last-child {
  margin-bottom: 0;
}

.profile-wall-rich-content a {
  color: #9fcbff;
  text-decoration: underline;
}

.wall-inline-image,
.wall-inline-video {
  display: block;
  max-width: min(100%, 380px);
  border-radius: 12px;
  margin: 8px 0;
}

.wall-inline-emoji {
  width: 22px;
  height: 22px;
  vertical-align: text-bottom;
  object-fit: contain;
  margin: 0 2px;
}

.wall-spoiler {
  background: rgba(255,255,255,.08);
  color: transparent;
  border-radius: 8px;
  padding: 0 6px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}

.wall-spoiler:hover,
.wall-spoiler:focus-visible {
  color: inherit;
  background: rgba(255,255,255,.16);
}

.wall-emoji-picker {
  position: fixed;
  z-index: 4000;
  width: 260px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,18,34,.98);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  transform: translateY(-100%);
}

.wall-emoji-picker.hidden {
  display: none;
}

.wall-emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.wall-emoji-button {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wall-emoji-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .profile-wall-comment-editor {
    grid-template-columns: 1fr;
  }

  .wall-editor-toolbar,
  .wall-editor-toolbar-wrap {
    justify-content: flex-start;
  }
}


                                    
.profile-wall-comment-editor-trigger {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.profile-wall-comment-open {
  min-height: 38px;
  padding: 0 16px;
}

.profile-comment-modal .profile-post-modal-title {
  margin: 0;
}

.profile-comment-modal-textarea {
  min-height: 170px;
}

.profile-comment-modal .wall-editor-toolbar {
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .profile-wall-comment-editor-trigger {
    margin-top: 12px;
  }
}


                                                    
#profile-new-post-button,
.profile-wall-comment-open {
  position: relative;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 0 0 6px;
  min-height: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.1;
  transition: color .18s ease, opacity .18s ease;
}

#profile-new-post-button::after,
.profile-wall-comment-open::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123, 189, 255, 0.95), rgba(123, 189, 255, 0.55));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease, opacity .18s ease;
  opacity: .95;
}

#profile-new-post-button:hover,
#profile-new-post-button:focus-visible,
.profile-wall-comment-open:hover,
.profile-wall-comment-open:focus-visible {
  color: var(--text);
  transform: none;
}

#profile-new-post-button:hover::after,
#profile-new-post-button:focus-visible::after,
.profile-wall-comment-open:hover::after,
.profile-wall-comment-open:focus-visible::after {
  transform: scaleX(1);
}

#profile-new-post-button[disabled],
.profile-wall-comment-open[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

#profile-new-post-button[disabled]::after,
.profile-wall-comment-open[disabled]::after {
  transform: scaleX(0);
}


                                                          
.profile-tabs-nav {
  gap: 14px !important;
}

.profile-tab-button {
  font-size: 1rem;
  font-weight: 600;
  min-height: 50px;
  padding: 10px 12px 6px;
  display: grid;
  grid-template-rows: auto 2px;
  align-items: end;
  gap: 7px;
}

.profile-tab-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
}

                                                                 
#profile-new-post-button,
.profile-wall-comment-open,
.profile-inline-action {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  min-height: 50px;
  padding: 10px 12px 6px;
  display: inline-grid;
  grid-template-rows: auto 2px;
  align-items: end;
  gap: 7px;
  white-space: nowrap;
  color: var(--muted);
}

#profile-new-post-button::after,
.profile-wall-comment-open::after,
.profile-inline-action::after {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin-top: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(123, 189, 255, 0.95), rgba(123, 189, 255, 0.55));
}

.profile-wall-block-top {
  min-height: 50px;
  margin: 0 0 -40px;
}

.profile-wall-comment-editor-trigger {
  margin-top: 6px;
}

                                                            
.profile-wall-block-top {
  min-height: 30px;
  margin: 0 0 14px;
  align-items: flex-start;
}

.profile-wall-block-top.has-pagination {
  margin: 0 0 -40px;
}

#profile-new-post-button,
.profile-wall-comment-open,
.profile-inline-action {
  min-height: 0;
}

                                                                                               
.menu a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--text);
  background: transparent;
}

.profile-tab-button {
  transition: color 0.2s ease, transform 0.2s ease;
}

.profile-tab-button:hover,
.profile-tab-button:focus-visible {
  color: var(--text);
  background: transparent;
}

#profile-new-post-button:hover::after,
#profile-new-post-button:focus-visible::after,
.profile-wall-comment-open:hover::after,
.profile-wall-comment-open:focus-visible::after,
.profile-inline-action:hover::after,
.profile-inline-action:focus-visible::after {
  background: transparent;
  transform: scaleX(0);
  box-shadow: none;
}

#profile-new-post-button:hover,
#profile-new-post-button:focus-visible,
.profile-wall-comment-open:hover,
.profile-wall-comment-open:focus-visible,
.profile-inline-action:hover,
.profile-inline-action:focus-visible {
  color: var(--text);
  background: transparent !important;
  box-shadow: none !important;
}

                                         
.profile-tabs-nav {
  justify-content: flex-start;
}

.profile-wall-block-top {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.profile-wall-block-top .profile-inline-action,
.profile-wall-block-top #profile-new-post-button {
  margin-left: 0;
  margin-right: auto;
}

.profile-wall-comment-editor-trigger {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.profile-wall-comment-open {
  margin-left: auto;
}

@media (max-width: 760px) {
  .profile-wall-block-top {
    justify-content: flex-start;
  }

  .profile-wall-comment-editor-trigger {
    justify-content: flex-end;
  }
}


                                                               
.profile-overview-grid.profile-overview-grid-single,
.profile-overview-grid-single {
  display: block;
}

.profile-overview-sidecard-hidden {
  display: none !important;
}

.profile-wall-block {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.profile-summary-main {
  justify-content: flex-start;
  min-height: 0;
  padding-top: 2px;
}

.profile-summary-name {
  margin: -30px 0 0;
}

.profile-summary-status {
  margin-top: 6px;
}

.profile-summary-registration {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.profile-wall-list {
  gap: 10px;
}

.profile-wall-post {
  cursor: default;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-wall-post:hover {
  transform: translateY(-1px);
}

.profile-wall-comments {
  gap: 0;
}

.profile-wall-comments-summary {
  width: 100%;
  color: var(--muted);
  font-size: 0.93rem;
  display: flex;
  align-items: stretch;
}

.profile-wall-comments-toggle-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 56px;
  padding: 8px 16px 8px calc(var(--wall-avatar-size) + var(--wall-avatar-gap));
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.profile-wall-comments-toggle-button:hover .profile-wall-comments-title,
.profile-wall-comments-toggle-button:focus-visible .profile-wall-comments-title {
  color: var(--text);
}

.profile-wall-comments-toggle-button:focus-visible {
  outline: none;
}

.profile-wall-comments-title {
  pointer-events: none;
}

.profile-wall-comments-panel {
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: auto;
  transition: none;
  margin-top: 0;
}

.profile-wall-comments-panel > * {
  transform: translateY(-6px);
  transition: transform 0.36s ease, opacity 0.3s ease;
}

.profile-wall-comments-panel.is-expanded {
  opacity: 1;
  pointer-events: auto;
  margin-top: 12px;
}

.profile-wall-comments-panel.is-expanded > * {
  transform: translateY(0);
}

.profile-wall-comments-list {
  display: grid;
  gap: 12px;
}

.profile-wall-comments-panel .profile-wall-comment,
.profile-wall-comments-panel .profile-wall-comment-editor {
  margin-left: calc(var(--wall-avatar-size) + var(--wall-avatar-gap));
}

.profile-wall-comments-header,
.profile-wall-comments-toggle {
  display: none !important;
}

.profile-wall-comments-list.is-collapsed .profile-wall-comment:not(:last-child) {
  display: flex;
}

@media (max-width: 640px) {
  .profile-summary-name {
    margin-top: -18px;
  }

  .profile-summary-registration {
    margin-top: 14px;
  }
}


                                                    
.profile-summary-main {
  padding-top: 0;
}

.profile-summary-name {
  margin: -42px 0 0;
}

.profile-summary-status {
  margin-top: 6px;
}

.profile-summary-contacts {
  display: flex;
  align-items: center;
  min-height: 1.5em;
  margin-top: 10px;
}

.profile-summary-contacts .profile-contacts-display-list {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.profile-summary-contacts .profile-contact-display-item {
  min-width: 26px;
  min-height: 26px;
}

.profile-summary-contacts-empty {
  color: var(--muted);
}

.profile-summary-registration {
  margin-top: 8px;
}

.profile-wall-comment-editor-inline {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 18, 31, 0.58);
}

.profile-wall-inline-comment-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(228, 238, 255, 0.9);
  font-size: 0.96rem;
}

.profile-wall-inline-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.profile-wall-inline-comment-hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-wall-comment-submit-inline {
  margin-left: auto;
}

.profile-wall-edit-editor {
  margin-top: 12px;
}

.profile-wall-edit-actions {
  justify-content: flex-end;
  gap: 18px;
}

.profile-wall-edit-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 18, 31, 0.58);
  box-sizing: border-box;
  overflow: visible;
}

.profile-wall-edit-editor .wall-rich-editor-shell-comment-inline,
.profile-wall-edit-editor .wall-editor-toolbar-wrap,
.profile-wall-edit-editor .wall-editor-toolbar,
.profile-wall-edit-editor .profile-comment-modal-textarea,
.profile-wall-edit-editor .profile-wall-inline-comment-actions {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.profile-wall-edit-editor .wall-rich-editor-shell-comment-inline .wall-editor-toolbar-wrap {
  justify-content: flex-start;
}

.profile-wall-edit-editor .wall-rich-editor-shell-comment-inline .wall-editor-toolbar {
  justify-content: flex-start;
}

.profile-wall-edit-editor .profile-comment-modal-textarea {
  display: block;
  min-height: 132px;
}

.profile-wall-edit-editor-post {
  width: calc(100% - (42px + 12px));
  max-width: calc(100% - (42px + 12px));
  margin-left: calc(42px + 12px);
}

.profile-wall-edit-editor-comment {
  width: calc(100% + (var(--wall-avatar-size) + var(--wall-avatar-gap)));
  max-width: calc(100% + (var(--wall-avatar-size) + var(--wall-avatar-gap)));
  margin-left: calc(-1 * (var(--wall-avatar-size) + var(--wall-avatar-gap)));
}

@media (max-width: 640px) {
  .profile-wall-edit-editor-post {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .profile-summary-name {
    margin-top: -28px;
  }

  .profile-wall-inline-comment-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}


                                                                      
.profile-summary-compact {
  align-items: center;
  gap: 18px;
}

.profile-summary-main {
  justify-content: center;
  min-height: 128px;
  padding-top: 14px;
  padding-bottom: 6px;
}

.profile-summary-name {
  margin: 0;
}

.profile-summary-status {
  margin-top: 8px;
}

.profile-summary-contacts {
  min-height: 26px;
  margin-top: 8px;
}

.profile-summary-registration {
  margin-top: 4px;
}

.profile-wall-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.profile-wall-avatar-link:focus-visible {
  outline: 2px solid rgba(255,255,255,0.72);
  outline-offset: 3px;
}

.profile-wall-post {
  overflow: hidden;
}

.profile-wall-comments-panel {
  transform-origin: top center;
  transition: none;
}

.profile-wall-comments-panel > * {
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
}

.profile-wall-comments-panel.is-expanded > * {
  opacity: 1;
}

@media (max-width: 640px) {
  .profile-summary-main {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .profile-summary-name {
    margin: 0;
  }
}


                                                                                          
.profile-summary-compact {
  align-items: flex-start;
}

.profile-summary-main {
  justify-content: flex-start;
  min-height: 128px;
  padding-top: 18px;
  padding-bottom: 0;
}

.profile-summary-name {
  margin-top: 6px;
}

.profile-summary-status {
  margin-top: 10px;
}

.profile-summary-contacts {
  min-height: 22px;
  margin-top: 6px;
}

.profile-summary-registration {
  margin-top: 2px;
}

.profile-wall-comment-editor-inline {
  display: grid;
  gap: 12px;
  padding: 14px 14px 16px;
}

.wall-rich-editor-shell-comment-inline {
  display: grid;
  gap: 10px;
  width: 100%;
}

.wall-rich-editor-shell-comment-inline .wall-editor-toolbar-wrap {
  justify-content: flex-start;
}

.wall-rich-editor-shell-comment-inline .wall-editor-toolbar {
  width: 100%;
  justify-content: flex-start;
}

.wall-rich-editor-shell-comment-inline .profile-comment-modal-textarea {
  width: 100%;
  min-height: 132px;
}

.profile-wall-inline-comment-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.profile-wall-comment-submit-inline {
  width: auto;
  min-width: 0;
  padding: 0;
}

.profile-wall-post .profile-wall-avatar-link,
.profile-wall-comment .profile-wall-avatar-link {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .profile-summary-main {
    min-height: 0;
    padding-top: 12px;
  }

  .profile-summary-name {
    margin-top: 0;
  }
}

                                                                   
.profile-wall-comment-editor-inline {
  gap: 10px;
}

.profile-wall-inline-comment-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 0;
}

.profile-wall-comment-submit-inline.auth-secondary,
.profile-wall-comment-submit-inline.auth-ghost-button,
.profile-wall-comment-submit-inline {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 10px 0 6px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  display: inline-grid;
  grid-template-rows: auto 2px;
  align-items: end;
  gap: 7px;
  white-space: nowrap;
}

.profile-wall-comment-submit-inline.auth-secondary::after,
.profile-wall-comment-submit-inline.auth-ghost-button::after,
.profile-wall-comment-submit-inline::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: transparent;
  transform: scaleX(0);
}

.profile-wall-comment-submit-inline.auth-secondary:hover,
.profile-wall-comment-submit-inline.auth-secondary:focus-visible,
.profile-wall-comment-submit-inline.auth-ghost-button:hover,
.profile-wall-comment-submit-inline.auth-ghost-button:focus-visible,
.profile-wall-comment-submit-inline:hover,
.profile-wall-comment-submit-inline:focus-visible {
  width: auto;
  margin: 0;
  background: transparent !important;
  color: var(--text);
  box-shadow: none !important;
  outline: none;
}

@media (max-width: 640px) {
  .profile-wall-inline-comment-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }
}


                                                      
.profile-wall-comment-editor-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.wall-rich-editor-shell-comment-inline {
  width: 100%;
}

.profile-wall-inline-comment-actions {
  display: block;
  width: 100%;
  text-align: right;
  margin-top: 10px;
}

.profile-wall-comment-submit-inline.auth-secondary,
.profile-wall-comment-submit-inline.auth-ghost-button,
.profile-wall-comment-submit-inline {
  display: inline-grid;
  vertical-align: top;
}

@media (max-width: 640px) {
  .profile-wall-inline-comment-actions {
    display: block;
    text-align: right;
  }
}

                                         
.profile-wall-post,
.profile-wall-comments-panel,
.profile-wall-comment-editor-inline {
  overflow: visible;
}

.profile-wall-comment-editor-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.wall-rich-editor-shell-comment-inline,
.wall-rich-editor-shell-comment-inline .wall-editor-toolbar-wrap,
.wall-rich-editor-shell-comment-inline .wall-editor-toolbar,
.wall-rich-editor-shell-comment-inline .profile-comment-modal-textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.wall-rich-editor-shell-comment-inline .profile-comment-modal-textarea {
  display: block;
}

.profile-wall-inline-comment-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
  text-align: right;
}

.profile-wall-comment-submit-inline.auth-secondary,
.profile-wall-comment-submit-inline.auth-ghost-button,
.profile-wall-comment-submit-inline {
  margin-left: 0;
  flex: 0 0 auto;
}


                                                                 
.profile-wall-comments-panel .profile-wall-comment-editor-inline {
  width: calc(100% - (var(--wall-avatar-size) + var(--wall-avatar-gap)));
  max-width: calc(100% - (var(--wall-avatar-size) + var(--wall-avatar-gap)));
  margin-right: 0;
}

.profile-wall-comments-panel .profile-wall-comment-editor-inline .wall-rich-editor-shell-comment-inline,
.profile-wall-comments-panel .profile-wall-comment-editor-inline .wall-editor-toolbar-wrap,
.profile-wall-comments-panel .profile-wall-comment-editor-inline .wall-editor-toolbar,
.profile-wall-comments-panel .profile-wall-comment-editor-inline .profile-comment-modal-textarea,
.profile-wall-comments-panel .profile-wall-comment-editor-inline .profile-wall-inline-comment-actions {
  max-width: 100%;
}

@media (max-width: 640px) {
  .profile-wall-comments-panel .profile-wall-comment-editor-inline {
    width: 100%;
    max-width: 100%;
  }
}


                                                                
.profile-summary-compact {
  align-items: center;
  gap: 18px;
}

.profile-summary-main {
  justify-content: center;
  min-height: 128px;
  padding-top: 4px;
  padding-bottom: 0;
}

.profile-summary-name {
  margin: 0;
}

.profile-summary-status {
  margin-top: 8px;
}

.profile-summary-contacts {
  min-height: 22px;
  margin-top: 6px;
}

.profile-summary-registration {
  margin-top: 6px;
}

@media (max-width: 640px) {
  .profile-summary-compact {
    align-items: center;
  }

  .profile-summary-main {
    min-height: 0;
    justify-content: center;
    padding-top: 6px;
    padding-bottom: 0;
  }

  .profile-summary-name {
    margin: 0;
  }
}


                                                   
.wall-editor-toolbar-wrap {
  display: block;
  width: 100%;
}

.wall-editor-toolbar {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 9px;
  justify-content: flex-start;
  align-items: center;
}

.wall-tool-button,
.wall-tool-select,
.wall-tool-color {
  height: 34px;
  min-width: 0;
  flex: 0 0 34px;
  box-sizing: border-box;
}

.wall-tool-button {
  padding: 0;
  font-size: 0.92rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wall-tool-button span {
  display: inline-block;
}

.wall-tool-button-italic span {
  font-style: italic;
}

.wall-tool-select {
  padding: 0 8px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.wall-tool-select-font {
  flex: 0 0 104px;
}

.wall-tool-select-size {
  flex: 0 0 84px;
}

.wall-tool-color {
  flex: 0 0 36px;
  width: 36px;
}

.wall-tool-color input {
  width: 28px;
  height: 28px;
}

.wall-widget-placeholder {
  display: inline-block;
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 199, 255, 0.18);
  background: rgba(12, 28, 48, 0.85);
  color: var(--muted);
}

.wall-inline-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 8px 0;
  border: 1px solid rgba(126, 199, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(9, 22, 38, 0.72);
}

.wall-inline-table th,
.wall-inline-table td {
  border-right: 1px solid rgba(126, 199, 255, 0.16);
  border-bottom: 1px solid rgba(126, 199, 255, 0.16);
  padding: 10px 12px;
  text-align: left;
}

.wall-inline-table tr > *:last-child {
  border-right: 0;
}

.wall-inline-table tr:last-child > * {
  border-bottom: 0;
}

.wall-inline-table th:first-child {
  border-top-left-radius: 16px;
}

.wall-inline-table th:last-child {
  border-top-right-radius: 16px;
}

.wall-inline-table tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

.wall-inline-table tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

.wall-inline-table th {
  color: var(--text);
  background: rgba(18, 38, 63, 0.78);
}

.wall-inline-table td {
  color: var(--muted);
  background: rgba(9, 22, 38, 0.76);
}

@media (max-width: 1200px) {
  .wall-editor-toolbar {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }
}


                                          
.profile-post-modal-textarea,
.profile-wall-comment-input,
.wall-rich-editor,
.profile-comment-modal-textarea {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
  writing-mode: horizontal-tb;
  caret-color: var(--text);
}

.wall-rich-editor * {
  direction: inherit;
}

                                                                  
.profile-wall-comments-panel .profile-wall-comment-editor-inline {
  margin-top: 32px;
}

@media (max-width: 640px) {
  .profile-wall-comments-panel .profile-wall-comment-editor-inline {
    margin-top: 28px;
  }
}


/* Custom tooltips for wall editor */
.wall-editor-toolbar [data-tooltip] {
  position: relative;
}

.wall-editor-toolbar [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  min-width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(96, 130, 170, 0.35);
  background: linear-gradient(180deg, rgba(11, 28, 48, 0.98), rgba(6, 18, 34, 0.98));
  color: #dce9ff;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity .14s ease, transform .14s ease;
}

.wall-editor-toolbar [data-tooltip]::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(8, 22, 39, 0.98);
  border-right: 1px solid rgba(96, 130, 170, 0.35);
  border-bottom: 1px solid rgba(96, 130, 170, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 39;
  transition: opacity .14s ease, transform .14s ease;
}

.wall-editor-toolbar [data-tooltip]:hover::after,
.wall-editor-toolbar [data-tooltip]:hover::before,
.wall-editor-toolbar [data-tooltip]:focus-visible::after,
.wall-editor-toolbar [data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Wall editor selects dropdown in site style */
.wall-tool-select {
  background-color: rgba(12, 24, 40, 0.94);
  color: #e7f0ff;
}

.wall-tool-select option,
.wall-tool-select optgroup {
  background: #112236;
  color: #e7f0ff;
}

.wall-tool-select:focus,
.wall-tool-select:active {
  background-color: rgba(12, 24, 40, 0.98);
  color: #ffffff;
}

.wall-tool-select-font,
.wall-tool-select-size {
  appearance: none;
}


/* Improved wall editor selects */
.wall-tool-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
  background-color: rgba(12, 24, 40, 0.94);
  color: #e7f0ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dce9ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

.wall-tool-select.is-open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dce9ff' d='M6 0l6 8H0z'/%3E%3C/svg%3E");
}

.wall-tool-select option,
.wall-tool-select optgroup {
  background-color: #102338 !important;
  color: #e7f0ff !important;
}

.wall-tool-select::-ms-expand {
  display: none;
}


                                                
.wall-editor-toolbar .wall-tool-select {
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.wall-editor-toolbar .wall-tool-select option {
  background: #102338 !important;
  color: #e7f0ff !important;
}

.wall-editor-toolbar .wall-tool-select:focus {
  outline: 1px solid rgba(144, 193, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(78, 124, 181, 0.16);
}


                                                            
.profile-wall-rich-content [style*="text-decoration:underline"] {
  text-decoration: underline !important;
}

.profile-wall-rich-content [style*="text-decoration:line-through"] {
  text-decoration: line-through !important;
}

.profile-wall-rich-content [style*="text-decoration:underline line-through"],
.profile-wall-rich-content [style*="text-decoration:line-through underline"] {
  text-decoration: underline line-through !important;
}


.wall-tool-color-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wall-tool-color-current {
  min-width: 40px;
  width: 40px;
  padding: 0;
  position: relative;
}

.wall-tool-color-current::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.28);
  background: var(--swatch-color, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}

.wall-tool-color-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(96, 130, 170, 0.35);
  background: linear-gradient(180deg, rgba(11, 28, 48, 0.98), rgba(6, 18, 34, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 45;
}

.wall-tool-color-menu.hidden {
  display: none;
}

.wall-tool-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: var(--swatch-color, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.wall-tool-color-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.5);
}

.wall-tool-color-swatch:focus-visible,
.wall-tool-color-current:focus-visible {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 2px;
}


                             
.wall-rich-editor[data-tiptap-host="true"] {
  position: relative;
  display: block;
  overflow: hidden;
}

.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror {
  min-height: inherit;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: inherit;
  line-height: 1.35;
}

.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror > *:first-child {
  margin-top: 0;
}

.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror > *:last-child {
  margin-bottom: 0;
}

.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,.42);
  float: left;
  height: 0;
  pointer-events: none;
}

.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror p,
.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror div,
.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror ul,
.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror ol,
.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror li,
.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror blockquote {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: inherit;
}

.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror ul,
.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror ol {
  padding-left: 1.35rem;
}

.wall-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror img.wall-inline-emoji {
  display: inline-block;
  vertical-align: middle;
}

.wall-tool-button.is-active,
.wall-tool-color-swatch.is-active {
  border-color: rgba(126, 199, 255, 0.38);
  background: rgba(126, 199, 255, 0.12);
  color: var(--text);
}

.wall-tool-color-swatch.is-active {
  box-shadow: 0 0 0 2px rgba(126, 199, 255, 0.22);
}


.wall-tool-color-swatch.hidden {
  display: none;
}

.wall-poll {
  display: grid;
  gap: 0;
  border: 1px solid rgba(126, 199, 255, 0.18);
  border-radius: 18px;
  overflow: hidden;
  margin: 8px 0;
  background: rgba(9, 22, 38, 0.72);
}

.wall-poll-question,
.wall-poll-option {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(126, 199, 255, 0.16);
  min-height: 22px;
  outline: none;
}

.wall-poll-question {
  font-weight: 800;
  color: var(--text);
  background: rgba(18, 38, 63, 0.72);
}

.wall-poll-option {
  color: var(--muted);
  background: rgba(9, 22, 38, 0.72);
}

.wall-poll-option:last-child {
  border-bottom: 0;
}

.wall-poll-question:empty::before,
.wall-poll-option:empty::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,.42);
}

.wall-poll-rendered .wall-poll-vote-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.wall-poll-vote-button {
  border: 1px solid rgba(126, 199, 255, 0.16);
  background: rgba(9, 22, 38, 0.72);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--text);
}

.wall-poll-vote-button:disabled {
  opacity: 1;
  cursor: default;
}

.wall-poll-vote-bar {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.wall-poll-vote-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(123,189,255,0.95), rgba(123,189,255,0.45));
}

.wall-poll-vote-stats,
.wall-poll-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.wall-poll-meta {
  padding: 0 12px 12px;
}

.wall-table-tools {
  position: absolute;
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(96, 130, 170, 0.35);
  background: linear-gradient(180deg, rgba(11, 28, 48, 0.98), rgba(6, 18, 34, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 25;
}

.wall-table-tools.hidden {
  display: none;
}

.wall-table-tool-button {
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 700;
}


                                
.profile-wall,
.profile-wall-main,
.profile-wall-feed,
.profile-wall-post,
.profile-wall-post-body,
.profile-wall-rich-content {
  min-width: 0;
}

.profile-wall-rich-content,
.profile-wall-rich-content > * {
  max-width: 100%;
  box-sizing: border-box;
}

.profile-wall-rich-content {
  overflow-x: hidden;
}

.profile-wall-rich-content a,
.profile-wall-rich-content p,
.profile-wall-rich-content div,
.profile-wall-rich-content li,
.profile-wall-rich-content span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-wall-rich-content .wall-inline-table,
.profile-wall-rich-content table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

.profile-wall-rich-content .wall-inline-table th,
.profile-wall-rich-content .wall-inline-table td,
.profile-wall-rich-content table th,
.profile-wall-rich-content table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-wall-rich-content .wall-poll {
  width: 100%;
  max-width: 100%;
}

.wall-editor-root--tinymce .tox.tox-tinymce,
.wall-editor-root--tinymce .improve-tiny-host {
  width: 100%;
  max-width: 100%;
}

.wall-editor-root--tinymce .tox .tox-editor-header {
  position: relative;
  z-index: 1;
}

.wall-editor-root--tinymce .tox .tox-toolbar__group {
  flex-wrap: wrap;
}

.wall-editor-root--tinymce .tox .tox-tbtn--select,
.wall-editor-root--tinymce .tox .tox-mbtn--select {
  max-width: 100%;
}


                                               
.wall-editor-toolbar {
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wall-tool-button,
.wall-tool-select,
.wall-tool-color-current {
  height: 32px;
  border-radius: 10px;
}

.wall-tool-button {
  min-width: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(92, 135, 189, 0.32);
  background: linear-gradient(180deg, rgba(16, 39, 68, 0.96), rgba(10, 25, 46, 0.96));
  color: #e7f0ff;
}

.wall-tool-button-link {
  background: linear-gradient(180deg, rgba(255, 59, 73, 0.94), rgba(214, 28, 43, 0.94));
  border-color: rgba(255, 130, 140, 0.55);
}

.wall-tool-button-media {
  background: linear-gradient(180deg, rgba(46, 205, 113, 0.96), rgba(22, 152, 74, 0.96));
  border-color: rgba(129, 255, 174, 0.46);
}

.wall-tool-button-more {
  min-width: 34px;
  flex-basis: 34px;
  letter-spacing: 1px;
}

.wall-tool-select {
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(92, 135, 189, 0.32);
  background-color: rgba(12, 24, 40, 0.94);
  color: #e7f0ff;
}

.wall-tool-select-font {
  flex: 0 0 118px;
}

.wall-tool-select-size {
  flex: 0 0 78px;
}

.wall-tool-color-dropdown {
  flex: 0 0 auto;
}

.wall-tool-color-current {
  width: auto;
  min-width: 100px;
  padding: 0 12px 0 10px;
  gap: 8px;
  justify-content: flex-start;
}

.wall-tool-color-current::before {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: 0 0 14px;
}

.wall-tool-color-current-label {
  display: inline-block;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.wall-tool-color-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px;
}

.wall-tool-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.wall-tool-more-dropdown {
  position: relative;
  display: inline-flex;
}

.wall-tool-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 32px);
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(96, 130, 170, 0.35);
  background: linear-gradient(180deg, rgba(11, 28, 48, 0.98), rgba(6, 18, 34, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.wall-tool-more-menu.hidden {
  display: none;
}

.wall-tool-button.is-active,
.wall-tool-color-swatch.is-active {
  border-color: rgba(126, 199, 255, 0.52);
  background: rgba(126, 199, 255, 0.18);
}


/* CKEditor 5 local integration */

.ck.ck-editor {
  width: 100%;
}

.profile-post-editor-shell .ck.ck-editor,
.wall-rich-editor-shell .ck.ck-editor {
  width: 100%;
}

.ck.ck-toolbar,
.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ck.ck-editor__main > .ck-editor__editable {
  min-height: 120px;
  background: transparent !important;
  color: #dbe9ff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
  border: 0 !important;
  box-shadow: none !important;
}

.ck.ck-button,
.ck.ck-button.ck-on,
.ck.ck-dropdown__button,
.ck.ck-list__item .ck-button {
  border-radius: 10px !important;
}

.ck.ck-toolbar .ck.ck-toolbar__separator {
  background: rgba(128, 168, 255, 0.18) !important;
}

.ck.ck-button:not(.ck-disabled):hover,
.ck.ck-dropdown__button:not(.ck-disabled):hover,
.ck.ck-button.ck-on {
  background: rgba(58, 99, 170, 0.35) !important;
}

.ck.ck-button,
.ck.ck-dropdown__button,
.ck.ck-input,
.ck.ck-labeled-field-view__input-wrapper .ck.ck-input {
  color: #dbe9ff !important;
}

.ck.ck-dropdown__panel,
.ck.ck-list,
.ck.ck-input,
.ck.ck-balloon-panel,
.ck.ck-toolbar-container,
.ck.ck-reset_all,
.ck.ck-rounded-corners {
  background: #0a1b3c !important;
  color: #dbe9ff !important;
  border-color: rgba(96, 146, 255, 0.25) !important;
}

.ck.ck-editor__editable > :first-child {
  margin-top: 0;
}

.ck.ck-editor__editable > :last-child {
  margin-bottom: 0;
}

.ck-content .table table,
.ck-content table {
  background: transparent;
  color: #dbe9ff;
}


.profile-wall-delete-toggle:hover,
.profile-wall-delete-toggle:focus-visible,
.profile-wall-delete-direct:hover,
.profile-wall-delete-direct:focus-visible {
  background: rgba(255, 73, 73, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.24);
  transform: none;
}


                     
body.page-shell > #site-footer {
  margin-top: auto;
  width: 100%;
}

#site-footer {
  min-height: 0 !important;
  height: auto !important;
  background: rgba(6, 16, 28, 0.72) !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
}

#site-footer .site-footer,
#site-footer .site-footer-minimal {
  background: transparent !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

#site-footer .site-footer-minimal {
  padding: 14px 0 16px !important;
}

#site-footer .footer-minimal-row {
  min-height: 0 !important;
  align-items: center !important;
}

#site-footer .footer-minimal-meta {
  margin-left: auto;
  text-align: right;
}

#site-footer .footer-minimal-gap {
  display: none !important;
}

.page-shell[data-page="profile"] main {
  min-height: auto;
}

.page-shell[data-page="profile"] .profile-page-section {
  padding-bottom: 24px;
}






                                                                   
body.page-shell {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100dvh !important;
}

main {
  min-width: 0;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  display: block !important;
}

#site-footer {
  width: 100%;
  display: block;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  margin-top: 0 !important;
}

.section {
  padding: 38px 0 24px;
}

.profile-page-section,
.section.profile-page-section {
  padding-top: 36px;
  padding-bottom: 24px !important;
}

.profile-wall-block {
  padding: 0 !important;
  margin: 0 !important;
}

.profile-wall-block-top,
.profile-wall-block-top.has-pagination,
.profile-wall-block-top.is-empty {
  min-height: 30px !important;
  margin: 0 0 14px !important;
  align-items: flex-start !important;
}

.profile-wall {
  display: block;
  min-height: 0 !important;
}

.profile-wall-list {
  display: grid;
  gap: 14px;
}

.profile-wall > .profile-wall-pagination:first-child {
  margin: 0 0 14px !important;
}

.profile-wall-list + .profile-wall-pagination,
.profile-wall-pagination {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.footer-minimal-gap {
  display: none !important;
  height: 0 !important;
}

.site-footer-minimal {
  padding: 12px 0 !important;
  min-height: 0 !important;
}

.footer-minimal-row {
  min-height: 56px !important;
  align-items: center !important;
}



                                                         
.page-shell[data-page="profile"] #site-footer {
  margin-top: 250px !important;
}

.page-shell[data-page="profile"] .profile-page-section {
  padding-bottom: 0 !important;
}

.profile-wall-block-top,
.profile-wall-block-top.has-pagination,
.profile-wall-block-top.is-empty {
  width: 100%;
  min-height: 30px !important;
  margin: 0 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  pointer-events: auto !important;
}

.profile-wall-block-top .profile-inline-action,
.profile-wall-block-top #profile-new-post-button {
  margin: 0 !important;
  flex: 0 0 auto;
}

.profile-wall-block-top .profile-wall-pagination,
.profile-wall-block-top .profile-wall-pagination.profile-wall-pagination-top {
  margin: 0 !important;
  flex: 0 0 auto;
}

.profile-wall > .profile-wall-pagination:first-child {
  display: none !important;
}

@media (max-width: 760px) {
  .profile-wall-block-top,
  .profile-wall-block-top.has-pagination,
  .profile-wall-block-top.is-empty {
    flex-wrap: wrap;
    align-items: flex-start !important;
  }

  .profile-wall-block-top .profile-wall-pagination,
  .profile-wall-block-top .profile-wall-pagination.profile-wall-pagination-top {
    margin-left: auto !important;
  }
}

                                                                    
.page-shell[data-page="profile"] #site-footer {
  margin-top: 250px !important;
}

.profile-wall-comments-panel {
  overflow: hidden !important;
}

.profile-wall-comments-panel:not(.is-expanded) {
  height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  pointer-events: none !important;
}

.profile-wall-comments-panel:not(.is-expanded) > * {
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translateY(-6px) !important;
}

.profile-wall-comments-panel.is-expanded {
  overflow: hidden !important;
  opacity: 1 !important;
  margin-top: 12px !important;
  pointer-events: auto !important;
}

.profile-wall-comments-panel.is-expanded > * {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}


                                                           
body > #site-footer {
  margin-top: 250px !important;
}

.page-shell[data-page="profile"] #site-footer {
  margin-top: 250px !important;
}


                                                                                     
.page-shell[data-page="profile"] .profile-page-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.page-shell[data-page="profile"] .profile-page-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/profile-side-overlay.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.page-shell[data-page="profile"] .profile-page-layout {
  position: relative;
  z-index: 1;
}

@media (max-width: 1280px) {
  .page-shell[data-page="profile"] .profile-page-section::before {
    background-size: cover;
    background-repeat: no-repeat;
  }
}


                                                                          
body.page-shell {
  isolation: isolate;
}

body.page-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-frame-height);
  bottom: 0;
  background-image: url("/assets/img/profile-side-overlay.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% 1080px;
  pointer-events: none;
  z-index: -1;
}

/* disable the old profile-only underlay so it does not stack with the global one */
.page-shell[data-page="profile"] .profile-page-section::before {
  content: none !important;
}

@media (max-width: 1280px) {
  body.page-shell::after {
    background-size: cover;
    background-repeat: no-repeat;
  }
}


                                                                      
#site-footer,
#site-footer .site-footer,
#site-footer .site-footer-minimal,
body.page-shell > #site-footer {
  background: #06101c !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

#site-footer::before,
#site-footer .site-footer::before,
#site-footer .site-footer-minimal::before {
  content: none !important;
  display: none !important;
}


                                                      
.page-shell[data-page="profile"] #profile-tab-characters {
  margin-top: 56px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
  padding: 22px 22px 20px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-inline-stats,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-stats {
  gap: 10px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-inline-stats {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-line {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-line + .profile-line {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-stats {
  margin-top: 14px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-subtitle {
  margin-top: 6px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-clan {
  margin: 12px 0 0;
}

@media (max-width: 980px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters {
    margin-top: 28px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack,
  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-inline-stats {
    grid-template-columns: 1fr !important;
  }
}


                                                     
.page-shell[data-page="profile"] #profile-tab-characters {
  margin-top: 56px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-bar {
  display: block;
  margin: 0 0 22px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  min-height: 30px;
  color: rgba(232, 239, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.3;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line strong {
  color: #ffffff;
  font-weight: 700;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
  padding: 22px 22px 20px;
  min-width: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-inline-stats,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-inline-stats {
  margin-top: 16px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-line {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-line + .profile-line {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-stats {
  margin-top: 12px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-subtitle {
  margin-top: 6px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-clan {
  margin: 12px 0 0;
}

@media (max-width: 980px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters {
    margin-top: 28px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line {
    gap: 10px 18px;
    font-size: 0.92rem;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
    grid-template-columns: 1fr !important;
  }
}


                                                 
.page-shell[data-page="profile"] #profile-tab-characters {
  margin-top: 0 !important;
  width: 100%;
  max-width: 100%;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-bar {
  display: block;
  width: 100%;
  min-height: 30px;
  margin: 0 0 14px !important;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-bar[data-empty="true"] {
  visibility: hidden;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  width: 100%;
  min-height: 30px;
  margin: 0;
  color: rgba(232, 239, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line span,
.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line strong {
  line-height: 30px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line strong {
  color: #ffffff;
  font-weight: 700;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
  width: 100%;
  max-width: 100%;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry-empty {
  min-width: 0;
}

@media (max-width: 980px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-bar {
    min-height: 24px;
    margin: 0 0 12px !important;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line {
    min-height: 24px;
    gap: 6px 16px;
    font-size: 0.9rem;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line span,
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line strong {
    line-height: 24px;
  }
}

                                                      
.page-shell[data-page="profile"] #profile-tab-characters {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-bar {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 0 0 16px !important;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 0 0 3px;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line span,
.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line strong {
  line-height: 1.1;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line strong {
  color: var(--text);
  font-weight: 700;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-bar {
    min-height: 34px;
    margin: 0 0 14px !important;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line {
    min-height: 34px;
    padding-bottom: 2px;
    gap: 6px 16px;
    font-size: 0.92rem;
  }
}

                                             
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
  padding: 22px 22px 18px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-top {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-profession-badge {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-profession-badge img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: cover;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-main {
  min-width: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-header h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-level {
  flex: 0 0 auto;
  font-weight: 800;
  color: rgba(236, 243, 255, 0.96);
  line-height: 1.15;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-subtitle,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-clan {
  margin: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-subtitle {
  color: #8ef0ea;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-clan {
  margin-top: 10px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-inline-stats,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-stats {
  display: grid;
  gap: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-line {
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-inline-stats .profile-line:first-child,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-stats .profile-line:first-child {
  border-top-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-top {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-profession-badge {
    width: 62px;
    height: 62px;
    border-radius: 12px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-profession-badge img {
    width: 100%;
    height: 100%;
  }
}


                                                                 
.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line {
  margin-left: -10px;
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-owner-line {
    margin-left: 0;
  }
}


.page-shell[data-page="profile"] #profile-tab-characters .profile-character-nickname-input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(142, 240, 234, 0.22);
  background: rgba(10, 23, 41, 0.9);
  color: rgba(244, 248, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-nickname-input:focus {
  outline: none;
  border-color: rgba(142, 240, 234, 0.42);
  box-shadow: 0 0 0 2px rgba(142, 240, 234, 0.12);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
  position: relative;
  padding-bottom: 58px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-action-icon {
  margin: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-delete-pair.is-confirming .profile-wall-delete-direct {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-delete-pair.is-confirming .profile-wall-delete-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-action-message {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 60px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(236, 243, 255, 0.94);
  background: rgba(8, 18, 34, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(142, 240, 234, 0.18);
  backdrop-filter: blur(6px);
  z-index: 4;
  pointer-events: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-action-message.is-error {
  color: #ffd3d3;
  background: rgba(58, 16, 16, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 114, 114, 0.24);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-action-message.is-success {
  color: #baf8f1;
  background: rgba(7, 29, 33, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(142, 240, 234, 0.24);
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
    padding-bottom: 64px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions {
    right: 16px;
    bottom: 14px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-action-message {
    left: 14px;
    right: 14px;
    top: 60px;
  }
}


.page-shell[data-page="profile"] #profile-tab-characters .profile-character-rename-pair {
  position: relative;
  display: inline-flex;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-rename-confirm {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-rename-pair.is-confirming .profile-character-rename-confirm {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-rename-pair.is-confirming .profile-character-rename-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-confirm-icon,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-confirm-icon img {
  width: 16px;
  height: 16px;
  display: block;
}


.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 61px;
  height: 26px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions > .profile-character-rename-pair,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions > .profile-character-delete-pair {
  position: absolute;
  top: 0;
  width: 26px;
  height: 26px;
  display: block;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions > .profile-character-rename-pair {
  left: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions > .profile-character-delete-pair {
  left: 35px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions > .profile-character-rename-pair > .profile-character-rename-toggle,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions > .profile-character-rename-pair > .profile-character-rename-confirm,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions > .profile-character-delete-pair > .profile-wall-delete-toggle,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions > .profile-character-delete-pair > .profile-wall-delete-direct {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
  margin: 0;
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-actions {
    right: 16px;
    bottom: 14px;
    width: 61px;
    height: 26px;
  }
}


/* character create/unlock slot cards */
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 410px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, rgba(12, 28, 48, 0.72), rgba(8, 20, 36, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(152, 203, 255, 0.12), transparent 42%), linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  pointer-events: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card:hover,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(126, 199, 255, 0.24);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.05);
  outline: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 28px 24px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card-create .profile-character-slot-icon {
  color: rgba(255,255,255,0.94);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card-unlock .profile-character-slot-icon {
  color: rgba(197, 221, 255, 0.9);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-icon svg {
  width: 72px;
  height: 72px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-body h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
  color: rgba(246, 250, 255, 0.98);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-subtitle,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-hint {
  margin: 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-subtitle {
  color: rgba(189, 219, 255, 0.96);
  font-weight: 600;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-hint {
  color: rgba(180, 193, 211, 0.78);
  line-height: 1.5;
  max-width: 250px;
}


.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card.is-expanded {
  cursor: default;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card.is-expanded:hover,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card.is-expanded:focus-visible {
  transform: none;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-form {
  width: 100%;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 199, 255, 0.16);
  background: rgba(8, 20, 36, 0.9);
  color: var(--text);
  outline: none;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-input:focus {
  border-color: rgba(126, 199, 255, 0.32);
  box-shadow: 0 0 0 2px rgba(126, 199, 255, 0.12);
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(58, 16, 16, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.24);
  color: #ffd3d3;
  line-height: 1.45;
  text-align: left;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-actions {
  width: min(100%, 292px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-actions > button {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-submit,
.page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-cancel {
  flex: 0 0 auto;
}

.profile-character-slot-modal {
  max-width: 560px;
}

.profile-character-slot-modal-text {
  margin: 0 0 16px;
  color: rgba(220, 230, 246, 0.92);
  line-height: 1.6;
}

.profile-character-slot-modal-label {
  display: block;
  margin-bottom: 10px;
}

.profile-character-slot-modal-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 199, 255, 0.16);
  background: rgba(8, 20, 36, 0.9);
  color: var(--text);
  outline: none;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.profile-character-slot-modal-input:focus {
  border-color: rgba(126, 199, 255, 0.32);
  box-shadow: 0 0 0 2px rgba(126, 199, 255, 0.12);
}

.profile-character-slot-modal-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(58, 16, 16, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.24);
  color: #ffd3d3;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card {
    min-height: 360px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-icon svg {
    width: 58px;
    height: 58px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-actions {
    flex-wrap: wrap;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-inline-actions > button {
    width: 100%;
  }
}

/* === IMPROVE live Dynmap page === */
.map-page-hero {
  padding-bottom: 12px;
}

.map-section {
  padding-top: 0;
}

.dynmap-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 199, 255, 0.2);
  border-radius: 0;
  background: rgba(3, 14, 25, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.dynmap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(97, 232, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 28%);
  z-index: 2;
}

.dynmap-frame-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(76vh, 780px);
  min-height: 620px;
  background: rgba(0, 0, 0, 0.22);
}

.dynmap-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #061523;
}

.dynmap-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(3, 14, 25, 0.95), rgba(4, 28, 45, 0.88));
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dynmap-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.dynmap-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(97, 232, 255, 0.8);
  animation: dynmapPulse 1s ease-in-out infinite;
}

@keyframes dynmapPulse {
  0%, 100% { transform: scale(0.75); opacity: 0.55; }
  50% { transform: scale(1.25); opacity: 1; }
}

@media (max-width: 760px) {
  .dynmap-frame-wrap {
    height: 70vh;
    min-height: 460px;
  }
}


                                                                    
.page-shell[data-page="profile"] #profile-tab-privates {
  margin-top: 56px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-block {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.page-shell[data-page="profile"] #profile-tab-privates .section-label,
.page-shell[data-page="profile"] #profile-tab-privates h2 {
  display: none;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-placeholder-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry {
  position: relative;
  padding: 22px 22px 20px;
  min-height: 284px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-icon-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  padding: 0;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-icon-button .profile-wall-delete-icon,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-icon-button .profile-wall-delete-icon img {
  width: 14px;
  height: 14px;
  display: block;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-delete-pending .profile-private-delete-button {
  background: rgba(255, 73, 73, 0.22);
  color: #ffd0d0;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.35), 0 0 12px rgba(255, 73, 73, 0.14);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-face-back {
  display: none;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view .profile-private-face-front {
  display: none;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view .profile-private-face-back {
  display: block;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view .profile-private-actions-icons {
  display: none;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-top {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
  padding-right: 82px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-illustration {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(223, 232, 247, 0.92);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-illustration.is-object {
  color: #f2d580;
  background: rgba(242, 213, 128, 0.07);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-illustration.is-home {
  color: #9fd2ff;
  background: rgba(122, 190, 255, 0.08);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-illustration svg {
  width: 100%;
  height: 100%;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-main {
  min-width: 0;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-character-header h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
  word-break: break-word;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-type-chip {
  margin: 6px 0 0;
  color: rgba(224,233,249,0.78);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-stats {
  margin-top: 14px;
  gap: 10px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-stats .profile-line {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-stats .profile-line + .profile-line {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 10px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-head strong {
  display: block;
  font-size: 1.02rem;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-body {
  display: grid;
  gap: 10px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-empty {
  color: var(--muted);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-list {
  display: grid;
  gap: 10px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-resident-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-resident-name {
  min-width: 0;
  word-break: break-word;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete {
  flex: 0 0 28px;
}

@media (max-width: 980px) {
  .page-shell[data-page="profile"] #profile-tab-privates .profile-placeholder-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-privates {
    margin-top: 28px;
  }
  .page-shell[data-page="profile"] #profile-tab-privates .profile-placeholder-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-shell[data-page="profile"] #profile-tab-privates .profile-private-top {
    padding-right: 72px;
  }
}


                                                                        
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry {
  padding-bottom: 64px;
  min-height: 320px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons {
  top: auto !important;
  right: 22px !important;
  bottom: 20px !important;
  gap: 8px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-top {
  padding-right: 0 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-icon-button {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-delete-pair {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-delete-pair .profile-private-icon-button {
  position: absolute;
  inset: 0;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-delete-pair .profile-wall-delete-direct {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-delete-pair.is-confirming .profile-wall-delete-toggle {
  opacity: 0;
  pointer-events: none;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-delete-pair.is-confirming .profile-wall-delete-direct {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-icon-img {
  width: 16px;
  height: 16px;
  display: block;
  image-rendering: pixelated;
  object-fit: contain;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-icon-button .profile-wall-delete-icon,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-icon-button .profile-wall-delete-icon img {
  width: 12px;
  height: 12px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view {
  padding-bottom: 20px;
}


                                     
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry {
  min-height: 300px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-top {
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  margin-bottom: 18px !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-illustration {
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-character-header {
  margin-bottom: 0 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-character-header h3 {
  font-size: 1.08rem !important;
  line-height: 1.18 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-type-chip {
  display: none !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-stats {
  margin-top: 8px !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-icon-img {
  width: 17px !important;
  height: 17px !important;
}


                                                        
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-icon-img {
  width: 15px;
  height: 15px;
  image-rendering: pixelated;
}


                                                           
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view {
  min-height: 300px !important;
  padding-bottom: 64px !important;
  box-sizing: border-box;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-face-front,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-face-back {
  min-height: 100%;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-icon-img {
  width: 9px !important;
  height: 13px !important;
  max-width: 9px !important;
  display: block;
  image-rendering: pixelated;
  object-fit: contain;
}


                                                               
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view {
  height: 304px !important;
  min-height: 304px !important;
  max-height: 304px !important;
  box-sizing: border-box;
  overflow: hidden;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-face-front,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-face-back {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-body {
  max-height: calc(304px - 74px);
  overflow-y: auto;
  padding-right: 2px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-icon-img {
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  display: block;
  image-rendering: pixelated;
  object-fit: contain;
}


                                                       
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete.is-confirming {
  background: rgba(255, 73, 73, 0.18) !important;
  color: #ffb0b0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.35), 0 0 12px rgba(255, 73, 73, 0.14) !important;
}

                                                        
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view {
  height: 304px !important;
  min-height: 304px !important;
  max-height: 304px !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-face-back {
  height: 100% !important;
  min-height: 0 !important;
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view .profile-private-face-back {
  display: grid !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-head {
  flex: 0 0 auto;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-body {
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 8px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 189, 255, 0.42) rgba(255, 255, 255, 0.045);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-body::-webkit-scrollbar {
  width: 8px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(123, 189, 255, 0.52), rgba(123, 189, 255, 0.28));
  border-radius: 999px;
  border: 2px solid rgba(7, 18, 32, 0.96);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(123, 189, 255, 0.68), rgba(123, 189, 255, 0.38));
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-list {
  padding-bottom: 2px;
}


                                                                       
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-back-body {
  display: block !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-list {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0 !important;
  padding: 0 0 2px !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-resident-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 2px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-resident-row + .profile-private-resident-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-resident-name {
  min-width: 0;
  word-break: break-word;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-residents-empty {
  padding-top: 4px;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete {
  background: rgba(255,255,255,0.045) !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10) !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete:hover,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete:focus-visible {
  background: rgba(255,255,255,0.075) !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete.is-confirming {
  background: rgba(255, 73, 73, 0.18) !important;
  color: #ffb0b0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.35), 0 0 12px rgba(255, 73, 73, 0.14) !important;
}


                                                                          
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-private-member-delete {
  position: absolute !important;
  inset: 0 !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  border: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-toggle {
  background: rgba(255, 73, 73, 0.12) !important;
  color: #ff5b5b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-direct {
  background: rgba(255, 73, 73, 0.18) !important;
  color: #ffb0b0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.35), 0 0 12px rgba(255, 73, 73, 0.14) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair.is-confirming .profile-wall-delete-toggle {
  opacity: 0 !important;
  pointer-events: none !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair.is-confirming .profile-wall-delete-direct {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 3 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-icon,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-icon img {
  width: 12px !important;
  height: 12px !important;
}


                                                                  
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-toggle,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-direct {
  position: absolute !important;
  inset: 0 !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  border: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-toggle {
  background: rgba(255, 73, 73, 0.12) !important;
  color: #ff5b5b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-direct {
  background: rgba(255, 73, 73, 0.18) !important;
  color: #ffb0b0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.35), 0 0 12px rgba(255, 73, 73, 0.14) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair.is-confirming .profile-wall-delete-toggle {
  opacity: 0 !important;
  pointer-events: none !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair.is-confirming .profile-wall-delete-direct {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 3 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-icon,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-member-delete-pair .profile-wall-delete-icon img {
  width: 12px !important;
  height: 12px !important;
  display: block !important;
}


                                                     
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons .profile-private-delete-pair:not(.profile-private-member-delete-pair) {
  position: relative !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons .profile-private-delete-pair:not(.profile-private-member-delete-pair) .profile-wall-delete-toggle,
.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons .profile-private-delete-pair:not(.profile-private-member-delete-pair) .profile-wall-delete-direct {
  position: absolute !important;
  inset: 0 !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons .profile-private-delete-pair:not(.profile-private-member-delete-pair) .profile-wall-delete-toggle {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons .profile-private-delete-pair:not(.profile-private-member-delete-pair) .profile-wall-delete-direct {
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons .profile-private-delete-pair:not(.profile-private-member-delete-pair).is-confirming .profile-wall-delete-toggle {
  opacity: 0 !important;
  pointer-events: none !important;
}

.page-shell[data-page="profile"] #profile-tab-privates .profile-private-actions-icons .profile-private-delete-pair:not(.profile-private-member-delete-pair).is-confirming .profile-wall-delete-direct {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 3 !important;
}

/* ===== Knowledge base page ===== */
.knowledge-page-section {
  padding-top: 28px;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.knowledge-panel {
  border-radius: 28px;
  border: 1px solid rgba(91, 126, 166, 0.28);
  background:
    linear-gradient(180deg, rgba(20, 34, 51, 0.96) 0%, rgba(14, 27, 44, 0.94) 100%),
    radial-gradient(circle at top right, rgba(87, 216, 255, 0.08), transparent 42%);
  box-shadow:
    0 16px 44px rgba(3, 12, 24, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.knowledge-sidebar {
  padding: 22px 16px 16px;
  position: sticky;
  top: 92px;
}

.knowledge-sidebar-kicker,
.knowledge-content-topline {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ef3ff;
}

.knowledge-sidebar-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.05;
}

.knowledge-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.knowledge-category-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.9);
  color: #e9eef8;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.knowledge-category-button:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 225, 255, 0.42);
  background: rgba(18, 38, 60, 0.96);
}

.knowledge-category-button.is-active {
  border-color: rgba(108, 227, 255, 0.54);
  background: linear-gradient(180deg, rgba(21, 53, 82, 0.96), rgba(16, 40, 64, 0.96));
  box-shadow: inset 0 0 0 1px rgba(143, 236, 255, 0.1);
}

.knowledge-category-text {
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.knowledge-category-count {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(7, 20, 34, 0.85);
  color: #93f6ff;
  font-size: 13px;
  font-weight: 900;
}

.knowledge-content {
  padding: 18px 20px 22px;
}

.knowledge-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.knowledge-content-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.98;
}

.knowledge-content-subtitle {
  margin: 10px 0 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(220, 229, 244, 0.82);
}

.knowledge-count-pill {
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(234, 194, 80, 0.36);
  background: rgba(52, 63, 78, 0.56);
  color: #ffd763;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.knowledge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 278px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(86, 123, 163, 0.26);
  background:
    linear-gradient(180deg, rgba(26, 41, 61, 0.94) 0%, rgba(22, 36, 55, 0.94) 100%),
    radial-gradient(circle at top left, rgba(118, 233, 255, 0.09), transparent 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: left;
  color: #f6f8ff;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.knowledge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 220, 255, 0.42);
  box-shadow:
    0 18px 36px rgba(7, 16, 28, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.knowledge-icon-box {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(90, 125, 161, 0.22);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(31, 48, 68, 0.94), rgba(20, 33, 51, 0.94));
  overflow: hidden;
}

.knowledge-icon-box.is-block {
  align-items: flex-start;
  justify-content: flex-start;
}

.knowledge-card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-card-icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.36);
}

.knowledge-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(45, 95, 123, 0.72);
  color: #8ff6ff;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.knowledge-card-description {
  margin: 0;
  color: rgba(220, 229, 244, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.knowledge-card-footnote {
  margin-top: auto;
  color: #ffd763;
  font-size: 14px;
  font-weight: 800;
}

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

  .knowledge-sidebar {
    position: static;
  }

  .knowledge-sidebar-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .knowledge-content {
    padding: 16px;
  }

  .knowledge-sidebar-list {
    grid-template-columns: 1fr;
  }

  .knowledge-content-header {
    flex-direction: column;
  }

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

  .knowledge-card {
    min-height: 248px;
  }
}


                                  
.knowledge-card-icon[hidden],
.knowledge-card-icon-fallback[hidden] {
  display: none !important;
}

.knowledge-icon-box {
  width: 72px;
  height: 72px;
}

.knowledge-icon-box.is-block .knowledge-card-icon {
  width: 72px;
  height: 72px;
}


/* ===== Knowledge base compact icon mode ===== */
.knowledge-content-subtitle {
  max-width: 760px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 72px));
  gap: 10px;
  justify-content: start;
}

.knowledge-card {
  min-height: 0;
  width: 72px;
  height: 72px;
  padding: 4px;
  gap: 0;
  border-radius: 18px;
  align-items: center;
  justify-content: center;
}

.knowledge-card:hover {
  transform: translateY(-1px);
}

.knowledge-card-badge,
.knowledge-card-title,
.knowledge-card-description,
.knowledge-card-footnote,
.knowledge-card-icon-fallback {
  display: none !important;
}

.knowledge-icon-box,
.knowledge-icon-box.knowledge-icon-box--compact {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  border: 1px solid rgba(90, 125, 161, 0.22);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(31, 48, 68, 0.94), rgba(20, 33, 51, 0.94));
}

.knowledge-card-icon,
.knowledge-icon-box.is-block .knowledge-card-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(86, 123, 163, 0.22);
  background: rgba(15, 31, 49, 0.9);
  color: #dce5f4;
}

.knowledge-modal-open {
  overflow: hidden;
}

.knowledge-modal[hidden] {
  display: none !important;
}

.knowledge-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.knowledge-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(4px);
}

.knowledge-modal-dialog {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  margin: 72px auto;
  padding: 22px;
}

.knowledge-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(88, 126, 167, 0.3);
  border-radius: 12px;
  background: rgba(15, 31, 49, 0.9);
  color: #f6f8ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.knowledge-modal-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.knowledge-modal-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(90, 125, 161, 0.22);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(31, 48, 68, 0.94), rgba(20, 33, 51, 0.94));
}

.knowledge-modal-image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-modal-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ef3ff;
}

.knowledge-modal-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.05;
}

.knowledge-modal-meta {
  margin: 0;
  display: grid;
  gap: 10px;
}

.knowledge-modal-meta-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 31, 49, 0.9);
  border: 1px solid rgba(88, 126, 167, 0.2);
}

.knowledge-modal-meta dt {
  color: rgba(220, 229, 244, 0.72);
  font-weight: 700;
}

.knowledge-modal-meta dd {
  margin: 0;
  word-break: break-word;
  color: #f6f8ff;
}

@media (max-width: 760px) {
  .knowledge-grid {
    grid-template-columns: repeat(auto-fill, minmax(68px, 68px));
  }

  .knowledge-card {
    width: 68px;
    height: 68px;
  }

  .knowledge-icon-box,
  .knowledge-icon-box.knowledge-icon-box--compact {
    width: 58px;
    height: 58px;
  }

  .knowledge-card-icon,
  .knowledge-icon-box.is-block .knowledge-card-icon {
    width: 50px;
    height: 50px;
  }

  .knowledge-modal-dialog {
    margin: 24px auto;
    padding: 16px;
  }

  .knowledge-modal-body {
    grid-template-columns: 1fr;
  }

  .knowledge-modal-preview-box {
    min-height: 180px;
  }
}

/* Knowledge article pages */
.knowledge-article-grid {
  grid-template-columns: 1fr;
}

.knowledge-article-card {
  padding: 0;
  color: #f6f8ff;
}

.knowledge-article-card p {
  margin: 0 0 14px;
  color: rgba(220, 229, 244, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.knowledge-article-card p:last-child {
  margin-bottom: 0;
}

.knowledge-article-lead {
  max-width: 980px;
  color: #edf7ff !important;
  font-size: 16px !important;
}

.knowledge-article-section {
  margin-top: 24px;
}

.knowledge-article-section h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

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

.knowledge-command-row {
  border: 1px solid rgba(91, 126, 166, 0.28);
  background: rgba(13, 27, 44, 0.64);
  border-radius: 18px;
}

.knowledge-info-card {
  padding: 0;
}

.knowledge-info-card h4 {
  margin: 0 0 8px;
  color: #8ef3ff;
  font-size: 18px;
}

.knowledge-formula-card {
  display: inline-flex;
  max-width: 100%;
  margin: 2px 0 14px;
  padding: 0;
  color: #ffd763;
  font-size: 16px;
  font-weight: 900;
}

.knowledge-article-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(220, 229, 244, 0.84);
  line-height: 1.7;
}

.knowledge-article-list li + li {
  margin-top: 8px;
}

.knowledge-command-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.knowledge-command-row {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
}

.knowledge-article-card code,
.knowledge-command-row code {
  color: #8ef3ff;
  font-weight: 900;
  word-break: break-word;
}

.knowledge-command-row span {
  color: rgba(220, 229, 244, 0.84);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .knowledge-info-grid,
  .knowledge-command-row {
    grid-template-columns: 1fr;
  }

  .knowledge-article-card {
    padding: 18px;
  }
}

/* Knowledge base: privates article */
.knowledge-article-card--plain {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.knowledge-article-lead {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.58;
  color: rgba(233, 241, 255, 0.96);
}

.knowledge-article-section + .knowledge-article-section {
  margin-top: 28px;
}

.knowledge-article-section h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
}

.knowledge-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.knowledge-info-card--private-type {
  min-height: 192px;
  padding: 18px 20px 20px;
  border-radius: 22px;
  border: 1px solid rgba(90, 177, 255, 0.24);
  background: linear-gradient(180deg, rgba(8, 32, 62, 0.94), rgba(10, 29, 55, 0.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.knowledge-private-type-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.knowledge-private-type-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(90, 214, 255, 0.1);
  color: #89ebff;
}

.knowledge-private-type-icon.is-home {
  background: rgba(90, 214, 255, 0.1);
  color: #89ebff;
}

.knowledge-private-type-icon.is-object {
  background: rgba(255, 204, 85, 0.12);
  color: #ffd15c;
}

.knowledge-private-type-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.knowledge-info-card--private-type h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  color: #8eeaff;
}

.knowledge-info-card--private-type .knowledge-private-type-icon.is-object + h4 {
  color: #ffd15c;
}

.knowledge-info-card--private-type p {
  margin: 0;
}

.knowledge-formula-text {
  margin: 8px 0 16px;
  color: #ffd15c;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
}

.knowledge-command-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.knowledge-command-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(84, 163, 255, 0.18);
  background: rgba(8, 28, 53, 0.72);
}

.knowledge-command-row code {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8eeaff;
  font-size: 17px;
  line-height: 1.4;
}

.knowledge-command-row span {
  display: block;
  padding-top: 0;
}

@media (max-width: 900px) {
  .knowledge-info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .knowledge-info-card--private-type {
    min-height: 0;
  }

  .knowledge-command-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .knowledge-command-row span {
    padding-top: 0;
  }
}

                                             
.page-shell[data-page="knowledge"] .knowledge-grid.knowledge-article-grid {
  gap: 0;
}

.page-shell[data-page="knowledge"] .knowledge-grid.knowledge-article-grid > .knowledge-article-card--plain,
.page-shell[data-page="knowledge"] .knowledge-article-card.knowledge-article-card--plain {
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.page-shell[data-page="knowledge"] .knowledge-article-card--plain::before,
.page-shell[data-page="knowledge"] .knowledge-article-card--plain::after {
  display: none !important;
  content: none !important;
}

.page-shell[data-page="knowledge"] .knowledge-article-card--plain .knowledge-article-lead {
  margin-top: 26px;
}

.page-shell[data-page="knowledge"] .knowledge-command-list {
  gap: 8px;
  margin: 10px 0 14px;
}

.page-shell[data-page="knowledge"] .knowledge-command-row {
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 8px 12px;
  border-radius: 14px;
}

.page-shell[data-page="knowledge"] .knowledge-command-row code {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.page-shell[data-page="knowledge"] .knowledge-command-row span {
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .page-shell[data-page="knowledge"] .knowledge-command-row {
    grid-template-columns: 1fr;
  }
}

                                                    
.page-shell[data-page="knowledge"] .knowledge-info-card--private-type {
  background: transparent !important;
  box-shadow: none !important;
}

                                                                   
.page-shell[data-page="knowledge"] .knowledge-command-row {
  background: transparent !important;
  border: 1px solid rgba(90, 177, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.page-shell[data-page="knowledge"] .knowledge-command-row code {
  background: transparent !important;
  border: 0 !important;
}

/* Knowledge races visual layout */
.knowledge-race-layout {
  display: grid;
  gap: 28px;
}

.knowledge-race-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 46px;
  align-items: stretch;
}

.knowledge-race-description,
.knowledge-race-visual,
.knowledge-race-box {
  border-radius: 4px;
  background: rgba(12, 28, 45, 0.74);
}

.knowledge-race-description {
  min-height: 250px;
  padding: 30px 34px;
  border: 3px solid rgba(251, 255, 0, 0.95);
  display: flex;
  align-items: flex-start;
}

.knowledge-race-description .knowledge-article-lead {
  margin: 0;
}

.knowledge-race-visual {
  min-height: 300px;
  padding: 0;
  border: 3px solid rgba(38, 201, 91, 0.95);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.knowledge-race-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.knowledge-race-boxes {
  display: grid;
  gap: 10px;
}

.knowledge-race-box {
  padding: 14px 22px 16px;
}

.knowledge-race-box h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.knowledge-race-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.55;
}

.knowledge-race-box li + li {
  margin-top: 6px;
}

.knowledge-race-box--buff {
  border: 3px solid rgba(188, 74, 197, 0.96);
}

.knowledge-race-box--buff h3 {
  color: #d956e7;
}

.knowledge-race-box--debuff {
  border: 3px solid rgba(255, 45, 55, 0.98);
}

.knowledge-race-box--debuff h3 {
  color: #ff303e;
}

@media (max-width: 860px) {
  .knowledge-race-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .knowledge-race-description,
  .knowledge-race-visual {
    min-height: auto;
  }

  .knowledge-race-visual img {
    min-height: 260px;
  }
}


                                                                         
.knowledge-race-layout {
  display: grid;
  gap: 28px;
}

.knowledge-race-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 46px;
  align-items: stretch;
}

.knowledge-race-description,
.knowledge-race-visual,
.knowledge-race-box,
.knowledge-race-list {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.knowledge-race-description {
  min-height: 250px;
  padding: 8px 0 0 !important;
  display: flex;
  align-items: flex-start;
}

.knowledge-race-description .knowledge-article-lead {
  margin: 0;
}

.knowledge-race-visual {
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: 10px;
}

.knowledge-race-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  border-radius: 10px;
}

.knowledge-race-lists {
  display: grid;
  gap: 22px;
}

.knowledge-race-list {
  padding: 0 !important;
}

.knowledge-race-list h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}

.knowledge-race-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.6;
}

.knowledge-race-list li + li {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .knowledge-race-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .knowledge-race-description,
  .knowledge-race-visual {
    min-height: auto;
  }

  .knowledge-race-visual img {
    min-height: 260px;
  }
}

/* Knowledge races: lists under description, left of the image */
.knowledge-race-layout {
  gap: 0;
}

.knowledge-race-main {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 42px;
  align-items: start;
}

.knowledge-race-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.knowledge-race-description {
  min-height: auto !important;
  padding-top: 0 !important;
}

.knowledge-race-lists {
  display: grid;
  gap: 24px;
}

.knowledge-race-list h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.015em;
}

.knowledge-race-list--strong h3 {
  color: #8fbf8f !important;
}

.knowledge-race-list--weak h3 {
  color: #c08a86 !important;
}

.knowledge-race-list ul {
  line-height: 1.62;
}

@media (max-width: 860px) {
  .knowledge-race-main {
    grid-template-columns: 1fr;
  }
}


/* Knowledge races: align image top with text start */
.knowledge-race-visual {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .knowledge-race-visual {
    margin-top: 0;
  }
}

/* Knowledge races: full-width plain notes under the whole race block */
.knowledge-race-layout {
  gap: 24px;
}

.knowledge-race-notes {
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: 2px;
}

.knowledge-race-note {
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.knowledge-race-note h4 {
  margin: 0 0 8px;
  color: #ffd763;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.32;
}

.knowledge-race-note p {
  margin: 0;
  color: rgba(220, 229, 244, 0.86);
  font-size: 0.96rem;
  line-height: 1.68;
}

.knowledge-race-note p + p {
  margin-top: 10px;
}


/* Knowledge base: gameplay mechanics articles */
.knowledge-mechanics-article .knowledge-article-section {
  margin-top: 30px;
}

.knowledge-mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.knowledge-mechanics-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-mechanics-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(90, 177, 255, 0.22);
  background: linear-gradient(180deg, rgba(8, 32, 62, 0.9), rgba(10, 29, 55, 0.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.knowledge-mechanics-card h4 {
  margin: 0 0 8px;
  color: #8eeaff;
  font-size: 19px;
  line-height: 1.2;
}

.knowledge-mechanics-card p {
  margin: 0;
}

.knowledge-effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.knowledge-effect-card {
  min-height: 130px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(89, 151, 218, 0.2);
  background: rgba(8, 28, 53, 0.7);
}

.knowledge-effect-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.knowledge-effect-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(6, 17, 30, 0.72);
  border: 1px solid rgba(130, 224, 255, 0.18);
}

.knowledge-effect-icon img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.knowledge-effect-card h4 {
  margin: 0;
  color: #f5f8ff;
  font-size: 16px;
  line-height: 1.25;
}

.knowledge-effect-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .knowledge-mechanics-grid,
  .knowledge-mechanics-grid--three {
    grid-template-columns: 1fr;
  }

  .knowledge-effects-grid {
    grid-template-columns: 1fr;
  }
}

                                                                            
.knowledge-effect-icon {
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.knowledge-effect-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  image-rendering: pixelated !important;
  image-rendering: crisp-edges !important;
}

                                                                                   
.knowledge-effects-grid.knowledge-effects-grid--icons {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, 64px) !important;
  gap: 12px !important;
  align-items: start !important;
  justify-content: start !important;
  margin-top: 12px !important;
}

.knowledge-effect-card.knowledge-effect-card--compact {
  width: 64px !important;
  height: 64px !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  border: 1px solid rgba(130, 224, 255, 0.2) !important;
  background: rgba(5, 16, 29, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 22px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
  cursor: help !important;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease !important;
}

.knowledge-effect-card.knowledge-effect-card--compact:hover,
.knowledge-effect-card.knowledge-effect-card--compact:focus-visible {
  transform: translateY(-2px) !important;
  border-color: rgba(142, 234, 255, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(66, 204, 255, 0.14), 0 14px 30px rgba(0, 0, 0, 0.28) !important;
  filter: brightness(1.08) !important;
  outline: none !important;
}

.knowledge-effect-card.knowledge-effect-card--compact .knowledge-effect-icon {
  width: 100% !important;
  height: 100% !important;
  flex: 0 0 100% !important;
  padding: 0 !important;
  display: block !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 0 !important;
  overflow: hidden !important;
}

.knowledge-effect-card.knowledge-effect-card--compact .knowledge-effect-icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  image-rendering: pixelated !important;
  image-rendering: crisp-edges !important;
}

.knowledge-effect-card.knowledge-effect-card--compact h4,
.knowledge-effect-card.knowledge-effect-card--compact p,
.knowledge-effect-card.knowledge-effect-card--compact .knowledge-effect-head {
  display: none !important;
}

.knowledge-tooltip .knowledge-tooltip-title {
  display: block;
  margin: 0 0 5px;
  color: #8eeaff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.knowledge-tooltip .knowledge-tooltip-text {
  display: block;
  color: #e7f0ff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}






                                                                       
.knowledge-exchange-article--text-only {
  max-width: 100%;
}

.knowledge-exchange-text-section {
  margin-top: 0 !important;
}

.knowledge-exchange-status-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.knowledge-exchange-status-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.knowledge-exchange-status-list li:last-child {
  margin-bottom: 0;
}

.knowledge-exchange-status {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 5px;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.knowledge-exchange-status--green {
  background: linear-gradient(180deg, #4edb70, #1f9d44);
}

.knowledge-exchange-status--yellow {
  background: linear-gradient(180deg, #f3d65c, #c4a52b);
}

.knowledge-exchange-status--red {
  background: linear-gradient(180deg, #f06e6e, #c33a3a);
}

/* Native links styled as buttons keep middle-click/Ctrl-click browser behavior. */
a.profile-tab-button,
a.knowledge-category-button,
a.knowledge-subtab,
a.knowledge-tab,
a.dropdown-item {
  text-decoration: none;
  font: inherit;
}

/* messages page */
.messages-page-section {
  padding-top: 36px;
}

.messages-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  min-height: min(720px, calc(100vh - 190px));
}

.messages-sidebar,
.messages-chat,
.messages-auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.messages-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
}

.messages-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.messages-sidebar-head h1 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.messages-refresh-button {
  appearance: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.messages-refresh-button:hover,
.messages-refresh-button:focus-visible {
  color: var(--text);
  border-color: rgba(126, 199, 255, 0.28);
  background: rgba(126, 199, 255, 0.08);
  outline: none;
}

.messages-refresh-button svg,
.messages-empty-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.messages-recipient-form {
  display: grid;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.messages-recipient-label {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.messages-recipient-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.messages-recipient-input,
.messages-send-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color .2s ease, background .2s ease;
}

.messages-recipient-input {
  min-height: 46px;
  padding: 0 14px;
}

.messages-send-input {
  min-height: 54px;
  max-height: 160px;
  resize: vertical;
  padding: 14px 16px;
}

.messages-recipient-input:focus,
.messages-send-input:focus {
  border-color: rgba(126, 199, 255, 0.32);
  background: rgba(255,255,255,0.06);
}

.messages-recipient-submit,
.messages-send-button {
  min-height: 46px;
  white-space: nowrap;
}

.messages-recipient-results {
  display: grid;
  gap: 8px;
}

.messages-recipient-result,
.messages-recipient-empty {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  background: rgba(255,255,255,0.035);
  color: var(--text);
  padding: 10px 12px;
}

.messages-recipient-result {
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.messages-recipient-result:hover,
.messages-recipient-result:focus-visible {
  border-color: rgba(126, 199, 255, 0.28);
  background: rgba(126, 199, 255, 0.07);
  outline: none;
}

.messages-recipient-empty {
  color: var(--muted);
  font-size: .92rem;
}

.messages-conversations {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.messages-conversations-empty {
  color: var(--muted);
  padding: 14px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 16px;
  line-height: 1.5;
}

.messages-dialog-item {
  appearance: none;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.032);
  color: var(--text);
  padding: 12px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.messages-dialog-item:hover,
.messages-dialog-item:focus-visible,
.messages-dialog-item.is-active {
  border-color: rgba(126, 199, 255, 0.28);
  background: rgba(126, 199, 255, 0.075);
  outline: none;
}

.messages-dialog-avatar,
.messages-chat-avatar {
  display: block;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.13);
  background-color: rgba(126, 199, 255, 0.12);
}

.messages-dialog-avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.messages-dialog-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.messages-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.messages-dialog-top strong,
.messages-dialog-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-dialog-top time,
.messages-dialog-preview {
  color: var(--muted);
  font-size: .9rem;
}

.messages-dialog-badge {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111f;
  font-size: .78rem;
  font-weight: 900;
}

.messages-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
}

.messages-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.messages-chat-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.messages-chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.messages-chat-user strong,
.messages-chat-user span {
  display: block;
}

.messages-chat-user strong {
  font-size: 1.08rem;
}

.messages-chat-user span,
.messages-profile-link {
  color: var(--muted);
  font-size: .92rem;
}

.messages-profile-link {
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 9px 13px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.messages-profile-link:hover,
.messages-profile-link:focus-visible {
  color: var(--text);
  border-color: rgba(126, 199, 255, 0.28);
  background: rgba(126, 199, 255, 0.07);
  outline: none;
}

.messages-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  overflow: auto;
}

.messages-thread-empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 18px;
}

.messages-bubble {
  max-width: min(620px, 78%);
  align-self: flex-start;
  display: grid;
  gap: 7px;
  padding: 13px 15px 10px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255,255,255,0.045);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.messages-bubble.is-own {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  border-color: rgba(126, 199, 255, 0.26);
  background: linear-gradient(135deg, rgba(126, 199, 255, 0.18), rgba(137, 255, 241, 0.11));
}

.messages-bubble time {
  justify-self: end;
  color: rgba(224, 233, 249, 0.62);
  font-size: .78rem;
}

.messages-send-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
}

.messages-empty-state {
  align-self: center;
  justify-self: center;
  width: min(440px, calc(100% - 32px));
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  padding: 34px;
}

.messages-empty-state strong {
  color: var(--text);
  font-size: 1.35rem;
}

.messages-empty-state p {
  margin: 0;
  line-height: 1.6;
}

.messages-empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(126, 199, 255, 0.2);
  background: rgba(126, 199, 255, 0.08);
  color: var(--accent);
}

.messages-auth-card {
  grid-column: 1 / -1;
  padding: 30px;
  max-width: 620px;
  margin: 0 auto;
}

.messages-auth-card h1 {
  margin: 6px 0 10px;
}

.messages-auth-card p:not(.section-label) {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.profile-contact-display-item-message {
  text-decoration: none;
  min-width: 23px;
}

.profile-contact-display-item-message .profile-contact-display-icon {
  width: 21px;
  height: 16px;
  flex: 0 0 21px;
  color: #ffffff;
}

.profile-contact-display-item-message .profile-contact-display-icon svg,
.profile-contact-display-item-message .profile-contact-display-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-contacts-privacy-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.profile-contacts-privacy-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.messages-thread-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .messages-page-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .messages-sidebar,
  .messages-chat {
    min-height: auto;
  }

  .messages-chat {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .messages-sidebar-head,
  .messages-chat-head,
  .messages-recipient-form,
  .messages-thread,
  .messages-send-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .messages-recipient-row,
  .messages-send-form {
    grid-template-columns: 1fr;
  }

  .messages-bubble {
    max-width: 92%;
  }
}

.messages-chat > .messages-auth-card {
  align-self: center;
  justify-self: center;
}

.messages-page-layout textarea {
  font: inherit;
}

/* messages page database-style layout */
.messages-page-hero-title {
  padding-bottom: 0;
}

.messages-page-hero-title .eyebrow {
  margin-bottom: 0;
}

.messages-page-section {
  padding-top: 22px;
}

.messages-page-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.messages-sidebar,
.messages-chat {
  border-radius: 28px;
  border: 1px solid rgba(91, 126, 166, 0.28);
  background:
    linear-gradient(180deg, rgba(20, 34, 51, 0.96) 0%, rgba(14, 27, 44, 0.94) 100%),
    radial-gradient(circle at top right, rgba(87, 216, 255, 0.08), transparent 42%);
  box-shadow:
    0 16px 44px rgba(3, 12, 24, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.messages-sidebar {
  grid-template-rows: auto minmax(0, 1fr);
}

.messages-sidebar-head {
  display: block;
  padding: 22px 16px 12px;
  border-bottom: 0;
}

.messages-sidebar-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.messages-refresh-button {
  display: none !important;
}

.messages-recipient-form {
  display: none;
}

.messages-recipient-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(142, 243, 255, 0.86);
}

.messages-recipient-row {
  grid-template-columns: 1fr;
}

.messages-recipient-submit {
  width: 100%;
}

.messages-conversations {
  padding: 1px 16px 16px;
  gap: 10px;
}

.messages-dialog-item {
  position: relative;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  min-height: 50px;
  padding: 6px 24px 6px 7px;
  border-radius: 18px;
  border-color: rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.9);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.messages-dialog-item:hover,
.messages-dialog-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(120, 225, 255, 0.42);
  background: rgba(18, 38, 60, 0.96);
}

.messages-dialog-item.is-active,
.messages-dialog-item.is-active:hover,
.messages-dialog-item.is-active:focus-visible {
  border-color: rgba(108, 227, 255, 0.54);
  background: linear-gradient(180deg, rgba(21, 53, 82, 0.96), rgba(16, 40, 64, 0.96));
  box-shadow: inset 0 0 0 1px rgba(143, 236, 255, 0.1);
}

.messages-dialog-avatar {
  width: 35px;
  height: 35px;
  border-radius: 12px;
}

.messages-dialog-main {
  display: flex;
  align-items: center;
  min-width: 0;
}

.messages-dialog-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.messages-dialog-name strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.messages-dialog-unread-dot {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #ff4d5d;
  box-shadow: 0 0 0 3px rgba(255, 77, 93, 0.12);
  transform: translateY(-50%);
}

.messages-dialog-top,
.messages-dialog-preview,
.messages-dialog-badge {
  display: none;
}

@media (max-width: 900px) {
  .messages-page-layout {
    grid-template-columns: 1fr;
  }

  .messages-recipient-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .messages-recipient-submit {
    width: auto;
  }
}

@media (max-width: 640px) {
  .messages-recipient-row {
    grid-template-columns: 1fr;
  }

  .messages-recipient-submit {
    width: 100%;
  }
}

/* messages page fixed-height chat layout */
.messages-page-layout {
  --messages-panel-height: 730px;
  min-height: var(--messages-panel-height);
}

.messages-sidebar,
.messages-chat {
  height: var(--messages-panel-height);
  min-height: var(--messages-panel-height);
  max-height: var(--messages-panel-height);
}

.messages-chat {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.messages-conversations,
.messages-thread {
  min-height: 0;
}

.messages-thread {
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.messages-thread::before {
  content: '';
  margin-top: auto;
}

.messages-chat-user {
  flex-wrap: nowrap;
}

.messages-chat-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.08rem;
}

.messages-send-editor {
  min-width: 0;
}

.messages-send-editor-shell {
  gap: 0;
}

.messages-send-rich-editor {
  width: 100%;
  min-height: 54px;
  max-height: 150px;
  padding: 13px 15px;
  resize: none;
}

.messages-send-rich-editor:focus {
  border-color: rgba(126, 199, 255, 0.32);
  background: rgba(255,255,255,0.06);
}

@media (max-width: 900px) {
  .messages-page-layout {
    --messages-panel-height: auto;
    min-height: 0;
  }

  .messages-sidebar,
  .messages-chat {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .messages-chat {
    height: 730px;
    min-height: 560px;
    max-height: 730px;
  }
}

/* messages page compact chat header and Enter-send composer */
.messages-chat-head {
  gap: 10px;
  padding: 12px 18px;
}

.messages-chat-user {
  gap: 10px;
}

.messages-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.messages-chat-title {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
  line-height: 1.2;
}

.messages-chat-title-prefix {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 400;
}

.messages-chat-title-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
}

.messages-profile-link {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.15;
}

.messages-send-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 12px 18px 14px;
}

.messages-send-editor {
  width: 100%;
}

.messages-send-editor-shell {
  width: 100%;
}

.messages-send-rich-editor {
  min-height: 38px;
  max-height: 105px;
  padding: 9px 12px;
  line-height: 1.35;
}

.messages-send-button {
  display: none !important;
}

@media (max-width: 640px) {
  .messages-chat-head,
  .messages-send-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .messages-profile-link {
    padding: 5px 8px;
    font-size: 0.74rem;
  }
}

                                                                              
.messages-send-rich-editor {
  box-sizing: border-box;
  min-height: 97px;
  height: 97px;
  max-height: 97px;
  padding: 10px !important;
  line-height: 1.35;
  overflow-y: auto;
}

.messages-send-rich-editor[data-tiptap-host="true"] {
  overflow-y: auto;
}

.messages-send-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror {
  min-height: 77px;
  box-sizing: border-box;
}

                                                                                                
#messages-send-editor-input.messages-send-rich-editor,
.messages-send-editor-shell.wall-rich-editor-shell-comment-inline #messages-send-editor-input.messages-send-rich-editor,
.messages-send-editor-shell .messages-send-rich-editor.profile-comment-modal-textarea {
  box-sizing: border-box !important;
  min-height: 97px !important;
  height: 97px !important;
  max-height: 97px !important;
  padding: 10px !important;
  line-height: 1.35 !important;
  resize: none !important;
  overflow-y: auto !important;
}

#messages-send-editor-input.messages-send-rich-editor[data-tiptap-host="true"] {
  min-height: 97px !important;
  height: 97px !important;
  max-height: 97px !important;
  overflow-y: auto !important;
}

#messages-send-editor-input.messages-send-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror {
  box-sizing: border-box !important;
  min-height: 77px !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* messages page composer: keep four text lines vertically balanced inside 97px */
#messages-send-editor-input.messages-send-rich-editor,
.messages-send-editor-shell.wall-rich-editor-shell-comment-inline #messages-send-editor-input.messages-send-rich-editor,
.messages-send-editor-shell .messages-send-rich-editor.profile-comment-modal-textarea {
  line-height: 19.25px !important;
}

#messages-send-editor-input.messages-send-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror {
  line-height: 19.25px !important;
}

#messages-send-editor-input.messages-send-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror p,
#messages-send-editor-input.messages-send-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror div,
#messages-send-editor-input.messages-send-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror li {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 19.25px !important;
}

/* messages page own-message edit/delete controls */
.messages-bubble {
  position: relative;
}

.messages-bubble.is-own {
  padding-right: 16px;
}

.messages-bubble.is-editing {
  border-color: rgba(123, 189, 255, 0.54);
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.26), 0 0 0 1px rgba(123, 189, 255, 0.08);
}

.messages-bubble-actions {
  position: absolute;
  top: -13px;
  right: 10px;
  z-index: 3;
  padding: 2px;
  border-radius: 12px;
  background: rgba(9, 20, 34, 0.82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.messages-bubble-actions .profile-wall-post-edit,
.messages-bubble-actions .profile-wall-delete-pair {
  margin-top: 0;
}

.messages-bubble-meta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: rgba(224, 233, 249, 0.62);
  font-size: .78rem;
  line-height: 1.2;
}

.messages-bubble-meta time {
  justify-self: auto;
  font-size: inherit;
}

.messages-bubble-edited-time {
  color: rgba(224, 233, 249, 0.5);
  white-space: nowrap;
}

.messages-editing-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 2px 8px;
  color: rgba(169, 217, 255, 0.95);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.messages-editing-note[hidden] {
  display: none !important;
}

.messages-editing-cancel {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 4px 9px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.messages-editing-cancel:hover,
.messages-editing-cancel:focus-visible {
  color: var(--text);
  background: rgba(126, 199, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.messages-send-form:has(.messages-editing-note:not([hidden])) {
  gap: 0;
}

@media (max-width: 640px) {
  .messages-bubble-actions {
    top: -10px;
    right: 7px;
  }

  .messages-bubble-meta {
    flex-wrap: wrap;
    row-gap: 3px;
  }
}


                                                                              
.messages-message-item {
  max-width: min(620px, 78%);
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.messages-message-item.is-own {
  align-self: flex-end;
  align-items: flex-end;
}

.messages-message-item .messages-bubble {
  max-width: 100%;
  align-self: auto;
}

.messages-message-item .messages-bubble-actions {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 4px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0.72;
  transform: translateY(-1px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.messages-message-item:hover .messages-bubble-actions,
.messages-message-item:focus-within .messages-bubble-actions {
  opacity: 1;
  transform: translateY(0);
}

.messages-message-item .messages-bubble-actions .profile-wall-post-edit,
.messages-message-item .messages-bubble-actions .profile-wall-delete-pair {
  margin-top: 0;
}

.messages-message-item .messages-bubble-actions .profile-wall-post-edit,
.messages-message-item .messages-bubble-actions .profile-wall-delete-toggle,
.messages-message-item .messages-bubble-actions .profile-wall-delete-direct {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 8px;
}

.messages-message-item .messages-bubble-actions .profile-wall-delete-pair {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.messages-bubble-meta time {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .messages-message-item {
    max-width: 92%;
  }

  .messages-message-item .messages-bubble-actions {
    padding-right: 2px;
  }
}

/* messages page message options menu: compact three-dot action inside the bubble */
.messages-bubble {
  overflow: visible;
  padding-right: 42px;
}

.messages-bubble.is-own {
  padding-right: 42px;
}

.messages-bubble-menu {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 8;
}

.messages-bubble-menu-toggle {
  appearance: none;
  width: 26px;
  height: 22px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  background: rgba(8, 19, 33, 0.22);
  color: rgba(224, 233, 249, 0.62);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  cursor: pointer;
  opacity: 0.74;
  transition: opacity .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.messages-bubble:hover .messages-bubble-menu-toggle,
.messages-bubble:focus-within .messages-bubble-menu-toggle,
.messages-bubble-menu.is-open .messages-bubble-menu-toggle {
  opacity: 1;
}

.messages-bubble-menu-toggle:hover,
.messages-bubble-menu-toggle:focus-visible,
.messages-bubble-menu.is-open .messages-bubble-menu-toggle {
  color: var(--text);
  background: rgba(126, 199, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(126, 199, 255, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.messages-bubble-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 164px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(126, 199, 255, 0.18);
  border-radius: 14px;
  background: rgba(9, 20, 34, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.messages-bubble-menu.is-open .messages-bubble-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.messages-bubble-menu-item {
  appearance: none;
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  background: transparent;
  color: rgba(224, 233, 249, 0.9);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.messages-bubble-menu-item svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: currentColor;
}

.messages-bubble-menu-item:hover,
.messages-bubble-menu-item:focus-visible {
  background: rgba(126, 199, 255, 0.12);
  color: var(--text);
  outline: none;
  transform: translateX(1px);
}

.messages-bubble-menu-item-danger {
  color: #ff8a8a;
}

.messages-bubble-menu-item-danger:hover,
.messages-bubble-menu-item-danger:focus-visible,
.messages-bubble-menu-item-danger.is-confirming {
  background: rgba(255, 73, 73, 0.14);
  color: #ffd0d0;
}

.messages-bubble-menu-item-danger.is-confirming {
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.22);
}

.messages-message-item .messages-bubble-actions {
  display: none !important;
}

@media (max-width: 640px) {
  .messages-bubble {
    padding-right: 38px;
  }

  .messages-bubble.is-own {
    padding-right: 38px;
  }

  .messages-bubble-menu-panel {
    min-width: 150px;
  }
}

/* messages page inline actions: time + controls inside the message bubble */
.messages-bubble,
.messages-bubble.is-own {
  padding-right: 16px !important;
  overflow: visible !important;
}

.messages-bubble-menu {
  display: none !important;
}

.messages-bubble .messages-bubble-meta {
  width: 100%;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  flex-wrap: nowrap;
}

.messages-bubble.is-own .messages-bubble-meta {
  justify-content: flex-end;
}

.messages-bubble .messages-bubble-meta time {
  flex: 0 0 auto;
  white-space: nowrap;
}

.messages-message-item .messages-bubble-meta .messages-bubble-actions,
.messages-bubble .messages-bubble-meta .messages-bubble-actions {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

.messages-bubble .messages-bubble-actions .profile-wall-post-edit,
.messages-bubble .messages-bubble-actions .profile-wall-report-button,
.messages-bubble .messages-bubble-actions .profile-wall-delete-pair,
.messages-bubble .messages-bubble-actions .profile-wall-delete-toggle,
.messages-bubble .messages-bubble-actions .profile-wall-delete-direct {
  margin-top: 0 !important;
}

.messages-bubble .messages-bubble-actions .profile-wall-post-edit,
.messages-bubble .messages-bubble-actions .profile-wall-report-button,
.messages-bubble .messages-bubble-actions .profile-wall-delete-pair,
.messages-bubble .messages-bubble-actions .profile-wall-delete-toggle,
.messages-bubble .messages-bubble-actions .profile-wall-delete-direct {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.messages-bubble .messages-bubble-actions .profile-wall-delete-pair {
  flex: 0 0 26px;
}

.messages-bubble-delete-pair.is-confirming .profile-wall-delete-toggle.is-hidden-by-test {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .messages-bubble,
  .messages-bubble.is-own {
    padding-right: 14px !important;
  }

  .messages-bubble .messages-bubble-meta {
    gap: 6px;
  }
}

                                                       
.messages-bubble .messages-bubble-meta {
  flex-wrap: nowrap !important;
  row-gap: 0;
  white-space: nowrap;
}

.messages-bubble .messages-bubble-meta time {
  flex: 0 0 auto;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
}

.messages-bubble .messages-bubble-actions,
.messages-bubble .messages-bubble-actions button,
.messages-bubble .messages-bubble-actions .profile-wall-delete-pair {
  pointer-events: auto !important;
}

.messages-bubble .messages-bubble-actions {
  flex: 0 0 auto;
}

.messages-bubble .messages-bubble-actions button {
  position: relative;
  z-index: 2;
}

                                                           
.messages-bubble,
.messages-bubble.is-own {
  padding-right: 15px !important;
}

.messages-bubble .messages-bubble-meta,
.messages-bubble.is-own .messages-bubble-meta {
  justify-content: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
}

.messages-bubble .messages-bubble-actions {
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.messages-bubble .messages-bubble-actions .profile-wall-post-edit,
.messages-bubble .messages-bubble-actions .profile-wall-report-button,
.messages-bubble .messages-bubble-actions .profile-wall-delete-pair,
.messages-bubble .messages-bubble-actions .profile-wall-delete-toggle,
.messages-bubble .messages-bubble-actions .profile-wall-delete-direct {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  margin: 0 !important;
}

.messages-bubble .messages-bubble-actions .profile-wall-delete-pair,
.messages-bubble .messages-bubble-actions .messages-bubble-delete-pair {
  position: relative !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.messages-bubble .messages-bubble-actions .messages-bubble-delete-pair .profile-wall-delete-toggle,
.messages-bubble .messages-bubble-actions .messages-bubble-delete-pair .profile-wall-delete-direct {
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
}

@media (max-width: 640px) {
  .messages-bubble,
  .messages-bubble.is-own {
    padding-right: 15px !important;
  }
}

/* messages page: instant bottom open and 1000-symbol composer cap */
.messages-thread {
  scroll-behavior: auto !important;
}

.messages-thread.is-initial-scroll {
  visibility: hidden;
}

#messages-send-editor-input.messages-send-rich-editor[data-wall-max-length="1000"],
.messages-send-editor[data-wall-max-length="1000"] #messages-send-editor-input.messages-send-rich-editor {
  caret-color: var(--text);
}

/* messages page: new dialog quick search */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.messages-sidebar {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.messages-sidebar-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 22px 16px 12px !important;
  border-bottom: 0 !important;
}

.messages-sidebar-head h1 {
  margin: 0 !important;
  min-width: 0;
}

.messages-new-dialog-button {
  appearance: none;
  width: 30px;
  height: 30px;
  min-width: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(120, 225, 255, 0.28);
  border-radius: 10px;
  background: rgba(15, 31, 49, 0.92);
  color: rgba(224, 245, 255, 0.9);
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(3, 12, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.messages-new-dialog-button:hover,
.messages-new-dialog-button:focus-visible,
.messages-new-dialog-button.is-active {
  color: var(--text);
  border-color: rgba(120, 225, 255, 0.52);
  background: rgba(18, 42, 66, 0.96);
  box-shadow:
    0 10px 26px rgba(3, 12, 24, 0.3),
    inset 0 0 0 1px rgba(143, 236, 255, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.messages-new-dialog-icon {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
  pointer-events: none;
}

.messages-recipient-form.messages-new-dialog-form {
  display: none !important;
  gap: 8px;
  padding: 1px 16px 10px;
  border-bottom: 0;
}

.messages-recipient-form.messages-new-dialog-form.is-open {
  display: grid !important;
}

.messages-recipient-form.messages-new-dialog-form[hidden] {
  display: none !important;
}

.messages-new-dialog-form .messages-recipient-row {
  display: block;
}

.messages-new-dialog-form .messages-recipient-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  height: 50px;
  padding: 0 15px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.9);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow:
    0 12px 34px rgba(3, 12, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.messages-new-dialog-form .messages-recipient-input::placeholder {
  color: rgba(224, 233, 249, 0.46);
  font-weight: 650;
}

.messages-new-dialog-form .messages-recipient-input:focus {
  border-color: rgba(120, 225, 255, 0.46);
  background: rgba(18, 38, 60, 0.96);
  outline: none;
}

.messages-new-dialog-form .messages-recipient-results {
  display: grid;
  gap: 8px;
}

.messages-new-dialog-form .messages-recipient-result {
  appearance: none;
  position: relative;
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 7px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.9);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 12px 34px rgba(3, 12, 24, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.messages-new-dialog-form .messages-recipient-result:hover,
.messages-new-dialog-form .messages-recipient-result:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(120, 225, 255, 0.42);
  background: rgba(18, 38, 60, 0.96);
  outline: none;
}

.messages-recipient-result-avatar {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.06);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.messages-recipient-result-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.messages-recipient-result-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.messages-recipient-result-main span {
  color: rgba(224, 233, 249, 0.52);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.messages-new-dialog-form .messages-recipient-empty {
  margin: 0;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(15, 31, 49, 0.64);
  color: var(--muted);
  padding: 12px 14px;
  font-size: .9rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .messages-sidebar-head {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .messages-recipient-form.messages-new-dialog-form {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* messages page: pinned dialogs */
.messages-chat-user {
  min-width: 0;
}

.messages-chat-pin-button {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

.messages-chat-pin-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none !important;
}

.messages-chat-pin-button svg {
  width: 15px;
  height: 15px;
}

.messages-dialog-item.is-pinned {
  border-color: rgba(255, 214, 102, 0.48) !important;
  box-shadow:
    0 12px 34px rgba(3, 12, 24, 0.22),
    inset 0 0 0 1px rgba(255, 214, 102, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.messages-dialog-item.is-pinned:hover,
.messages-dialog-item.is-pinned:focus-visible {
  border-color: rgba(255, 214, 102, 0.64) !important;
  box-shadow:
    0 14px 36px rgba(3, 12, 24, 0.28),
    inset 0 0 0 1px rgba(255, 214, 102, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.messages-dialog-item.is-pinned.is-active,
.messages-dialog-item.is-pinned.is-active:hover,
.messages-dialog-item.is-pinned.is-active:focus-visible {
  border-color: rgba(255, 214, 102, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(42, 43, 31, 0.96), rgba(26, 38, 50, 0.96)),
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.15), transparent 44%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 102, 0.28),
    0 12px 34px rgba(3, 12, 24, 0.28);
}

@media (max-width: 640px) {
  .messages-chat-pin-button {
    width: 25px !important;
    height: 25px !important;
    flex-basis: 25px !important;
  }
}

/* unified content boxes: use the same deep chat panel background across wall, characters and private messages */
:root {
  --unified-chat-box-bg: rgba(15, 31, 49, 0.9);
  --unified-chat-box-bg-strong: rgba(18, 38, 60, 0.96);
}

.profile-wall-editor,
.profile-wall-post,
.profile-character-card,
.profile-character-entry,
.profile-character-entry-empty,
.messages-sidebar,
.messages-chat,
.messages-auth-card,
.messages-dialog-item,
.messages-recipient-result,
.messages-recipient-empty,
.messages-new-dialog-form .messages-recipient-input,
.messages-new-dialog-form .messages-recipient-result,
.messages-new-dialog-form .messages-recipient-empty {
  background: var(--unified-chat-box-bg) !important;
}

.messages-dialog-item:hover,
.messages-dialog-item:focus-visible,
.messages-dialog-item.is-active,
.messages-new-dialog-form .messages-recipient-input:focus,
.messages-new-dialog-form .messages-recipient-result:hover,
.messages-new-dialog-form .messages-recipient-result:focus-visible {
  background: var(--unified-chat-box-bg-strong) !important;
}

.messages-dialog-item.is-pinned.is-active,
.messages-dialog-item.is-pinned.is-active:hover,
.messages-dialog-item.is-pinned.is-active:focus-visible {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.13), transparent 42%),
    var(--unified-chat-box-bg-strong) !important;
}

/* align empty privates notice with chat-panel background */
#profile-privates .profile-placeholder-card,
#profile-privates .profile-private-empty-card,
.profile-private-empty-card {
  background: var(--unified-chat-box-bg) !important;
}

/* keep messages header controls aligned */
.messages-sidebar-head h1 {
  flex: 1 1 auto !important;
}


/* Profile roles: 0=user/default, 1=helper, 2=moderator, 3=administrator, 4=plus */
.profile-role-name {
  transition: color 0.18s ease, text-shadow 0.18s ease, opacity 0.18s ease;
}

.profile-role-name--plus,
.profile-role-name--plus:hover,
.profile-role-name--plus:focus-visible {
  color: #e6c84f !important;
}

.profile-role-name--helper,
.profile-role-name--helper:hover,
.profile-role-name--helper:focus-visible {
  color: #48d17a !important;
}

.profile-role-name--moderator,
.profile-role-name--moderator:hover,
.profile-role-name--moderator:focus-visible,
.profile-role-name--administrator,
.profile-role-name--administrator:hover,
.profile-role-name--administrator:focus-visible {
  color: #ff5b66 !important;
}

/* Reports / administration tickets */
.dropdown-item.has-pending-reports .dropdown-item-label {
  color: var(--text);
}

.reports-modal {
  width: min(100%, 760px);
  max-height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reports-modal-header {
  flex: 0 0 auto;
}

.reports-modal-subtitle {
  margin: 8px 0 0;
  color: rgba(159, 176, 200, 0.76);
  line-height: 1.45;
}

.reports-modal-body {
  width: min(100%, 920px);
  margin: 0 auto;
  overflow: auto;
  padding-right: 4px;
}

.reports-support-textarea {
  min-height: 210px;
}

.reports-support-meta {
  width: 100%;
}

.reports-support-actions {
  width: 100%;
}

.reports-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
  color: var(--text);
}

.reports-refresh-button {
  min-height: 36px;
  padding: 0 12px;
}

.reports-list {
  display: grid;
  gap: 12px;
}

.reports-card {
  border: 1px solid rgba(144, 190, 255, 0.13);
  border-radius: 18px;
  background: rgba(4, 16, 30, 0.72);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.reports-card.is-resolved {
  opacity: 0.72;
}

.reports-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reports-card-title {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.reports-card-meta,
.reports-card-target,
.reports-card-resolved {
  color: rgba(159, 176, 200, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
}

.reports-card-target {
  margin-top: 10px;
}

.reports-card-text {
  margin-top: 10px;
  color: rgba(231, 239, 255, 0.94);
  line-height: 1.55;
  white-space: normal;
}

.reports-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
}

.reports-status.is-open {
  color: #ffd7dd;
  background: rgba(255, 77, 93, 0.12);
  border-color: rgba(255, 77, 93, 0.2);
}

.reports-status.is-resolved {
  color: #bff4d0;
  background: rgba(86, 201, 132, 0.12);
  border-color: rgba(86, 201, 132, 0.2);
}

.reports-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.reports-resolve-button {
  min-height: 36px;
  min-width: 150px;
  padding: 0 12px;
  border-radius: 12px;
}

.reports-empty,
.reports-loading {
  border: 1px dashed rgba(144, 190, 255, 0.18);
  border-radius: 18px;
  padding: 22px;
  color: rgba(159, 176, 200, 0.86);
  text-align: center;
  background: rgba(4, 16, 30, 0.44);
}

@media (max-width: 720px) {
  .reports-modal {
    width: min(100%, calc(100vw - 24px));
    padding: 18px;
  }

  .reports-card-head,
  .reports-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .reports-card-actions {
    justify-content: stretch;
  }

  .reports-resolve-button,
  .reports-refresh-button {
    width: 100%;
  }
}

/* reports page: chat-like обращения layout */
.reports-page-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  --messages-panel-height: 730px;
  min-height: var(--messages-panel-height);
}

.reports-sidebar,
.reports-chat {
  height: var(--messages-panel-height);
  min-height: var(--messages-panel-height);
  max-height: var(--messages-panel-height);
}

.reports-sidebar-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.reports-conversations {
  padding: 1px 16px 16px;
}

.reports-dialog-item {
  grid-template-columns: 35px minmax(0, 1fr);
  min-height: 58px;
  padding-right: 25px;
}

.reports-dialog-main {
  display: grid !important;
  gap: 2px;
  align-items: center;
}

.reports-dialog-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.reports-dialog-preview {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(224, 233, 249, 0.55);
  font-size: 0.78rem;
  line-height: 1.15;
}

.reports-dialog-status {
  justify-self: start;
  margin-top: 1px;
}

.reports-chat-head {
  min-height: 61px;
}

.reports-status-control {
  flex: 0 0 auto;
}

.reports-status-select {
  appearance: none;
  min-height: 34px;
  padding: 0 36px 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(126, 199, 255, 0.25);
  background:
    linear-gradient(180deg, rgba(22, 42, 63, 0.98), rgba(15, 31, 49, 0.98)),
    url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23cfe9ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 13px center / 12px 8px no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 22px rgba(3,12,24,0.2);
}

.reports-status-select:focus-visible {
  border-color: rgba(126, 199, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(126, 199, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}

.reports-thread {
  gap: 12px;
}

.reports-context {
  align-self: stretch;
  display: grid;
  gap: 10px;
  margin-bottom: 2px;
}

.reports-attachment {
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid rgba(126, 199, 255, 0.58);
  border-radius: 16px;
  background: rgba(8, 20, 34, 0.42);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.reports-attachment-title {
  color: rgba(142, 243, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-attachment-meta {
  margin-top: 6px;
  color: rgba(224, 233, 249, 0.64);
  font-size: 0.82rem;
  font-weight: 750;
}

.reports-attachment-text {
  margin-top: 8px;
  color: rgba(224, 233, 249, 0.92);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.reports-bubble-author {
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  color: rgba(224, 233, 249, 0.82);
}

.reports-message-item.is-system {
  display: flex;
  justify-content: center;
}

.reports-system-bubble {
  max-width: min(520px, 88%);
  align-self: center;
  border-radius: 999px;
  background: rgba(126, 199, 255, 0.08);
  border-color: rgba(126, 199, 255, 0.16);
  color: rgba(224, 233, 249, 0.78);
  text-align: center;
}

.reports-new-avatar {
  display: grid;
  place-items: center;
  background: rgba(126, 199, 255, 0.12);
}

.reports-new-avatar::before {
  content: '?';
  color: rgba(224, 245, 255, 0.95);
  font-weight: 950;
  font-size: 1.2rem;
}

#reports-send-editor-input.messages-send-rich-editor,
#reports-new-editor-input.messages-send-rich-editor {
  box-sizing: border-box !important;
  min-height: 97px !important;
  height: 97px !important;
  max-height: 97px !important;
  padding: 10px !important;
  line-height: 19.25px !important;
  resize: none !important;
  overflow-y: auto !important;
}

#reports-send-editor-input.messages-send-rich-editor[data-tiptap-host="true"],
#reports-new-editor-input.messages-send-rich-editor[data-tiptap-host="true"] {
  min-height: 97px !important;
  height: 97px !important;
  max-height: 97px !important;
  overflow-y: auto !important;
}

#reports-send-editor-input.messages-send-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror,
#reports-new-editor-input.messages-send-rich-editor[data-tiptap-host="true"] > .wall-rich-editor-surface.ProseMirror {
  box-sizing: border-box !important;
  min-height: 77px !important;
  line-height: 19.25px !important;
  padding: 0 !important;
}

@media (max-width: 900px) {
  .reports-page-layout {
    grid-template-columns: 1fr;
    --messages-panel-height: auto;
    min-height: 0;
  }

  .reports-sidebar,
  .reports-chat {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .reports-chat {
    height: 730px;
    min-height: 560px;
    max-height: 730px;
  }
}

                                                                      
.reports-filter-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 14px 9px;
}

.reports-filter-tab {
  appearance: none;
  border: 1px solid rgba(126, 199, 255, 0.16);
  border-radius: 12px;
  background: rgba(9, 22, 38, 0.48);
  color: rgba(224, 233, 249, 0.68);
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.reports-filter-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(126, 199, 255, 0.11);
  color: rgba(224, 245, 255, 0.86);
  font-size: 0.68rem;
}

.reports-filter-tab:hover,
.reports-filter-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(126, 199, 255, 0.38);
  color: rgba(244, 249, 255, 0.96);
  outline: none;
}

.reports-filter-tab.is-active {
  border-color: rgba(142, 243, 255, 0.42);
  background: linear-gradient(180deg, rgba(22, 48, 72, 0.88), rgba(12, 28, 48, 0.88));
  color: rgba(244, 252, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 22px rgba(0,0,0,0.12);
}

.reports-status-dropdown {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
}

.reports-status-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 199, 255, 0.25);
  background: linear-gradient(180deg, rgba(22, 42, 63, 0.98), rgba(15, 31, 49, 0.98));
  color: rgba(236, 247, 255, 0.95);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 22px rgba(3,12,24,0.2);
}

.reports-status-button svg {
  width: 12px;
  height: 8px;
  transition: transform .16s ease;
  opacity: .82;
}

.reports-status-dropdown.is-open .reports-status-button svg {
  transform: rotate(180deg);
}

.reports-status-button.is-open {
  border-color: rgba(126, 199, 255, 0.42);
}

.reports-status-button.is-resolved {
  border-color: rgba(87, 240, 163, 0.28);
  color: rgba(215, 255, 233, 0.95);
}

.reports-status-button:focus-visible {
  border-color: rgba(126, 199, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(126, 199, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}

.reports-status-dropdown.is-loading .reports-status-button {
  pointer-events: none;
  opacity: .68;
}

.reports-status-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: max(172px, 100%);
  padding: 6px;
  border-radius: 15px;
  border: 1px solid rgba(126, 199, 255, 0.24);
  background: linear-gradient(180deg, rgba(15, 34, 54, 0.98), rgba(8, 22, 38, 0.98));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255,255,255,0.04);
  z-index: 50;
}

.reports-status-menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(224, 233, 249, 0.78);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.reports-status-menu-item:hover,
.reports-status-menu-item:focus-visible,
.reports-status-menu-item.is-selected {
  background: rgba(126, 199, 255, 0.12);
  color: rgba(244, 252, 255, 0.98);
  outline: none;
}

.reports-status-menu-item.is-selected::after {
  content: '✓';
  margin-left: auto;
  color: rgba(142, 243, 255, 0.95);
  font-weight: 950;
}

@media (max-width: 900px) {
  .reports-filter-tabs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .reports-status-menu {
    right: auto;
    left: 0;
  }
}

                                                                                       
.reports-filter-tabs[hidden] {
  display: none !important;
}

.reports-sidebar-head h1#reports-sidebar-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-archive-toggle-button {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
}

.reports-sidebar-arrow-icon {
  width: 18px !important;
  height: 18px !important;
}

.reports-sidebar-arrow-icon path {
  fill: currentColor;
}

.reports-create-dialog-item {
  border-color: rgba(126, 199, 255, 0.38) !important;
  background: linear-gradient(180deg, rgba(18, 45, 68, 0.72), rgba(9, 26, 44, 0.78)) !important;
  min-height: 72px !important;
}

.reports-create-dialog-item:hover,
.reports-create-dialog-item:focus-visible {
  border-color: rgba(142, 243, 255, 0.72) !important;
  box-shadow: 0 0 0 1px rgba(142, 243, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.18) !important;
}

.reports-create-dialog-avatar {
  display: grid !important;
  place-items: center !important;
  background: rgba(126, 199, 255, 0.1) !important;
  border: 1px solid rgba(126, 199, 255, 0.34) !important;
  color: rgba(224, 245, 255, 0.95) !important;
}

.reports-create-dialog-avatar svg {
  width: 18px;
  height: 18px;
}

.reports-create-dialog-avatar path {
  fill: currentColor;
}

.reports-conversations-empty {
  margin: 6px 2px 0;
}

.reports-message-item.is-system {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
  padding: 2px 0;
}

.reports-system-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  max-width: min(680px, 92%);
  color: rgba(170, 188, 211, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.reports-system-text {
  overflow-wrap: anywhere;
}

.reports-system-time {
  color: rgba(170, 188, 211, 0.48);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.reports-system-bubble {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

                                                                                                                      
.reports-sidebar.is-user .reports-sidebar-head h1#reports-sidebar-title {
  font-size: 1.62rem !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

.reports-dialog-item.reports-user-dialog-item {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 62px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.reports-dialog-item.reports-user-dialog-item .reports-dialog-main {
  min-width: 0 !important;
}

.reports-dialog-item.reports-user-dialog-item .reports-dialog-name strong,
.reports-create-dialog-item .reports-dialog-name strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-create-dialog-item .reports-dialog-name {
  min-width: 0;
  max-width: 100%;
}

.reports-create-dialog-item .reports-dialog-main {
  min-width: 0;
}

.reports-system-line {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
  color: rgba(190, 206, 228, 0.9) !important;
}

.reports-system-time {
  font-size: 0.82rem !important;
}

.reports-status-menu-item.is-selected {
  background: transparent !important;
}

.reports-status-menu-item.is-selected:hover,
.reports-status-menu-item.is-selected:focus-visible {
  background: rgba(126, 199, 255, 0.12) !important;
}

.dropdown-item[href] {
  text-decoration: none;
}

.reports-create-dialog-item .reports-dialog-name strong {
  white-space: normal !important;
  line-height: 1.16 !important;
}

                                                                 
.reports-page-layout.is-user {
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) !important;
}

.reports-sidebar.is-user .reports-sidebar-head {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.reports-sidebar.is-user .reports-sidebar-head h1#reports-sidebar-title {
  font-size: 1.46rem !important;
  line-height: 1.06 !important;
  letter-spacing: -0.04em !important;
}

.reports-sidebar.is-user .reports-conversations {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.reports-sidebar.is-user .reports-create-dialog-item,
.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.reports-sidebar.is-user .reports-create-dialog-item {
  grid-template-columns: 35px minmax(0, 1fr) !important;
}

.reports-sidebar.is-user .reports-dialog-name,
.reports-sidebar.is-user .reports-dialog-preview {
  max-width: 100% !important;
}

.reports-sidebar.is-user .reports-dialog-name strong {
  display: block;
  max-width: 100% !important;
}

.reports-conversations-empty {
  white-space: pre-line;
  line-height: 1.42;
  text-align: center;
}

@media (max-width: 900px) {
  .reports-page-layout.is-user {
    grid-template-columns: 1fr !important;
  }
}

                                                                            
.reports-conversations {
  overflow-x: hidden !important;
  scrollbar-gutter: stable;
}

.reports-sidebar.is-staff .reports-dialog-item,
.reports-sidebar:not(.is-user) .reports-dialog-item {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 64px !important;
  height: auto !important;
  align-items: start !important;
  padding: 8px 12px 9px 8px !important;
  overflow: hidden !important;
}

.reports-sidebar.is-staff .reports-dialog-main,
.reports-sidebar:not(.is-user) .reports-dialog-main {
  min-width: 0 !important;
  width: 100% !important;
  align-content: center !important;
  gap: 3px !important;
}

.reports-sidebar.is-staff .reports-dialog-name,
.reports-sidebar:not(.is-user) .reports-dialog-name,
.reports-sidebar.is-staff .reports-dialog-name strong,
.reports-sidebar:not(.is-user) .reports-dialog-name strong,
.reports-sidebar.is-staff .reports-dialog-preview,
.reports-sidebar:not(.is-user) .reports-dialog-preview {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.reports-sidebar.is-staff .reports-dialog-status,
.reports-sidebar:not(.is-user) .reports-dialog-status {
  position: static !important;
  justify-self: start !important;
  max-width: 100% !important;
  min-width: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  margin-top: 2px !important;
  transform: none !important;
}

.reports-sidebar.is-staff .messages-dialog-avatar,
.reports-sidebar:not(.is-user) .messages-dialog-avatar {
  flex: 0 0 35px !important;
}

.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item,
.reports-sidebar.is-user .reports-create-dialog-item {
  box-sizing: border-box !important;
  width: 100% !important;
  overflow: hidden !important;
}

.reports-attachment-title-link {
  display: inline-block;
  max-width: 100%;
  color: rgba(142, 243, 255, 0.96);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: none;
  overflow-wrap: anywhere;
}

.reports-attachment-title-link:not(.is-disabled):hover,
.reports-attachment-title-link:not(.is-disabled):focus-visible {
  color: rgba(231, 252, 255, 0.98);
  text-decoration: underline;
  outline: none;
}

.reports-attachment-title {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.reports-attachment-meta {
  color: rgba(170, 188, 211, 0.74) !important;
  font-size: 0.82rem !important;
}

.reports-header-profile-link,
.reports-message-profile-link,
.reports-system-profile-link {
  color: inherit;
  text-decoration: none;
}

.reports-header-profile-link:hover,
.reports-header-profile-link:focus-visible,
.reports-message-profile-link:hover,
.reports-message-profile-link:focus-visible,
.reports-system-profile-link:hover,
.reports-system-profile-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.reports-header-profile-link.messages-chat-title-name {
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

.reports-system-line .profile-name-link {
  display: inline;
  font-weight: 950;
}

.is-source-highlight {
  animation: reportSourcePulse 1.8s ease-out 1;
}

@keyframes reportSourcePulse {
  0% { box-shadow: 0 0 0 0 rgba(142, 243, 255, 0.42); }
  45% { box-shadow: 0 0 0 4px rgba(142, 243, 255, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(142, 243, 255, 0); }
}

.reports-dialog-status.reports-status,
.reports-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

                                             
.reports-dialog-item.reports-archive-summary-item {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 72px !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.reports-dialog-item.reports-archive-summary-item .reports-dialog-main {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
  width: 100% !important;
  gap: 4px !important;
}

.reports-dialog-item.reports-archive-summary-item .reports-dialog-name {
  max-width: 100% !important;
}

.reports-dialog-item.reports-archive-summary-item .reports-dialog-name strong {
  display: block;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.reports-dialog-created {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(224, 233, 249, 0.62);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.15;
}

                                                                        
.reports-sidebar {
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
}

.reports-sidebar-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.reports-search-button[hidden],
.reports-search-form[hidden] {
  display: none !important;
}

.reports-search-form {
  display: none !important;
  gap: 8px;
  padding: 1px 16px 10px;
  border-bottom: 0;
}

.reports-search-form.is-open {
  display: grid !important;
}

.reports-search-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 14px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
}

.reports-sidebar.is-staff .reports-dialog-item.reports-archive-summary-item,
.reports-sidebar:not(.is-user) .reports-dialog-item.reports-archive-summary-item {
  min-height: 84px !important;
  padding: 9px 13px 10px !important;
  align-items: center !important;
}

.reports-dialog-item.reports-archive-summary-item .reports-dialog-main {
  align-content: center !important;
  gap: 5px !important;
}

.reports-dialog-item.reports-archive-summary-item .reports-dialog-status.reports-status {
  padding: 3px 8px !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  margin-top: 0 !important;
}

.reports-dialog-item.reports-archive-summary-item .reports-dialog-created {
  font-size: 0.76rem !important;
  line-height: 1.15 !important;
}

.reports-attachment-text {
  margin-top: 7px !important;
}


                                                                                        
.reports-new-button[hidden] {
  display: none !important;
}

.reports-quote-message {
  justify-content: flex-start !important;
  width: 100%;
  padding: 0;
}

.reports-attachment-bubble {
  position: relative;
  max-width: min(640px, 86%) !important;
  border-left: 3px solid rgba(126, 199, 255, 0.82) !important;
  background: rgba(18, 38, 60, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.12) !important;
}

.reports-attachment-bubble::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(142, 243, 255, 0.95);
}

.reports-attachment-bubble .reports-attachment-title {
  margin-bottom: 7px;
  color: rgba(142, 243, 255, 0.96);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.25;
}

.reports-attachment-bubble .reports-attachment-text {
  margin-top: 0 !important;
  font-size: 0.92rem;
  line-height: 1.45;
}

.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item {
  min-height: 76px !important;
  padding-top: 10px !important;
  padding-bottom: 14px !important;
  align-items: center !important;
}

.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item .reports-dialog-main {
  gap: 5px !important;
}

.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item .reports-dialog-status {
  margin-top: 3px !important;
  margin-bottom: 2px !important;
}

                                                                
.reports-new-empty {
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.45 !important;
}

.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item {
  min-height: 70px !important;
  padding-top: 12px !important;
  padding-bottom: 16px !important;
  align-items: center !important;
}

.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item .reports-dialog-main {
  align-content: center !important;
  gap: 7px !important;
}

.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item .reports-dialog-preview {
  display: none !important;
}

.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item .reports-dialog-status {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: start !important;
}

                                                                      
.reports-dialog-item.reports-summary-list-item,
.reports-sidebar.is-staff .reports-dialog-item.reports-summary-list-item,
.reports-sidebar:not(.is-user) .reports-dialog-item.reports-summary-list-item,
.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item.reports-summary-list-item,
.reports-dialog-item.reports-archive-summary-item.reports-summary-list-item {
  grid-template-columns: minmax(0, 1fr) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 82px !important;
  height: auto !important;
  padding: 10px 13px 12px !important;
  align-items: center !important;
  overflow: hidden !important;
}

.reports-dialog-item.reports-summary-list-item .reports-dialog-main,
.reports-sidebar.is-staff .reports-dialog-item.reports-summary-list-item .reports-dialog-main,
.reports-sidebar:not(.is-user) .reports-dialog-item.reports-summary-list-item .reports-dialog-main,
.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item.reports-summary-list-item .reports-dialog-main,
.reports-dialog-item.reports-archive-summary-item.reports-summary-list-item .reports-dialog-main {
  grid-column: 1 / -1 !important;
  display: grid !important;
  min-width: 0 !important;
  width: 100% !important;
  align-content: center !important;
  align-items: start !important;
  justify-items: start !important;
  gap: 6px !important;
}

.reports-dialog-item.reports-summary-list-item .reports-dialog-name,
.reports-dialog-item.reports-summary-list-item .reports-dialog-name strong,
.reports-dialog-item.reports-summary-list-item .reports-dialog-created {
  justify-self: start !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.reports-dialog-item.reports-summary-list-item .reports-dialog-name {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.reports-dialog-item.reports-summary-list-item .reports-dialog-name strong {
  display: block !important;
}

.reports-dialog-item.reports-summary-list-item .reports-dialog-created {
  display: block !important;
  color: rgba(190, 206, 228, 0.74) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.reports-dialog-item.reports-summary-list-item .reports-dialog-status.reports-status {
  position: static !important;
  justify-self: start !important;
  align-self: start !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 3px 8px !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  transform: none !important;
}

.reports-dialog-item.reports-summary-list-item .messages-dialog-avatar,
.reports-dialog-item.reports-summary-list-item .reports-dialog-preview {
  display: none !important;
}


                                                                    
.reports-new-chat-head .reports-new-chat-user {
  gap: 0 !important;
}

.reports-new-chat-title {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.reports-new-chat-title .messages-chat-title-name {
  display: block !important;
  font-size: 1.08rem !important;
  line-height: 1.18 !important;
}

.reports-dialog-item.reports-summary-list-item,
.reports-sidebar.is-staff .reports-dialog-item.reports-summary-list-item,
.reports-sidebar:not(.is-user) .reports-dialog-item.reports-summary-list-item,
.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item.reports-summary-list-item,
.reports-dialog-item.reports-archive-summary-item.reports-summary-list-item {
  min-height: 83px !important;
  padding-top: 10px !important;
  padding-bottom: 11px !important;
  align-items: start !important;
}

.reports-dialog-item.reports-summary-list-item .reports-dialog-main,
.reports-sidebar.is-staff .reports-dialog-item.reports-summary-list-item .reports-dialog-main,
.reports-sidebar:not(.is-user) .reports-dialog-item.reports-summary-list-item .reports-dialog-main,
.reports-sidebar.is-user .reports-dialog-item.reports-user-dialog-item.reports-summary-list-item .reports-dialog-main,
.reports-dialog-item.reports-archive-summary-item.reports-summary-list-item .reports-dialog-main {
  align-content: start !important;
  align-items: start !important;
}

.reports-dialog-item.reports-summary-list-item .reports-dialog-status.reports-status {
  margin-bottom: 0 !important;
}

                                                        
.reports-closed-form {
  min-height: 98px !important;
  display: grid !important;
  place-items: center !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(126, 199, 255, 0.26) !important;
  border-radius: 18px !important;
  background: rgba(15, 32, 51, 0.72) !important;
  color: rgba(190, 206, 228, 0.88) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

                                                                 
.reports-attachment-inline {
  margin-top: 10px !important;
  padding: 2px 0 2px 12px !important;
  border-left: 3px solid rgba(142, 243, 255, 0.9) !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.messages-bubble.is-own .reports-attachment-inline {
  border-left-color: rgba(224, 233, 249, 0.78) !important;
}

.reports-attachment-inline .reports-attachment-title {
  margin: 0 0 5px !important;
  color: rgba(142, 243, 255, 0.96) !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.reports-attachment-inline .reports-attachment-title-link {
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.reports-attachment-inline .reports-attachment-text {
  margin-top: 0 !important;
  color: rgba(224, 233, 249, 0.86) !important;
  font-size: 0.9rem !important;
  line-height: 1.38 !important;
  overflow-wrap: anywhere !important;
}

.reports-attachment-only-bubble {
  max-width: min(640px, 86%) !important;
}

                                                              
.reports-attachment-inline .reports-attachment-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.reports-attachment-title-main {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.reports-attachment-delete-pair {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 2px !important;
}

.reports-attachment-delete-action {
  width: 24px !important;
  height: 24px !important;
}

.reports-attachment-deleted-badge {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 22px !important;
  padding: 3px 8px !important;
  border: 1px solid rgba(120, 214, 174, 0.26) !important;
  border-radius: 999px !important;
  background: rgba(40, 112, 84, 0.22) !important;
  color: rgba(190, 244, 216, 0.94) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.messages-bubble.is-deleted .messages-bubble-text,
.profile-wall-comment.is-deleted .profile-wall-rich-content {
  color: rgba(190, 206, 228, 0.72) !important;
  font-style: italic !important;
}


/* Site styled alert notifications */
.site-alert-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.985);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.site-alert-layer.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.site-alert-layer.is-hiding {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
}

.site-alert-card {
  width: min(430px, calc(100vw - 40px));
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 30px;
  border-radius: 24px;
  border: 1px solid rgba(97, 202, 255, 0.46);
  background:
    radial-gradient(circle at 20% 0%, rgba(95, 221, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(18, 39, 62, 0.98), rgba(9, 22, 38, 0.98));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(6, 16, 31, 0.7);
}

.site-alert-text {
  color: #eaf4ff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.42;
  font-weight: 800;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

/* Staff profile moderation panel */
.profile-summary-compact {
  position: relative;
}

.profile-moderation-button {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 185, 255, .42);
  border-radius: 10px;
  background: rgba(12, 31, 50, .88);
  color: #dcecff;
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 30px rgba(0,0,0,.22);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.profile-moderation-button:hover,
.profile-moderation-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 220, 255, .78);
  background: rgba(20, 48, 75, .95);
  color: #88fff3;
  outline: none;
}

.profile-moderation-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 12, 24, .72);
  backdrop-filter: blur(8px);
}

.profile-moderation-overlay.hidden {
  display: none !important;
}

.profile-moderation-modal {
  width: min(780px, calc(100vw - 32px));
  max-height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(91, 165, 232, .34);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 30, 49, .98), rgba(8, 22, 38, .98));
  color: #dbe8f7;
  box-shadow: 0 28px 90px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.03);
}

.profile-moderation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(101, 153, 209, .2);
}

.profile-moderation-head h2 {
  margin: 4px 0 0;
  color: #f0f7ff;
  font-size: 28px;
  line-height: 1.05;
}

.profile-moderation-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 185, 255, .36);
  border-radius: 12px;
  background: rgba(12, 31, 50, .88);
  color: #dcecff;
  font-size: 24px;
  cursor: pointer;
}

.profile-moderation-body {
  max-height: calc(min(86vh, 820px) - 88px);
  overflow: auto;
  padding: 18px 24px 24px;
}

.profile-moderation-target {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(92, 185, 255, .24);
  border-radius: 16px;
  background: rgba(8, 22, 38, .62);
}

.profile-moderation-target strong {
  display: block;
  color: #79c5ff;
  font-size: 20px;
}

.profile-moderation-target span {
  display: block;
  margin-top: 3px;
  color: #91a4b9;
  font-size: 12px;
  font-weight: 800;
}

.profile-moderation-target-role {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(92, 185, 255, .12);
  color: #cfe7ff;
  font-size: 12px;
  font-weight: 900;
}

.profile-moderation-card {
  padding: 14px;
  margin-top: 12px;
  border: 1px solid rgba(92, 185, 255, .22);
  border-radius: 18px;
  background: rgba(13, 31, 51, .74);
}

.profile-moderation-card-danger {
  border-color: rgba(255, 92, 122, .36);
  background: rgba(50, 18, 32, .46);
}

.profile-moderation-card-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.profile-moderation-card-title strong {
  color: #f0f7ff;
  font-size: 15px;
}

.profile-moderation-status {
  color: #9fb1c7;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.profile-moderation-status.is-active {
  color: #ffd4df;
}

.profile-moderation-status.is-empty {
  color: #9bdcbb;
}

.profile-moderation-status.is-danger {
  color: #ff9aae;
}

.profile-moderation-status small {
  color: #9fb1c7;
  font-size: 11px;
}

.profile-moderation-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.profile-moderation-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #9fb1c7;
  font-size: 12px;
  font-weight: 900;
}

.profile-moderation-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(92, 185, 255, .34);
  border-radius: 12px;
  background: rgba(4, 15, 28, .72);
  color: #e9f4ff;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.profile-moderation-input:focus {
  border-color: rgba(111, 220, 255, .78);
  box-shadow: 0 0 0 3px rgba(70, 190, 255, .14);
}

.profile-moderation-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.profile-moderation-apply,
.profile-moderation-clear,
.profile-moderation-role-apply,
.profile-moderation-delete {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
}

.profile-moderation-delete {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(159, 44, 69, .9), rgba(120, 26, 48, .9)) !important;
  border-color: rgba(255, 99, 130, .5) !important;
}

.profile-moderation-loading,
.profile-moderation-empty {
  padding: 26px;
  border: 1px dashed rgba(92, 185, 255, .24);
  border-radius: 18px;
  color: #9fb1c7;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 680px) {
  .profile-moderation-row {
    grid-template-columns: 1fr;
  }
  .profile-moderation-card-title,
  .profile-moderation-target {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-moderation-status {
    text-align: left;
  }
}

                                        
.profile-summary-shell {
  width: 100%;
  max-width: 100%;
}

.profile-summary-compact {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 52px;
}

.profile-moderation-button {
  right: 0;
  top: 6px;
}

.profile-moderation-modal {
  width: min(980px, calc(100vw - 32px));
}

.profile-moderation-card-title {
  align-items: center;
  margin-bottom: 10px;
}

.profile-moderation-card-title strong {
  font-size: 16px;
  letter-spacing: .01em;
}

.profile-moderation-control-line {
  display: grid;
  grid-template-columns: auto 92px auto auto minmax(180px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
}

.profile-moderation-control-line-status {
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
}

.profile-moderation-control-line-role {
  grid-template-columns: minmax(220px, 320px) auto auto;
  justify-content: start;
}

.profile-moderation-control-line-delete {
  grid-template-columns: auto 120px auto minmax(180px, 1fr) auto auto;
}

.profile-moderation-line-label,
.profile-moderation-line-text {
  color: #9fb1c7;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-moderation-input-minutes {
  max-width: 92px;
  text-align: center;
}

.profile-moderation-input-reason,
.profile-moderation-input-wide {
  min-width: 160px;
}

.profile-moderation-role-select {
  min-width: 220px;
}

.profile-moderation-apply,
.profile-moderation-clear,
.profile-moderation-role-apply,
.profile-moderation-status-apply,
.profile-moderation-delete {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.profile-moderation-delete {
  margin-top: 0;
}

.messages-dialog-item.is-system {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 14px;
}

.messages-chat-head.is-system .messages-chat-user,
.messages-chat-user.is-system {
  gap: 0;
}

.messages-chat-head.is-system .messages-chat-title-name {
  color: rgba(255, 255, 255, .92);
}

.messages-dialog-item.is-system .messages-dialog-name strong {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
}

.messages-message-item.is-system {
  justify-content: center;
}

.messages-bubble.is-system {
  max-width: min(620px, 92%);
  border-color: rgba(141, 255, 244, .28);
  background: linear-gradient(180deg, rgba(17, 48, 67, .92), rgba(9, 30, 48, .92));
}

@media (max-width: 900px) {
  .profile-moderation-control-line,
  .profile-moderation-control-line-status,
  .profile-moderation-control-line-role,
  .profile-moderation-control-line-delete {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .profile-moderation-line-label,
  .profile-moderation-line-text {
    white-space: normal;
  }

  .profile-moderation-input-minutes,
  .profile-moderation-role-select {
    max-width: none;
    width: 100%;
  }
}

/* Profile moderation history and right-aligned tools */
.profile-moderation-summary-actions {
  position: absolute;
  top: 6px;
  right: 0;
  z-index: 6;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.profile-moderation-summary-actions .profile-moderation-button {
  position: static;
  top: auto;
  right: auto;
}

.profile-moderation-history-button {
  font-size: 14px;
  letter-spacing: .04em;
}

.profile-moderation-history-modal {
  width: min(860px, calc(100vw - 32px));
}

.profile-moderation-history-list {
  display: grid;
  gap: 10px;
}

.profile-moderation-history-item {
  padding: 13px 14px;
  border: 1px solid rgba(92, 185, 255, .22);
  border-radius: 16px;
  background: rgba(13, 31, 51, .74);
}

.profile-moderation-history-item strong {
  display: block;
  color: #f0f7ff;
  font-size: 15px;
  line-height: 1.25;
}

.profile-moderation-history-item span {
  display: block;
  margin-top: 5px;
  color: #9fb1c7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

/* Admin chat page */
.admin-chat-page-section {
  padding-top: 18px;
}

.admin-chat-shell {
  min-height: 640px;
  border: 1px solid rgba(92, 185, 255, .24);
  border-radius: 26px;
  background: rgba(10, 27, 44, .82);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .22);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.admin-chat-head {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(92, 185, 255, .16);
}

.admin-chat-head h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  color: #f2f7ff;
}

.admin-chat-head p {
  margin: 6px 0 0;
  color: #9fb0c7;
  font-weight: 700;
}

.admin-chat-messages {
  padding: 22px 26px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 64vh;
  min-height: 420px;
}

.admin-chat-message {
  width: min(720px, 88%);
  padding: 13px 15px;
  border: 1px solid rgba(92, 185, 255, .22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 44, 68, .92), rgba(11, 31, 51, .92));
}

.admin-chat-message.is-own {
  align-self: flex-end;
  border-color: rgba(141, 255, 244, .24);
  background: linear-gradient(180deg, rgba(30, 63, 86, .92), rgba(20, 49, 72, .92));
}

.admin-chat-message-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #9fb0c7;
  font-size: 13px;
  font-weight: 800;
}

.admin-chat-message-text {
  color: #f1f6ff;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.admin-chat-empty {
  margin: auto;
  max-width: 520px;
  padding: 28px;
  border: 1px dashed rgba(146, 174, 204, .24);
  border-radius: 22px;
  color: #aab8cc;
  text-align: center;
  font-weight: 800;
}

.admin-chat-form {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid rgba(92, 185, 255, .16);
  background: rgba(7, 22, 37, .62);
}

.admin-chat-input {
  min-height: 58px;
  resize: vertical;
  flex: 1;
  border-radius: 18px;
  border: 1px solid rgba(92, 185, 255, .45);
  background: rgba(22, 41, 61, .92);
  color: #f4f8ff;
  padding: 13px 15px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.admin-chat-input:focus {
  border-color: rgba(141, 255, 244, .72);
  box-shadow: 0 0 0 3px rgba(92, 185, 255, .13);
}

.admin-chat-submit {
  align-self: stretch;
  min-width: 150px;
}

@media (max-width: 740px) {
  .admin-chat-form {
    flex-direction: column;
  }
  .admin-chat-message {
    width: 100%;
  }
}


/* Admin chat: messages-style layout */
.admin-chat-page-section {
  padding-top: 18px;
}

.admin-chat-shell.messages-shell {
  min-height: 640px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.admin-chat-staff-panel,
.admin-chat-chat {
  min-height: 640px;
  border: 1px solid rgba(92, 185, 255, .24);
  border-radius: 26px;
  background: rgba(10, 27, 44, .82);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.admin-chat-staff-panel {
  padding: 22px 16px;
}

.admin-chat-staff-head h2 {
  margin: 0 0 14px;
  color: #f2f7ff;
  font-size: 24px;
}

.admin-chat-staff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-chat-staff-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 185, 255, .20);
  border-radius: 16px;
  background: rgba(13, 34, 55, .72);
}

.admin-chat-staff-name {
  font-weight: 900;
}

.admin-chat-staff-status {
  color: #9fb0c7;
  font-size: 13px;
  font-weight: 900;
}

.admin-chat-staff-item.is-game .admin-chat-staff-status,
.admin-chat-staff-item.is-site .admin-chat-staff-status {
  color: #8dfff4;
}

.admin-chat-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.admin-chat-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(92, 185, 255, .16);
}

.admin-chat-head .messages-chat-title-name {
  color: #f2f7ff;
  font-size: 20px;
  font-weight: 900;
}

.admin-chat-head .messages-chat-title-prefix {
  color: #9fb0c7;
  font-size: 13px;
  font-weight: 800;
}

.admin-chat-messages {
  min-height: 0;
  max-height: none;
  padding: 22px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-chat-message {
  width: min(720px, 86%);
  padding: 13px 15px;
  border: 1px solid rgba(92, 185, 255, .22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 44, 68, .92), rgba(11, 31, 51, .92));
}

.admin-chat-message.is-own {
  align-self: flex-end;
  border-color: rgba(141, 255, 244, .24);
  background: linear-gradient(180deg, rgba(30, 63, 86, .92), rgba(20, 49, 72, .92));
}

.admin-chat-message-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #9fb0c7;
  font-size: 13px;
  font-weight: 800;
}

.admin-chat-message-text {
  color: #f1f6ff;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.admin-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(92, 185, 255, .16);
  background: rgba(7, 22, 37, .62);
}

.admin-chat-input {
  min-height: 78px;
  resize: none;
  border-radius: 18px;
  border: 1px solid rgba(92, 185, 255, .45);
  background: rgba(22, 41, 61, .92);
  color: #f4f8ff;
  padding: 13px 15px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.admin-chat-input:focus {
  border-color: rgba(141, 255, 244, .72);
  box-shadow: 0 0 0 3px rgba(92, 185, 255, .13);
}

.admin-chat-submit {
  align-self: stretch;
  min-width: 0;
}

@media (max-width: 900px) {
  .admin-chat-shell.messages-shell {
    grid-template-columns: 1fr;
  }
  .admin-chat-staff-panel,
  .admin-chat-chat {
    min-height: auto;
  }
}

                                                                       
.admin-chat-page-section {
  padding-top: 36px !important;
}

.admin-chat-shell.messages-shell {
  display: grid !important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: stretch !important;
  min-height: var(--messages-panel-height, 730px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.admin-chat-staff-panel,
.admin-chat-chat {
  height: var(--messages-panel-height, 730px) !important;
  min-height: var(--messages-panel-height, 730px) !important;
  max-height: var(--messages-panel-height, 730px) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--panel) !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden !important;
}

.admin-chat-staff-panel {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  padding: 0 !important;
}

.admin-chat-staff-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 24px 24px 16px !important;
  border-bottom: 1px solid var(--line) !important;
}

.admin-chat-staff-head h2 {
  margin: 4px 0 0 !important;
  color: var(--text) !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
}

.admin-chat-staff-list {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding: 16px !important;
  overflow: auto !important;
}

.admin-chat-staff-item {
  width: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  gap: 5px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.032) !important;
  color: var(--text) !important;
  padding: 12px !important;
}

.admin-chat-staff-name {
  font-weight: 900 !important;
}

.admin-chat-staff-status {
  color: var(--muted) !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
}

.admin-chat-staff-item.is-game .admin-chat-staff-status,
.admin-chat-staff-item.is-site .admin-chat-staff-status {
  color: var(--accent-2) !important;
}

.admin-chat-chat {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  min-width: 0 !important;
}

.admin-chat-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid var(--line) !important;
}

.admin-chat-head .messages-chat-title-name {
  color: var(--text) !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
}

.admin-chat-head .messages-chat-title-prefix {
  color: var(--muted) !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
}

.admin-chat-messages {
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 24px !important;
  overflow: auto !important;
}

.admin-chat-message {
  width: auto !important;
  max-width: min(620px, 78%) !important;
  align-self: flex-start !important;
  display: grid !important;
  gap: 7px !important;
  padding: 13px 15px 10px !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 18px 18px 18px 6px !important;
  background: rgba(255,255,255,0.045) !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}

.admin-chat-message.is-own {
  align-self: flex-end !important;
  border-radius: 18px 18px 6px 18px !important;
  border-color: rgba(126, 199, 255, 0.26) !important;
  background: linear-gradient(135deg, rgba(126, 199, 255, 0.18), rgba(137, 255, 241, 0.11)) !important;
}

.admin-chat-message-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: .84rem !important;
  font-weight: 800 !important;
}

.admin-chat-message-text {
  color: var(--text) !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
}

.admin-chat-message-meta {
  justify-content: flex-end !important;
}

.admin-chat-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: end !important;
  padding: 18px 24px 22px !important;
  border-top: 1px solid var(--line) !important;
  background: transparent !important;
}

.admin-chat-input {
  width: 100% !important;
  min-height: 54px !important;
  max-height: 160px !important;
  resize: vertical !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.045) !important;
  color: var(--text) !important;
  padding: 14px 16px !important;
  font: inherit !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
  transition: border-color .2s ease, background .2s ease !important;
}

.admin-chat-input:focus {
  border-color: rgba(126, 199, 255, 0.32) !important;
  background: rgba(255,255,255,0.06) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.admin-chat-submit {
  min-width: 0 !important;
  min-height: 46px !important;
  align-self: end !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .admin-chat-shell.messages-shell {
    grid-template-columns: 1fr !important;
    --messages-panel-height: auto;
  }

  .admin-chat-staff-panel,
  .admin-chat-chat {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

.admin-chat-author.profile-name-link,
.admin-chat-staff-name.profile-name-link {
  text-decoration: none !important;
  cursor: pointer !important;
}

.admin-chat-author.profile-name-link:hover,
.admin-chat-staff-name.profile-name-link:hover,
.admin-chat-author.profile-name-link:focus-visible,
.admin-chat-staff-name.profile-name-link:focus-visible {
  text-decoration: underline !important;
}


                                                           
.admin-chat-page-section.messages-page-section {
  padding-top: 22px !important;
}

.admin-chat-shell.messages-page-layout,
.admin-chat-shell.messages-shell {
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
  --messages-panel-height: 730px !important;
  min-height: var(--messages-panel-height) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.admin-chat-staff-panel.messages-sidebar,
.admin-chat-chat.messages-chat {
  height: var(--messages-panel-height) !important;
  min-height: var(--messages-panel-height) !important;
  max-height: var(--messages-panel-height) !important;
  border-radius: 28px !important;
  border: 1px solid rgba(91, 126, 166, 0.28) !important;
  background: var(--unified-chat-box-bg, rgba(15, 31, 49, 0.9)) !important;
  box-shadow:
    0 16px 44px rgba(3, 12, 24, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  overflow: hidden !important;
}

.admin-chat-staff-panel.messages-sidebar {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  padding: 0 !important;
}

.admin-chat-staff-head.messages-sidebar-head {
  display: block !important;
  padding: 22px 16px 12px !important;
  border-bottom: 0 !important;
}

.admin-chat-staff-head h1,
.admin-chat-staff-head h2 {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 28px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
}

.admin-chat-staff-list.messages-conversations {
  min-height: 0 !important;
  padding: 1px 16px 16px !important;
  gap: 10px !important;
  overflow: auto !important;
}

.admin-chat-staff-item {
  position: relative !important;
  width: 100% !important;
  min-height: 50px !important;
  display: grid !important;
  gap: 2px !important;
  align-content: center !important;
  padding: 6px 24px 6px 10px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(88, 126, 167, 0.24) !important;
  background: var(--unified-chat-box-bg, rgba(15, 31, 49, 0.9)) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease !important;
}

.admin-chat-staff-item:hover,
.admin-chat-staff-item:focus-within {
  transform: translateY(-1px) !important;
  border-color: rgba(120, 225, 255, 0.42) !important;
  background: var(--unified-chat-box-bg-strong, rgba(18, 38, 60, 0.96)) !important;
}

.admin-chat-staff-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.admin-chat-staff-status {
  color: rgba(224, 233, 249, 0.55) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.admin-chat-staff-item.is-game .admin-chat-staff-status,
.admin-chat-staff-item.is-site .admin-chat-staff-status {
  color: var(--accent-2) !important;
}

.admin-chat-chat.messages-chat {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  min-width: 0 !important;
}

.admin-chat-head.messages-chat-head {
  gap: 10px !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid var(--line) !important;
}

.admin-chat-head .messages-chat-user {
  gap: 10px !important;
}

.admin-chat-head .messages-chat-title {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
}

.admin-chat-head .messages-chat-title-name {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--text) !important;
  font-size: 1.02rem !important;
  font-weight: 900 !important;
}

.admin-chat-head .messages-chat-title-prefix {
  flex: 0 0 auto !important;
  color: var(--muted) !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
}

.admin-chat-messages.messages-thread {
  min-height: 0 !important;
  gap: 12px !important;
  padding: 24px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  scroll-behavior: smooth !important;
}

.admin-chat-messages.messages-thread::before {
  content: '' !important;
  margin-top: auto !important;
}

.admin-chat-form.messages-send-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  padding: 12px 18px 14px !important;
  border-top: 1px solid var(--line) !important;
  background: transparent !important;
}

.admin-chat-input.messages-send-input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 97px !important;
  height: 97px !important;
  max-height: 97px !important;
  padding: 10px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.045) !important;
  color: var(--text) !important;
  font: inherit !important;
  font-weight: 700 !important;
  line-height: 19.25px !important;
  resize: none !important;
  overflow-y: auto !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
  transition: border-color .2s ease, background .2s ease !important;
}

.admin-chat-input.messages-send-input:focus {
  border-color: rgba(126, 199, 255, 0.32) !important;
  background: rgba(255,255,255,0.06) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.admin-chat-submit {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-chat-shell.messages-page-layout,
  .admin-chat-shell.messages-shell {
    grid-template-columns: 1fr !important;
    --messages-panel-height: auto !important;
    min-height: 0 !important;
  }

  .admin-chat-staff-panel.messages-sidebar,
  .admin-chat-chat.messages-chat {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .admin-chat-chat.messages-chat {
    height: 730px !important;
    min-height: 560px !important;
    max-height: 730px !important;
  }
}

@media (max-width: 640px) {
  .admin-chat-head.messages-chat-head,
  .admin-chat-form.messages-send-form {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* admin chat replies, pinned messages, grouped staff and normal text weight */
.admin-chat-staff-panel.messages-sidebar {
  grid-template-rows: minmax(0, 1fr) !important;
}

.admin-chat-staff-list.messages-conversations {
  padding-top: 18px !important;
}

.admin-chat-staff-group {
  display: grid !important;
  gap: 10px !important;
}

.admin-chat-staff-group + .admin-chat-staff-group {
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.admin-chat-staff-group-title {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
}

.admin-chat-staff-group-list {
  display: grid !important;
  gap: 10px !important;
}

.admin-chat-staff-empty {
  padding: 10px 2px !important;
  color: rgba(224, 233, 249, 0.5) !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

.admin-chat-chat.messages-chat {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

.admin-chat-message-text.messages-bubble-text,
.admin-chat-input.messages-send-input,
.admin-chat-input.messages-send-input::placeholder {
  font-weight: 400 !important;
}

.admin-chat-input.messages-send-input::placeholder {
  color: rgba(224, 233, 249, 0.46) !important;
  opacity: 1 !important;
}

.admin-chat-message.messages-bubble {
  position: relative !important;
  overflow: visible !important;
  padding-right: 42px !important;
  scroll-margin: 96px !important;
}

.admin-chat-message.messages-bubble.is-targeted {
  border-color: rgba(120, 225, 255, 0.72) !important;
  box-shadow: 0 0 0 2px rgba(120, 225, 255, 0.18), 0 16px 36px rgba(3, 12, 24, 0.3) !important;
}

.admin-chat-message.messages-bubble.is-pinned {
  border-color: rgba(255, 207, 117, 0.32) !important;
}

.admin-chat-message-actions.messages-bubble-actions {
  position: absolute !important;
  top: 6px !important;
  right: 7px !important;
  z-index: 5 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  opacity: 0.58 !important;
  transform: none !important;
  transition: opacity .16s ease !important;
}

.admin-chat-message:hover .admin-chat-message-actions,
.admin-chat-message:focus-within .admin-chat-message-actions {
  opacity: 1 !important;
}

.admin-chat-message-action-button {
  appearance: none !important;
  width: 26px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(8, 19, 33, 0.22) !important;
  color: rgba(224, 233, 249, 0.68) !important;
  cursor: pointer !important;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.admin-chat-message-action-button svg {
  width: 16px !important;
  height: 16px !important;
  fill: currentColor !important;
}

.admin-chat-message-action-button:hover,
.admin-chat-message-action-button:focus-visible,
.admin-chat-message-action-button.is-active {
  color: var(--text) !important;
  background: rgba(126, 199, 255, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(126, 199, 255, 0.18) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.admin-chat-message-pin-button.is-active {
  color: #ffd98a !important;
  background: rgba(255, 207, 117, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 207, 117, 0.24) !important;
}

.admin-chat-reply-quote,
.admin-chat-pinned-card {
  text-decoration: none !important;
}

.admin-chat-reply-quote {
  display: grid !important;
  gap: 5px !important;
  margin: 8px 0 10px !important;
  padding: 8px 10px 8px 12px !important;
  border-left: 3px solid rgba(120, 225, 255, 0.86) !important;
  border-radius: 0 12px 12px 0 !important;
  background: rgba(126, 199, 255, 0.055) !important;
  color: inherit !important;
}

.admin-chat-reply-quote:hover,
.admin-chat-reply-quote:focus-visible {
  background: rgba(126, 199, 255, 0.09) !important;
  outline: none !important;
}

.admin-chat-reply-quote-head,
.admin-chat-pinned-head {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  min-width: 0 !important;
  color: rgba(159, 235, 255, 0.95) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.admin-chat-reply-quote-author.profile-name-link,
.admin-chat-pinned-author.profile-name-link {
  font-size: inherit !important;
  font-weight: 900 !important;
}

.admin-chat-reply-quote-text,
.admin-chat-pinned-text {
  min-width: 0 !important;
  color: rgba(224, 233, 249, 0.72) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-chat-pinned-message {
  padding: 10px 18px !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(255, 207, 117, 0.035) !important;
}

.admin-chat-pinned-message[hidden] {
  display: none !important;
}

.admin-chat-pinned-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  padding: 9px 11px !important;
  border: 1px solid rgba(255, 207, 117, 0.18) !important;
  border-radius: 16px !important;
  background: rgba(255, 207, 117, 0.06) !important;
  color: var(--text) !important;
  transition: background .16s ease, border-color .16s ease, transform .16s ease !important;
}

.admin-chat-pinned-card:hover,
.admin-chat-pinned-card:focus-visible {
  border-color: rgba(255, 207, 117, 0.32) !important;
  background: rgba(255, 207, 117, 0.09) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

.admin-chat-pinned-label {
  align-self: center !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 207, 117, 0.12) !important;
  color: #ffd98a !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.admin-chat-pinned-main {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.admin-chat-reply-preview {
  min-width: 0 !important;
  margin-bottom: 8px !important;
}

.admin-chat-reply-preview[hidden] {
  display: none !important;
}

.admin-chat-reply-preview-card {
  position: relative !important;
  display: grid !important;
  gap: 5px !important;
  padding: 8px 38px 8px 10px !important;
  border: 1px solid rgba(126, 199, 255, 0.16) !important;
  border-radius: 16px !important;
  background: rgba(126, 199, 255, 0.06) !important;
}

.admin-chat-reply-preview-label {
  color: rgba(159, 235, 255, 0.95) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.admin-chat-reply-preview-card .admin-chat-reply-quote {
  margin: 0 !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.admin-chat-reply-preview-cancel {
  appearance: none !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,0.055) !important;
  color: rgba(224, 233, 249, 0.62) !important;
  font: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.admin-chat-reply-preview-cancel:hover,
.admin-chat-reply-preview-cancel:focus-visible {
  color: var(--text) !important;
  background: rgba(255,255,255,0.1) !important;
  outline: none !important;
}

.admin-chat-mention,
.messages-inline-admin-chat-link {
  color: rgba(159, 235, 255, 0.96) !important;
  font-weight: 800 !important;
}

.messages-inline-admin-chat-link {
  text-decoration: none !important;
  border-bottom: 1px dashed rgba(159, 235, 255, 0.55) !important;
}

.messages-inline-admin-chat-link:hover,
.messages-inline-admin-chat-link:focus-visible {
  color: var(--text) !important;
  border-bottom-color: currentColor !important;
  outline: none !important;
}

@media (max-width: 640px) {
  .admin-chat-pinned-card {
    grid-template-columns: 1fr !important;
  }

  .admin-chat-message-actions.messages-bubble-actions {
    top: 5px !important;
    right: 5px !important;
  }
}


                                                                                        
body[data-page="admin-chat"] .admin-chat-chat.messages-chat {
  display: flex !important;
  flex-direction: column !important;
  min-height: var(--messages-panel-height, 730px) !important;
  height: var(--messages-panel-height, 730px) !important;
  max-height: var(--messages-panel-height, 730px) !important;
  overflow: hidden !important;
}

body[data-page="admin-chat"] .admin-chat-head.messages-chat-head,
body[data-page="admin-chat"] .admin-chat-pinned-message,
body[data-page="admin-chat"] .admin-chat-form.messages-send-form {
  flex: 0 0 auto !important;
}

body[data-page="admin-chat"] .admin-chat-messages.messages-thread {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body[data-page="admin-chat"] .admin-chat-form.messages-send-form {
  display: block !important;
  width: 100% !important;
  min-height: 123px !important;
  padding: 12px 18px 14px !important;
  border-top: 1px solid var(--line) !important;
  background: var(--unified-chat-box-bg, rgba(15, 31, 49, 0.94)) !important;
  position: relative !important;
  z-index: 10 !important;
}

body[data-page="admin-chat"] .admin-chat-input.messages-send-input {
  display: block !important;
  width: 100% !important;
  min-height: 97px !important;
  height: 97px !important;
  max-height: 97px !important;
  font-weight: 400 !important;
  resize: none !important;
}

body[data-page="admin-chat"] .admin-chat-input.messages-send-input::placeholder {
  font-weight: 400 !important;
}

body[data-page="admin-chat"] .admin-chat-message-text.messages-bubble-text,
body[data-page="admin-chat"] .admin-chat-message-text.messages-bubble-text * {
  font-weight: 400 !important;
}

body[data-page="admin-chat"] .admin-chat-message-head {
  gap: 0 !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin {
  margin: 0 !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(255, 214, 102, 0.88) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.18) !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin:hover,
body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin:focus-visible {
  background: rgba(255, 214, 102, 0.12) !important;
  color: rgba(255, 214, 102, 0.96) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.28) !important;
  transform: translateY(-1px) !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin.is-active {
  background: rgba(255, 214, 102, 0.18) !important;
  color: #ffd666 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.32) !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linejoin: round !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin.is-active svg {
  fill: currentColor !important;
  stroke: currentColor !important;
}

@media (max-width: 900px) {
  body[data-page="admin-chat"] .admin-chat-chat.messages-chat {
    min-height: 560px !important;
    height: 730px !important;
    max-height: 730px !important;
  }
}

                                                                                        
body[data-page="admin-chat"] .messages-page-hero-title .eyebrow {
  letter-spacing: 0.16em !important;
}

body[data-page="admin-chat"] .admin-chat-head .messages-chat-title-name {
  font-weight: 900 !important;
}

body[data-page="admin-chat"] .admin-chat-head .messages-chat-title-prefix {
  display: none !important;
}

body[data-page="admin-chat"] .admin-chat-message.messages-bubble,
body[data-page="admin-chat"] .admin-chat-message.messages-bubble.is-own {
  padding-right: 15px !important;
  overflow: visible !important;
}

body[data-page="admin-chat"] .admin-chat-message-meta.messages-bubble-meta,
body[data-page="admin-chat"] .admin-chat-message.messages-bubble.is-own .admin-chat-message-meta.messages-bubble-meta {
  width: 100% !important;
  margin-top: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

body[data-page="admin-chat"] .admin-chat-message-meta.messages-bubble-meta time {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

body[data-page="admin-chat"] .admin-chat-message-actions.messages-bubble-actions {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

body[data-page="admin-chat"] .admin-chat-message-actions.messages-bubble-actions button {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
}

body[data-page="admin-chat"] .admin-chat-message-action-button,
body[data-page="admin-chat"] .admin-chat-message-reply-button,
body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
}

body[data-page="admin-chat"] .admin-chat-message-reply-button {
  background: rgba(123, 189, 255, 0.12) !important;
  color: #9fd2ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18) !important;
}

body[data-page="admin-chat"] .admin-chat-message-reply-button:hover,
body[data-page="admin-chat"] .admin-chat-message-reply-button:focus-visible {
  background: rgba(123, 189, 255, 0.18) !important;
  color: #cce8ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.32) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

body[data-page="admin-chat"] .admin-chat-message-reply-button svg {
  width: 15px !important;
  height: 15px !important;
  fill: currentColor !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin {
  background: transparent !important;
  color: rgba(255, 214, 102, 0.88) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.18) !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin:hover,
body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin:focus-visible {
  background: rgba(255, 214, 102, 0.12) !important;
  color: rgba(255, 214, 102, 0.96) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.28) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin.is-active {
  background: rgba(255, 214, 102, 0.18) !important;
  color: #ffd666 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.32) !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linejoin: round !important;
}

body[data-page="admin-chat"] .admin-chat-message-pin-button.profile-wall-post-pin.is-active svg {
  fill: currentColor !important;
  stroke: currentColor !important;
}

@media (max-width: 640px) {
  body[data-page="admin-chat"] .admin-chat-message-actions.messages-bubble-actions {
    position: static !important;
    flex-direction: row !important;
  }
}


                                                                  
body[data-page="admin-chat"] .admin-chat-mention-suggest {
  display: grid !important;
  gap: 6px !important;
  width: min(360px, 100%) !important;
  margin: 0 0 10px !important;
  padding: 8px !important;
  border: 1px solid rgba(126, 199, 255, 0.18) !important;
  border-radius: 14px !important;
  background: rgba(10, 22, 37, 0.98) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28) !important;
  position: relative !important;
  z-index: 14 !important;
}

body[data-page="admin-chat"] .admin-chat-mention-suggest[hidden] {
  display: none !important;
}

body[data-page="admin-chat"] .admin-chat-mention-option {
  appearance: none !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: var(--text) !important;
  font: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background .16s ease, transform .16s ease, color .16s ease !important;
}

body[data-page="admin-chat"] .admin-chat-mention-option:hover,
body[data-page="admin-chat"] .admin-chat-mention-option:focus-visible,
body[data-page="admin-chat"] .admin-chat-mention-option.is-active {
  background: rgba(126, 199, 255, 0.11) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

body[data-page="admin-chat"] .admin-chat-mention-option-name {
  min-width: 0 !important;
  color: rgba(159, 235, 255, 0.96) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-page="admin-chat"] .admin-chat-mention-option-desc {
  flex: 0 0 auto !important;
  color: rgba(224, 233, 249, 0.52) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body[data-page="admin-chat"] .admin-chat-message-reply-button[data-tooltip],
body[data-page="admin-chat"] .admin-chat-message-pin-button[data-tooltip] {
  position: relative !important;
}


/* private messages: reply button, quote and composer preview */
.messages-reply-quote {
  display: grid !important;
  gap: 5px !important;
  margin: 2px 0 9px !important;
  padding: 8px 10px 8px 12px !important;
  border-left: 3px solid rgba(120, 225, 255, 0.86) !important;
  border-radius: 0 12px 12px 0 !important;
  background: rgba(126, 199, 255, 0.055) !important;
  color: inherit !important;
  text-decoration: none !important;
}

.messages-reply-quote:hover,
.messages-reply-quote:focus-visible {
  background: rgba(126, 199, 255, 0.09) !important;
  outline: none !important;
}

.messages-reply-quote-head {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  min-width: 0 !important;
  color: rgba(159, 235, 255, 0.95) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.messages-reply-quote-author.profile-name-link {
  font-size: inherit !important;
  font-weight: 900 !important;
}

.messages-reply-quote-text {
  min-width: 0 !important;
  color: rgba(224, 233, 249, 0.72) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.messages-reply-preview {
  min-width: 0 !important;
  margin-bottom: 8px !important;
}

.messages-reply-preview[hidden] {
  display: none !important;
}

.messages-reply-preview-card {
  position: relative !important;
  display: grid !important;
  gap: 5px !important;
  padding: 8px 38px 8px 10px !important;
  border: 1px solid rgba(126, 199, 255, 0.16) !important;
  border-radius: 16px !important;
  background: rgba(126, 199, 255, 0.06) !important;
}

.messages-reply-preview-label {
  color: rgba(159, 235, 255, 0.95) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.messages-reply-preview-card .messages-reply-quote {
  margin: 0 !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.messages-reply-preview-cancel {
  appearance: none !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,0.055) !important;
  color: rgba(224, 233, 249, 0.62) !important;
  font: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.messages-reply-preview-cancel:hover,
.messages-reply-preview-cancel:focus-visible {
  color: var(--text) !important;
  background: rgba(255,255,255,0.1) !important;
  outline: none !important;
}

.messages-message-item.is-targeted .messages-bubble {
  border-color: rgba(120, 225, 255, 0.62) !important;
  box-shadow: inset 0 0 0 1px rgba(120, 225, 255, 0.26), 0 0 24px rgba(120, 225, 255, 0.12) !important;
}

.messages-bubble-reply-button svg {
  width: 15px !important;
  height: 15px !important;
  fill: currentColor !important;
}

/* messages page: recipient search replaces dialog list */
.messages-conversations.is-search-results {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.messages-conversations.is-search-results .messages-recipient-result {
  appearance: none;
  position: relative;
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 7px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.9);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 12px 34px rgba(3, 12, 24, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.messages-conversations.is-search-results .messages-recipient-result:hover,
.messages-conversations.is-search-results .messages-recipient-result:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(120, 225, 255, 0.42);
  background: rgba(18, 38, 60, 0.96);
  outline: none;
}

.messages-conversations.is-search-results .messages-recipient-empty {
  margin: 0;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(15, 31, 49, 0.64);
  color: var(--muted);
  padding: 12px 14px;
  font-size: .9rem;
  line-height: 1.45;
}

/* Header global search refinements */
.search-results-dropdown-menu {
  max-height: calc(100vh - 96px);
}

.search-results-box {
  max-height: min(520px, calc(100vh - 116px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 199, 255, 0.38) rgba(255, 255, 255, 0.04);
}

.search-results-box::-webkit-scrollbar {
  width: 8px;
}

.search-results-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.search-results-box::-webkit-scrollbar-thumb {
  background: rgba(126, 199, 255, 0.38);
  border-radius: 999px;
}

.search-filter-mark {
  border-radius: 5px;
}

.search-filter-option.is-active .search-filter-mark {
  box-shadow: inset 0 0 0 3px rgba(8, 18, 31, 0.98), 0 0 14px rgba(126, 199, 255, 0.18);
}

.search-results-empty--loading strong {
  color: var(--accent);
}

.knowledge-card.is-search-target {
  outline: 2px solid rgba(126, 199, 255, 0.72);
  box-shadow: 0 0 0 6px rgba(126, 199, 255, 0.12), var(--shadow);
}

.search-result-hit {
  padding: 0 2px;
  border-radius: 4px;
  background: rgba(126, 199, 255, 0.18);
  color: inherit;
}

/* custom profile avatar editor */
.profile-avatar-settings-card {
  display: grid;
  gap: 14px;
}

.profile-avatar-current,
.profile-avatar-editor {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-avatar-editor.is-hidden,
.profile-avatar-editor[hidden] {
  display: none;
}

.profile-avatar-current-preview,
.profile-avatar-editor-preview {
  width: 148px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background-color: rgba(7, 16, 30, 0.92);
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(122, 184, 255, 0.16);
  user-select: none;
}

.profile-avatar-editor-preview {
  cursor: grab;
  touch-action: none;
}

.profile-avatar-editor-preview.is-dragging {
  cursor: grabbing;
}

.profile-avatar-current-info,
.profile-avatar-editor-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.profile-avatar-current-label {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

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

.profile-avatar-range-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-avatar-range {
  width: 100%;
  accent-color: var(--accent);
}

.profile-avatar-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-summary-avatar,
.profile-wall-avatar,
.dropdown-avatar,
.messages-recipient-result-avatar,
.messages-dialog-avatar,
.messages-chat-avatar {
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 640px) {
  .profile-avatar-current,
  .profile-avatar-editor {
    grid-template-columns: 1fr;
  }

  .profile-avatar-current-preview,
  .profile-avatar-editor-preview {
    width: min(100%, 180px);
  }
}

/* vForum initial forum system */
.forum-hero {
  padding-bottom: 18px;
}

.forum-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: stretch;
}

.forum-hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 24% 18%, rgba(126, 199, 255, 0.16), transparent 42%),
    rgba(255,255,255,0.035);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--muted);
}

.forum-hero-card span,
.forum-hero-card strong,
.forum-hero-card em {
  display: block;
  font-style: normal;
}

.forum-hero-card strong {
  color: var(--text);
  font-size: 1.35rem;
}

.forum-section {
  padding-top: 12px;
}

.forum-shell {
  overflow: visible;
}

.forum-app {
  display: grid;
  gap: 18px;
}

.forum-loading,
.forum-empty {
  border: 1px solid rgba(126, 199, 255, 0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  padding: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.forum-empty strong,
.forum-empty span {
  display: block;
}

.forum-empty strong {
  color: var(--text);
  margin-bottom: 4px;
}

.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 4px;
  flex-wrap: wrap;
}

.forum-breadcrumbs,
.forum-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.forum-breadcrumbs {
  color: var(--muted);
  font-weight: 700;
}

.forum-breadcrumbs a,
.forum-inline-button,
.forum-text-button {
  color: var(--accent-2);
  text-decoration: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.forum-breadcrumbs a:hover,
.forum-inline-button:hover,
.forum-text-button:hover,
.forum-breadcrumbs a:focus-visible,
.forum-inline-button:focus-visible,
.forum-text-button:focus-visible {
  color: var(--text);
  outline: none;
}

.forum-breadcrumb-sep {
  color: rgba(196,210,231,0.28);
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.forum-main,
.forum-side,
.forum-topic-page,
.forum-comments-list {
  display: grid;
  gap: 16px;
}

.forum-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(126, 199, 255, 0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.025);
  padding: 18px;
}

.forum-topline h2,
.forum-comments-head h2,
.forum-topic-post h2 {
  margin-bottom: 8px;
}

.forum-topline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.forum-create-toggle {
  flex: 0 0 auto;
  margin-top: 4px;
}

.forum-section-card,
.forum-subsection-card,
.forum-topic-row,
.forum-topic-post,
.forum-comment,
.forum-comments-block,
.forum-note-card,
.forum-stats {
  border: 1px solid rgba(126, 199, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(11, 28, 49, 0.72), rgba(7, 19, 34, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 14px 30px rgba(0,0,0,0.13);
}

.forum-section-card,
.forum-subsection-card,
.forum-topic-row,
.forum-topic-post,
.forum-comment,
.forum-comments-block,
.forum-note-card {
  padding: 18px;
}

.forum-card-main,
.forum-topic-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.forum-card-main h3,
.forum-topic-link h3 {
  margin: 5px 0 8px;
  font-size: 1.28rem;
}

.forum-card-main p,
.forum-topic-link p,
.forum-note-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.forum-card-kicker,
.forum-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid rgba(126, 199, 255, 0.16);
  background: rgba(126, 199, 255, 0.07);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.forum-status.is-closed,
.forum-subsection-card.is-closed .forum-card-kicker {
  border-color: rgba(239, 83, 80, 0.22);
  background: rgba(239, 83, 80, 0.07);
  color: #ff9b9b;
}

.forum-status.is-open {
  border-color: rgba(78, 224, 115, 0.2);
  background: rgba(78, 224, 115, 0.075);
  color: #91f5ad;
}

.forum-card-meta,
.forum-topic-row-foot,
.forum-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.forum-card-meta span,
.forum-topic-row-foot {
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.forum-card-actions {
  justify-content: flex-end;
}

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

.forum-stats div {
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  padding: 13px;
}

.forum-stats strong,
.forum-stats span,
.forum-note-card strong,
.forum-note-card span {
  display: block;
}

.forum-stats strong {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}

.forum-stats span {
  color: var(--muted);
  margin-top: 6px;
}

.forum-note-card strong {
  color: var(--text);
  margin-bottom: 7px;
}

.forum-form {
  display: grid;
  gap: 14px;
  width: 100%;
  border: 1px solid rgba(126, 199, 255, 0.12);
  border-radius: 20px;
  background: rgba(5, 17, 31, 0.5);
  padding: 16px;
}

.forum-form--compact {
  max-width: 520px;
}

.forum-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.forum-form input[type="text"],
.forum-form textarea {
  width: 100%;
  border: 1px solid rgba(126, 199, 255, 0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.forum-form textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.55;
}

.forum-form input[type="text"]:focus,
.forum-form textarea:focus {
  border-color: rgba(126, 199, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(126, 199, 255, 0.08);
}

.forum-checkbox {
  display: flex !important;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 10px !important;
  color: var(--muted) !important;
}

.forum-checkbox input {
  width: 18px;
  height: 18px;
}

.forum-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.forum-submit-button {
  justify-content: center;
  width: auto;
  min-width: 180px;
}

.forum-topic-list {
  display: grid;
  gap: 14px;
}

.forum-topic-row-head,
.forum-topic-post-head,
.forum-comments-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.forum-author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.forum-author-avatar-link,
.forum-author-profile {
  color: inherit;
  text-decoration: none;
}

.forum-author-avatar {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(126, 199, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.forum-author-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.forum-author-name {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-author-text span:last-child:not(.forum-author-name) {
  color: var(--muted);
  font-size: 0.9rem;
}

.forum-topic-counts {
  min-width: 68px;
  border-radius: 16px;
  background: rgba(126, 199, 255, 0.07);
  border: 1px solid rgba(126, 199, 255, 0.12);
  padding: 8px 10px;
  text-align: center;
}

.forum-topic-counts span,
.forum-topic-counts small {
  display: block;
}

.forum-topic-counts span {
  color: var(--text);
  font-weight: 800;
  font-size: 1.18rem;
}

.forum-topic-counts small {
  color: var(--muted);
}

.forum-topic-post--main {
  padding: 22px;
}

.forum-rich-text {
  color: var(--text);
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forum-rich-text p {
  margin-bottom: 12px;
}

.forum-rich-text p:last-child {
  margin-bottom: 0;
}

.forum-comments-block {
  display: grid;
  gap: 16px;
}

.forum-comments-head {
  margin-bottom: 0;
}

.forum-comments-head span {
  color: var(--muted);
  font-weight: 700;
}

.forum-comment {
  display: grid;
  gap: 12px;
  background: rgba(255,255,255,0.025);
}

.forum-comment-form {
  margin-top: 2px;
}

@media (max-width: 980px) {
  .forum-hero-grid,
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .forum-hero-card {
    display: none;
  }

  .forum-side {
    order: -1;
  }
}

@media (max-width: 640px) {
  .forum-shell {
    padding: 18px;
  }

  .forum-toolbar,
  .forum-topline,
  .forum-topic-row-head,
  .forum-topic-post-head,
  .forum-comments-head {
    align-items: stretch;
  }

  .forum-toolbar-actions,
  .forum-form-actions {
    width: 100%;
  }

  .forum-submit-button,
  .forum-inline-button {
    width: 100%;
  }

  .forum-stats {
    grid-template-columns: 1fr 1fr;
  }

  .forum-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
}


@media (max-width: 640px) {
  .forum-section-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .forum-section-panel-head {
    display: grid;
  }

  .forum-section-open {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .forum-tree {
    padding-left: 0;
  }

  .forum-tree-branch {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .forum-tree-branch::before {
    left: 12px;
  }

  .forum-tree-line::after {
    left: 12px;
    width: 18px;
  }

  .forum-tree-content {
    padding: 12px;
  }

  .forum-tree-topic,
  .forum-tree-more,
  .forum-tree-topic-empty {
    width: 100%;
    justify-content: space-between;
  }
}

/* Forum minimal tree layout */
.forum-section {
  padding-top: 44px;
}

.forum-shell {
  padding: 24px 26px 28px;
}

.forum-app {
  gap: 14px;
}

.forum-minimal-root {
  display: grid;
  gap: 18px;
}

.forum-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.forum-section-panels--minimal {
  gap: 22px;
}

.forum-section-panel {
  border: 1px solid rgba(126, 199, 255, 0.12);
  border-radius: 20px;
  background: rgba(7, 19, 34, 0.42);
  box-shadow: none;
  padding: 22px 24px;
}

.forum-section-panel-head {
  display: block;
}

.forum-section-panel-head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.forum-section-title-link {
  color: inherit;
  text-decoration: none;
}

.forum-section-title-link:hover,
.forum-section-title-link:focus-visible {
  color: var(--accent-2);
  outline: none;
}

.forum-section-panel-head p,
.forum-section-view-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.forum-tree {
  margin-top: 18px;
  padding-left: 0;
  gap: 0;
}

.forum-tree-branch {
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 74px;
}

.forum-tree-branch::before {
  left: 16px;
  width: 2px;
  background: rgba(126, 199, 255, 0.28);
}

.forum-tree-branch:first-child::before {
  top: 23px;
}

.forum-tree-branch:last-child::before {
  bottom: calc(100% - 23px);
}

.forum-tree-line::after {
  left: 16px;
  top: 23px;
  width: 32px;
  background: rgba(126, 199, 255, 0.28);
}

.forum-tree-content,
.forum-tree-branch.is-closed .forum-tree-content {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 0 14px 18px;
}

.forum-tree-subsection-head {
  gap: 8px;
}

.forum-tree-subsection-title {
  font-size: 1.05rem;
  line-height: 1.25;
}

.forum-tree-description,
.forum-section-panel-meta,
.forum-tree-meta {
  display: none;
}

.forum-tree-topics {
  margin-top: 5px;
  gap: 6px 14px;
}

.forum-tree-topic,
.forum-tree-more,
.forum-tree-topic-empty {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 600;
}

.forum-tree-topic:hover,
.forum-tree-topic:focus-visible,
.forum-tree-more:hover,
.forum-tree-more:focus-visible {
  color: var(--accent-2);
  border-color: transparent;
  background: transparent;
}

.forum-tree-more {
  color: var(--accent-2);
}

.forum-tree-actions {
  margin-top: 5px;
  justify-content: flex-start;
  font-size: 0.9rem;
}

.forum-section-view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.forum-section-view-head h2 {
  margin-bottom: 8px;
}

.forum-subsection-page .forum-section-view-head {
  border-bottom: 1px solid rgba(126, 199, 255, 0.11);
  padding-bottom: 14px;
}

.forum-subsection-summary span,
.forum-page-link,
.forum-page-dots {
  background: transparent;
}

.forum-topic-row {
  box-shadow: none;
}

.forum-topic-row-foot span {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .forum-section {
    padding-top: 28px;
  }

  .forum-shell {
    padding: 18px;
  }

  .forum-tree-branch {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .forum-tree-branch::before {
    left: 10px;
  }

  .forum-tree-line::after {
    left: 10px;
    width: 20px;
  }

  .forum-tree-content,
  .forum-tree-branch.is-closed .forum-tree-content {
    padding-left: 10px;
  }

  .forum-tree-topic,
  .forum-tree-more,
  .forum-tree-topic-empty {
    width: auto;
    justify-content: flex-start;
  }
}


                                          
.forum-page-hero-title {
  padding-bottom: 0;
}

.forum-page-hero-title .eyebrow {
  margin-bottom: 0;
}

.page-shell[data-page="forum"] .forum-section {
  padding-top: 22px;
}

.page-shell[data-page="forum"] .forum-app {
  gap: 18px;
}

.page-shell[data-page="forum"] .forum-section-panels--minimal {
  gap: 22px;
}

.page-shell[data-page="forum"] .forum-section-panel {
  overflow: hidden;
}

.page-shell[data-page="forum"] .forum-tree {
  position: relative;
  margin-top: 8px;
  padding-left: 0;
  gap: 0;
}

.page-shell[data-page="forum"] .forum-tree::before {
  content: '';
  position: absolute;
  left: 16px;
  top: -2px;
  bottom: 23px;
  width: 2px;
  border-radius: 0 0 999px 999px;
  background: rgba(126, 199, 255, 0.28);
  pointer-events: none;
}

.page-shell[data-page="forum"] .forum-tree-branch {
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 70px;
}

.page-shell[data-page="forum"] .forum-tree-branch::before {
  display: none;
}

.page-shell[data-page="forum"] .forum-tree-line::after {
  left: 16px;
  top: 23px;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: rgba(126, 199, 255, 0.28);
}

.page-shell[data-page="forum"] .forum-tree-content,
.page-shell[data-page="forum"] .forum-tree-branch.is-closed .forum-tree-content {
  padding: 12px 0 14px 18px;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-section {
    padding-top: 18px;
  }

  .page-shell[data-page="forum"] .forum-tree::before {
    left: 10px;
    bottom: 22px;
  }

  .page-shell[data-page="forum"] .forum-tree-branch {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .page-shell[data-page="forum"] .forum-tree-line::after {
    left: 10px;
    width: 20px;
  }
}

                                                                                   
.page-shell[data-page="forum"] .forum-section-panel,
.page-shell[data-page="forum"] .forum-topic-row,
.page-shell[data-page="forum"] .forum-topic-post,
.page-shell[data-page="forum"] .forum-comment,
.page-shell[data-page="forum"] .forum-comments-block,
.page-shell[data-page="forum"] .forum-note-card {
  border: 1px solid rgba(91, 126, 166, 0.28);
  background:
    linear-gradient(180deg, rgba(20, 34, 51, 0.96) 0%, rgba(14, 27, 44, 0.94) 100%),
    radial-gradient(circle at top right, rgba(87, 216, 255, 0.08), transparent 42%);
  box-shadow:
    0 16px 44px rgba(3, 12, 24, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-shell[data-page="forum"] .forum-section-panel {
  padding: 24px 28px 28px;
}

.page-shell[data-page="forum"] .forum-tree {
  margin-top: 8px;
}

.page-shell[data-page="forum"] .forum-tree::before {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-tree-branch::before {
  content: '';
  display: block !important;
  position: absolute;
  left: 16px;
  top: -2px;
  bottom: -2px;
  width: 2px;
  border-radius: 0;
  background: rgba(126, 199, 255, 0.28);
  pointer-events: none;
}

.page-shell[data-page="forum"] .forum-tree-branch:first-child::before {
  top: -2px;
}

.page-shell[data-page="forum"] .forum-tree-branch:last-child::before {
  content: '';
  display: block !important;
  position: absolute;
  left: 16px;
  top: -2px;
  width: 32px;
  height: 25px;
  background: transparent;
  border-left: 2px solid rgba(126, 199, 255, 0.28);
  border-bottom: 2px solid rgba(126, 199, 255, 0.28);
  border-bottom-left-radius: 12px;
  pointer-events: none;
}

.page-shell[data-page="forum"] .forum-tree-branch:last-child .forum-tree-line::after {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-tree-subsection-head {
  align-items: baseline;
  gap: 8px 12px;
}

.page-shell[data-page="forum"] .forum-tree-inline-action {
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.page-shell[data-page="forum"] .forum-tree-actions {
  display: none !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-section-panel {
    padding: 20px 18px 22px;
  }

  .page-shell[data-page="forum"] .forum-tree-branch::before {
    left: 10px;
  }

  .page-shell[data-page="forum"] .forum-tree-branch:last-child::before {
    left: 10px;
    width: 20px;
  }
}

/* Forum tree moderator icon buttons: aligned with private/admin message action buttons */
.page-shell[data-page="forum"] .forum-tree-toggle-button {
  appearance: none !important;
  position: relative !important;
  z-index: 2 !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: -3px 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, opacity 0.18s ease !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
  fill: currentColor !important;
  pointer-events: none !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button.is-lock {
  background: rgba(255, 73, 73, 0.12) !important;
  color: #ff5b5b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18) !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button.is-lock:hover,
.page-shell[data-page="forum"] .forum-tree-toggle-button.is-lock:focus-visible {
  background: rgba(255, 73, 73, 0.18) !important;
  color: #ff7272 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.28) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button.is-unlock {
  background: rgba(123, 189, 255, 0.12) !important;
  color: #9fd2ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18) !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button.is-unlock:hover,
.page-shell[data-page="forum"] .forum-tree-toggle-button.is-unlock:focus-visible {
  background: rgba(123, 189, 255, 0.18) !important;
  color: #cce8ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.32) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button:disabled,
.page-shell[data-page="forum"] .forum-tree-toggle-button.is-pending {
  cursor: wait !important;
  opacity: 0.68 !important;
  transform: none !important;
}

.page-shell[data-page="forum"] .forum-closed-lock-badge {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -1px 0 0 2px;
  border-radius: 8px;
  color: #ff5b5b;
  background: rgba(255, 73, 73, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.16);
}

.page-shell[data-page="forum"] .forum-closed-lock-badge svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor;
}

.page-shell[data-page="forum"] .forum-tree-inline-action {
  display: none !important;
}


                                                                                                  
.page-shell[data-page="forum"] .forum-minimal-root {
  position: relative;
}

.page-shell[data-page="forum"] .forum-actions-row--floating {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 4;
  margin: 0 !important;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.page-shell[data-page="forum"] .forum-actions-row--floating > * {
  pointer-events: auto;
}

.page-shell[data-page="forum"] .forum-actions-row--form {
  margin: 0 0 18px !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button,
.page-shell[data-page="forum"] .forum-closed-lock-badge {
  user-select: none;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button.is-lock,
.page-shell[data-page="forum"] .forum-closed-lock-badge {
  background: rgba(255, 73, 73, 0.12) !important;
  color: #ff5b5b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18) !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button.is-lock:hover,
.page-shell[data-page="forum"] .forum-tree-toggle-button.is-lock:focus-visible {
  background: rgba(255, 73, 73, 0.18) !important;
  color: #ff7272 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.28) !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button.is-unlock {
  background: rgba(123, 189, 255, 0.12) !important;
  color: #9fd2ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18) !important;
}

.page-shell[data-page="forum"] .forum-tree-toggle-button.is-unlock:hover,
.page-shell[data-page="forum"] .forum-tree-toggle-button.is-unlock:focus-visible {
  background: rgba(123, 189, 255, 0.18) !important;
  color: #cce8ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.32) !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-actions-row--floating {
    position: static;
    margin: 0 0 12px !important;
    justify-content: flex-start;
  }
}

/* Forum structure management controls: rename/delete near section and subsection titles */
.page-shell[data-page="forum"] .forum-title-row,
.page-shell[data-page="forum"] .forum-tree-subsection-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-shell[data-page="forum"] .forum-title-row h3,
.page-shell[data-page="forum"] .forum-section-panel-head .forum-title-row h3 {
  margin: 0;
}

.page-shell[data-page="forum"] .forum-section-panel-head .forum-title-row + p {
  margin-top: 8px;
}

.page-shell[data-page="forum"] .forum-structure-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
  vertical-align: middle;
}

.page-shell[data-page="forum"] .forum-structure-action-button,
.page-shell[data-page="forum"] .forum-structure-delete-pair,
.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-toggle,
.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-direct {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  margin: 0 !important;
}

.page-shell[data-page="forum"] .forum-structure-action-button {
  padding: 0 !important;
}

.page-shell[data-page="forum"] .forum-structure-action-button svg,
.page-shell[data-page="forum"] .forum-structure-delete-pair svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
  fill: currentColor !important;
  pointer-events: none !important;
}

.page-shell[data-page="forum"] .forum-structure-delete-pair {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-toggle,
.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-direct {
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
}

.page-shell[data-page="forum"] .forum-rename-form {
  width: min(100%, 560px);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.page-shell[data-page="forum"] .forum-rename-form input {
  min-width: min(280px, 100%);
  flex: 1 1 260px;
  height: 36px;
  border: 1px solid rgba(126, 199, 255, 0.22);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.72);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-shell[data-page="forum"] .forum-rename-form input:focus {
  border-color: rgba(126, 199, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(126, 199, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-shell[data-page="forum"] .forum-rename-save,
.page-shell[data-page="forum"] .forum-rename-cancel {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-direct:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-structure-actions {
    gap: 5px;
  }

  .page-shell[data-page="forum"] .forum-rename-form {
    align-items: stretch;
  }

  .page-shell[data-page="forum"] .forum-rename-save,
  .page-shell[data-page="forum"] .forum-rename-cancel {
    flex: 1 1 auto;
  }
}

                                                                                      
.page-shell[data-page="forum"] .forum-section-panel-head > div {
  width: 100%;
  min-width: 0;
}

.page-shell[data-page="forum"] .forum-title-row,
.page-shell[data-page="forum"] .forum-tree-subsection-head {
  width: 100%;
}

.page-shell[data-page="forum"] .forum-title-row > h3,
.page-shell[data-page="forum"] .forum-tree-subsection-title {
  min-width: 0;
  margin-right: auto !important;
}

.page-shell[data-page="forum"] .forum-structure-actions {
  margin-left: 0 !important;
  justify-content: flex-end;
}

.page-shell[data-page="forum"] .forum-title-row .forum-structure-actions {
  margin-left: auto !important;
}

.page-shell[data-page="forum"] .forum-tree-subsection-head .forum-closed-lock-badge,
.page-shell[data-page="forum"] .forum-tree-subsection-head .forum-tree-toggle-button {
  margin-left: auto;
}

.page-shell[data-page="forum"] .forum-tree-subsection-head .forum-tree-toggle-button + .forum-structure-actions,
.page-shell[data-page="forum"] .forum-tree-subsection-head .forum-closed-lock-badge + .forum-structure-actions {
  margin-left: 0 !important;
}

.page-shell[data-page="forum"] .forum-structure-action-button.profile-wall-post-edit {
  background: rgba(123, 189, 255, 0.12) !important;
  color: #9fd2ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18) !important;
}

.page-shell[data-page="forum"] .forum-structure-action-button.profile-wall-post-edit:hover,
.page-shell[data-page="forum"] .forum-structure-action-button.profile-wall-post-edit:focus-visible {
  background: rgba(123, 189, 255, 0.18) !important;
  color: #cce8ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.32) !important;
  outline: none !important;
  transform: translateY(-1px);
}

.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-toggle,
.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-direct {
  background: rgba(255, 73, 73, 0.12) !important;
  color: #ff5b5b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18) !important;
}

.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-toggle:hover,
.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-toggle:focus-visible,
.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-direct:hover,
.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-direct:focus-visible {
  background: rgba(255, 73, 73, 0.18) !important;
  color: #ff7272 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.28) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.page-shell[data-page="forum"] .forum-structure-delete-pair .profile-wall-delete-icon img {
  width: 12px !important;
  height: 12px !important;
  display: block !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-title-row,
  .page-shell[data-page="forum"] .forum-tree-subsection-head {
    flex-wrap: wrap;
  }

  .page-shell[data-page="forum"] .forum-tree-subsection-title {
    flex: 1 1 calc(100% - 78px);
  }
}


/* Forum closed subsection marker: players see it on the left before subsection title */
.page-shell[data-page="forum"] .forum-tree-subsection-head .forum-closed-lock-badge {
  margin-left: 0 !important;
  margin-right: 8px !important;
  order: 0;
}

.page-shell[data-page="forum"] .forum-tree-subsection-head .forum-closed-lock-badge + .forum-tree-subsection-title {
  order: 1;
  margin-right: auto !important;
}

.page-shell[data-page="forum"] .forum-tree-subsection-head .forum-tree-subsection-title + .forum-tree-toggle-button {
  margin-left: auto !important;
}

.page-shell[data-page="forum"] .forum-tree-subsection-head .forum-tree-subsection-title + .forum-structure-actions {
  margin-left: auto !important;
}


/* Forum: create subsection directly from root section cards */
.page-shell[data-page="forum"] .forum-section-title-row .forum-section-create-subsection-button {
  margin-left: auto;
  white-space: nowrap;
  flex: 0 0 auto;
}

.page-shell[data-page="forum"] .forum-section-title-row .forum-section-create-subsection-button + .forum-structure-actions {
  margin-left: 2px !important;
}

.page-shell[data-page="forum"] .forum-section-create-subsection-form {
  margin: 14px 0 6px 48px;
  max-width: min(560px, calc(100% - 48px));
}

.page-shell[data-page="forum"] .forum-section-create-subsection-form .forum-form {
  margin: 0;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-section-title-row .forum-section-create-subsection-button {
    order: 3;
    margin-left: 0;
  }

  .page-shell[data-page="forum"] .forum-section-create-subsection-form {
    margin: 12px 0 4px;
    max-width: 100%;
  }
}


/* Forum: place create-subsection control above section action buttons */
.page-shell[data-page="forum"] .forum-section-admin-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

.page-shell[data-page="forum"] .forum-section-admin-stack .forum-section-create-subsection-button {
  order: 0;
  margin-left: 0 !important;
  margin-right: 0;
  white-space: nowrap;
}

.page-shell[data-page="forum"] .forum-section-admin-stack .forum-structure-actions {
  order: 1;
  margin-left: 0 !important;
  justify-content: flex-end;
}

.page-shell[data-page="forum"] .forum-section-title-row .forum-section-admin-stack .forum-section-create-subsection-button + .forum-structure-actions {
  margin-left: 0 !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-section-admin-stack {
    width: 100%;
    align-items: flex-start;
    margin-left: 0;
    order: 3;
  }
}

/* Forum: informative compact subsection/topic layout */
.page-shell[data-page="forum"] .forum-tree-subsection-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.page-shell[data-page="forum"] .forum-subsection-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.page-shell[data-page="forum"] .forum-subsection-title-group .forum-tree-subsection-title {
  margin-right: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-shell[data-page="forum"] .forum-subsection-stats {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(58px, auto));
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted);
}

.page-shell[data-page="forum"] .forum-subsection-stats > span {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(126, 199, 255, 0.08);
}

.page-shell[data-page="forum"] .forum-subsection-stats strong {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1;
}

.page-shell[data-page="forum"] .forum-subsection-stats small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

.page-shell[data-page="forum"] .forum-tree-topics--pinned {
  margin-top: 6px;
}

.page-shell[data-page="forum"] .forum-tree-topic--pinned {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.page-shell[data-page="forum"] .forum-tree-topic-pin {
  color: #ffcf7a;
  font-size: 0.62rem;
  line-height: 1;
  filter: drop-shadow(0 0 5px rgba(255, 207, 122, 0.22));
}

.page-shell[data-page="forum"] .forum-topic-list {
  gap: 6px !important;
}

.page-shell[data-page="forum"] .forum-topic-row--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(20, 34, 51, 0.88) 0%, rgba(12, 25, 42, 0.86) 100%),
    radial-gradient(circle at top right, rgba(87, 216, 255, 0.055), transparent 38%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025) !important;
}

.page-shell[data-page="forum"] .forum-topic-row--compact.is-pinned {
  border-color: rgba(255, 207, 122, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(28, 37, 50, 0.92) 0%, rgba(14, 27, 44, 0.88) 100%),
    radial-gradient(circle at top left, rgba(255, 207, 122, 0.09), transparent 35%) !important;
}

.page-shell[data-page="forum"] .forum-topic-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.page-shell[data-page="forum"] .forum-topic-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-shell[data-page="forum"] .forum-topic-row--compact .forum-topic-link {
  display: inline-block !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text) !important;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.page-shell[data-page="forum"] .forum-topic-row--compact .forum-topic-link:hover,
.page-shell[data-page="forum"] .forum-topic-row--compact .forum-topic-link:focus-visible {
  color: var(--accent-2) !important;
  outline: none;
}

.page-shell[data-page="forum"] .forum-topic-meta-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.page-shell[data-page="forum"] .forum-inline-author {
  text-decoration: none;
  color: inherit;
}

.page-shell[data-page="forum"] .forum-inline-author:hover .profile-role-name,
.page-shell[data-page="forum"] .forum-inline-author:focus-visible .profile-role-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-shell[data-page="forum"] .forum-topic-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.page-shell[data-page="forum"] .forum-topic-stat {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(126, 199, 255, 0.08);
  color: var(--muted);
}

.page-shell[data-page="forum"] .forum-topic-stat strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
}

.page-shell[data-page="forum"] .forum-topic-stat small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

.page-shell[data-page="forum"] .forum-topic-pin-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 207, 122, 0.24);
  background: rgba(255, 207, 122, 0.1);
  color: #ffcf7a;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.page-shell[data-page="forum"] .forum-topic-pin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.page-shell[data-page="forum"] .forum-topic-pin-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.page-shell[data-page="forum"] .forum-topic-pin-button.is-pin {
  background: rgba(123, 189, 255, 0.12);
  color: #9fd2ff;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18);
}

.page-shell[data-page="forum"] .forum-topic-pin-button.is-unpin {
  background: rgba(255, 207, 122, 0.12);
  color: #ffcf7a;
  box-shadow: inset 0 0 0 1px rgba(255, 207, 122, 0.2);
}

.page-shell[data-page="forum"] .forum-topic-pin-button:hover,
.page-shell[data-page="forum"] .forum-topic-pin-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.page-shell[data-page="forum"] .forum-topic-pin-button.is-pin:hover,
.page-shell[data-page="forum"] .forum-topic-pin-button.is-pin:focus-visible {
  background: rgba(123, 189, 255, 0.18);
  color: #cce8ff;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.32);
}

.page-shell[data-page="forum"] .forum-topic-pin-button.is-unpin:hover,
.page-shell[data-page="forum"] .forum-topic-pin-button.is-unpin:focus-visible {
  background: rgba(255, 207, 122, 0.18);
  color: #ffe3a6;
  box-shadow: inset 0 0 0 1px rgba(255, 207, 122, 0.34);
}

.page-shell[data-page="forum"] .forum-topic-pin-button:disabled,
.page-shell[data-page="forum"] .forum-topic-pin-button.is-pending {
  cursor: wait;
  opacity: 0.58;
  transform: none !important;
}

.page-shell[data-page="forum"] .forum-topic-post-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.page-shell[data-page="forum"] .forum-topic-post-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-shell[data-page="forum"] .forum-topic-post-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 199, 255, 0.1);
  background: rgba(255,255,255,0.028);
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-tree-subsection-head {
    flex-wrap: wrap !important;
  }

  .page-shell[data-page="forum"] .forum-subsection-title-group {
    flex: 1 1 100%;
  }

  .page-shell[data-page="forum"] .forum-subsection-stats {
    margin-left: 0;
  }

  .page-shell[data-page="forum"] .forum-topic-row--compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .page-shell[data-page="forum"] .forum-topic-side {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.page-shell[data-page="forum"] .forum-tree-topics--pinned:empty {
  display: none;
}

                                                                          
.page-shell[data-page="forum"] .forum-toolbar--breadcrumbs-only {
  justify-content: flex-start;
  padding-bottom: 2px;
}

.page-shell[data-page="forum"] .forum-toolbar--breadcrumbs-only .forum-breadcrumbs {
  width: 100%;
}

.page-shell[data-page="forum"] .forum-breadcrumbs,
.page-shell[data-page="forum"] .forum-breadcrumbs a,
.page-shell[data-page="forum"] .forum-breadcrumbs span {
  color: rgba(188, 199, 214, 0.84) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
}

.page-shell[data-page="forum"] .forum-breadcrumbs a {
  text-decoration: none;
}

.page-shell[data-page="forum"] .forum-breadcrumbs a:hover,
.page-shell[data-page="forum"] .forum-breadcrumbs a:focus-visible {
  color: rgba(232, 240, 250, 0.96) !important;
  outline: none;
}

.page-shell[data-page="forum"] .forum-breadcrumb-sep {
  color: rgba(188, 199, 214, 0.45) !important;
  font-weight: 400 !important;
}

.page-shell[data-page="forum"] .forum-toolbar-actions {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-subsection-stats {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  min-width: 172px;
  margin-left: auto !important;
  color: var(--muted) !important;
  text-align: right;
}

.page-shell[data-page="forum"] .forum-subsection-stats > span {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.page-shell[data-page="forum"] .forum-subsection-stats strong {
  color: var(--text) !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

.page-shell[data-page="forum"] .forum-subsection-stats small {
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

.page-shell[data-page="forum"] .forum-topic-stat {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  min-width: 78px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
}

.page-shell[data-page="forum"] .forum-topic-stat strong {
  color: var(--text) !important;
  font-size: 0.92rem !important;
}

.page-shell[data-page="forum"] .forum-topic-stat small {
  color: var(--muted) !important;
  font-size: 0.78rem !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-subsection-stats {
    min-width: 0;
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }

  .page-shell[data-page="forum"] .forum-topic-stat {
    justify-content: flex-start !important;
  }
}

                                                                                         
.page-shell[data-page="forum"] .forum-subsection-page .forum-section-view-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.page-shell[data-page="forum"] .forum-subsection-page .forum-section-view-head > div:empty {
  display: none;
}

.page-shell[data-page="forum"] .forum-topic-post--main .forum-topic-post-stats {
  margin-top: 8px;
}

                                                      
.page-shell[data-page="forum"] .forum-subsection-controls {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.page-shell[data-page="forum"] .forum-subsection-controls--bottom {
  margin: 14px 0 0;
}

.page-shell[data-page="forum"] .forum-subsection-controls-create {
  flex: 0 0 auto;
  min-width: 0;
}

.page-shell[data-page="forum"] .forum-subsection-controls .forum-create-toggle {
  margin: 0 !important;
}

.page-shell[data-page="forum"] .forum-subsection-controls .forum-pagination,
.page-shell[data-page="forum"] .forum-subsection-controls .profile-wall-pagination {
  flex: 0 0 auto;
  margin: 0 !important;
  justify-content: flex-end;
}

.page-shell[data-page="forum"] .forum-page-link.profile-wall-pagination-button,
.page-shell[data-page="forum"] .forum-page-dots.profile-wall-pagination-ellipsis {
  min-width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.page-shell[data-page="forum"] .forum-page-dots.profile-wall-pagination-ellipsis {
  border: 0 !important;
  background: transparent !important;
  padding: 0 2px !important;
}

.page-shell[data-page="forum"] .forum-topic-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: 4px;
  flex: 0 0 auto;
}

.page-shell[data-page="forum"] .forum-topic-action-button,
.page-shell[data-page="forum"] .forum-topic-pin-button,
.page-shell[data-page="forum"] .forum-topic-delete-pair,
.page-shell[data-page="forum"] .forum-topic-delete-pair .profile-wall-delete-toggle,
.page-shell[data-page="forum"] .forum-topic-delete-pair .profile-wall-delete-direct {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  margin: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-action-button,
.page-shell[data-page="forum"] .forum-topic-pin-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.page-shell[data-page="forum"] .forum-topic-action-button svg,
.page-shell[data-page="forum"] .forum-topic-pin-button svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
  fill: currentColor !important;
  pointer-events: none !important;
}

.page-shell[data-page="forum"] .forum-topic-lock-button.is-lock {
  background: rgba(255, 73, 73, 0.12) !important;
  color: #ff5b5b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18) !important;
}

.page-shell[data-page="forum"] .forum-topic-lock-button.is-lock:hover,
.page-shell[data-page="forum"] .forum-topic-lock-button.is-lock:focus-visible {
  background: rgba(255, 73, 73, 0.18) !important;
  color: #ff7272 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 114, 114, 0.28) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.page-shell[data-page="forum"] .forum-topic-lock-button.is-unlock {
  background: rgba(123, 189, 255, 0.12) !important;
  color: #9fd2ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18) !important;
}

.page-shell[data-page="forum"] .forum-topic-lock-button.is-unlock:hover,
.page-shell[data-page="forum"] .forum-topic-lock-button.is-unlock:focus-visible {
  background: rgba(123, 189, 255, 0.18) !important;
  color: #cce8ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.32) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.page-shell[data-page="forum"] .forum-topic-action-button:disabled,
.page-shell[data-page="forum"] .forum-topic-action-button.is-pending {
  cursor: wait;
  opacity: 0.58;
  transform: none !important;
}

.page-shell[data-page="forum"] .forum-topic-closed-badge {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff5b5b;
  background: rgba(255, 73, 73, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.18);
}

.page-shell[data-page="forum"] .forum-topic-closed-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.page-shell[data-page="forum"] .forum-topic-row--compact.is-closed {
  border-color: rgba(255, 91, 91, 0.16) !important;
}

.page-shell[data-page="forum"] .forum-topic-title-line .forum-rename-form,
.page-shell[data-page="forum"] .forum-topic-title-edit-block .forum-rename-form {
  width: min(100%, 680px);
}

.page-shell[data-page="forum"] .forum-topic-title-edit-block {
  margin: 10px 0 12px;
}

.page-shell[data-page="forum"] .forum-topic-text-edit-form {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-subsection-controls {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .page-shell[data-page="forum"] .forum-subsection-controls .forum-pagination,
  .page-shell[data-page="forum"] .forum-subsection-controls .profile-wall-pagination {
    margin-left: auto !important;
  }

  .page-shell[data-page="forum"] .forum-topic-actions {
    margin-left: 0;
  }
}

                                                                
.page-shell[data-page="forum"] .forum-topic-row--compact.is-pinned {
  border-color: rgba(91, 126, 166, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(20, 34, 51, 0.88) 0%, rgba(12, 25, 42, 0.86) 100%),
    radial-gradient(circle at top right, rgba(87, 216, 255, 0.055), transparent 38%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025) !important;
}

.page-shell[data-page="forum"] .forum-topic-pin-badge {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-topic-pin-marker {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: rgba(150, 184, 219, 0.88);
  opacity: 0.92;
  vertical-align: middle;
}

.page-shell[data-page="forum"] .forum-topic-pin-marker svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  filter: drop-shadow(0 0 4px rgba(126, 199, 255, 0.12));
}

.page-shell[data-page="forum"] .forum-tree-topic--pinned .forum-topic-pin-marker {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  color: rgba(150, 184, 219, 0.78);
}

.page-shell[data-page="forum"] .forum-tree-topic--pinned .forum-topic-pin-marker svg {
  width: 12px;
  height: 12px;
}

.page-shell[data-page="forum"] .forum-tree-topic-pin {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-subsection-controls {
  min-height: 30px;
  margin: 0 0 10px !important;
  gap: 12px !important;
}

.page-shell[data-page="forum"] .forum-subsection-controls--bottom {
  margin: 10px 0 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-list + .forum-subsection-controls,
.page-shell[data-page="forum"] .forum-subsection-controls + .forum-topic-list {
  margin-top: 0;
}

.page-shell[data-page="forum"] .forum-pagination.profile-wall-pagination {
  gap: 6px !important;
}

.page-shell[data-page="forum"] .forum-page-link.profile-wall-pagination-button,
.page-shell[data-page="forum"] .forum-page-nav.profile-wall-pagination-button,
.page-shell[data-page="forum"] .forum-page-dots.profile-wall-pagination-ellipsis {
  min-width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.page-shell[data-page="forum"] .forum-page-link.profile-wall-pagination-button,
.page-shell[data-page="forum"] .forum-page-nav.profile-wall-pagination-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(93, 137, 192, 0.22) !important;
  background: rgba(8, 20, 36, 0.82) !important;
  color: var(--text) !important;
  cursor: pointer !important;
  padding: 0 10px !important;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, opacity 0.18s ease !important;
}

.page-shell[data-page="forum"] .forum-page-link.profile-wall-pagination-button:hover,
.page-shell[data-page="forum"] .forum-page-link.profile-wall-pagination-button:focus-visible,
.page-shell[data-page="forum"] .forum-page-nav.profile-wall-pagination-button:hover,
.page-shell[data-page="forum"] .forum-page-nav.profile-wall-pagination-button:focus-visible {
  outline: none !important;
  border-color: rgba(114, 173, 238, 0.42) !important;
  background: rgba(14, 30, 49, 0.92) !important;
  transform: translateY(-1px) !important;
}

.page-shell[data-page="forum"] .forum-page-link.profile-wall-pagination-button.is-active {
  background: rgba(72, 143, 210, 0.2) !important;
  border-color: rgba(114, 173, 238, 0.5) !important;
}

.page-shell[data-page="forum"] .forum-page-nav.is-disabled {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.45 !important;
  cursor: default !important;
  pointer-events: none !important;
  transform: none !important;
  border: 1px solid rgba(93, 137, 192, 0.22) !important;
  background: rgba(8, 20, 36, 0.82) !important;
  color: var(--text) !important;
  padding: 0 8px !important;
}

.page-shell[data-page="forum"] .forum-page-nav span {
  display: inline-block;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-subsection-controls {
    gap: 10px !important;
  }
}

/* Forum controls spacing: align create-topic/pagination gap with profile wall */
.page-shell[data-page="forum"] .forum-subsection-controls--top {
  margin-bottom: 0 !important;
}

.page-shell[data-page="forum"] .forum-subsection-controls--top + .forum-topic-list,
.page-shell[data-page="forum"] .forum-subsection-controls--top + .forum-form + .forum-topic-list {
  margin-top: 0 !important;
}

.page-shell[data-page="forum"] .forum-subsection-controls--bottom {
  margin-top: 14px !important;
}

                                                                        
.page-shell[data-page="forum"] .forum-subsection-stats strong,
.page-shell[data-page="forum"] .forum-topic-stat strong {
  font-weight: 400 !important;
}

.page-shell[data-page="forum"] .forum-topic-row--compact .forum-topic-link,
.page-shell[data-page="forum"] .forum-tree-topic,
.page-shell[data-page="forum"] .forum-tree-more {
  font-weight: 400 !important;
}

/* Forum topic list avatars */
.page-shell[data-page="forum"] .forum-topic-row--compact .forum-topic-main {
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 12px !important;
}

.page-shell[data-page="forum"] .forum-topic-main-text {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.page-shell[data-page="forum"] .forum-topic-list-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  align-self: center;
  border-radius: 10px;
  text-decoration: none;
  overflow: hidden;
  flex: 0 0 auto;
}

.page-shell[data-page="forum"] .forum-topic-list-avatar {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(126, 199, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 6px 14px rgba(2, 10, 20, 0.18);
}

.page-shell[data-page="forum"] .forum-topic-list-avatar-link:hover .forum-topic-list-avatar,
.page-shell[data-page="forum"] .forum-topic-list-avatar-link:focus-visible .forum-topic-list-avatar {
  border-color: rgba(143, 218, 255, 0.32);
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-topic-row--compact .forum-topic-main {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-list-avatar-link,
  .page-shell[data-page="forum"] .forum-topic-list-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
}


                                       
.page-shell[data-page="forum"] .forum-topic-row--compact {
  padding-left: 5px !important;
  min-height: 66px !important;
}

.page-shell[data-page="forum"] .forum-topic-row--compact .forum-topic-main {
  grid-template-columns: 52px minmax(0, 1fr) !important;
  column-gap: 10px !important;
}

.page-shell[data-page="forum"] .forum-topic-list-avatar-link,
.page-shell[data-page="forum"] .forum-topic-list-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-topic-row--compact {
    padding-left: 5px !important;
    min-height: 58px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-row--compact .forum-topic-main {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    column-gap: 9px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-list-avatar-link,
  .page-shell[data-page="forum"] .forum-topic-list-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
  }
}


/* Forum stats compact vertical layout */
.page-shell[data-page="forum"] .forum-subsection-stats {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 92px !important;
  margin-left: auto !important;
  color: var(--muted) !important;
  text-align: right !important;
}

.page-shell[data-page="forum"] .forum-subsection-stats > span {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.page-shell[data-page="forum"] .forum-subsection-stats strong,
.page-shell[data-page="forum"] .forum-subsection-stats small,
.page-shell[data-page="forum"] .forum-topic-stat strong,
.page-shell[data-page="forum"] .forum-topic-stat small {
  font-size: 0.82rem !important;
  line-height: 1.15 !important;
  font-weight: 400 !important;
}

.page-shell[data-page="forum"] .forum-subsection-stats strong,
.page-shell[data-page="forum"] .forum-topic-stat strong {
  color: var(--text) !important;
}

.page-shell[data-page="forum"] .forum-subsection-stats small,
.page-shell[data-page="forum"] .forum-topic-stat small {
  color: var(--muted) !important;
}

.page-shell[data-page="forum"] .forum-topic-side {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
}

.page-shell[data-page="forum"] .forum-topic-stats-block {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 96px !important;
  color: var(--muted) !important;
  text-align: right !important;
}

.page-shell[data-page="forum"] .forum-topic-stat {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
}

.page-shell[data-page="forum"] .forum-comments-list:empty {
  display: none !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-subsection-stats,
  .page-shell[data-page="forum"] .forum-topic-stats-block {
    align-items: flex-start !important;
    text-align: left !important;
    min-width: 0 !important;
  }
}

                                                                                
.page-shell[data-page="forum"] .forum-form input[type="text"],
.page-shell[data-page="forum"] .forum-form textarea {
  font-weight: 400 !important;
}

.page-shell[data-page="forum"] .forum-form input[type="text"]::placeholder,
.page-shell[data-page="forum"] .forum-form textarea::placeholder {
  font-weight: 400 !important;
}

.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-actions {
  justify-content: flex-end !important;
  gap: 18px !important;
}

.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 8px 0 7px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button::after,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(126, 199, 255, 0.58);
  box-shadow: 0 1px 4px rgba(126, 199, 255, 0.1);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.95;
}

.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button:hover,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button:focus-visible,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button:hover,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button:focus-visible {
  color: var(--text) !important;
  outline: none !important;
}

.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button:hover::after,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button:focus-visible::after,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button:hover::after,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button:focus-visible::after {
  transform: scaleX(1);
}

/* Forum topic form buttons: no underline */
.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button::after,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button::after {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button:hover,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-form-link-button:focus-visible,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button:hover,
.page-shell[data-page="forum"] .forum-topic-create-form .forum-submit-button.forum-form-link-button:focus-visible {
  color: var(--text) !important;
  text-decoration: none !important;
}

/* Forum topic page: closer to profile feed/comment concept */
.page-shell[data-page="forum"] .forum-topic-page {
  display: grid;
  gap: 16px;
}

.page-shell[data-page="forum"] .forum-topic-post--feed {
  --forum-topic-avatar-size: 42px;
  --forum-topic-avatar-gap: 12px;
  padding: 18px !important;
  border-radius: 22px;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-topic-post-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-topic-post-stats {
  margin: 4px 0 0 calc(var(--forum-topic-avatar-size) + var(--forum-topic-avatar-gap));
  padding: 0;
  gap: 10px;
  font-size: 0.9rem;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-topic-post-stats span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.page-shell[data-page="forum"] .forum-topic-post-body {
  margin-top: 14px;
  margin-left: calc(var(--forum-topic-avatar-size) + var(--forum-topic-avatar-gap));
}

.page-shell[data-page="forum"] .forum-topic-post-body .forum-rich-text p,
.page-shell[data-page="forum"] .forum-topic-comment-body p {
  margin: 0;
  color: var(--text);
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-shell[data-page="forum"] .forum-topic-post-body .forum-rich-text p + p,
.page-shell[data-page="forum"] .forum-topic-comment-body p + p {
  margin-top: 12px;
}

.page-shell[data-page="forum"] .forum-topic-comments {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-shell[data-page="forum"] .forum-topic-comments .forum-comments-list {
  display: grid;
  gap: 12px;
}

.page-shell[data-page="forum"] .forum-topic-comments .forum-comments-list:empty {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-topic-comment {
  display: grid;
  gap: 8px;
  margin-left: calc(var(--forum-topic-avatar-size) + var(--forum-topic-avatar-gap));
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-topic-comment-head {
  min-width: 0;
}

.page-shell[data-page="forum"] .forum-topic-comment .forum-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.page-shell[data-page="forum"] .forum-topic-comment .forum-author {
  gap: 10px;
}

.page-shell[data-page="forum"] .forum-topic-comment-body {
  margin-left: 46px;
}

.page-shell[data-page="forum"] .forum-comment-form--inline {
  margin-top: 4px;
  margin-left: calc(var(--forum-topic-avatar-size) + var(--forum-topic-avatar-gap));
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-comment-form--inline label {
  color: var(--muted);
  font-weight: 600;
}

.page-shell[data-page="forum"] .forum-comment-form--inline textarea {
  min-height: 78px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6, 18, 34, 0.96), rgba(4, 14, 28, 0.96));
}

.page-shell[data-page="forum"] .forum-comment-form--inline > textarea {
  width: 100% !important;
  resize: vertical !important;
}

.page-shell[data-page="forum"] .forum-comment-form--inline .forum-form-actions {
  justify-content: flex-end;
}

.page-shell[data-page="forum"] .forum-comment-form--inline .forum-submit-button {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding-inline: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  text-align: right;
}

.page-shell[data-page="forum"] .forum-comment-form--inline .forum-submit-button:hover,
.page-shell[data-page="forum"] .forum-comment-form--inline .forum-submit-button:focus-visible {
  color: var(--text) !important;
  outline: none !important;
  text-decoration: none !important;
}

.page-shell[data-page="forum"] .forum-comments-block,
.page-shell[data-page="forum"] .forum-comments-head {
  display: none !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-topic-post--feed {
    --forum-topic-avatar-size: 38px;
    --forum-topic-avatar-gap: 10px;
    padding: 16px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post-body,
  .page-shell[data-page="forum"] .forum-topic-post--feed .forum-topic-post-stats,
  .page-shell[data-page="forum"] .forum-topic-comment,
  .page-shell[data-page="forum"] .forum-comment-form--inline {
    margin-left: 0;
  }

  .page-shell[data-page="forum"] .forum-topic-comment-body {
    margin-left: 46px;
  }
}

/* Forum topic posts: every reply is a separate feed-style card */
.page-shell[data-page="forum"] .forum-topic-page--post-list {
  display: grid !important;
  gap: 14px !important;
}

.page-shell[data-page="forum"] .forum-topic-replies-list {
  display: grid;
  gap: 14px;
}

.page-shell[data-page="forum"] .forum-topic-replies-list:empty {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-post {
  margin: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-post .forum-topic-post-head {
  margin-bottom: 0;
}

.page-shell[data-page="forum"] .forum-topic-reply-post-body {
  margin-top: 14px;
}

.page-shell[data-page="forum"] .forum-topic-comments,
.page-shell[data-page="forum"] .forum-topic-comments .forum-comments-list,
.page-shell[data-page="forum"] .forum-topic-comment,
.page-shell[data-page="forum"] .forum-topic-comment-head,
.page-shell[data-page="forum"] .forum-topic-comment-body {
  all: unset;
}

.page-shell[data-page="forum"] .forum-comment-form--inline {
  margin-top: 2px !important;
  margin-left: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(91, 126, 166, 0.28) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(20, 34, 51, 0.96) 0%, rgba(14, 27, 44, 0.94) 100%),
    radial-gradient(circle at top right, rgba(87, 216, 255, 0.08), transparent 42%) !important;
  box-shadow:
    0 16px 44px rgba(3, 12, 24, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-topic-page--post-list,
  .page-shell[data-page="forum"] .forum-topic-replies-list {
    gap: 12px !important;
  }

  .page-shell[data-page="forum"] .forum-comment-form--inline {
    padding: 16px !important;
  }
}

/* Forum message actions: top controls inside each topic message/reply head */
.page-shell[data-page="forum"] .forum-message-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin: 0 !important;
  min-height: 28px !important;
  position: static !important;
  float: none !important;
  transform: none !important;
  inset: auto !important;
}

.page-shell[data-page="forum"] .forum-topic-post-actions .forum-message-actions {
  margin: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-actions {
  margin-left: auto !important;
}

.page-shell[data-page="forum"] .forum-message-action-button,
.page-shell[data-page="forum"] .forum-comment-delete-pair,
.page-shell[data-page="forum"] .forum-comment-delete-pair .profile-wall-delete-toggle,
.page-shell[data-page="forum"] .forum-comment-delete-pair .profile-wall-delete-direct {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  margin: 0 !important;
}

.page-shell[data-page="forum"] .forum-message-action-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: 0 !important;
  cursor: pointer !important;
  background: rgba(123, 189, 255, 0.12) !important;
  color: #9fd2ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.18) !important;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease !important;
}

.page-shell[data-page="forum"] .forum-message-action-button svg {
  width: 15px !important;
  height: 15px !important;
  fill: currentColor !important;
  pointer-events: none !important;
}

.page-shell[data-page="forum"] .forum-message-action-button:hover,
.page-shell[data-page="forum"] .forum-message-action-button:focus-visible {
  background: rgba(123, 189, 255, 0.18) !important;
  color: #cce8ff !important;
  box-shadow: inset 0 0 0 1px rgba(123, 189, 255, 0.32) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.page-shell[data-page="forum"] .forum-message-report-button {
  background: rgba(255, 92, 92, 0.12) !important;
  color: #ff7b7b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 92, 92, 0.22) !important;
}

.page-shell[data-page="forum"] .forum-message-report-button:hover,
.page-shell[data-page="forum"] .forum-message-report-button:focus-visible {
  background: rgba(255, 92, 92, 0.2) !important;
  color: #ffb0b0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 92, 92, 0.38) !important;
}

.page-shell[data-page="forum"] .forum-comment-delete-pair {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.page-shell[data-page="forum"] .forum-comment-delete-pair .profile-wall-delete-toggle,
.page-shell[data-page="forum"] .forum-comment-delete-pair .profile-wall-delete-direct {
  position: absolute !important;
  inset: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-post.is-deleted {
  opacity: 0.75 !important;
}

.page-shell[data-page="forum"] .forum-topic-post.is-deleted .forum-rich-text {
  color: var(--muted) !important;
  font-style: italic !important;
}

.page-shell[data-page="forum"] .forum-comment-edited-meta {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.86rem !important;
  white-space: nowrap !important;
}

.page-shell[data-page="forum"] .forum-reply-quote {
  position: relative !important;
  margin: 12px 0 0 calc(var(--forum-topic-avatar-size, 42px) + var(--forum-topic-avatar-gap, 12px)) !important;
  padding: 10px 12px !important;
  border-left: 3px solid rgba(126, 199, 255, 0.38) !important;
  border-radius: 14px !important;
  background: rgba(126, 199, 255, 0.055) !important;
  color: var(--muted) !important;
}

.page-shell[data-page="forum"] .forum-reply-quote--form {
  margin: 0 0 12px 0 !important;
  padding-right: 38px !important;
}

.page-shell[data-page="forum"] .forum-reply-quote-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--text-soft) !important;
}

.page-shell[data-page="forum"] .forum-reply-quote-text {
  margin-top: 5px !important;
  font-size: 0.93rem !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
}

.page-shell[data-page="forum"] .forum-reply-quote-cancel {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--muted) !important;
  cursor: pointer !important;
}

.page-shell[data-page="forum"] .forum-reply-quote-cancel:hover,
.page-shell[data-page="forum"] .forum-reply-quote-cancel:focus-visible {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

.page-shell[data-page="forum"] .forum-comment-edit-form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-comment-edit-form textarea {
  min-height: 96px !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-reply-quote {
    margin-left: 0 !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post-actions {
    justify-content: flex-start !important;
  }
}

                                              
.page-shell[data-page="forum"] .forum-topic-post--feed {
  --forum-topic-avatar-size: 52px !important;
  --forum-topic-avatar-gap: 10px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar-link,
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
  flex: 0 0 52px !important;
}

.page-shell[data-page="forum"] .forum-reply-quote[data-forum-quote-target] {
  cursor: pointer !important;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.page-shell[data-page="forum"] .forum-reply-quote[data-forum-quote-target]:hover,
.page-shell[data-page="forum"] .forum-reply-quote[data-forum-quote-target]:focus-visible {
  border-left-color: rgba(126, 199, 255, 0.68) !important;
  background: rgba(126, 199, 255, 0.085) !important;
  box-shadow: inset 0 0 0 1px rgba(126, 199, 255, 0.09) !important;
  outline: none !important;
}

.page-shell[data-page="forum"] .forum-topic-post.is-quote-highlight {
  animation: forumQuoteHighlight 1.55s ease-out 1;
}

@keyframes forumQuoteHighlight {
  0% {
    border-color: rgba(126, 199, 255, 0.78);
    box-shadow:
      0 0 0 2px rgba(126, 199, 255, 0.24),
      0 18px 52px rgba(3, 12, 24, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  100% {
    border-color: rgba(91, 126, 166, 0.28);
    box-shadow:
      0 16px 44px rgba(3, 12, 24, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
}

.page-shell[data-page="forum"] .forum-comment-form--inline {
  margin-top: 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-comment-form--inline textarea[data-forum-comment-textarea] {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 97px !important;
  height: 97px !important;
  max-height: 97px !important;
  padding: 10px !important;
  line-height: 19.25px !important;
  resize: none !important;
  overflow-y: auto !important;
  border-radius: 18px !important;
  border: 1px solid rgba(126, 199, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--text) !important;
  font: inherit !important;
}

.page-shell[data-page="forum"] .forum-comment-form--inline textarea[data-forum-comment-textarea]:focus {
  border-color: rgba(126, 199, 255, 0.32) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  outline: none !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-topic-post--feed {
    --forum-topic-avatar-size: 44px !important;
    --forum-topic-avatar-gap: 9px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar-link,
  .page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
    flex-basis: 44px !important;
  }
}

/* Forum topic footer stats + likes */
.page-shell[data-page="forum"] .forum-author-meta-line {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 9px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
}

.page-shell[data-page="forum"] .forum-author-date {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-text {
  display: block !important;
}

.page-shell[data-page="forum"] .forum-topic-post-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 16px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(126, 199, 255, 0.1) !important;
}

.page-shell[data-page="forum"] .forum-topic-post-like-slot {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
}

.page-shell[data-page="forum"] .forum-topic-like-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(126, 199, 255, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(126, 199, 255, 0.08) !important;
  color: #b9ddff !important;
  font: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease !important;
}

.page-shell[data-page="forum"] .forum-topic-like-button svg {
  width: 15px !important;
  height: 15px !important;
  fill: currentColor !important;
}

.page-shell[data-page="forum"] .forum-topic-like-button:hover,
.page-shell[data-page="forum"] .forum-topic-like-button:focus-visible {
  transform: translateY(-1px) !important;
  background: rgba(126, 199, 255, 0.14) !important;
  color: #d7ecff !important;
  border-color: rgba(126, 199, 255, 0.28) !important;
  outline: none !important;
}

.page-shell[data-page="forum"] .forum-topic-like-button.is-liked {
  background: rgba(255, 92, 126, 0.12) !important;
  border-color: rgba(255, 92, 126, 0.28) !important;
  color: #ff8da5 !important;
}

.page-shell[data-page="forum"] .forum-topic-like-button.is-liked:hover,
.page-shell[data-page="forum"] .forum-topic-like-button.is-liked:focus-visible {
  background: rgba(255, 92, 126, 0.18) !important;
  border-color: rgba(255, 92, 126, 0.38) !important;
  color: #ffbdca !important;
}

.page-shell[data-page="forum"] .forum-topic-post-footer .forum-topic-post-stats {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.88rem !important;
}

.page-shell[data-page="forum"] .forum-topic-post-footer .forum-topic-post-stats span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.032) !important;
  border: 1px solid rgba(126, 199, 255, 0.08) !important;
}

.page-shell[data-page="forum"] .forum-topic-stats-block {
  flex-wrap: wrap !important;
}

@media (max-width: 640px) {
  .page-shell[data-page="forum"] .forum-topic-post-footer {
    align-items: stretch !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post-like-slot,
  .page-shell[data-page="forum"] .forum-topic-like-button,
  .page-shell[data-page="forum"] .forum-topic-post-footer .forum-topic-post-stats {
    width: 100% !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post-footer .forum-topic-post-stats {
    justify-content: flex-start !important;
  }
}

/* Forum topic header row: author/meta left, stats/actions/like right */
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-topic-post-head {
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-text,
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-meta-line {
  min-width: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-meta-line {
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 9px !important;
}

.page-shell[data-page="forum"] .forum-topic-post-actions {
  margin-left: auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.page-shell[data-page="forum"] .forum-topic-main-actions {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.page-shell[data-page="forum"] .forum-topic-header-stats {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--muted) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.page-shell[data-page="forum"] .forum-topic-header-stats span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

.page-shell[data-page="forum"] .forum-topic-main-actions .forum-message-actions {
  flex: 0 0 auto !important;
}

.page-shell[data-page="forum"] .forum-topic-main-actions .forum-topic-like-button {
  order: 99 !important;
  flex: 0 0 auto !important;
}

.page-shell[data-page="forum"] .forum-topic-like-button {
  min-width: 44px !important;
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 9px !important;
  gap: 5px !important;
  border-radius: 9px !important;
  line-height: 1 !important;
}

.page-shell[data-page="forum"] .forum-topic-like-button svg {
  width: 14px !important;
  height: 14px !important;
}

.page-shell[data-page="forum"] .forum-topic-like-count {
  min-width: 1ch !important;
  line-height: 1 !important;
}

.page-shell[data-page="forum"] .forum-topic-post-footer {
  display: none !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-topic-post--feed .forum-topic-post-head {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post-actions,
  .page-shell[data-page="forum"] .forum-topic-main-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-meta-line {
    flex-wrap: wrap !important;
  }
}

/* Forum topic message micro-layout: avatar 5px from card edges, top-aligned meta/actions, like at bottom right */
.page-shell[data-page="forum"] .forum-topic-post--feed {
  padding: 5px 18px 18px 5px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-topic-post-head {
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: var(--forum-topic-avatar-size, 52px) !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author {
  align-items: flex-start !important;
  gap: var(--forum-topic-avatar-gap, 10px) !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar-link,
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-avatar {
  align-self: flex-start !important;
  display: block !important;
  margin: 0 !important;
  line-height: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-text {
  align-self: flex-start !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-meta-line {
  align-items: flex-start !important;
  line-height: 1.1 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-name,
.page-shell[data-page="forum"] .forum-topic-post--feed .forum-author-date {
  line-height: 1.1 !important;
}

.page-shell[data-page="forum"] .forum-topic-post-actions,
.page-shell[data-page="forum"] .forum-topic-main-actions,
.page-shell[data-page="forum"] .forum-topic-reply-actions,
.page-shell[data-page="forum"] .forum-message-actions,
.page-shell[data-page="forum"] .forum-topic-header-stats {
  align-items: flex-start !important;
  align-self: flex-start !important;
  line-height: 1.1 !important;
}

.page-shell[data-page="forum"] .forum-topic-like-bottom-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 12px 0 0 calc(var(--forum-topic-avatar-size, 52px) + var(--forum-topic-avatar-gap, 10px)) !important;
  min-height: 26px !important;
}

.page-shell[data-page="forum"] .forum-topic-like-bottom-row:empty {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-topic-like-bottom-row .forum-topic-like-button {
  width: auto !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-topic-post--feed {
    padding: 5px 14px 16px 5px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-like-bottom-row {
    margin-left: 0 !important;
  }

  .page-shell[data-page="forum"] .forum-topic-like-bottom-row .forum-topic-like-button {
    width: auto !important;
  }
}

                                                                                           
.page-shell[data-page="forum"] .forum-topic-page--classic {
  gap: 12px !important;
}

.page-shell[data-page="forum"] .forum-topic-replies-list {
  display: grid !important;
  gap: 12px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic {
  --forum-topic-classic-left: 156px !important;
  display: grid !important;
  grid-template-columns: var(--forum-topic-classic-left) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.page-shell[data-page="forum"] .forum-topic-author-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-width: 0 !important;
  min-height: 152px !important;
  padding: 14px 10px !important;
  text-align: center !important;
  border: 1px solid rgba(126, 199, 255, 0.13) !important;
  border-right: 0 !important;
  border-radius: 20px 0 0 20px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 199, 255, 0.105), transparent 58%),
    linear-gradient(180deg, rgba(11, 28, 49, 0.74), rgba(7, 19, 34, 0.74)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-post .forum-topic-author-card {
  min-height: 126px !important;
}

.page-shell[data-page="forum"] .forum-topic-author-avatar-link,
.page-shell[data-page="forum"] .forum-topic-author-profile {
  color: inherit !important;
  text-decoration: none !important;
}

.page-shell[data-page="forum"] .forum-topic-author-avatar-link {
  display: block !important;
  line-height: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-author-avatar {
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(126, 199, 255, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 22px rgba(0, 0, 0, 0.16) !important;
}

.page-shell[data-page="forum"] .forum-topic-author-info {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.page-shell[data-page="forum"] .forum-topic-author-name {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

.page-shell[data-page="forum"] .forum-topic-author-role {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 100% !important;
  min-height: 22px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(126, 199, 255, 0.12) !important;
  background: rgba(126, 199, 255, 0.075) !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.page-shell[data-page="forum"] .forum-topic-message-panel {
  min-width: 0 !important;
  min-height: 152px !important;
  border: 1px solid rgba(126, 199, 255, 0.13) !important;
  border-radius: 0 20px 20px 0 !important;
  background:
    linear-gradient(180deg, rgba(11, 28, 49, 0.7), rgba(7, 19, 34, 0.7)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 14px 30px rgba(0, 0, 0, 0.13) !important;
  overflow: hidden !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-post .forum-topic-message-panel {
  min-height: 126px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border-bottom: 1px solid rgba(126, 199, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

.page-shell[data-page="forum"] .forum-topic-post-date-line {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  color: var(--muted) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.page-shell[data-page="forum"] .forum-topic-post-edited {
  color: rgba(184, 213, 241, 0.72) !important;
  font-weight: 700 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-actions,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-main-actions,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-reply-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-message-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-header-stats {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--muted) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-header-stats span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-body {
  margin: 0 !important;
  padding: 18px 24px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--main.forum-topic-post--classic .forum-topic-post-body {
  min-height: 104px !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-post.forum-topic-post--classic .forum-topic-post-body {
  min-height: 78px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-rich-text {
  line-height: 1.65 !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-reply-quote {
  margin: 12px 18px 0 18px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-like-bottom-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 12px 12px 18px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-like-bottom-row:empty {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-like-bottom-row .forum-topic-like-button {
  width: auto !important;
  min-width: 48px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 0 0 auto !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-full-edit-form,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-title-edit-block,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-comment-edit-form {
  margin: 18px !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-topic-post--classic {
    grid-template-columns: 1fr !important;
  }

  .page-shell[data-page="forum"] .forum-topic-author-card {
    min-height: 0 !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    text-align: left !important;
    border-right: 1px solid rgba(126, 199, 255, 0.13) !important;
    border-bottom: 0 !important;
    border-radius: 18px 18px 0 0 !important;
  }

  .page-shell[data-page="forum"] .forum-topic-author-info {
    justify-items: start !important;
  }

  .page-shell[data-page="forum"] .forum-topic-author-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-message-panel {
    min-height: 0 !important;
    border-radius: 0 0 18px 18px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-head {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-actions,
  .page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-main-actions,
  .page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-reply-actions,
  .page-shell[data-page="forum"] .forum-topic-post--classic .forum-message-actions {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post-date-line {
    white-space: normal !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-body {
    padding: 15px 14px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-post--classic .forum-reply-quote {
    margin: 10px 12px 0 12px !important;
  }
}


/* Forum topic post cleanup: feed-like background, no in-topic stats/pinned markers */
.page-shell[data-page="forum"] .forum-topic-post--classic {
  grid-template-columns: var(--forum-topic-classic-left) minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  background: var(--panel) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
  overflow: hidden !important;
}

.page-shell[data-page="forum"] .forum-topic-author-card {
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-topic-message-panel {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-head {
  background: transparent !important;
  border-bottom: 1px solid var(--line) !important;
}

.page-shell[data-page="forum"] .forum-topic-pin-marker,
.page-shell[data-page="forum"] .forum-topic-header-stats {
  display: none !important;
}

.page-shell[data-page="forum"] .forum-topic-row--compact.is-pinned {
  border-color: var(--line) !important;
  background: var(--panel) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.page-shell[data-page="forum"] .forum-topic-author-info {
  gap: 4px !important;
}

.page-shell[data-page="forum"] .forum-topic-author-role {
  display: block !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--plus,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--helper,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--moderator,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--administrator {
  color: inherit !important;
}

.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--plus {
  color: #e6c84f !important;
}

.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--helper {
  color: #48d17a !important;
}

.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--moderator,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--administrator {
  color: #ff5b66 !important;
}

.page-shell[data-page="forum"] .forum-topic-author-name {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-topic-post--classic {
    grid-template-columns: 1fr !important;
  }

  .page-shell[data-page="forum"] .forum-topic-author-card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .page-shell[data-page="forum"] .forum-topic-author-info {
    align-content: center !important;
  }

  .page-shell[data-page="forum"] .forum-topic-author-role,
  .page-shell[data-page="forum"] .forum-topic-author-name {
    text-align: left !important;
  }
}

                                                                              
.page-shell[data-page="forum"] .forum-topic-post--classic {
  --forum-topic-classic-left: 156px !important;
  --forum-topic-author-avatar-offset: 14px !important;
  --forum-topic-author-avatar-size: calc(var(--forum-topic-classic-left) - (var(--forum-topic-author-avatar-offset) * 2)) !important;
}

.page-shell[data-page="forum"] .forum-topic-author-card {
  padding-top: var(--forum-topic-author-avatar-offset) !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.page-shell[data-page="forum"] .forum-topic-author-avatar {
  width: var(--forum-topic-author-avatar-size) !important;
  height: var(--forum-topic-author-avatar-size) !important;
  border-radius: 20px !important;
}

.page-shell[data-page="forum"] .forum-topic-author-role,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--plus,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--helper,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--moderator,
.page-shell[data-page="forum"] .forum-topic-author-role.profile-role-name--administrator {
  color: rgba(226, 237, 248, 0.82) !important;
  font-weight: 400 !important;
}

.page-shell[data-page="forum"] .forum-topic-author-name,
.page-shell[data-page="forum"] .forum-topic-author-name.profile-role-name,
.page-shell[data-page="forum"] .forum-topic-author-profile .forum-topic-author-name {
  font-weight: 400 !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-topic-post--classic {
    --forum-topic-author-avatar-size: 50px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-author-card {
    padding: 10px 12px !important;
  }

  .page-shell[data-page="forum"] .forum-topic-author-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
  }
}

                                                                                       
.page-shell[data-page="forum"] .forum-topic-page--classic {
  --forum-topic-classic-left: 156px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-like-bottom-row {
  align-items: flex-end !important;
  min-height: 0 !important;
  padding: 0 12px 9px 18px !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-like-bottom-row .forum-topic-like-button {
  margin: 0 0 0 auto !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-pagination {
  margin: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-pagination .forum-subsection-controls-spacer {
  display: block !important;
}

.page-shell[data-page="forum"] .forum-comment-form--inline {
  box-sizing: border-box !important;
  width: calc(100% - var(--forum-topic-classic-left)) !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-left: var(--forum-topic-classic-left) !important;
}

.page-shell[data-page="forum"] .forum-comment-form--inline textarea[data-forum-comment-textarea] {
  width: 100% !important;
}

@media (max-width: 760px) {
  .page-shell[data-page="forum"] .forum-comment-form--inline {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* Forum topic pagination/feed background/like bottom alignment pass */
.page-shell[data-page="forum"] .forum-topic-post--classic {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--panel) !important;
  box-shadow: var(--shadow) !important;
}

.page-shell[data-page="forum"] .forum-topic-author-card {
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-topic-message-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-head {
  flex: 0 0 auto !important;
  background: transparent !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-body {
  flex: 1 1 auto !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-like-bottom-row {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding: 0 12px 9px 18px !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-pagination.forum-subsection-controls--top {
  margin-bottom: 0 !important;
}

.page-shell[data-page="forum"] .forum-topic-reply-pagination.forum-subsection-controls--bottom {
  margin-top: 0 !important;
}

.page-shell[data-page="forum"] .forum-comment-form--inline + .forum-topic-reply-pagination {
  margin-top: 0 !important;
}

                                                         
.page-shell[data-page="forum"] .forum-topic-page--classic {
  --forum-topic-feed-bg-exact: rgb(11, 23, 41) !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic,
.page-shell[data-page="forum"] .forum-topic-post--classic.forum-topic-post--feed,
.page-shell[data-page="forum"] .forum-topic-post--classic.forum-topic-post--main,
.page-shell[data-page="forum"] .forum-topic-reply-post.forum-topic-post--classic {
  background: var(--forum-topic-feed-bg-exact) !important;
  background-color: var(--forum-topic-feed-bg-exact) !important;
  background-image: none !important;
}

.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-author-card,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-message-panel,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-head,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-post-body,
.page-shell[data-page="forum"] .forum-topic-post--classic .forum-topic-like-bottom-row {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Shared forum and profile editor surfaces. */
.page-shell[data-page="forum"] .forum-topic-page--classic {
  --forum-topic-feed-bg-exact: var(--panel-2) !important;
}

.page-shell[data-page="forum"] .forum-form,
.page-shell[data-page="forum"] .forum-topic-post--classic,
.page-shell[data-page="forum"] .forum-topic-row--compact {
  border-color: var(--line) !important;
}

.page-shell[data-page="forum"] .forum-form {
  background: var(--panel) !important;
}

.page-shell[data-page="forum"] .forum-form .community-send-field,
.profile-wall-simple-composer .community-send-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-shell[data-page="forum"] .forum-form .community-send-field > .tox,
.profile-wall-simple-composer .community-send-field > .wall-rich-editor-shell,
.page-shell[data-page="forum"] .forum-form .community-send-field > .wall-rich-editor-shell {
  width: 100%;
  min-width: 0;
}

.page-shell[data-page="forum"] .forum-form .community-send-field > .community-send-button,
.profile-wall-simple-composer .community-send-field > .community-send-button {
  position: static !important;
  justify-self: end;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  background: var(--panel-2) !important;
  color: var(--accent-2) !important;
}

.page-shell[data-page="forum"] .forum-form .tox.tox-tinymce,
.profile-wall .tox.tox-tinymce {
  width: 100% !important;
  max-width: 100%;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-form .tox .tox-editor-header,
.profile-wall .tox .tox-editor-header {
  background: var(--panel-2) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.page-shell[data-page="forum"] .forum-form .tox .tox-toolbar__primary,
.profile-wall .tox .tox-toolbar__primary {
  background: var(--panel-2) !important;
  flex-wrap: wrap;
}

.page-shell[data-page="forum"] .forum-rich-text,
.profile-wall-rich-content {
  overflow-wrap: anywhere;
}

.page-shell[data-page="forum"] .forum-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-shell[data-page="forum"] .forum-rich-text blockquote {
  margin: 10px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  border-radius: 0 10px 10px 0;
}

@media (max-width: 700px) {
  .page-shell[data-page="forum"] .forum-form .tox .tox-toolbar__group,
  .profile-wall .tox .tox-toolbar__group {
    flex-wrap: wrap;
  }
}

                                                      
.profile-wall-post-composer {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.profile-wall-simple-composer {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-wall-simple-composer-post {
  width: calc(100% - (42px + 12px));
  max-width: calc(100% - (42px + 12px));
  margin-left: calc(42px + 12px);
}

.profile-wall-comments-panel .profile-wall-comment-editor-inline.profile-wall-simple-composer-comment {
  width: calc(100% - (var(--wall-avatar-size) + var(--wall-avatar-gap)));
  max-width: calc(100% - (var(--wall-avatar-size) + var(--wall-avatar-gap)));
  margin-left: calc(var(--wall-avatar-size) + var(--wall-avatar-gap));
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-wall-simple-input {
  display: block;
  width: 100%;
  min-height: 44px;
  height: 44px;
  max-height: 180px;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(7, 18, 33, 0.76);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 20px;
  resize: none;
  overflow-y: hidden;
  outline: none;
  box-shadow: none;
}

.profile-wall-simple-input::placeholder {
  color: rgba(190, 203, 222, 0.58);
  font-weight: 400;
}

.profile-wall-simple-input:focus {
  border-color: rgba(126, 199, 255, 0.22);
  background: rgba(7, 18, 33, 0.86);
  box-shadow: none;
}

@media (max-width: 640px) {
  .profile-wall-simple-composer-post,
  .profile-wall-comments-panel .profile-wall-comment-editor-inline.profile-wall-simple-composer-comment {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

.page-shell[data-page="forum"] .forum-comment-edit-form .forum-form-actions,
.page-shell[data-page="forum"] .forum-topic-text-edit-form .forum-form-actions,
.page-shell[data-page="forum"] .forum-topic-full-edit-form .forum-form-actions,
.page-shell[data-page="forum"] .forum-rename-form .forum-rename-actions {
  justify-content: flex-end !important;
  gap: 18px !important;
  width: 100%;
}

.page-shell[data-page="forum"] .forum-comment-edit-form .forum-form-link-button,
.page-shell[data-page="forum"] .forum-topic-text-edit-form .forum-form-link-button,
.page-shell[data-page="forum"] .forum-topic-full-edit-form .forum-form-link-button,
.page-shell[data-page="forum"] .forum-rename-form .forum-form-link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 0 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.page-shell[data-page="forum"] .forum-comment-edit-form .forum-form-link-button:hover,
.page-shell[data-page="forum"] .forum-comment-edit-form .forum-form-link-button:focus-visible,
.page-shell[data-page="forum"] .forum-topic-text-edit-form .forum-form-link-button:hover,
.page-shell[data-page="forum"] .forum-topic-text-edit-form .forum-form-link-button:focus-visible,
.page-shell[data-page="forum"] .forum-topic-full-edit-form .forum-form-link-button:hover,
.page-shell[data-page="forum"] .forum-topic-full-edit-form .forum-form-link-button:focus-visible,
.page-shell[data-page="forum"] .forum-rename-form .forum-form-link-button:hover,
.page-shell[data-page="forum"] .forum-rename-form .forum-form-link-button:focus-visible {
  color: var(--text) !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

.page-shell[data-page="forum"] .forum-rename-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.page-shell[data-page="forum"] .forum-rename-form input[name="title"] {
  width: 100%;
}

                                                                          
.profile-wall-post-composer {
  padding: 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  background: var(--panel) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
  overflow: visible !important;
}

.profile-wall-new-post-form,
.profile-wall-edit-editor {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.profile-wall-new-post-form label,
.profile-wall-edit-editor label,
.profile-wall-editor-label {
  display: grid !important;
  gap: 8px !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.profile-wall-new-post-form .profile-wall-simple-input,
.profile-wall-edit-editor .profile-wall-simple-input {
  width: 100% !important;
  min-height: 128px !important;
  height: auto;
  max-height: none;
  box-sizing: border-box !important;
  padding: 13px 14px !important;
  border: 1px solid rgba(126, 199, 255, 0.14) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.04) !important;
  color: var(--text) !important;
  font: inherit !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  resize: vertical !important;
  overflow-y: auto !important;
  outline: none !important;
  box-shadow: none !important;
}

.profile-wall-edit-editor-comment .profile-wall-simple-input-edit {
  min-height: 96px !important;
}

.profile-wall-new-post-form .profile-wall-simple-input::placeholder,
.profile-wall-edit-editor .profile-wall-simple-input::placeholder {
  color: rgba(196, 210, 231, 0.46) !important;
  font-weight: 400 !important;
}

.profile-wall-new-post-form .profile-wall-simple-input:focus,
.profile-wall-edit-editor .profile-wall-simple-input:focus {
  border-color: rgba(126, 199, 255, 0.36) !important;
  background: rgba(255,255,255,0.04) !important;
  box-shadow: 0 0 0 3px rgba(126, 199, 255, 0.08) !important;
}

.profile-wall-form-actions,
.profile-wall-edit-actions,
.profile-wall-new-post-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  width: 100% !important;
  margin-top: 0 !important;
  flex-wrap: wrap !important;
}

.profile-wall-form-link-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 0 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  font: inherit !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: color 0.18s ease, opacity 0.18s ease !important;
}

.profile-wall-form-link-button:hover,
.profile-wall-form-link-button:focus-visible {
  color: var(--text) !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

/* ===== Help page: knowledge-base style ===== */
.page-shell[data-page="help"] .help-page-section {
  padding-top: 28px !important;
}

.page-shell[data-page="help"] .help-layout {
  align-items: start;
  margin-top: 0 !important;
}

.page-shell[data-page="help"] .help-sidebar,
.page-shell[data-page="help"] .help-content {
  margin-top: 0 !important;
}

.page-shell[data-page="help"] .help-content {
  min-height: 520px;
}

.page-shell[data-page="help"] .help-sidebar-list .help-anchor-link {
  text-decoration: none;
}


.page-shell[data-page="help"] .help-article-card {
  color: #f6f8ff;
}

.page-shell[data-page="help"] .help-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.page-shell[data-page="help"] .help-download-card,
.page-shell[data-page="help"] .help-info-card,
.page-shell[data-page="help"] .help-launcher-card {
  border-radius: 22px;
  border: 1px solid rgba(90, 177, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(21, 38, 60, 0.9), rgba(13, 28, 48, 0.86)),
    radial-gradient(circle at top right, rgba(108, 227, 255, 0.08), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-shell[data-page="help"] .help-download-card {
  min-height: 244px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 20px;
}

.page-shell[data-page="help"] .help-download-card.is-recommended {
  border-color: rgba(255, 215, 99, 0.34);
}

.page-shell[data-page="help"] .help-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(74, 68, 34, 0.78);
  color: #ffd763;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.page-shell[data-page="help"] .help-pill-muted {
  background: rgba(45, 95, 123, 0.72);
  color: #8ff6ff;
}

.page-shell[data-page="help"] .help-download-card h2 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.page-shell[data-page="help"] .help-download-card p,
.page-shell[data-page="help"] .help-info-card p,
.page-shell[data-page="help"] .help-article-section p,
.page-shell[data-page="help"] .help-launcher-card figcaption {
  color: rgba(220, 229, 244, 0.84);
  line-height: 1.7;
}

.page-shell[data-page="help"] .help-download-card p {
  margin: 0 0 18px;
}

.page-shell[data-page="help"] .help-download-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 99, 0.36);
  background: rgba(55, 48, 24, 0.5);
  color: #ffd763;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.page-shell[data-page="help"] .help-download-button:hover,
.page-shell[data-page="help"] .help-download-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 223, 129, 0.58);
  background: rgba(70, 59, 28, 0.68);
  color: #ffe59b;
}

.page-shell[data-page="help"] .help-download-button-secondary {
  border-color: rgba(142, 243, 255, 0.3);
  background: rgba(34, 72, 95, 0.42);
  color: #8ef3ff;
}

.page-shell[data-page="help"] .help-download-button-secondary:hover,
.page-shell[data-page="help"] .help-download-button-secondary:focus-visible {
  border-color: rgba(142, 243, 255, 0.54);
  background: rgba(39, 83, 108, 0.6);
  color: #b9fbff;
}

.page-shell[data-page="help"] .help-article-section {
  scroll-margin-top: 110px;
}

.page-shell[data-page="help"] .help-step-row {
  background: transparent !important;
  border: 1px solid rgba(90, 177, 255, 0.24) !important;
}

.page-shell[data-page="help"] .help-launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-shell[data-page="help"] .help-launcher-card {
  margin: 0;
  padding: 14px;
}

.page-shell[data-page="help"] .help-launcher-image-wrap {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(90, 177, 255, 0.18);
  background: rgba(3, 13, 24, 0.42);
  overflow: hidden;
}

.page-shell[data-page="help"] .help-launcher-image-wrap--small {
  min-height: 128px;
}

.page-shell[data-page="help"] .help-launcher-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-shell[data-page="help"] .help-launcher-image-wrap--small img {
  max-width: 360px;
}

.page-shell[data-page="help"] .help-launcher-card figcaption {
  margin: 12px 2px 0;
  font-size: 14px;
}

.page-shell[data-page="help"] .help-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-shell[data-page="help"] .help-info-card {
  padding: 18px 20px;
}

.page-shell[data-page="help"] .help-info-card h4 {
  margin: 0 0 8px;
  color: #8ef3ff;
  font-size: 18px;
}

.page-shell[data-page="help"] .help-info-card p {
  margin: 0;
}

.page-shell[data-page="help"] .help-inline-link {
  color: #8ef3ff;
  font-weight: 900;
  text-decoration: none;
}

.page-shell[data-page="help"] .help-inline-link:hover,
.page-shell[data-page="help"] .help-inline-link:focus-visible {
  color: #b9fbff;
  text-decoration: underline;
}

.page-shell[data-page="help"] code {
  color: #8ef3ff;
  font-weight: 900;
}

@media (max-width: 760px) {
  .page-shell[data-page="help"] .help-download-grid,
  .page-shell[data-page="help"] .help-info-grid,
  .page-shell[data-page="help"] .help-launcher-grid {
    grid-template-columns: 1fr;
  }

  .page-shell[data-page="help"] .help-download-card {
    min-height: 0;
  }

  .page-shell[data-page="help"] .help-launcher-image-wrap {
    min-height: 92px;
  }
}

/* ===== Help page: align left column with knowledge base sidebar ===== */
@media (min-width: 901px) {
  .page-shell[data-page="help"] .help-layout {
    align-items: start !important;
  }

  .page-shell[data-page="help"] .help-sidebar {
    position: sticky !important;
    top: 92px !important;
    align-self: start !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
  }
}


                                                           
.page-shell[data-page="help"] .help-page-section {
  padding-top: 28px !important;
}

.page-shell[data-page="help"] .help-layout {
  align-items: start !important;
  margin-top: 0 !important;
}

.page-shell[data-page="help"] .help-sidebar,
.page-shell[data-page="help"] .help-content {
  margin-top: 0 !important;
}

@media (min-width: 901px) {
  .page-shell[data-page="help"] .help-sidebar {
    position: sticky !important;
    top: 92px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* ===== Help page: exact knowledge-base top alignment ===== */
.page-shell[data-page="help"] .help-page-section {
  padding-top: 0 !important;
}

.page-shell[data-page="help"] .help-layout {
  margin-top: 0 !important;
  align-items: start !important;
}

.page-shell[data-page="help"] .help-sidebar,
.page-shell[data-page="help"] .help-content {
  margin-top: 0 !important;
  transform: none !important;
}

/* ===== Help page: sticky sidebar without top gap, like knowledge base scroll behavior ===== */
@media (min-width: 901px) {
  .page-shell[data-page="help"] .help-sidebar {
    position: sticky !important;
    top: 0 !important;
  }
}


                                       
                                                                             
                                                                         
                                                                            
                                                                   
@view-transition {
  navigation: auto;
}

#site-header {
  view-transition-name: improve-site-header;
}

::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(improve-site-header),
::view-transition-new(improve-site-header),
::view-transition-group(improve-site-header) {
  animation: none !important;
  animation-duration: 0s !important;
  mix-blend-mode: normal;
}

::view-transition-old(improve-site-header),
::view-transition-new(improve-site-header) {
  opacity: 1 !important;
}

#site-header.site-header-transition-host {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-frame-height);
  min-height: var(--header-frame-height);
  isolation: isolate;
  overflow: visible;
  background: rgba(6, 16, 28, 0.72);
}

.site-header-transition-host .site-header-fallback {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1 !important;
  pointer-events: auto;
  transition: none !important;
}

                                                                          
                                                        
.site-header-transition-host .site-frame-header {
  display: none !important;
}

.site-header-transition-host .site-header-fallback .site-header {
  position: relative;
  top: auto;
  min-height: var(--header-frame-height);
}

.site-header-transition-host .fallback-auth-widget {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
}


/* Improve client pack administration */
.client-pack-admin-section { padding-top: 28px; }
.client-pack-access { max-width: 760px; margin: 32px auto; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(18,22,28,.92); text-align: center; }
.client-pack-access.is-error { color: #ff8d8d; border-color: rgba(255,96,96,.35); }
.client-pack-admin-shell { display: grid; gap: 20px; }
.client-pack-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(18,22,28,.92); }
.client-pack-admin-head h1 { margin: 0 0 8px; font-size: clamp(24px,3vw,36px); }
.client-pack-admin-head p, .client-pack-panel-title p { margin: 0; color: rgba(255,255,255,.66); }
.client-pack-version-card { min-width: 220px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.055); }
.client-pack-version-card span { display: block; margin-bottom: 5px; color: rgba(255,255,255,.58); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.client-pack-version-card strong { font-size: 18px; }
.client-pack-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.client-pack-tab { min-height: 44px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(18,22,28,.88); color: #fff; cursor: pointer; }
.client-pack-tab.is-active { border-color: rgba(117,199,255,.7); background: rgba(57,126,177,.28); }
.client-pack-panel { padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(18,22,28,.92); }
.client-pack-action-form { display: grid; grid-template-columns: minmax(180px,1fr) minmax(220px,1.3fr) auto; gap: 14px; align-items: end; }
.client-pack-action-form label, .client-download-admin-card label { display: grid; gap: 7px; color: rgba(255,255,255,.72); font-size: 13px; }
.client-pack-action-form input, .client-pack-action-form select, .client-download-admin-card input { min-height: 42px; width: 100%; padding: 9px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(5,8,12,.7); color: #fff; }
.client-pack-action-form input[type=file], .client-download-admin-card input[type=file] { padding: 7px; }
.client-pack-form-message { min-height: 20px; margin: 12px 0 0; color: #8ed7ff; }
.client-pack-form-message.is-error { color: #ff8d8d; }
.client-pack-danger-button { background: rgba(163,47,47,.8) !important; }
.client-pack-columns { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: 20px; align-items: start; }
.client-pack-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.client-pack-panel-title h2 { margin: 0; font-size: 20px; }
.client-pack-panel-title > span { min-width: 32px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.08); }
.client-pack-mod-list, .client-pack-operation-list { display: grid; gap: 8px; }
.client-pack-mod-row, .client-pack-operation-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); }
.client-pack-mod-row div, .client-pack-operation-row div { min-width: 0; display: grid; gap: 3px; }
.client-pack-mod-row span, .client-pack-operation-row small { overflow: hidden; color: rgba(255,255,255,.56); text-overflow: ellipsis; white-space: nowrap; }
.client-pack-operation-row > div > span { color: #8ed7ff; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.client-pack-operation-row.is-delete > div > span { color: #ff8d8d; }
.client-pack-operation-row button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.07); color: #fff; font-size: 20px; cursor: pointer; }
.client-pack-empty { padding: 18px; color: rgba(255,255,255,.54); text-align: center; border: 1px dashed rgba(255,255,255,.1); border-radius: 10px; }
.client-pack-publish-button { width: 100%; margin-top: 14px; }
.client-download-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.client-download-admin-card { display: grid; gap: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); }
.client-download-admin-card h3, .client-download-admin-card p { margin: 0; }
.client-download-admin-card p { min-height: 38px; color: rgba(255,255,255,.6); }
.help-download-current-version { display: block; margin-top: 10px; color: rgba(255,255,255,.58); font-size: 13px; }
@media (max-width: 900px) {
  .client-pack-admin-head, .client-pack-action-form { grid-template-columns: 1fr; display: grid; }
  .client-pack-version-card { min-width: 0; }
  .client-pack-columns, .client-download-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .client-pack-tabs { grid-template-columns: 1fr; } }

/* Improve client/server pack deployment extension */
.client-pack-action-form { grid-template-columns: minmax(180px,1fr) minmax(220px,1.25fr) minmax(190px,.75fr) auto; }
.client-pack-action-form[data-pack-form="delete"] { grid-template-columns: minmax(220px,1fr) minmax(190px,.75fr) auto; }
.client-pack-targets { min-height: 68px; margin: 0; padding: 9px 12px 10px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(5,8,12,.7); }
.client-pack-targets legend { padding: 0 5px; color: rgba(255,255,255,.58); font-size: 12px; }
.client-pack-targets label { display: flex; grid-template-columns: none; align-items: center; gap: 7px; color: rgba(255,255,255,.82); white-space: nowrap; cursor: pointer; }
.client-pack-targets input { width: 17px; min-height: 17px; height: 17px; margin: 0; accent-color: #62bdf5; }
.client-pack-scope-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: rgba(91,170,222,.16); color: #a8ddff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.client-pack-upload-progress { margin-top: 16px; padding: 14px; border: 1px solid rgba(117,199,255,.28); border-radius: 11px; background: rgba(31,91,130,.14); }
.client-pack-upload-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.client-pack-upload-progress-head span { color: #a8ddff; font-weight: 700; }
.client-pack-upload-progress-track, .client-pack-deployment-track { height: 9px; margin: 10px 0 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.09); }
.client-pack-upload-progress-track i, .client-pack-deployment-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2d8ec8,#8ad9ff); transition: width .18s ease; }
.client-pack-upload-progress-track i.is-indeterminate { animation: client-pack-progress-slide 1.1s ease-in-out infinite alternate; }
.client-pack-upload-progress p { margin: 0; color: rgba(255,255,255,.65); font-size: 13px; }
@keyframes client-pack-progress-slide { from { transform: translateX(-70%); } to { transform: translateX(190%); } }
.client-pack-deployment-panel { border-color: rgba(117,199,255,.3); }
.client-pack-deployment-panel > strong { display: block; margin-top: 10px; color: #b7e5ff; }
.client-pack-deployment-panel > p { min-height: 18px; margin: 7px 0 0; color: rgba(255,255,255,.62); }
.client-pack-deployment-panel.is-success { border-color: rgba(92,211,134,.35); background: rgba(37,103,62,.22); }
.client-pack-deployment-panel.is-success .client-pack-deployment-track i { background: linear-gradient(90deg,#2c9c5a,#82e7a7); }
.client-pack-deployment-panel.is-error { border-color: rgba(255,96,96,.38); background: rgba(125,42,42,.2); }
.client-pack-deployment-panel.is-error .client-pack-deployment-track i { background: linear-gradient(90deg,#b43d3d,#ff8d8d); }
.client-pack-deployment-panel.is-error > strong { color: #ffaaaa; }
@media (max-width: 1100px) {
  .client-pack-action-form, .client-pack-action-form[data-pack-form="delete"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-pack-action-form .auth-submit { min-height: 44px; }
}
@media (max-width: 700px) {
  .client-pack-action-form, .client-pack-action-form[data-pack-form="delete"] { grid-template-columns: 1fr; }
  .client-pack-targets { min-height: 0; }
  .client-pack-mod-row, .client-pack-operation-row { align-items: flex-start; }
}
.client-pack-operation-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.client-pack-operation-actions label { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.72); font-size: 12px; cursor: pointer; }
.client-pack-operation-actions input { width: 15px; height: 15px; margin: 0; accent-color: #62bdf5; }
.client-pack-operation-actions button { flex: 0 0 auto; }
@media (max-width: 700px) {
  .client-pack-operation-actions { width: 100%; flex-wrap: wrap; }
  .client-pack-operation-row { flex-wrap: wrap; }
}


/* ===== Играть page: real tabs and server rules ===== */
.dropdown-item[data-admin-only="true"][hidden],
.dropdown-item[data-staff-only="true"][hidden],
.help-tab-panel[hidden] {
  display: none !important;
}

.page-shell[data-page="help"] .help-sidebar-list .help-tab-link {
  justify-content: flex-start;
  text-decoration: none;
}

.page-shell[data-page="help"] .help-tab-panel {
  animation: help-tab-enter 0.18s ease;
}

@keyframes help-tab-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-shell[data-page="help"] .help-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(108, 227, 255, 0.34);
  border-radius: 14px;
  background: rgba(25, 57, 84, 0.78);
  color: #eefbff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.page-shell[data-page="help"] .help-inline-action:hover,
.page-shell[data-page="help"] .help-inline-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(108, 227, 255, 0.62);
  background: rgba(31, 70, 103, 0.92);
  outline: none;
}

.page-shell[data-page="help"] .help-install-rules-note {
  border-bottom: 0;
}

.page-shell[data-page="help"] .help-rules-intro-card {
  display: grid;
  gap: 18px;
}

.page-shell[data-page="help"] .help-rules-important {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(108, 227, 255, 0.24);
  border-radius: 18px;
  background: rgba(17, 40, 63, 0.78);
}

.page-shell[data-page="help"] .help-rules-important strong {
  color: #8ef3ff;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-shell[data-page="help"] .help-rules-important span {
  color: #eef4ff;
  font-weight: 650;
  line-height: 1.55;
}

.page-shell[data-page="help"] .help-rules-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.page-shell[data-page="help"] .help-rule-section {
  padding: 22px;
  border: 1px solid rgba(90, 177, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(20, 39, 61, 0.9), rgba(13, 28, 48, 0.88)),
    radial-gradient(circle at top right, rgba(108, 227, 255, 0.07), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-shell[data-page="help"] .help-rule-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.page-shell[data-page="help"] .help-rule-heading h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.2;
}

.page-shell[data-page="help"] .help-rule-number {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(108, 227, 255, 0.46);
  border-radius: 11px;
  background: rgba(31, 72, 106, 0.86);
  color: #aaf6ff;
  font-weight: 900;
}

.page-shell[data-page="help"] .help-rule-items {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-shell[data-page="help"] .help-rule-items li {
  position: relative;
  padding-left: 17px;
  color: #cbd7e9;
  line-height: 1.62;
}

.page-shell[data-page="help"] .help-rule-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ce3ff;
  box-shadow: 0 0 0 4px rgba(108, 227, 255, 0.08);
}

.page-shell[data-page="help"] .help-rule-items strong {
  color: #eef8ff;
}

.page-shell[data-page="help"] .help-rules-footer-note {
  margin-top: 18px;
  border-bottom: 0;
}

@media (max-width: 720px) {
  .page-shell[data-page="help"] .help-rule-section {
    padding: 18px;
  }

  .page-shell[data-page="help"] .help-rule-heading {
    align-items: flex-start;
  }
}

/* ===== Играть / База знаний: sticky sidebar below the fixed header ===== */
@media (min-width: 1181px) {
  .page-shell[data-page="knowledge"] .knowledge-sidebar,
  .page-shell[data-page="help"] .help-sidebar {
    position: sticky !important;
    top: calc(var(--header-frame-height) + 12px) !important;
    align-self: start !important;
    max-height: calc(100vh - var(--header-frame-height) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 227, 255, 0.34) transparent;
  }

  .page-shell[data-page="knowledge"] .knowledge-sidebar::-webkit-scrollbar,
  .page-shell[data-page="help"] .help-sidebar::-webkit-scrollbar {
    width: 6px;
  }

  .page-shell[data-page="knowledge"] .knowledge-sidebar::-webkit-scrollbar-thumb,
  .page-shell[data-page="help"] .help-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(108, 227, 255, 0.34);
  }
}

/* ===== Правила сервера: текст прямо внутри основного блока страницы ===== */
.page-shell[data-page="help"] .help-rules-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.page-shell[data-page="help"] .help-rule-section {
  padding: 22px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.page-shell[data-page="help"] .help-rule-section:first-child {
  padding-top: 0;
}

.page-shell[data-page="help"] .help-rule-section:last-child {
  padding-bottom: 0;
}

.page-shell[data-page="help"] .help-rule-section + .help-rule-section {
  border-top: 1px solid rgba(90, 177, 255, 0.14);
}

.page-shell[data-page="help"] .help-rule-heading {
  display: block;
  margin-bottom: 16px;
}

.page-shell[data-page="help"] .help-rule-heading h2 {
  margin: 0;
}

.page-shell[data-page="help"] .help-rule-number {
  display: none !important;
}

@media (max-width: 720px) {
  .page-shell[data-page="help"] .help-rules-list {
    padding: 0;
  }

  .page-shell[data-page="help"] .help-rule-section {
    padding: 20px 0;
  }
}

/* ===== Таблица лидеров ===== */
.page-shell[data-page="about"] .leaderboard-hero {
  padding-bottom: 0;
}

.page-shell[data-page="about"] .leaderboard-hero .eyebrow {
  margin-bottom: 0;
}

.page-shell[data-page="about"] .leaderboard-section {
  padding-top: 18px;
  padding-bottom: 50px;
}

.page-shell[data-page="about"] .leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.page-shell[data-page="about"] .leaderboard-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 199, 255, 0.13);
  border-radius: 18px;
  background: rgba(8, 22, 39, 0.56);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.page-shell[data-page="about"] .leaderboard-card-head {
  padding: 20px 22px 15px;
}

.page-shell[data-page="about"] .leaderboard-card-head h2 {
  margin: 0;
  color: #f1f6ff;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.15;
}

.page-shell[data-page="about"] .leaderboard-column-head,
.page-shell[data-page="about"] .leaderboard-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 12px;
}

.page-shell[data-page="about"] .leaderboard-column-head {
  padding: 9px 22px;
  border-top: 1px solid rgba(126, 199, 255, 0.09);
  border-bottom: 1px solid rgba(126, 199, 255, 0.09);
  color: #6f849e;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.page-shell[data-page="about"] .leaderboard-column-head span:last-child {
  text-align: right;
}

.page-shell[data-page="about"] .leaderboard-rows {
  min-height: 260px;
}

.page-shell[data-page="about"] .leaderboard-row {
  min-height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  transition: background 0.16s ease;
}

.page-shell[data-page="about"] .leaderboard-row:last-child {
  border-bottom: 0;
}

.page-shell[data-page="about"] .leaderboard-row:hover {
  background: rgba(126, 199, 255, 0.025);
}

.page-shell[data-page="about"] .leaderboard-place {
  display: flex;
  align-items: center;
}

.page-shell[data-page="about"] .leaderboard-place-number {
  width: 28px;
  color: #8296af;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.page-shell[data-page="about"] .leaderboard-row--top-1 .leaderboard-place-number {
  color: #ffe190;
}

.page-shell[data-page="about"] .leaderboard-row--top-2 .leaderboard-place-number {
  color: #d8e7f4;
}

.page-shell[data-page="about"] .leaderboard-row--top-3 .leaderboard-place-number {
  color: #e8aa79;
}

.page-shell[data-page="about"] .leaderboard-player-cell {
  min-width: 0;
}

.page-shell[data-page="about"] .leaderboard-player {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #edf4ff;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-shell[data-page="about"] a.leaderboard-player:hover,
.page-shell[data-page="about"] a.leaderboard-player:focus-visible {
  color: var(--accent-2);
  outline: none;
}

.page-shell[data-page="about"] .leaderboard-score {
  color: #bdeeff;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.page-shell[data-page="about"] .leaderboard-loading,
.page-shell[data-page="about"] .leaderboard-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

/* ===== Герои дня: одна легкая строка без карточек внутри карточек ===== */
.page-shell[data-page="about"] .leaderboard-daily-section {
  padding-top: 16px;
  padding-bottom: 24px;
}

.page-shell[data-page="about"] .leaderboard-daily-eyebrow {
  margin-bottom: 16px;
}

.page-shell[data-page="about"] .leaderboard-daily-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.page-shell[data-page="about"] .leaderboard-daily-item {
  min-width: 0;
  padding: 2px 12px 4px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  align-content: start;
}

.page-shell[data-page="about"] .leaderboard-daily-item:first-child {
  padding-left: 0;
}

.page-shell[data-page="about"] .leaderboard-daily-item:last-child {
  padding-right: 0;
}

.page-shell[data-page="about"] .leaderboard-daily-item + .leaderboard-daily-item {
  border-left: 1px solid rgba(126, 199, 255, 0.11);
}

.page-shell[data-page="about"] .leaderboard-daily-title-row {
  display: contents;
}

.page-shell[data-page="about"] .leaderboard-daily-icon {
  width: 70px;
  height: 70px;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  object-fit: contain;
  filter: saturate(0.92);
}

.page-shell[data-page="about"] .leaderboard-daily-title-row h3 {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  color: #eff6ff;
  font-size: 0.94rem;
  line-height: 1.18;
}

.page-shell[data-page="about"] .leaderboard-daily-caption {
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-height: 0;
  margin: 4px 0 0;
  color: #71869f;
  font-size: 0.76rem;
  line-height: 1.35;
}

.page-shell[data-page="about"] .leaderboard-daily-winner {
  min-width: 0;
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  margin-top: 9px;
  text-align: center;
  color: #b3c6d9;
  font-size: 0.8rem;
  line-height: 1.4;
}

.page-shell[data-page="about"] .leaderboard-daily-player {
  display: block;
  width: 100%;
  color: var(--accent-2);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.page-shell[data-page="about"] a.leaderboard-daily-player:hover,
.page-shell[data-page="about"] a.leaderboard-daily-player:focus-visible {
  color: #d8fff9;
  outline: none;
}

.page-shell[data-page="about"] .leaderboard-daily-result {
  display: block;
  width: 100%;
  margin-top: 2px;
  color: #a9bbcf;
  text-align: center;
}

.page-shell[data-page="about"] .leaderboard-daily-loading,
.page-shell[data-page="about"] .leaderboard-daily-empty {
  color: #71869f;
  font-size: 0.78rem;
}

@media (max-width: 940px) {
  .page-shell[data-page="about"] .leaderboard-daily-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 22px;
  }

  .page-shell[data-page="about"] .leaderboard-daily-item {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-shell[data-page="about"] .leaderboard-daily-item:nth-child(1),
  .page-shell[data-page="about"] .leaderboard-daily-item:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .page-shell[data-page="about"] .leaderboard-daily-item:nth-child(4) {
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .page-shell[data-page="about"] .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .page-shell[data-page="about"] .leaderboard-rows {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .page-shell[data-page="about"] .leaderboard-daily-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .page-shell[data-page="about"] .leaderboard-daily-item,
  .page-shell[data-page="about"] .leaderboard-daily-item:first-child,
  .page-shell[data-page="about"] .leaderboard-daily-item:last-child {
    padding: 12px 0;
    border-left: 0 !important;
  }

  .page-shell[data-page="about"] .leaderboard-daily-item + .leaderboard-daily-item {
    border-top: 1px solid rgba(126, 199, 255, 0.09);
  }

  .page-shell[data-page="about"] .leaderboard-daily-caption {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .page-shell[data-page="about"] .leaderboard-card-head {
    padding: 18px 17px 14px;
  }

  .page-shell[data-page="about"] .leaderboard-column-head,
  .page-shell[data-page="about"] .leaderboard-row {
    grid-template-columns: 44px minmax(0, 1fr) minmax(74px, auto);
    gap: 8px;
    padding-left: 17px;
    padding-right: 17px;
  }

  .page-shell[data-page="about"] .leaderboard-column-head {
    font-size: 0.64rem;
  }

  .page-shell[data-page="about"] .leaderboard-score {
    font-size: 0.88rem;
  }

  .page-shell[data-page="about"] .leaderboard-daily-icon {
    width: 70px;
    height: 70px;
  }
}



                                                                                    
.page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
  gap: 20px !important;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
  padding: 26px 26px 68px;
  min-height: 470px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-top {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-profession-badge {
  width: 84px;
  height: 84px;
  border-radius: 16px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-header h3 {
  font-size: 1.12rem;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-character-stats {
  margin-top: 16px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-line {
  padding: 11px 0;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-line > span {
  padding-right: 14px;
}

.page-shell[data-page="profile"] #profile-tab-characters .profile-line > strong {
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
    min-height: 455px;
  }
}

@media (max-width: 640px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
    padding: 22px 20px 66px;
    min-height: 0;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-top {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-profession-badge {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }
}

                                                                             
@media (min-width: 641px) {
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack {
    align-items: stretch !important;
    grid-auto-rows: 1fr;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry {
    height: 100%;
  }

  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-slot-card {
    min-height: 0;
    align-self: stretch;
  }
}

/* ===== Compact mod administration with SRC and edit status ===== */
.client-pack-admin-page .client-pack-admin-section { padding-top: 16px; }
.client-pack-admin-page .client-pack-admin-shell { gap: 14px; }
.client-pack-admin-page .client-pack-panel { padding: 16px; border-radius: 14px; }
.client-pack-admin-page .client-pack-panel-title { margin-bottom: 10px; }
.client-pack-admin-page .client-pack-panel-title h2 { font-size: 18px; }
.client-pack-admin-page .client-pack-panel-title p { margin-top: 3px; font-size: 12px; }
.client-pack-actions-heading { align-items: flex-end; }
.client-pack-action-panel { overflow: hidden; }
.client-pack-action-stack { display: grid; gap: 8px; }
.client-pack-action-form,
.client-pack-action-form[data-pack-form="delete"] {
  display: grid;
  grid-template-columns: 142px minmax(130px,.8fr) minmax(170px,1.05fr) minmax(170px,1.05fr) 176px 108px;
  gap: 9px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}
.client-pack-action-form[data-pack-form="replace"] {
  grid-template-columns: 142px minmax(230px,1.45fr) minmax(165px,1fr) minmax(165px,1fr) 176px 108px;
}
.client-pack-action-form[data-pack-form="delete"] {
  grid-template-columns: 142px minmax(260px,1.8fr) 176px 108px;
}
.client-pack-action-kind {
  min-width: 0;
  min-height: 54px;
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  padding: 0 4px;
}
.client-pack-action-kind img { width: 28px; height: 28px; flex: 0 0 auto; }
.client-pack-action-kind div { min-width: 0; display: grid; gap: 1px; }
.client-pack-action-kind strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.client-pack-action-kind small { color: rgba(255,255,255,.46); font-size: 10px; }
.client-pack-action-form label,
.client-download-admin-card label { gap: 4px; font-size: 11px; }
.client-pack-action-form input,
.client-pack-action-form select,
.client-download-admin-card input {
  min-height: 34px;
  height: 34px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
}
.client-pack-action-form input[type=file],
.client-download-admin-card input[type=file] { padding: 4px 6px; font-size: 11px; }
.client-pack-action-form input[type=file]::file-selector-button,
.client-download-admin-card input[type=file]::file-selector-button {
  height: 24px;
  margin-right: 7px;
  padding: 2px 8px;
  border: 0;
  border-radius: 5px;
  background: rgba(91,170,222,.2);
  color: #dff4ff;
  cursor: pointer;
}
.client-pack-optional { color: rgba(255,255,255,.38); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.client-pack-mod-picker { min-width: 0; display: grid !important; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 7px !important; }
.client-pack-search-input { position: relative; display: block; min-width: 0; }
.client-pack-search-input img { position: absolute; z-index: 1; left: 8px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none; opacity: .8; }
.client-pack-search-input input { padding-left: 29px; }
.client-pack-targets {
  min-height: 54px;
  padding: 6px 9px 7px;
  gap: 10px;
  border-radius: 7px;
}
.client-pack-targets legend { font-size: 10px; }
.client-pack-targets label { gap: 5px; font-size: 11px; }
.client-pack-targets input { width: 15px; min-height: 15px; height: 15px; }
.client-pack-submit-button { min-height: 34px !important; height: 34px; padding: 6px 10px !important; border-radius: 7px !important; font-size: 12px; white-space: nowrap; }
.client-pack-form-message { min-height: 17px; margin: 8px 0 0; font-size: 12px; }
.client-pack-upload-progress { margin-top: 10px; padding: 10px; }
.client-pack-pending-panel { order: 0; }
.client-pack-live-panel { order: 1; }
.client-pack-admin-page .client-download-admin-panel { order: 2; }
.client-pack-operation-list { gap: 6px; }
.client-pack-operation-row {
  min-height: 48px;
  padding: 7px 9px;
  border-radius: 8px;
}
.client-pack-operation-main { min-width: 0; display: grid; gap: 1px; }
.client-pack-operation-row > .client-pack-operation-main > span { font-size: 9px; }
.client-pack-operation-row strong { font-size: 12px; }
.client-pack-operation-row small { font-size: 10px; }
.client-pack-pending-source { color: #92dfb0 !important; }
.client-pack-operation-actions { gap: 7px; }
.client-pack-operation-actions label { font-size: 10px; }
.client-pack-operation-actions input { width: 14px; height: 14px; }
.client-pack-operation-actions button { width: 27px; height: 27px; border-radius: 6px; font-size: 17px; }
.client-pack-publish-button { min-height: 36px; margin-top: 10px; }
.client-pack-live-title { align-items: center; }
.client-pack-live-title h2 { display: flex; align-items: center; gap: 7px; }
.client-pack-live-title h2 span {
  min-width: 28px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.72);
  font-size: 11px;
}
.client-pack-live-tools { display: flex !important; align-items: center; justify-content: flex-end; gap: 8px !important; }
.client-pack-list-search { position: relative; display: block !important; width: min(260px,32vw); }
.client-pack-list-search img { position: absolute; z-index: 1; left: 9px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); opacity: .8; }
.client-pack-list-search input {
  width: 100%;
  height: 34px;
  padding: 6px 10px 6px 31px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(5,8,12,.7);
  color: #fff;
  font-size: 12px;
}
.client-pack-version-inline {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.55);
  font-size: 10px;
  white-space: nowrap;
}
.client-pack-version-inline strong { margin-left: 4px; color: #dff4ff; font-size: 11px; }
.client-pack-mod-list { gap: 5px; }
.client-pack-mod-row {
  min-height: 54px;
  padding: 7px 9px;
  gap: 10px;
  border-radius: 8px;
}
.client-pack-mod-main { min-width: 0; display: grid !important; grid-template-columns: minmax(130px,.5fr) minmax(230px,1.2fr) minmax(260px,1.4fr); align-items: center; gap: 10px !important; }
.client-pack-mod-main strong { overflow: hidden; font-size: 17px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.client-pack-mod-files { min-width: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.2; }
.client-pack-mod-files > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-pack-mod-files > small { overflow: hidden; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.client-pack-source-meta { overflow: hidden; color: rgba(255,255,255,.42); font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.client-pack-source-meta.has-source.is-current { color: #73e39d; }
.client-pack-source-meta.has-source.is-stale { color: #ff7979; }
.client-pack-source-meta.has-source.is-unknown { color: #e9c66f; }
.client-pack-mod-actions { flex: 0 0 auto; display: flex !important; align-items: center; gap: 5px !important; }
.client-pack-icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.client-pack-icon-button img { width: 22px; height: 22px; pointer-events: none; }
.client-pack-icon-button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(117,199,255,.45); background: rgba(91,170,222,.12); }
.client-pack-icon-button.is-editing { border-color: rgba(232,188,84,.35); background: rgba(91,70,21,.18); }
.client-pack-icon-button:disabled { opacity: .48; cursor: not-allowed; }
.client-pack-scope-badge { padding: 4px 7px; font-size: 12px; }
.client-pack-empty { padding: 13px; font-size: 12px; }

@media (max-width: 1220px) {
  .client-pack-action-form,
  .client-pack-action-form[data-pack-form="replace"],
  .client-pack-action-form[data-pack-form="delete"] { grid-template-columns: 130px repeat(2,minmax(180px,1fr)); }
  .client-pack-action-form .client-pack-targets { align-self: end; }
  .client-pack-submit-button { width: 100%; }
  .client-pack-mod-main { grid-template-columns: minmax(120px,.55fr) minmax(210px,1fr) minmax(220px,1.1fr); }
}
@media (max-width: 820px) {
  .client-pack-action-form,
  .client-pack-action-form[data-pack-form="replace"],
  .client-pack-action-form[data-pack-form="delete"] { grid-template-columns: 1fr 1fr; }
  .client-pack-action-kind { grid-column: 1 / -1; min-height: 34px; }
  .client-pack-mod-picker { grid-template-columns: 1fr; }
  .client-pack-live-title { align-items: flex-start; flex-direction: column; }
  .client-pack-live-tools { width: 100%; justify-content: space-between; }
  .client-pack-list-search { width: 100%; }
  .client-pack-mod-row { align-items: stretch; flex-direction: column; }
  .client-pack-mod-main { grid-template-columns: 1fr; gap: 2px !important; }
  .client-pack-mod-actions { justify-content: flex-end; }
}
@media (max-width: 520px) {
  .client-pack-action-form,
  .client-pack-action-form[data-pack-form="replace"],
  .client-pack-action-form[data-pack-form="delete"] { grid-template-columns: 1fr; }
  .client-pack-live-tools { align-items: stretch; flex-direction: column; }
  .client-pack-version-inline { justify-content: center; }
  .client-pack-operation-row { flex-wrap: wrap; }
  .client-pack-operation-actions { width: 100%; justify-content: flex-end; }
}

/* Client pack: source freshness, safe mod renaming and compact modal. */
.client-pack-operation-row.is-rename > .client-pack-operation-main > span { color: #91d7ff; }
.client-pack-operation-fixed-scope {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91,170,222,.11);
  color: rgba(215,241,255,.78);
  font-size: 10px;
  white-space: nowrap;
}
.client-pack-modal[hidden] { display: none !important; }
.client-pack-modal {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1,4,8,.76);
  backdrop-filter: blur(5px);
}
.client-pack-modal-card {
  width: min(520px,100%);
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(117,199,255,.25);
  border-radius: 14px;
  background: linear-gradient(155deg,rgba(17,27,37,.98),rgba(7,12,18,.99));
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}
.client-pack-modal-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.client-pack-modal-title h2 { margin: 0; color: #fff; font-size: 19px; }
.client-pack-modal-title p { margin: 5px 0 0; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.45; }
.client-pack-modal-card label { display: grid; gap: 5px; color: rgba(255,255,255,.72); font-size: 12px; }
.client-pack-modal-card input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(2,6,10,.72);
  color: #fff;
  font-size: 14px;
}
.client-pack-modal-card input[readonly] { color: rgba(255,255,255,.58); background: rgba(255,255,255,.035); }
.client-pack-modal-hint { margin: 0; color: rgba(255,255,255,.48); font-size: 11px; line-height: 1.45; }
.client-pack-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.client-pack-modal-actions button { min-height: 36px; padding: 7px 12px; border-radius: 8px; }
.client-pack-modal-cancel,
.client-pack-modal-close {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.78);
  cursor: pointer;
}
.client-pack-modal-close { width: 32px; height: 32px; padding: 0; font-size: 21px; line-height: 1; }
@media (max-width: 520px) {
  .client-pack-modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .client-pack-modal-actions button { width: 100%; }
}

                                                                                                              
.client-pack-mod-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  align-items: center;
  justify-content: stretch;
  gap: 12px;
}
.client-pack-mod-row:hover,
.client-pack-mod-row:focus-within { z-index: 30; }
.client-pack-mod-main {
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(190px, .72fr) minmax(290px, 1.08fr) minmax(300px, 1.12fr);
  align-items: center;
  gap: 12px !important;
}
.client-pack-mod-name {
  min-width: 0;
  max-height: 31px;
  display: -webkit-box;
  overflow: hidden !important;
  color: rgba(255,255,255,.9) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.client-pack-mod-name.has-group-color {
  color: var(--client-pack-group-color) !important;
  text-shadow: 0 0 12px color-mix(in srgb, var(--client-pack-group-color) 28%, transparent);
}
.client-pack-mod-files,
.client-pack-source-meta {
  min-width: 0;
  display: grid !important;
  align-content: center;
  gap: 3px !important;
}
.client-pack-mod-files > span,
.client-pack-mod-files > small,
.client-pack-source-primary,
.client-pack-source-secondary {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-pack-source-meta {
  color: rgba(255,255,255,.42);
  font-size: 13px;
  line-height: 1.15;
  white-space: normal;
}
.client-pack-source-primary { font-size: 13px; }
.client-pack-source-secondary { font-size: 12px; opacity: .92; }
.client-pack-source-meta.has-source.is-current { color: #73e39d; }
.client-pack-source-meta.has-source.is-stale { color: #ff7979; }
.client-pack-source-meta.has-source.is-unknown { color: #e9c66f; }
.client-pack-mod-actions {
  width: 252px;
  min-width: 252px;
  display: grid !important;
  grid-template-columns: repeat(4, 30px) 112px;
  align-items: center;
  justify-content: start;
  gap: 5px !important;
}
.client-pack-scope-badge {
  width: 112px;
  min-width: 112px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}
.client-pack-icon-button[data-client-tooltip],
.client-pack-operation-actions [data-client-tooltip] {
  position: relative;
}
.client-pack-icon-button[data-client-tooltip]::after,
.client-pack-operation-actions [data-client-tooltip]::after {
  content: attr(data-client-tooltip);
  position: absolute;
  z-index: 10050;
  right: 0;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 290px;
  padding: 6px 8px;
  border: 1px solid rgba(117,199,255,.28);
  border-radius: 7px;
  background: rgba(5,11,17,.98);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  color: #e9f6ff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(2px);
  transition: none;
}
.client-pack-icon-button[data-client-tooltip]::before,
.client-pack-operation-actions [data-client-tooltip]::before {
  content: '';
  position: absolute;
  z-index: 10051;
  right: 9px;
  bottom: calc(100% + 3px);
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(117,199,255,.28);
  border-bottom: 1px solid rgba(117,199,255,.28);
  background: rgba(5,11,17,.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotate(45deg);
  transition: none;
}
.client-pack-icon-button[data-client-tooltip]:hover::after,
.client-pack-icon-button[data-client-tooltip]:hover::before,
.client-pack-icon-button[data-client-tooltip]:focus-visible::after,
.client-pack-icon-button[data-client-tooltip]:focus-visible::before,
.client-pack-operation-actions [data-client-tooltip]:hover::after,
.client-pack-operation-actions [data-client-tooltip]:hover::before,
.client-pack-operation-actions [data-client-tooltip]:focus-visible::after,
.client-pack-operation-actions [data-client-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 1120px) {
  .client-pack-mod-row { grid-template-columns: minmax(0,1fr); }
  .client-pack-mod-main { grid-template-columns: minmax(170px,.7fr) minmax(250px,1fr) minmax(270px,1.05fr); }
  .client-pack-mod-actions { justify-self: end; }
}
@media (max-width: 820px) {
  .client-pack-mod-row { display: grid; }
  .client-pack-mod-main { grid-template-columns: 1fr; gap: 4px !important; }
  .client-pack-mod-name { max-height: none; -webkit-line-clamp: 3; }
  .client-pack-mod-actions { justify-self: end; }
}
@media (max-width: 420px) {
  .client-pack-mod-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, 30px) minmax(92px,1fr);
  }
  .client-pack-scope-badge { width: 100%; min-width: 0; }
}

                                                                                              
.client-pack-action-panel { overflow: visible; }
.client-pack-action-form { position: relative; z-index: 1; }
.client-pack-action-form:focus-within { z-index: 80; }
.client-pack-action-form[data-pack-form="add"] {
  grid-template-columns: 142px minmax(160px,.9fr) minmax(210px,1.2fr) 176px 108px;
}
.client-pack-action-form[data-pack-form="replace"] {
  grid-template-columns: 142px minmax(330px,1.8fr) minmax(190px,1fr) 176px 108px;
}
.client-pack-action-form[data-pack-form="delete"] {
  grid-template-columns: 142px minmax(390px,1.9fr) 176px 108px;
}
.client-pack-picker-search {
  position: relative;
  min-width: 0;
}
.client-pack-picker-search > label { display: grid; }
.client-pack-search-results[hidden] { display: none !important; }
.client-pack-search-results {
  position: absolute;
  z-index: 120;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 274px;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(117,199,255,.27);
  border-radius: 8px;
  background: rgba(5,10,16,.99);
  box-shadow: 0 15px 38px rgba(0,0,0,.58);
}
.client-pack-search-result {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,.88);
  text-align: left;
  cursor: pointer;
}
.client-pack-search-result:hover,
.client-pack-search-result:focus-visible {
  outline: none;
  background: rgba(91,170,222,.16);
}
.client-pack-search-result strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-pack-search-result small {
  color: #a8ddff;
  font-size: 10px;
  white-space: nowrap;
}
.client-pack-search-no-results {
  display: block;
  padding: 8px;
  color: rgba(255,255,255,.46);
  font-size: 11px;
  text-align: center;
}
.client-pack-mod-row {
  grid-template-columns: minmax(0,1fr) 217px;
}
.client-pack-mod-main {
  grid-template-columns: minmax(220px,.78fr) minmax(300px,1.08fr) minmax(330px,1.18fr);
}
.client-pack-mod-name-cell {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 30px minmax(0,1fr);
  align-items: center;
  gap: 7px !important;
}
.client-pack-rename-button { flex: 0 0 auto; }
.client-pack-mod-name {
  max-height: 30px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.22;
}
.client-pack-source-meta {
  grid-template-rows: auto auto;
}
.client-pack-source-primary,
.client-pack-source-secondary {
  width: 100%;
}
.client-pack-mod-actions {
  width: 217px;
  min-width: 217px;
  grid-template-columns: repeat(3,30px) 112px;
}
.client-pack-icon-button:hover:not(:disabled) { transform: none; }

@media (max-width: 1220px) {
  .client-pack-action-form[data-pack-form="add"],
  .client-pack-action-form[data-pack-form="replace"],
  .client-pack-action-form[data-pack-form="delete"] {
    grid-template-columns: 130px repeat(2,minmax(180px,1fr));
  }
  .client-pack-mod-main {
    grid-template-columns: minmax(200px,.75fr) minmax(270px,1.05fr) minmax(300px,1.15fr);
  }
}
@media (max-width: 1120px) {
  .client-pack-mod-row { grid-template-columns: minmax(0,1fr); }
  .client-pack-mod-actions { justify-self: end; }
}
@media (max-width: 820px) {
  .client-pack-action-form[data-pack-form="add"],
  .client-pack-action-form[data-pack-form="replace"],
  .client-pack-action-form[data-pack-form="delete"] { grid-template-columns: 1fr 1fr; }
  .client-pack-mod-main { grid-template-columns: 1fr; }
  .client-pack-mod-name { max-height: none; -webkit-line-clamp: 3; }
}
@media (max-width: 520px) {
  .client-pack-action-form[data-pack-form="add"],
  .client-pack-action-form[data-pack-form="replace"],
  .client-pack-action-form[data-pack-form="delete"] { grid-template-columns: 1fr; }
  .client-pack-mod-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3,30px) minmax(92px,1fr);
  }
}
.client-pack-icon-button.is-permanently-disabled {
  opacity: .48;
  cursor: not-allowed;
}


                                                                                            
.client-pack-toolbar-button {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(117,199,255,.18);
  border-radius: 8px;
  background: rgba(91,170,222,.08);
  color: #dff4ff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.client-pack-toolbar-button img { width: 18px; height: 18px; pointer-events: none; }
.client-pack-toolbar-button:hover:not(:disabled) {
  border-color: rgba(117,199,255,.45);
  background: rgba(91,170,222,.15);
}
.client-pack-toolbar-button:disabled { opacity: .45; cursor: not-allowed; }
.client-pack-toolbar-button[data-client-tooltip]::after,
.client-pack-toolbar-button[data-client-tooltip]::before {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
.client-pack-toolbar-button[data-client-tooltip]::after {
  content: attr(data-client-tooltip);
  position: absolute;
  z-index: 10050;
  right: 0;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 310px;
  padding: 6px 8px;
  border: 1px solid rgba(117,199,255,.28);
  border-radius: 7px;
  background: rgba(5,11,17,.98);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  color: #e9f6ff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
}
.client-pack-toolbar-button[data-client-tooltip]::before {
  content: '';
  position: absolute;
  z-index: 10051;
  right: 12px;
  bottom: calc(100% + 3px);
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(117,199,255,.28);
  border-bottom: 1px solid rgba(117,199,255,.28);
  background: rgba(5,11,17,.98);
  transform: rotate(45deg);
}
.client-pack-toolbar-button[data-client-tooltip]:hover::after,
.client-pack-toolbar-button[data-client-tooltip]:hover::before,
.client-pack-toolbar-button[data-client-tooltip]:focus-visible::after,
.client-pack-toolbar-button[data-client-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 1380px) {
  .client-pack-live-title { align-items: flex-start; flex-direction: column; }
  .client-pack-live-tools { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .client-pack-list-search { width: min(330px,100%); }
}
@media (max-width: 620px) {
  .client-pack-toolbar-button { flex: 1 1 150px; }
  .client-pack-version-inline { flex: 1 1 100%; justify-content: center; }
}

                                                                                             
.client-download-admin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}
.client-download-admin-actions .auth-submit {
  width: 100%;
  min-height: 34px;
  margin: 0;
}
.client-download-button {
  position: relative;
  min-width: 112px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(117,199,255,.28);
  border-radius: 8px;
  background: rgba(91,170,222,.11);
  color: #dff4ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.client-download-button img {
  width: 17px;
  height: 17px;
  pointer-events: none;
}
.client-download-button:hover:not(.is-disabled),
.client-download-button:focus-visible:not(.is-disabled) {
  border-color: rgba(117,199,255,.55);
  background: rgba(91,170,222,.2);
  color: #fff;
  outline: none;
}
.client-download-button.is-disabled {
  opacity: .42;
  cursor: not-allowed;
}
.client-download-button[data-client-tooltip]::after,
.client-download-button[data-client-tooltip]::before {
  position: absolute;
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
.client-download-button[data-client-tooltip]::after {
  content: attr(data-client-tooltip);
  right: 0;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 300px;
  padding: 6px 8px;
  border: 1px solid rgba(117,199,255,.28);
  border-radius: 7px;
  background: rgba(5,11,17,.98);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  color: #e9f6ff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
}
.client-download-button[data-client-tooltip]::before {
  content: '';
  right: 12px;
  bottom: calc(100% + 3px);
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(117,199,255,.28);
  border-bottom: 1px solid rgba(117,199,255,.28);
  background: rgba(5,11,17,.98);
  transform: rotate(45deg);
}
.client-download-button[data-client-tooltip]:hover::after,
.client-download-button[data-client-tooltip]:hover::before,
.client-download-button[data-client-tooltip]:focus-visible::after,
.client-download-button[data-client-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 520px) {
  .client-download-admin-actions { grid-template-columns: 1fr; }
  .client-download-button { width: 100%; }
}

                                                                       
.client-pack-source-meta > .client-pack-source-primary,
.client-pack-source-meta > .client-pack-source-secondary {
  color: inherit !important;
}


                                                                                          
.client-pack-mod-picker { position: relative; }
.client-pack-picker-search { position: static; }
.client-pack-search-results {
  left: 0;
  right: 0;
  width: 100%;
}
.client-pack-search-result {
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  min-height: 34px;
  padding: 8px 10px;
}
.client-pack-search-result-label {
  min-width: 0;
  display: block;
  overflow: visible;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.client-pack-search-result strong,
.client-pack-search-result small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* Admin control center: build management and live server connection */
.client-pack-admin-page .admin-page-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.client-pack-admin-page .admin-page-hero-row .eyebrow { margin: 0; }
.admin-page-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.admin-page-tab {
  position: relative;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.62);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.admin-page-tab::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: #7bcaff;
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .16s ease, transform .16s ease;
}
.admin-page-tab:hover { color: #fff; background: rgba(255,255,255,.065); }
.admin-page-tab.is-active {
  color: #fff;
  border-color: rgba(123,202,255,.32);
  background: rgba(65,145,196,.14);
}
.admin-page-tab.is-active::after { opacity: 1; transform: scaleX(1); }
.client-pack-admin-tab-panel { display: grid; gap: 14px; }
.client-pack-admin-tab-panel[hidden] { display: none !important; }
.client-pack-publish-actions {
  display: grid;
  grid-template-columns: minmax(0,1fr) 46px;
  gap: 8px;
  align-items: stretch;
  margin-top: 14px;
}
.client-pack-publish-actions .client-pack-publish-button { margin-top: 0; }
.client-pack-schedule-restart-button {
  width: 46px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,132,132,.28);
  border-radius: 9px;
  background: rgba(137,48,48,.35);
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.client-pack-schedule-restart-button img { width: 25px; height: 25px; }
.client-pack-schedule-restart-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255,154,154,.52);
  background: rgba(164,55,55,.5);
}
.client-pack-schedule-restart-button:disabled { opacity: .42; cursor: not-allowed; }
.client-pack-maintenance-panel {
  border-color: rgba(255,174,83,.32) !important;
  background: rgba(105,68,24,.2) !important;
}
.client-pack-maintenance-panel > p { margin: 0; color: rgba(255,255,255,.62); }
.client-pack-maintenance-panel.is-success {
  border-color: rgba(92,211,134,.35) !important;
  background: rgba(37,103,62,.22) !important;
}
.client-pack-maintenance-panel.is-error {
  border-color: rgba(255,96,96,.38) !important;
  background: rgba(125,42,42,.2) !important;
}
.client-pack-server-connection { min-height: 560px; }
.server-admin-system-label { color: #ff6b6b; font-weight: 700; }
.server-admin-message-form { display: grid; gap: 8px; }
.server-admin-message-form > label { color: rgba(255,255,255,.66); font-size: 13px; }
.server-admin-message-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}
.server-admin-message-row input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  background: rgba(5,8,12,.7);
  color: #fff;
  font: inherit;
}
.server-admin-message-row .auth-submit { min-width: 132px; }
.server-admin-console-panel { min-height: 460px; display: flex; flex-direction: column; }
.server-admin-console-title code { color: #9bd9ff; }
.server-admin-console-state {
  min-width: auto !important;
  height: auto !important;
  padding: 6px 10px;
  color: #9ddfb4;
  font-size: 11px;
  white-space: nowrap;
}
.server-admin-console {
  flex: 1 1 auto;
  min-height: 380px;
  max-height: 68vh;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: #06090d;
  color: #d7dde4;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
}
.server-admin-console:focus { outline: 1px solid rgba(123,202,255,.42); outline-offset: 2px; }

                                                                           
                                                                
body.page-shell > #site-footer,
body > #site-footer,
.page-shell[data-page="profile"] #site-footer {
  margin-top: auto !important;
}

body.page-shell {
  min-height: 100dvh !important;
}

@media (max-width: 760px) {
  .client-pack-admin-page .admin-page-hero-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .admin-page-tabs { width: 100%; margin-left: 0; }
  .admin-page-tab { flex: 1 1 0; }
  .server-admin-message-row { grid-template-columns: 1fr; }
  .server-admin-message-row .auth-submit { width: 100%; }
  .server-admin-console { min-height: 330px; max-height: 62vh; }
}

/* Knowledge base: category navigation above a centered article. */
.page-shell[data-page="knowledge"] .knowledge-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.page-shell[data-page="knowledge"] .knowledge-topnav {
  width: max-content;
  max-width: 100%;
  padding: 0;
  position: sticky !important;
  top: 0 !important;
  z-index: 30;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-shell[data-page="knowledge"] .knowledge-sidebar-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow: visible;
}

.page-shell[data-page="knowledge"] .knowledge-category-button {
  width: auto;
  min-width: 0;
  padding: 12px 28px;
  justify-content: center;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  box-shadow: none;
  white-space: nowrap;
}

.page-shell[data-page="knowledge"] .knowledge-category-button + .knowledge-category-button {
  border-left: 1px solid rgba(116, 157, 193, 0.3);
}

.page-shell[data-page="knowledge"] .knowledge-category-button:hover {
  transform: none;
  border-color: transparent;
  background: none;
  color: #8ef3ff;
}

.page-shell[data-page="knowledge"] .knowledge-category-button.is-active {
  border-bottom-color: #72e5f4;
  background: none;
  box-shadow: none;
}

.page-shell[data-page="knowledge"] .knowledge-category-text { text-align: center; }

.page-shell[data-page="knowledge"] .knowledge-content {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 8px 24px 20px;
}

.page-shell[data-page="knowledge"] .knowledge-content-header { margin-bottom: 16px; }
.page-shell[data-page="knowledge"] .knowledge-content-header.is-empty { display: none; }

.page-shell[data-page="knowledge"] .knowledge-content-body {
  --knowledge-article-gap: 26px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: var(--knowledge-article-gap);
  row-gap: 0;
  align-items: stretch;
}

.page-shell[data-page="knowledge"] .knowledge-content-body > .knowledge-grid,
.page-shell[data-page="knowledge"] .knowledge-content-body .knowledge-page-content {
  min-width: 0;
  margin: 0;
}

.page-shell[data-page="knowledge"] .knowledge-content-body > .knowledge-grid.knowledge-article-grid,
.page-shell[data-page="knowledge"] .knowledge-content-body > .knowledge-grid.knowledge-article-grid > .knowledge-page-content,
.page-shell[data-page="knowledge"] .knowledge-content-body > .knowledge-grid.knowledge-article-grid > .knowledge-page-content > .knowledge-article-card {
  display: block !important;
  width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.page-shell[data-page="knowledge"] .knowledge-subtab-list,
.page-shell[data-page="knowledge"] .knowledge-subtab-list.knowledge-subtab-list--many {
  display: flex;
  flex-direction: column;
  width: max-content;
  margin: 0;
  padding: 0 12px 0 0;
  border: 0;
  border-right: 1px solid rgba(116, 157, 193, 0.3);
  border-radius: 0;
  background: none;
  gap: 0;
  align-self: stretch;
}

.page-shell[data-page="knowledge"] .knowledge-subtab,
.page-shell[data-page="knowledge"] .knowledge-subtab-list--many .knowledge-subtab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #aebdd1;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.page-shell[data-page="knowledge"] .knowledge-subtab-label {
  display: block;
  width: 100%;
  text-align: left;
}

.page-shell[data-page="knowledge"] .knowledge-subtab-list--many .knowledge-subtab + .knowledge-subtab {
  border-left: 2px solid transparent;
}

.page-shell[data-page="knowledge"] .knowledge-subtab:hover,
.page-shell[data-page="knowledge"] .knowledge-subtab.is-active,
.page-shell[data-page="knowledge"] .knowledge-subtab-list--many .knowledge-subtab.is-active {
  border-left-color: #72e5f4;
  background: rgba(26, 67, 94, 0.42);
  color: #edf8ff;
}

.page-shell[data-page="knowledge"] .knowledge-grid.knowledge-items-root,
.page-shell[data-page="knowledge"] .knowledge-grid.knowledge-article-grid {
  display: block;
}

.page-shell[data-page="knowledge"] .knowledge-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
  width: 100%;
  margin-left: 0;
  position: relative;
  left: var(--knowledge-items-align-shift, 0px);
}

.page-shell[data-page="knowledge"] .knowledge-items-grid .knowledge-card {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

/* Knowledge base: keep the category strip centered over the full content card,
   and let the item grid use the space that was formerly left empty on the right. */
@media (min-width: 901px) {
  .page-shell[data-page="knowledge"] .knowledge-topnav {
    width: 100%;
  }

  .page-shell[data-page="knowledge"] .knowledge-sidebar-list {
    margin-inline: auto;
  }

  .page-shell[data-page="knowledge"] .knowledge-content-body {
    --knowledge-article-gap: 18px;
  }

  .page-shell[data-page="knowledge"] .knowledge-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 8px;
  }
}

/* Do not let a hover erase the vertical separators between categories. */
.page-shell[data-page="knowledge"] .knowledge-category-button + .knowledge-category-button,
.page-shell[data-page="knowledge"] .knowledge-category-button + .knowledge-category-button:hover,
.page-shell[data-page="knowledge"] .knowledge-category-button + .knowledge-category-button:focus-visible,
.page-shell[data-page="knowledge"] .knowledge-category-button + .knowledge-category-button.is-active {
  border-left-color: rgba(116, 157, 193, 0.3);
}

/* The selected-category line has equal insets on both sides. */
.page-shell[data-page="knowledge"] .knowledge-category-button.is-active {
  position: relative;
  border-bottom-color: transparent;
}

.page-shell[data-page="knowledge"] .knowledge-category-button.is-active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -2px;
  left: 10px;
  height: 2px;
  background: #72e5f4;
  pointer-events: none;
}

/* The lead used to carry a separate top margin, making article copy begin
   lower than the first subtab.  Both now share the same top alignment. */
.page-shell[data-page="knowledge"] .knowledge-article-card--plain .knowledge-article-lead {
  margin-top: 0;
}

/* Desktop knowledge layout: navigation and the selected material live in
   separate cards, rather than in one shared panel. */
@media (min-width: 901px) {
  .page-shell[data-page="knowledge"] .knowledge-content.knowledge-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .page-shell[data-page="knowledge"] .knowledge-content-body {
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }

  .page-shell[data-page="knowledge"] .knowledge-subtab-list,
  .page-shell[data-page="knowledge"] .knowledge-subtab-list.knowledge-subtab-list--many {
    width: 100%;
    padding: 16px 14px 16px 8px;
    border: 1px solid rgba(91, 126, 166, 0.28);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(20, 34, 51, 0.96), rgba(14, 27, 44, 0.94)),
      radial-gradient(circle at top right, rgba(87, 216, 255, 0.08), transparent 42%);
    box-shadow: 0 16px 44px rgba(3, 12, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    align-self: start;
  }

  .page-shell[data-page="knowledge"] .knowledge-subtab,
  .page-shell[data-page="knowledge"] .knowledge-subtab-list--many .knowledge-subtab {
    padding: 11px 10px;
  }

  .page-shell[data-page="knowledge"] .knowledge-subtab-label {
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .page-shell[data-page="knowledge"] .knowledge-content-body > .knowledge-grid.knowledge-items-root,
  .page-shell[data-page="knowledge"] .knowledge-content-body > .knowledge-grid.knowledge-article-grid {
    box-sizing: border-box;
    padding: 24px !important;
    border: 1px solid rgba(91, 126, 166, 0.28);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(20, 34, 51, 0.96), rgba(14, 27, 44, 0.94)),
      radial-gradient(circle at top right, rgba(87, 216, 255, 0.08), transparent 42%);
    box-shadow: 0 16px 44px rgba(3, 12, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .page-shell[data-page="knowledge"] .knowledge-content-body > .knowledge-grid.knowledge-article-grid > .knowledge-page-content,
  .page-shell[data-page="knowledge"] .knowledge-content-body > .knowledge-grid.knowledge-article-grid > .knowledge-page-content > .knowledge-article-card {
    padding: 0 !important;
  }

  .page-shell[data-page="knowledge"] .knowledge-content-header:not(.is-empty) {
    margin-left: 206px;
    padding: 18px 20px;
    border: 1px solid rgba(91, 126, 166, 0.28);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20, 34, 51, 0.96), rgba(14, 27, 44, 0.94));
    box-shadow: 0 16px 44px rgba(3, 12, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
}

@media (max-width: 900px) {
  .page-shell[data-page="knowledge"] .knowledge-topnav { width: 100%; position: static; background: none; }
  .page-shell[data-page="knowledge"] .knowledge-sidebar-list { width: 100%; overflow-x: auto; }
  .page-shell[data-page="knowledge"] .knowledge-category-button { padding-inline: 18px; }
  .page-shell[data-page="knowledge"] .knowledge-content { width: 100%; padding: 8px 20px 18px; }
  .page-shell[data-page="knowledge"] .knowledge-content-body { --knowledge-article-gap: 18px; grid-template-columns: 1fr; row-gap: var(--knowledge-article-gap); }
  .page-shell[data-page="knowledge"] .knowledge-items-grid { margin-left: 0; width: 100%; left: 0; }
  .page-shell[data-page="knowledge"] .knowledge-subtab-list,
  .page-shell[data-page="knowledge"] .knowledge-subtab-list.knowledge-subtab-list--many { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; border-right: 0; }
}

/* Space between the last content block and the footer on every page. */
body.page-shell > main {
  padding-bottom: clamp(180px, 16vw, 240px) !important;
}

@media (max-width: 640px) {
  body.page-shell > main { padding-bottom: 140px !important; }
}

/* Password recovery */
.auth-pane[data-auth-pane="recover"] .recover-send-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; }
.recover-channels { display:flex; gap:10px; }
.recover-channel { position:relative; display:inline-flex; width:48px; height:44px; cursor:pointer; }
.recover-channel input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.recover-channel > span:first-of-type { display:grid; place-items:center; width:100%; border:1px solid rgba(126,199,255,.2); border-radius:12px; background:#071526; color:#b9cce6; }
.recover-channel input:checked + span { border-color:#5ed287; background:#174c34; color:white; }
.recover-channel input:focus-visible + span { outline:2px solid #7ec7ff; outline-offset:2px; }
.recover-channel svg { width:23px; height:23px; fill:currentColor; stroke:currentColor; stroke-width:1.6; }
.recover-channel[value="email"] svg, .recover-channel:has([value="email"]) svg { fill:none; }
.recover-send-button { flex:none; display:grid; place-items:center; width:38px; height:38px; padding:0; border:0; border-radius:50%; background:#20a858; color:white; cursor:pointer; }
.recover-send-button.is-sent { background:#777f8a; }
.recover-send-button svg, .recover-code-status svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.recover-send-button:focus-visible, .recover-eye:focus-visible { outline:2px solid #7ec7ff; outline-offset:2px; }
.recover-feedback { margin:0; overflow-wrap:anywhere; color:#dce9f7; font-size:.9rem; line-height:1.4; }
.recover-feedback.is-error { color:#ffaaaa; }
.auth-pane[data-auth-pane="recover"] .recover-reset-form { margin-top:14px; }
.auth-pane[data-auth-pane="recover"] .recover-code-field, .auth-pane[data-auth-pane="recover"] .recover-password-field { position:relative; }
.auth-pane[data-auth-pane="recover"] .recover-code-field input, .auth-pane[data-auth-pane="recover"] .recover-password-field input { padding-right:40px; box-sizing:border-box; }
.recover-code-status { position:absolute; right:10px; top:50%; transform:translateY(-50%); width:25px; height:25px; border-radius:50%; display:none; place-items:center; color:white; }
.recover-code-status.is-valid, .recover-code-status.is-invalid { display:grid; }
.recover-code-status.is-valid { background:#20a858; }
.recover-code-status.is-invalid { background:#cf4848; }
.recover-password-fields { display:grid; gap:10px; }
.recover-password-fields[hidden] { display:none !important; }
.recover-eye { position:absolute; right:9px; top:50%; transform:translateY(-50%); width:28px; height:28px; padding:2px; border:0; background:transparent; color:#c8d6e8; cursor:pointer; }
.recover-eye::before { content:'◉'; font-size:20px; line-height:24px; }
.recover-eye[aria-pressed="true"]::before { content:'◎'; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:360px) { .auth-dropdown { max-height:calc(100dvh - 75px); overflow-y:auto; } }

/* Recovery controls and profile contact verification */
.recover-channel { width:46px; height:44px; }
.recover-channel > span:first-of-type { border-radius:13px; background:linear-gradient(180deg,#0c2137,#08182a); box-shadow:inset 0 1px rgba(255,255,255,.06); }
.recover-channel:hover > span:first-of-type { border-color:rgba(126,199,255,.55); color:#fff; }
.recover-channel input:checked + span { border-color:#52d3a0; background:linear-gradient(180deg,#123d3a,#0d3034); box-shadow:0 0 0 2px rgba(82,211,160,.12); }
.recover-channel svg { width:22px; height:22px; stroke:none; }
.recover-channel:has([value="email"]) svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.recover-send-button { width:42px; height:42px; border:2px solid #5be29a; background:linear-gradient(180deg,#29bd6a,#169a50); box-shadow:0 3px 12px rgba(22,154,80,.25),inset 0 1px rgba(255,255,255,.25); transition:transform .15s,background .15s,box-shadow .15s; }
.recover-send-button:hover { transform:translateY(-1px); box-shadow:0 5px 16px rgba(22,154,80,.38); }
.recover-send-button.is-sent { border-color:#9ba5b2; background:linear-gradient(180deg,#828d9a,#697481); box-shadow:none; }
.recover-send-button svg { width:23px; height:23px; stroke-width:3.2; }
.recover-code-status.is-invalid svg { display:none; }
.recover-code-status.is-invalid::before { content:'×'; font-size:21px; font-weight:700; line-height:1; }
.recovery-settings-card { overflow:hidden; }
.recovery-settings-heading { display:flex; align-items:flex-start; gap:14px; margin-bottom:20px; }
.recovery-settings-heading > div { min-width:0; }
.recovery-settings-heading strong { font-size:1.05rem; }
.recovery-settings-heading p { margin-top:5px; line-height:1.5; }
.recovery-settings-heading-icon { display:grid; place-items:center; flex:none; width:38px; height:38px; border-radius:12px; background:rgba(83,166,235,.12); color:#8acaff; }
.recovery-settings-heading-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.recovery-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.recovery-method-card { display:flex; flex-direction:column; gap:18px; min-width:0; padding:18px; border:1px solid rgba(126,199,255,.16); border-radius:18px; background:linear-gradient(180deg,rgba(14,34,55,.85),rgba(7,21,37,.9)); }
.recovery-method-head { display:flex; align-items:center; gap:13px; min-width:0; }
.recovery-method-head > div { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:0; }
.recovery-method-head strong { font-size:1rem; }
.recovery-method-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:13px; }
.recovery-method-icon svg { width:24px; height:24px; }
.recovery-method-icon-email { color:#9fd0ff; background:rgba(89,157,230,.14); }
.recovery-method-icon-email svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.recovery-method-icon-telegram { color:#74caff; background:rgba(58,155,225,.16); }
.recovery-method-state { display:inline-block; padding:3px 9px; border-radius:999px; background:rgba(255,180,104,.12); color:#e8bb88; font-size:.78rem; white-space:nowrap; }
.recovery-method-state.is-linked { background:rgba(63,203,120,.13); color:#86e7a9; }
.recovery-method-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:auto; }
.recovery-method-action { align-self:flex-start; min-height:38px; padding:8px 14px; border:1px solid rgba(95,192,255,.4); border-radius:11px; background:rgba(55,137,198,.16); color:#ddecff; font:inherit; font-weight:700; cursor:pointer; }
.recovery-method-action:hover { background:rgba(55,137,198,.28); border-color:rgba(95,192,255,.7); }
.recovery-method-action:disabled { opacity:.6; cursor:wait; }
.recovery-method-link { border:0; background:transparent; color:#d9a9a9; font:inherit; cursor:pointer; }
.recovery-method-link:hover { color:#fff; text-decoration:underline; }
.recovery-settings-card [hidden] { display:none !important; }
#recovery-email-verify-form { display:grid; gap:7px; }
#recovery-email-verify-form label { color:#aebed2; font-size:.84rem; }
.recovery-email-code-row { display:flex; gap:8px; flex-wrap:wrap; }
.recovery-email-code-row input { width:min(155px,100%); min-height:38px; padding:0 11px; border:1px solid rgba(126,199,255,.25); border-radius:10px; background:#071526; color:white; font:inherit; }
.recovery-email-code-row button { padding:8px 12px; border:1px solid rgba(79,206,132,.4); border-radius:10px; background:rgba(30,140,76,.2); color:#d8ffe5; font:inherit; font-weight:700; cursor:pointer; }
.recovery-settings-feedback { margin-top:16px !important; padding:10px 12px; border-radius:10px; background:rgba(80,170,230,.09); color:#cde7ff !important; overflow-wrap:anywhere; }
.recovery-settings-feedback.is-error { background:rgba(225,86,86,.1); color:#ffb4b4 !important; }
@media (max-width:700px) { .recovery-settings-grid { grid-template-columns:1fr; } .recovery-method-card { padding:15px; } }

/* Match the monochrome contact-service icons above the recovery settings. */
.auth-pane[data-auth-pane="recover"] .recover-channels { gap:8px; }
.auth-pane[data-auth-pane="recover"] .recover-channel { width:44px; height:44px; }
.auth-pane[data-auth-pane="recover"] .recover-channel > span:first-of-type {
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  background:rgba(255,255,255,.045);
  box-shadow:none;
  color:#f1f5fb;
}

.profile-wall .wall-editor-root--tinymce .improve-tiny-textarea {
  display: block;
  width: 100%;
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--text);
  font: 15px/1.5 Tahoma, Arial, sans-serif;
  resize: vertical;
}

.profile-wall .wall-rich-editor-shell-comment .improve-tiny-textarea {
  min-height: 72px;
}

.profile-wall-post-composer .community-send-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.profile-wall-post-composer .community-send-field > .community-send-button {
  position: static !important;
  justify-self: end;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  background: var(--panel-2) !important;
  color: var(--accent-2) !important;
}

@media (max-width: 700px) {
  .page-shell .wall-editor-root--tinymce .tox .tox-tbtn[data-mce-name="improvespoiler"] {
    min-width: 68px !important;
    width: 68px !important;
  }

  .page-shell .wall-editor-root--tinymce .tox .tox-tbtn[data-mce-name="improvecolor"] {
    min-width: 64px !important;
    width: 64px !important;
  }
}
.auth-pane[data-auth-pane="recover"] .recover-channel:hover > span:first-of-type {
  border-color:rgba(255,255,255,.38);
  background:rgba(255,255,255,.08);
}
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + span {
  border-color:rgba(255,255,255,.74);
  background:rgba(255,255,255,.13);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
  color:#fff;
}
.auth-pane[data-auth-pane="recover"] .recover-channel svg { width:22px; height:22px; fill:currentColor; stroke:none; }
.auth-pane[data-auth-pane="recover"] .recover-channel:has([value="email"]) svg { fill:currentColor; stroke:none; }
.auth-pane[data-auth-pane="recover"] .recover-send-button { border:0; background:#27b66a; box-shadow:none; }
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover { background:#36c77a; box-shadow:none; }
.auth-pane[data-auth-pane="recover"] .recover-send-button.is-sent { background:#87919d; }
.recovery-settings-heading { margin-bottom:18px; }
.recovery-settings-grid { gap:12px; }
.recovery-method-card {
  align-items:center;
  gap:14px;
  border-color:rgba(255,255,255,.1);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  text-align:center;
}
.recovery-method-head { flex-direction:column; justify-content:center; gap:8px; }
.recovery-method-head > div { align-items:center; gap:5px; }
.recovery-method-icon, .recovery-method-icon-email, .recovery-method-icon-telegram {
  width:28px;
  height:28px;
  border-radius:0;
  background:none;
  color:#f1f5fb;
}
.recovery-method-icon svg { width:25px; height:25px; fill:currentColor; stroke:none; }
.recovery-method-icon-email svg { fill:currentColor; stroke:none; }
.recovery-method-actions { justify-content:center; }
.recovery-method-action { align-self:center; }
.recovery-method-card #recovery-email-verify-form { width:100%; text-align:left; }
.recovery-method-state { background:none; padding:0; color:#abb9ca; }
.recovery-method-state.is-linked { background:none; color:#88dca8; }

/* Recovery icon clarity: draw vectors at their native 24px grid or larger. */
.recover-channel-label { margin:2px 0 -4px; color:#afbed0; font-size:.81rem; line-height:1.35; }
.auth-pane[data-auth-pane="recover"] .recover-channel { width:48px; height:48px; }
.auth-pane[data-auth-pane="recover"] .recover-channel svg { width:28px; height:28px; display:block; }
.auth-pane[data-auth-pane="recover"] .recover-channel:has([value="email"]) svg,
.auth-pane[data-auth-pane="recover"] .recover-channel svg:has(rect) {
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.auth-pane[data-auth-pane="recover"] .recover-send-button,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover {
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  background:rgba(255,255,255,.055);
  box-shadow:none;
  color:#f1f5fb;
}
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover { border-color:rgba(255,255,255,.45); background:rgba(255,255,255,.1); }
.auth-pane[data-auth-pane="recover"] .recover-send-button.is-sent { border-color:rgba(255,255,255,.1); background:rgba(255,255,255,.035); color:#98a6b6; }
.auth-pane[data-auth-pane="recover"] .recover-send-button svg { width:28px; height:28px; stroke-width:2.1; }
.recovery-method-icon { width:32px; height:32px; }
.recovery-method-icon svg { width:28px; height:28px; display:block; }
.recovery-method-icon-email svg { fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

/* Compact labeled channel buttons match the site's contact tiles. */
.auth-pane[data-auth-pane="recover"] .recover-send-row { display:flex; gap:6px; min-height:48px; }
.auth-pane[data-auth-pane="recover"] .recover-channels { display:flex; flex:1 1 auto; min-width:0; gap:6px; }
.auth-pane[data-auth-pane="recover"] .recover-channel { flex:1 1 0; min-width:0; width:auto; height:48px; }
.auth-pane[data-auth-pane="recover"] .recover-channel > .recover-channel-face,
.auth-pane[data-auth-pane="recover"] .recover-send-button,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  box-sizing:border-box;
  height:48px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:13px;
  background:rgba(255,255,255,.045);
  box-shadow:inset 0 1px rgba(255,255,255,.035);
  color:#eaf0f8;
  font-size:.75rem;
  font-weight:600;
  white-space:nowrap;
}
.auth-pane[data-auth-pane="recover"] .recover-channel > .recover-channel-face { width:100%; padding:0 5px; }
.auth-pane[data-auth-pane="recover"] .recover-channel:hover > .recover-channel-face,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover { border-color:rgba(255,255,255,.38); background:rgba(255,255,255,.085); }
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + .recover-channel-face {
  border-color:rgba(255,255,255,.7);
  background:rgba(255,255,255,.11);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
.auth-pane[data-auth-pane="recover"] .recover-channel svg { flex:none; width:20px; height:20px; }
.auth-pane[data-auth-pane="recover"] .recover-send-button,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover { flex:0 0 104px; width:104px; padding:0 5px; transform:none; cursor:pointer; }
.auth-pane[data-auth-pane="recover"] .recover-send-button svg { flex:none; width:16px; height:16px; stroke-width:2; }
.auth-pane[data-auth-pane="recover"] .recover-send-button.is-sent { border-color:rgba(255,255,255,.13); background:rgba(255,255,255,.045); color:#9ba8b8; }
@media (max-width:350px) {
  .auth-pane[data-auth-pane="recover"] .recover-channel > .recover-channel-face,
  .auth-pane[data-auth-pane="recover"] .recover-send-button { font-size:.69rem; gap:3px; }
  .auth-pane[data-auth-pane="recover"] .recover-send-button,
  .auth-pane[data-auth-pane="recover"] .recover-send-button:hover { flex-basis:96px; width:96px; }
  .auth-pane[data-auth-pane="recover"] .recover-channel svg { width:18px; height:18px; }
}
.auth-dropdown { width:min(360px,calc(100vw - 20px)) !important; }
@media (max-width:720px) { .auth-dropdown { width:min(360px,calc(100vw - 20px)) !important; } }
.auth-pane[data-auth-pane="recover"] .recover-send-button,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover { flex-basis:116px; width:116px; font-size:.72rem; }
@media (max-width:350px) {
  .auth-pane[data-auth-pane="recover"] .recover-send-button,
  .auth-pane[data-auth-pane="recover"] .recover-send-button:hover { flex-basis:96px; width:96px; font-size:.65rem; }
}

/* Full-width recovery choice and action. */
.auth-pane[data-auth-pane="recover"] .recover-send-row {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:9px;
  min-height:0;
}
.auth-pane[data-auth-pane="recover"] .recover-channels {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  width:100%;
  border:1px solid rgba(170,195,224,.25);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.auth-pane[data-auth-pane="recover"] .recover-channel { width:100%; height:48px; }
.auth-pane[data-auth-pane="recover"] .recover-channel + .recover-channel { border-left:1px solid rgba(170,195,224,.18); }
.auth-pane[data-auth-pane="recover"] .recover-channel > .recover-channel-face {
  width:100%;
  height:100%;
  gap:9px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#c4d2e5;
  font-size:.91rem;
  font-weight:500;
}
.auth-pane[data-auth-pane="recover"] .recover-channel:hover > .recover-channel-face { border:0; background:rgba(167,199,234,.07); color:#f3f7fd; }
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + .recover-channel-face {
  border:0;
  background:rgba(165,192,222,.16);
  box-shadow:inset 0 0 0 1px rgba(181,208,240,.35);
  color:#f4f8ff;
}
.auth-pane[data-auth-pane="recover"] .recover-channel svg { width:23px; height:23px; }
.auth-pane[data-auth-pane="recover"] .recover-send-button,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover {
  display:flex;
  justify-content:space-between;
  width:100%;
  height:48px;
  padding:0 14px;
  border:1px solid rgba(170,195,224,.25);
  border-radius:14px;
  background:rgba(255,255,255,.045);
  box-shadow:none;
  color:#e8f0fc;
  font-size:.91rem;
  font-weight:700;
  text-align:left;
}
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover { border-color:rgba(190,216,245,.48); background:rgba(255,255,255,.075); }
.auth-pane[data-auth-pane="recover"] .recover-send-button.is-sent { border-color:rgba(170,195,224,.18); background:rgba(255,255,255,.035); color:#aebdce; }
.auth-pane[data-auth-pane="recover"] .recover-send-button svg { width:21px; height:21px; stroke-width:2; }
@media (max-width:350px) {
  .auth-pane[data-auth-pane="recover"] .recover-channel > .recover-channel-face { font-size:.83rem; }
  .auth-pane[data-auth-pane="recover"] .recover-send-button { font-size:.87rem; }
}

/* Refine the recovery control as one clean segmented field. */
.auth-pane[data-auth-pane="recover"] .auth-form[data-auth-form="recover-request"] { gap:12px; }
.auth-pane[data-auth-pane="recover"] .recover-channel-label {
  margin:4px 0 -2px;
  color:#b6c6dc;
  font-size:.88rem;
  font-weight:500;
}
.auth-pane[data-auth-pane="recover"] .recover-send-row { gap:12px; }
.auth-pane[data-auth-pane="recover"] .recover-channels {
  border:1px solid rgba(126,199,255,.22);
  border-radius:13px;
  background:rgba(8,23,40,.92);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.auth-pane[data-auth-pane="recover"] .recover-channel,
.auth-pane[data-auth-pane="recover"] .recover-channel + .recover-channel { border:0; }
.auth-pane[data-auth-pane="recover"] .recover-channel:first-child::after {
  content:'';
  position:absolute;
  right:0;
  top:10px;
  bottom:10px;
  width:1px;
  background:rgba(126,199,255,.18);
  pointer-events:none;
}
.auth-pane[data-auth-pane="recover"] .recover-channel > .recover-channel-face,
.auth-pane[data-auth-pane="recover"] .recover-channel:hover > .recover-channel-face,
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + .recover-channel-face {
  border:0;
  border-radius:0;
}
.auth-pane[data-auth-pane="recover"] .recover-channel > .recover-channel-face {
  height:50px;
  background:transparent;
  box-shadow:none;
  font-size:.9rem;
  font-weight:600;
}
.auth-pane[data-auth-pane="recover"] .recover-channel { height:50px; }
.auth-pane[data-auth-pane="recover"] .recover-channel:hover > .recover-channel-face { background:rgba(124,172,220,.07); }
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + .recover-channel-face {
  background:rgba(124,172,220,.12);
  box-shadow:inset 0 -2px 0 rgba(141,202,250,.8);
}
.auth-pane[data-auth-pane="recover"] .recover-send-button,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover {
  height:50px;
  border-color:rgba(126,199,255,.22);
  border-radius:13px;
  background:rgba(8,23,40,.92);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  font-size:.9rem;
}
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover { border-color:rgba(126,199,255,.48); background:rgba(20,43,66,.96); }
.auth-pane[data-auth-pane="recover"] .recover-send-button.is-sent { background:rgba(8,23,40,.92); }
.auth-pane[data-auth-pane="recover"] .recover-channel > span.recover-channel-face:first-of-type {
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none;
}
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + span.recover-channel-face:first-of-type {
  box-shadow:inset 0 -2px 0 rgba(141,202,250,.8);
}

/* Auth popup uses neutral controls; no blue accents or center divider. */
.auth-pane[data-auth-pane="recover"] .recover-channels,
.auth-pane[data-auth-pane="recover"] .recover-send-button,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover,
.auth-pane[data-auth-pane="recover"] .recover-send-button.is-sent {
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.035);
  box-shadow:none;
}
.auth-pane[data-auth-pane="recover"] .recover-channel:first-child::after { display:none; }
.auth-pane[data-auth-pane="recover"] .recover-channel:hover > span.recover-channel-face:first-of-type {
  background:rgba(255,255,255,.06);
}
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + span.recover-channel-face:first-of-type {
  background:rgba(255,255,255,.10);
  box-shadow:none;
}
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover {
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.07);
}

/* Use the auth tab palette for recovery actions. */
.auth-pane[data-auth-pane="recover"] .recover-channels {
  gap:8px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.auth-pane[data-auth-pane="recover"] .recover-channel > span.recover-channel-face:first-of-type {
  border:1px solid rgba(255,255,255,.06) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.03);
  color:var(--text-soft);
}
.auth-pane[data-auth-pane="recover"] .recover-channel:hover > span.recover-channel-face:first-of-type {
  border-color:rgba(255,255,255,.11) !important;
  background:rgba(255,255,255,.05);
  color:var(--text);
}
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + span.recover-channel-face:first-of-type {
  border-color:rgba(126,199,255,.14) !important;
  background:rgba(255,255,255,.05);
  color:var(--text);
  box-shadow:none;
}
.auth-pane[data-auth-pane="recover"] .recover-send-button,
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover,
.auth-pane[data-auth-pane="recover"] .recover-send-button.is-sent {
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  box-shadow:none;
  color:var(--text-soft);
}
.auth-pane[data-auth-pane="recover"] .recover-send-button:hover {
  border-color:rgba(255,255,255,.11);
  background:rgba(255,255,255,.05);
  color:var(--text);
}
.auth-pane[data-auth-pane="recover"] .recover-send-button.is-sent { color:rgba(190,205,223,.55); }

/* Selected recovery channel must remain obvious without a new accent color. */
.auth-pane[data-auth-pane="recover"] .recover-channel > span.recover-channel-face:first-of-type {
  color:#9aabc0;
}
.auth-pane[data-auth-pane="recover"] .recover-channel input:checked + span.recover-channel-face:first-of-type {
  border-color:rgba(245,250,255,.55) !important;
  background:rgba(245,250,255,.15);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(245,250,255,.16),0 0 0 1px rgba(245,250,255,.07);
}

/* One small vector eye for login, registration and recovery. */
.auth-password-toggle { right:8px; width:26px; height:26px; }
.auth-password-toggle svg,
.auth-pane[data-auth-pane="recover"] .recover-eye svg {
  display:block;
  width:20px;
  height:20px;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  shape-rendering:geometricPrecision;
}
.auth-pane[data-auth-pane="recover"] .recover-eye {
  display:flex;
  align-items:center;
  justify-content:center;
  right:7px;
  width:28px;
  height:28px;
  padding:0;
  color:rgba(235,242,252,.88);
}
.auth-pane[data-auth-pane="recover"] .recover-eye::before { content:none !important; }

.auth-pane[data-auth-pane="recover"] .recover-feedback.is-cooldown {
  margin:-7px 4px 0;
  color:#8997a9;
  font-size:.75rem;
  line-height:1.35;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-variant-numeric:tabular-nums;
}
.auth-pane[data-auth-pane="recover"] .recover-feedback.is-cooldown time { margin-left:auto; }

/* Keep the fourth profile tab beside Privates and fully hide it for visitors. */
.profile-tab-button[data-profile-tab="settings"] { margin-left:0 !important; justify-self:start !important; }
.profile-tab-button[data-profile-tab="settings"][hidden] { display:none !important; }

/* Profile settings use the same surface as profile cards. */
#profile-tab-settings { margin-top: 24px; }
#profile-tab-settings > .profile-block {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#profile-settings {
  min-width: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--unified-chat-box-bg);
  box-shadow: var(--shadow);
}
#profile-settings > .profile-placeholder-card {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 34px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 90px;
}
#profile-settings > .profile-placeholder-card:last-child { border-bottom: 0; }
#profile-settings > .profile-placeholder-card > strong,
#profile-settings .recovery-settings-heading strong {
  font-size: 1.08rem;
  line-height: 1.3;
}
#profile-settings > .profile-placeholder-card > p {
  max-width: 650px;
  line-height: 1.5;
}
#profile-settings .profile-contacts-privacy-panel,
#profile-settings .profile-contacts-editor {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#profile-settings .profile-contacts-privacy-panel {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
}
#profile-settings .recovery-method-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#profile-settings .recovery-method-card + .recovery-method-card {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) {
  #profile-settings > .profile-placeholder-card { padding: 24px 20px; }
}
@media (max-width: 700px) {
  #profile-settings .recovery-method-card + .recovery-method-card {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Keep contact editing next to the contacts it manages. */
#profile-settings .profile-contacts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#profile-settings .profile-contacts-heading > strong { font-size: 1.08rem; }
#profile-settings .profile-contacts-trigger,
#profile-settings .recovery-method-action,
#profile-settings .recovery-method-link,
#profile-settings #recovery-email-verify {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
#profile-settings .profile-contacts-trigger:hover,
#profile-settings .recovery-method-action:hover,
#profile-settings .recovery-method-link:hover,
#profile-settings #recovery-email-verify:hover {
  border-color: rgba(190,210,234,.32);
  background: rgba(255,255,255,.07);
  color: #fff;
}
#profile-settings .profile-contacts-list { margin-top: 2px; }
#profile-settings .profile-contacts-empty { margin: 0; }
#profile-settings .profile-contacts-privacy-panel {
  margin: 4px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

/* Recovery channels as concise settings rows. */
#profile-settings .recovery-settings-heading { margin-bottom: 18px; }
#profile-settings .recovery-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
#profile-settings .recovery-method-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  min-width: 0;
  padding: 15px 0;
}
#profile-settings .recovery-method-card + .recovery-method-card {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  border-left: 0;
}
#profile-settings .recovery-method-head { gap: 13px; min-width: 0; }
#profile-settings .recovery-method-head > div { gap: 3px; min-width: 0; }
#profile-settings .recovery-method-icon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  color: var(--text);
}
#profile-settings .recovery-method-icon svg { width: 23px; height: 23px; }
#profile-settings .recovery-method-identity {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-soft);
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#profile-settings .recovery-method-state {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
}
#profile-settings .recovery-method-state.is-linked { background: transparent; color: #8fc5a8; }
#profile-settings .recovery-method-action,
#profile-settings .recovery-method-actions { margin: 0; justify-self: end; }
#profile-settings .recovery-method-actions { gap: 8px; }
#profile-settings #recovery-email-verify-form { grid-column: 1 / -1; margin-left: 47px; }
#profile-settings .recovery-settings-feedback { margin-top: 18px !important; }
@media (max-width: 560px) {
  #profile-settings .recovery-method-card { grid-template-columns: minmax(0, 1fr); }
  #profile-settings .recovery-method-action,
  #profile-settings .recovery-method-actions { justify-self: start; margin-left: 47px; }
  #profile-settings #recovery-email-verify-form { margin-left: 0; }
}

/* Descriptions sit directly below the setting they explain. */
#profile-settings > .profile-placeholder-card > p,
#profile-settings .recovery-settings-heading p,
#profile-settings .profile-wall-setting-copy small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.45;
}
#profile-settings .profile-avatar-settings-card,
#profile-settings .profile-notifications-settings-card,
#profile-settings .profile-signature-settings-card,
#profile-settings .profile-contacts-settings-card { row-gap: 0; }
#profile-settings > .profile-placeholder-card > p { margin: 5px 0 18px; }
#profile-settings .profile-contacts-heading { display: block; }
#profile-settings .profile-contacts-trigger {
  width: fit-content !important;
  justify-self: start;
  margin: 0 0 16px;
}
#profile-settings .profile-contacts-editor { margin-bottom: 16px; }
#profile-settings .profile-contacts-list { margin: 0 0 16px; }
#profile-settings .profile-contacts-privacy-panel { margin-top: 0; }
#profile-settings .profile-wall-setting-copy { display: grid; gap: 4px; min-width: 0; }
#profile-settings .profile-wall-setting-copy small { display: block; max-width: 580px; }
#profile-settings .profile-wall-setting-row { align-items: center; }
#profile-settings .profile-signature-input-label { margin-bottom: 8px; }
#profile-settings .profile-signature-meta { margin-top: 8px; }
#profile-settings .profile-signature-actions { margin-top: 16px; }
#profile-settings .profile-avatar-editor { margin-top: 16px; }
#profile-settings .recovery-settings-heading p { margin: 5px 0 0; }

/* Give setting hints the full row; keep recovery controls compact and aligned. */
#profile-settings > .profile-placeholder-card > p { max-width: none; }
#profile-settings .profile-wall-setting-copy small { max-width: none; }
#profile-settings .recovery-settings-heading,
#profile-settings .recovery-settings-grid,
#profile-settings .recovery-settings-feedback { max-width: 720px; }
#profile-settings .recovery-method-card { align-items: center; text-align: left; }
#profile-settings .recovery-method-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  text-align: left;
}
#profile-settings .recovery-method-head > div { align-items: flex-start; text-align: left; }
#profile-settings .recovery-method-icon-email svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#profile-settings .recovery-method-icon-telegram svg { fill: currentColor; stroke: none; }
#profile-settings .recovery-method-action { align-self: center; width: auto !important; }
#profile-settings .recovery-method-actions { justify-content: flex-end; }
#profile-settings .recovery-method-link {
  width: auto !important;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
#profile-settings .recovery-method-link:hover { border-color: transparent; background: transparent; color: var(--text); }
@media (max-width: 560px) {
  #profile-settings .recovery-method-actions { justify-content: flex-start; }
}

/* Profile settings: separate, quiet sections with a shared switch control. */
.profile-settings-intro { margin: 0 0 18px; }
.profile-settings-intro h2 { margin: 0 0 5px; color: var(--text); font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.2; }
.profile-settings-intro p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
#profile-settings { display: flex; flex-direction: column; gap: 12px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#profile-settings > .profile-placeholder-card,
#profile-settings > .profile-placeholder-card:last-child { min-width: 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--unified-chat-box-bg); box-shadow: none; }
#profile-settings > .profile-placeholder-card > strong,
#profile-settings .recovery-settings-heading strong { display: block; font-size: 1rem; }
#profile-settings > .profile-placeholder-card > p { margin: 5px 0 16px; }
#profile-settings .profile-avatar-current { grid-template-columns: 106px minmax(0, 1fr); align-items: center; }
#profile-settings .profile-avatar-current-preview { width: 106px; border-radius: 14px; }
#profile-settings .profile-avatar-current-info { display: flex; flex-direction: column; gap: 8px; }
#profile-settings .profile-avatar-actions { order: 1; }
#profile-settings .profile-avatar-current-label { order: 2; font-size: .82rem; }
#profile-settings .profile-signature-input-label { display: none; }
#profile-settings .profile-signature-input { min-height: 84px; border-radius: 9px; }
#profile-settings .profile-signature-meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); font-size: .82rem; }
#profile-settings .profile-signature-meta { margin: 0; font-size: inherit; }
#profile-settings #profile-signature-count { flex: none; }
#profile-settings .profile-signature-actions { margin-top: 12px; }
#profile-settings .profile-wall-settings-list { gap: 0; }
#profile-settings .profile-wall-setting-row { flex-wrap: nowrap; min-height: 52px; }
#profile-settings .profile-wall-settings-list .profile-wall-setting-row + .profile-wall-setting-row { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
#profile-settings .profile-wall-setting-copy { min-width: 0; }
#profile-settings .profile-wall-setting-copy small { line-height: 1.4; }
#profile-settings .profile-setting-switch { position: relative; display: block; width: 48px; height: 28px; min-width: 48px; padding: 0; border: 1px solid rgba(151, 174, 200, .28); border-radius: 999px; background: #182838; box-shadow: none; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
#profile-settings .profile-setting-switch > span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f5f8fc; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: transform .18s ease; }
#profile-settings .profile-setting-switch.is-on { border-color: #6999bf; background: #225d89; }
#profile-settings .profile-setting-switch.is-on > span { transform: translateX(20px); }
#profile-settings .profile-setting-switch:focus-visible { outline: 2px solid #93c4e9; outline-offset: 3px; }
#profile-settings .profile-setting-switch:disabled { opacity: .5; cursor: wait; }
#profile-settings .profile-contacts-privacy-panel { padding: 14px 0 0; }
#profile-settings .profile-contacts-list { margin-bottom: 12px; }
#profile-settings .recovery-settings-heading,
#profile-settings .recovery-settings-grid,
#profile-settings .recovery-settings-feedback { max-width: none; }
#profile-settings .recovery-method-card + .recovery-method-card { padding-top: 15px; }
#profile-settings .profile-avatar-actions button,
#profile-settings .profile-signature-actions button,
#profile-settings .profile-contacts-trigger { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 38px; width: auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); color: var(--text); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
#profile-settings .profile-avatar-actions button:hover,
#profile-settings .profile-signature-actions button:hover,
#profile-settings .profile-contacts-trigger:hover { border-color: rgba(190,210,234,.32); background: rgba(255,255,255,.07); }
#profile-settings .profile-avatar-actions button:disabled { opacity: .45; cursor: default; }
#profile-settings .profile-avatar-actions button svg,
#profile-settings .profile-signature-actions button svg,
#profile-settings .profile-contacts-trigger svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#profile-settings .profile-avatar-actions button,
#profile-settings .profile-signature-actions button,
#profile-settings .profile-contacts-trigger { flex: 0 0 auto; margin: 0; }
#profile-settings .profile-avatar-actions,
#profile-settings .profile-signature-actions { column-gap: 12px; row-gap: 10px; }
#profile-settings .recovery-unlink-confirm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
#profile-settings .recovery-unlink-confirm[hidden] { display: none; }
#profile-settings .recovery-unlink-confirm label { display: block; margin-bottom: 8px; color: var(--text); font-size: .88rem; font-weight: 700; }
#profile-settings .recovery-unlink-confirm-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#profile-settings .recovery-unlink-confirm-row input { width: 145px; max-width: 100%; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.18); color: var(--text); font: inherit; }
#profile-settings .recovery-unlink-confirm-row button { margin: 0; }
@media (max-width: 600px) {
  #profile-settings > .profile-placeholder-card,
  #profile-settings > .profile-placeholder-card:last-child { padding: 18px 16px; }
  #profile-settings .profile-avatar-current { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }
  #profile-settings .profile-avatar-current-preview { width: 82px; }
  #profile-settings .profile-avatar-actions button { padding: 7px 10px; }
  #profile-settings .profile-signature-meta-row { flex-wrap: wrap; }
  #profile-settings .profile-avatar-actions,
  #profile-settings .profile-signature-actions { align-items: stretch; }
  #profile-settings .profile-avatar-actions button,
  #profile-settings .profile-signature-actions button { max-width: 100%; }
  #profile-settings .recovery-unlink-confirm-row input { flex: 1 1 120px; }
}

/* Saved profile contacts read as simple logo and ID rows. */
#profile-settings .profile-contacts-list { gap: 4px; }
#profile-settings .profile-contact-chip {
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#profile-settings .profile-contact-chip-icon { align-self: center; }
#profile-settings .profile-contact-chip-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#profile-settings .profile-contact-chip-remove {
  border: 0;
  background: transparent;
}
#profile-settings .profile-contact-chip-remove:hover,
#profile-settings .profile-contact-chip-remove:focus-visible { border: 0; background: rgba(255, 82, 82, .1); }

/* Keep the contact action distinct from the editor or saved rows. */
#profile-settings .profile-contacts-trigger { margin-bottom: 16px; }
#profile-settings .profile-contact-chip-remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 1;
}
#profile-settings .profile-contact-chip-remove svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Contact IDs can be longer than the profile header on phones. */
.profile-tab-tooltip { max-width: calc(100vw - 20px); overflow-wrap: anywhere; white-space: normal; }

/* Password recovery inside the owner's settings. */
#profile-settings .profile-password-recovery-card > p { margin-bottom: 18px; }
#profile-settings #profile-password-recovery-form { display: grid; gap: 12px; width: min(100%, 660px); }
#profile-settings .profile-password-recovery-label { color: var(--muted); font-size: .88rem; }
#profile-settings .profile-password-recovery-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#profile-settings .profile-password-recovery-channel { position: relative; display: block; min-width: 0; cursor: pointer; }
#profile-settings .profile-password-recovery-channel input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#profile-settings .profile-password-recovery-channel > span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); color: var(--text-soft); font-size: .9rem; font-weight: 700; transition: background .15s ease, border-color .15s ease; }
#profile-settings .profile-password-recovery-channel svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
#profile-settings .profile-password-recovery-channel input[value="email"] + span svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#profile-settings .profile-password-recovery-channel input:checked + span { border-color: rgba(196,215,234,.65); background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(196,215,234,.18); }
#profile-settings .profile-password-recovery-channel input:focus-visible + span { outline: 2px solid #93c4e9; outline-offset: 2px; }
#profile-settings .profile-password-recovery-channel input:disabled + span { opacity: .45; cursor: not-allowed; }
#profile-settings .profile-password-recovery-send-row { display: flex; align-items: center; gap: 12px; width: calc(100% + 56px); }
#profile-settings .profile-password-recovery-send-row .profile-password-recovery-send { flex: 1 1 auto; min-width: 0; }
#profile-settings .profile-password-recovery-timer { flex: 0 0 44px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: right; }
#profile-settings .profile-password-recovery-timer[hidden] { display: block; visibility: hidden; }
@media (max-width: 767px) { #profile-settings .profile-password-recovery-send-row { width: 100%; } #profile-settings .profile-password-recovery-timer[hidden] { display: none; } }
#profile-settings .profile-password-recovery-send,
#profile-settings .profile-password-recovery-reset { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); color: var(--text); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
#profile-settings .profile-password-recovery-reset { justify-content: center; margin-top: 2px; }
#profile-settings .profile-password-recovery-send:hover:not(:disabled),
#profile-settings .profile-password-recovery-reset:hover:not(:disabled) { background: rgba(255,255,255,.075); border-color: rgba(190,210,234,.32); }
#profile-settings .profile-password-recovery-send:disabled,
#profile-settings .profile-password-recovery-reset:disabled { opacity: .55; cursor: default; }
#profile-settings .profile-password-recovery-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#profile-settings .profile-password-recovery-feedback { color: var(--text-soft); font-size: .84rem; line-height: 1.4; }
#profile-settings .profile-password-recovery-feedback[hidden] { display: none; }
#profile-settings .profile-password-recovery-feedback.is-error { color: #ff9c9c; }
#profile-settings .profile-password-recovery-feedback.is-cooldown { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .78rem; }
#profile-settings .profile-password-recovery-feedback time { margin-left: auto; font-variant-numeric: tabular-nums; }
#profile-settings .profile-password-recovery-code-wrap,
#profile-settings .profile-password-recovery-password-wrap { position: relative; display: block; min-width: 0; }
#profile-settings .profile-password-recovery-code-wrap input,
#profile-settings .profile-password-recovery-password-wrap input { display: block; width: 100%; min-height: 46px; padding: 10px 46px 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.18); color: var(--text); font: inherit; }
#profile-settings .profile-password-recovery-code-wrap input:focus,
#profile-settings .profile-password-recovery-password-wrap input:focus { outline: 1px solid rgba(147,196,233,.55); }
#profile-settings .profile-password-recovery-code-status { position: absolute; top: 50%; right: 14px; display: grid; place-items: center; width: 20px; height: 20px; transform: translateY(-50%); }
#profile-settings .profile-password-recovery-code-status.is-valid { color: #35be7d; }
#profile-settings .profile-password-recovery-code-status.is-invalid { color: #f06b74; }
#profile-settings .profile-password-recovery-code-status.is-invalid::before { content: '×'; font-size: 19px; font-weight: 600; line-height: 1; }
#profile-settings .profile-password-recovery-code-status svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
#profile-settings .profile-password-recovery-code-status.is-invalid svg { display: none; }
#profile-settings .profile-password-recovery-passwords { display: grid; gap: 12px; }
#profile-settings .profile-password-recovery-passwords[hidden] { display: none; }
#profile-settings .profile-password-recovery-eye { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-soft); transform: translateY(-50%); cursor: pointer; }
#profile-settings .profile-password-recovery-eye:hover { color: var(--text); background: rgba(255,255,255,.06); }
#profile-settings .profile-password-recovery-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 400px) {
  #profile-settings .profile-password-recovery-channels { gap: 8px; }
  #profile-settings .profile-password-recovery-channel > span { gap: 6px; padding: 8px 5px; font-size: .82rem; }
}
/* Profile controls in the header */
.profile-summary-avatar { position: relative; }
.profile-avatar-edit-button,
.profile-signature-edit-button,
.profile-contact-add-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(120,183,225,.45); background: #10273c; color: #eaf6ff; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.profile-avatar-edit-button:hover,
.profile-signature-edit-button:hover,
.profile-contact-add-button:hover { background: #20506f; transform: translateY(-1px); }
.profile-avatar-edit-button:focus-visible,
.profile-signature-edit-button:focus-visible,
.profile-contact-add-button:focus-visible { outline: 2px solid #73cfff; outline-offset: 2px; }
.profile-avatar-edit-button { position: absolute; right: -8px; bottom: -8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 4px 14px #0008; }
.profile-avatar-edit-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-summary-status-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.profile-summary-status-line .profile-summary-status { min-width: 0; margin: 6px 0 0; }
.profile-signature-edit-button { flex: none; width: 24px; height: 24px; margin-top: 5px; border-radius: 7px; }
.profile-signature-edit-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-summary-contacts .profile-contacts-display-list { gap: 7px; }
.profile-contact-add-button { gap: 5px; min-height: 25px; padding: 2px 8px; border-radius: 7px; font: inherit; font-size: 13px; line-height: 1; white-space: nowrap; }
.profile-contact-add-button::first-letter { font-size: 18px; }
.profile-contacts-display-list.has-contacts .profile-contact-add-button { width: 25px; padding: 0; font-size: 18px; }
.profile-contacts-display-list.has-contacts .profile-contact-add-button span { display: none; }
.profile-inline-signature-editor { width: min(460px, 100%); margin: 10px 0; padding: 16px; box-shadow: 0 12px 30px #0007; }
.profile-inline-signature-editor[hidden] { display: none !important; }
.profile-inline-signature-editor > p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-inline-signature-editor .profile-signature-input { min-height: 74px; }

/* Native dialogs keep avatar and contact editors out of the profile layout. */
.profile-edit-dialog { position: fixed; inset: 0; width: min(600px, calc(100vw - 28px)); max-width: none; max-height: min(780px, calc(100vh - 28px)); margin: auto; padding: 0; overflow: auto; border: 1px solid rgba(120,183,225,.3); border-radius: 18px; background: #0b1b2d; color: var(--text); box-shadow: 0 24px 80px #000c; }
.profile-edit-dialog::backdrop { background: rgba(1,8,18,.72); }
.profile-edit-dialog:not([open]) { display: none; }
.profile-edit-dialog > .profile-placeholder-card { margin: 0; padding: 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.profile-edit-dialog > .profile-placeholder-card > strong,
.profile-edit-dialog .profile-contacts-heading strong { display: block; padding-right: 30px; font-size: 17px; }
.profile-edit-dialog > .profile-placeholder-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.profile-edit-dialog-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 30px; height: 30px; border: 1px solid rgba(120,183,225,.3); border-radius: 8px; background: #173149; color: #eaf6ff; font-size: 21px; line-height: 1; cursor: pointer; }
.profile-edit-dialog-close:hover { background: #24506f; }
.profile-edit-dialog .profile-avatar-current,
.profile-edit-dialog .profile-avatar-editor { grid-template-columns: 148px minmax(0, 1fr); }
.profile-edit-dialog .profile-avatar-current-preview,
.profile-edit-dialog .profile-avatar-editor-preview { width: 148px; height: 148px; }
.profile-edit-dialog .profile-avatar-actions { align-items: flex-start; }
.profile-edit-dialog .profile-contacts-list { display: grid; gap: 8px; }
.profile-edit-dialog .profile-contact-chip { padding: 9px 11px; border-radius: 11px; }
.profile-edit-dialog .profile-contact-chip-text { display: grid; gap: 2px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.profile-edit-dialog .profile-contact-chip-text strong { font-size: 13px; }
.profile-edit-dialog .profile-contact-chip-text span { color: var(--muted); font-size: 12px; }
.profile-messages-settings-card .profile-contacts-privacy-panel { margin: 10px 0 0; padding: 0; border: 0; background: transparent; }
@media (max-width: 640px) { .profile-edit-dialog .profile-avatar-current, .profile-edit-dialog .profile-avatar-editor { grid-template-columns: 1fr; } .profile-edit-dialog .profile-contacts-service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Profile editor refinements, matching the knowledge base mini pages. */
.profile-summary-signature-input { width: min(420px, calc(100vw - 220px)); max-width: 100%; min-height: 29px; margin-top: 4px; padding: 3px 8px; border: 1px solid rgba(115,207,255,.65); border-radius: 7px; background: #10283e; color: var(--text); font: inherit; font-style: italic; outline: none; box-shadow: 0 0 0 2px rgba(115,207,255,.1); }
.profile-summary-signature-input:focus { border-color: #73cfff; }
.profile-edit-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-radius: 28px; border-color: rgba(91,126,166,.28); background: linear-gradient(180deg, rgba(20,34,51,.98), rgba(14,27,44,.98)); box-shadow: 0 16px 44px rgba(3,12,24,.5), inset 0 1px 0 rgba(255,255,255,.03); }
.profile-edit-dialog::backdrop { background: rgba(4,10,18,.72); backdrop-filter: blur(4px); }
.profile-edit-dialog > .profile-placeholder-card { padding: 24px; }
.profile-edit-dialog-close.knowledge-modal-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(88,126,167,.3); border-radius: 12px; background: rgba(15,31,49,.9); }
.profile-edit-dialog-close svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.profile-edit-dialog .profile-avatar-settings-card { gap: 14px; }
.profile-edit-dialog .profile-avatar-current { grid-template-columns: 112px minmax(0,1fr); align-items: center; }
.profile-edit-dialog .profile-avatar-current-preview { width: 112px; height: 112px; border-radius: 17px; }
.profile-edit-dialog .profile-avatar-current-info { gap: 12px; }
.profile-edit-dialog .profile-avatar-editor { padding-top: 16px; border-top: 1px solid rgba(88,126,167,.22); }
.profile-edit-dialog .profile-avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-edit-dialog .profile-avatar-actions > button,
.profile-edit-dialog .profile-contacts-save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 36px; margin: 0; padding: 7px 12px; border: 1px solid rgba(88,126,167,.36); border-radius: 9px; background: rgba(30,52,73,.65); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.profile-edit-dialog .profile-avatar-actions > button:hover,
.profile-edit-dialog .profile-contacts-save:hover { border-color: rgba(115,207,255,.6); background: rgba(38,77,106,.76); }
.profile-edit-dialog .profile-avatar-actions > button:disabled { opacity: .45; cursor: default; }
.profile-edit-dialog .profile-avatar-actions svg,
.profile-edit-dialog .profile-contact-chip-remove svg { display: block; flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-edit-dialog .profile-avatar-editor-preview { width: 148px; height: 148px; }
.profile-edit-dialog-contacts .profile-contacts-settings-card { gap: 12px; }
.profile-edit-dialog-contacts .profile-contacts-heading { margin: 0; }
.profile-edit-dialog-contacts .profile-contact-section-label { margin: 9px 0 0; color: #b7cee2; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.profile-edit-dialog-contacts .profile-contacts-list { gap: 7px; }
.profile-edit-dialog-contacts .profile-contact-chip { grid-template-columns: 26px minmax(0,1fr) 32px; gap: 10px; padding: 8px 10px; border-color: rgba(88,126,167,.24); background: rgba(15,31,49,.9); }
.profile-edit-dialog-contacts .profile-contact-chip-icon { width: 23px; height: 23px; }
.profile-edit-dialog-contacts .profile-contact-chip-text { position: relative; padding-right: 25px; }
.profile-edit-dialog-contacts .profile-contact-chip-text:hover strong { color: #8edfff; }
.profile-edit-dialog-contacts .profile-contact-chip-edit-icon { position: absolute; top: 50%; right: 2px; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-edit-dialog-contacts .profile-contact-chip-remove { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 8px; }
.profile-edit-dialog-contacts .profile-contacts-editor { padding: 0; border: 0; background: transparent; }
.profile-edit-dialog-contacts .profile-contacts-service-grid { gap: 8px; }
.profile-edit-dialog-contacts .profile-contact-service-option { min-height: 68px; padding: 9px 7px; border-radius: 11px; }
.profile-edit-dialog-contacts .profile-contacts-save { min-height: 39px; padding: 8px 15px; background: rgba(27,90,126,.54); }
@media (max-width: 640px) { .profile-summary-signature-input { width: min(260px, calc(100vw - 150px)); } .profile-edit-dialog > .profile-placeholder-card { padding: 18px; } .profile-edit-dialog .profile-avatar-current { grid-template-columns: 96px minmax(0,1fr); } .profile-edit-dialog .profile-avatar-current-preview { width: 96px; height: 96px; } }

/* Compact controls on the profile itself. */
.profile-summary-shell { position: relative; z-index: 20; }
.profile-avatar-edit-button,
.profile-signature-edit-button,
.profile-contact-add-button { border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #f0f9ff; }
.profile-avatar-edit-button:hover,
.profile-signature-edit-button:hover,
.profile-contact-add-button:hover { background: transparent; color: #8edfff; }
.profile-avatar-edit-button { right: 4px; bottom: 4px; width: 28px; height: 28px; padding: 2px; }
.profile-avatar-edit-button svg { width: 23px; height: 23px; stroke-width: 2.2; filter: drop-shadow(0 1px 2px #00111f) drop-shadow(0 0 2px #00111f); }
.profile-signature-edit-button { width: 20px; height: 20px; margin-top: 4px; padding: 1px; }
.profile-signature-edit-button svg { width: 17px; height: 17px; stroke-width: 2; }
.profile-contact-add-button { min-width: 20px; min-height: 20px; padding: 0; font-size: 23px; line-height: 1; }
.profile-contacts-display-list.has-contacts .profile-contact-add-button { width: 20px; padding: 0; font-size: 23px; }
.profile-contacts-display-list:not(.has-contacts) .profile-contact-add-button { gap: 4px; font-size: 19px; }
.profile-contacts-display-list:not(.has-contacts) .profile-contact-add-button span { font-size: 13px; }

/* The site's quiet input style, with an always visible character limit. */
.profile-summary-signature-field { position: relative; display: inline-flex; width: min(390px, calc(100vw - 220px)); max-width: 100%; margin-top: 3px; }
.profile-summary-signature-input { width: 100%; min-height: 38px; margin: 0; padding: 7px 58px 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.18); color: var(--text); font: inherit; font-style: normal; box-shadow: none; }
.profile-summary-signature-input:focus { border-color: rgba(126,199,255,.55); outline: none; box-shadow: 0 0 0 2px rgba(126,199,255,.1); }
.profile-summary-signature-counter { position: absolute; right: 9px; bottom: 6px; color: var(--muted); font-size: 11px; line-height: 1; pointer-events: none; }

/* Selecting a new image replaces the current avatar block in the same place. */
.profile-edit-dialog .profile-avatar-current[hidden],
.profile-edit-dialog .profile-avatar-editor[hidden] { display: none !important; }
.profile-edit-dialog .profile-avatar-editor { padding-top: 0; border-top: 0; }

/* Contacts edit in a small popover below the profile, without a modal page. */
.profile-contacts-quickedit[hidden] { display: none !important; }
.profile-contacts-quickedit { position: fixed; top: 0; left: 0; z-index: 1200; display: grid; gap: 10px; width: min(390px, calc(100vw - 24px)); max-height: min(530px, calc(100vh - 24px)); overflow: auto; padding: 14px; border: 1px solid rgba(91,126,166,.34); border-radius: 15px; background: #102238; box-shadow: 0 14px 38px #0009; }
.profile-contacts-quickedit > .profile-contacts-heading,
.profile-contacts-quickedit > p { display: none; }
.profile-contacts-quickedit .profile-contact-section-label { margin: 1px 0 0; color: #a8c4d9; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.profile-contacts-quickedit .profile-contacts-list { display: grid; gap: 5px; }
.profile-contacts-quickedit .profile-contacts-empty { display: none; }
.profile-contacts-quickedit .profile-contact-chip { grid-template-columns: 22px minmax(0,1fr) 26px; gap: 7px; padding: 6px 7px; border-radius: 8px; }
.profile-contacts-quickedit .profile-contact-chip-icon { width: 20px; height: 20px; }
.profile-contacts-quickedit .profile-contact-chip-text { position: relative; display: grid; gap: 1px; padding: 0 20px 0 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.profile-contacts-quickedit .profile-contact-chip-text strong { font-size: 12px; }
.profile-contacts-quickedit .profile-contact-chip-text span { color: var(--muted); font-size: 11px; }
.profile-contacts-quickedit .profile-contact-chip-edit-icon { position: absolute; top: 50%; right: 2px; width: 14px; height: 14px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.profile-contacts-quickedit .profile-contact-chip-remove { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border-radius: 6px; }
.profile-contacts-quickedit .profile-contact-chip-remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-contacts-quickedit .profile-contacts-editor { display: grid; gap: 8px; padding: 0; border: 0; background: transparent; }
.profile-contacts-quickedit .profile-contacts-service-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-contacts-quickedit .profile-contact-service-option { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 4px 7px; border-radius: 7px; }
.profile-contacts-quickedit .profile-contact-service-icon { width: 17px; height: 17px; }
.profile-contacts-quickedit .profile-contact-service-name { font-size: 11px; }
.profile-contacts-quickedit .profile-contacts-input-label { font-size: 12px; }
.profile-contacts-quickedit .profile-contacts-input { min-height: 36px; padding: 7px 10px; border-radius: 8px; font-size: 13px; }
.profile-contacts-quickedit .profile-contacts-save { display: inline-flex; width: auto; min-height: 34px; margin: 0; padding: 6px 10px; border: 1px solid rgba(91,126,166,.42); border-radius: 8px; background: rgba(31,85,120,.55); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.profile-contacts-quickedit .profile-contacts-save:hover { background: rgba(39,105,145,.7); }
@media (max-width: 600px) { .profile-summary-signature-field { width: min(260px, calc(100vw - 165px)); } .profile-contacts-quickedit { max-height: calc(100vh - 100px); } }

                                                                    
.profile-avatar-edit-button { right: 5px; bottom: 5px; width: 24px; height: 24px; padding: 1px; color: #f5fbff; }
.profile-avatar-edit-button svg { width: 21px; height: 21px; fill: currentColor; stroke: none; filter: drop-shadow(0 1px 2px #00111f) drop-shadow(0 0 1px #00111f); }
.profile-signature-edit-button { width: 23px; height: 23px; padding: 0; color: #ecf7ff; }
.profile-signature-edit-button svg { width: 19px; height: 19px; stroke-width: 2; filter: drop-shadow(0 1px 1px #00111f); }
.profile-summary-contacts .profile-contacts-display-list { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.profile-contact-add-button,
.profile-contacts-display-list.has-contacts .profile-contact-add-button { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; min-width: 22px; min-height: 22px; padding: 0; line-height: 0; transform: translateY(-1px); }
.profile-contact-add-button:hover { transform: translateY(-1px); }
.profile-contact-add-button svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; }
.profile-contact-owned { display: inline-flex; align-items: center; gap: 2px; min-height: 24px; padding: 1px 3px 1px 5px; border: 1px solid rgba(126,199,255,.14); border-radius: 7px; background: rgba(126,199,255,.05); }
.profile-contact-owned-edit { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.profile-contact-owned-edit:hover { color: #8edfff; }
.profile-contact-owned-icon { display: inline-flex; flex: none; width: 16px; height: 16px; color: #f3f8ff; }
.profile-contact-owned-icon svg { width: 16px; height: 16px; }
.profile-contact-owned-value { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.2; }
.profile-contact-owned-remove { display: inline-grid; place-items: center; flex: none; width: 19px; height: 19px; padding: 0; border: 0; background: transparent; color: #9eb6c9; cursor: pointer; }
.profile-contact-owned-remove:hover { color: #ff8c8c; }
.profile-contact-owned-remove svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.profile-summary-signature-field { width: min(300px, calc(100vw - 220px)); margin-top: 2px; }
.profile-summary-signature-input { min-height: 29px; height: 29px; padding: 4px 57px 4px 10px; border: 1px solid rgba(126,199,255,.12); border-radius: 9px; background: linear-gradient(180deg, rgba(6,18,34,.96), rgba(4,14,28,.96)); line-height: 19px; }
.profile-summary-signature-counter { right: 8px; bottom: 8px; }
.profile-contacts-quickedit { width: auto; min-width: 220px; max-width: min(320px, calc(100vw - 24px)); padding: 10px; gap: 7px; }
.profile-contacts-quickedit .profile-contact-section-label { margin: 0 0 2px; font-size: 11px; }
.profile-contacts-quickedit .profile-contacts-service-grid { display: flex; gap: 6px; }
.profile-contacts-quickedit .profile-contact-service-option { display: inline-grid; place-items: center; width: 39px; height: 39px; min-height: 39px; padding: 6px; border-radius: 9px; }
.profile-contacts-quickedit .profile-contact-service-icon { width: 21px; height: 21px; }
.profile-contacts-quickedit .profile-contact-service-name { display: none; }
.profile-contact-entry-form[hidden] { display: none !important; }
.profile-contact-entry-form { display: grid; gap: 7px; padding-top: 8px; border-top: 1px solid rgba(91,126,166,.22); }
.profile-contacts-quickedit .profile-contacts-input { width: 100%; }
@media (max-width: 600px) { .profile-summary-signature-field { width: min(260px, calc(100vw - 165px)); } .profile-contact-owned-value { max-width: 100px; } }

/* Preserve the original contact icons and keep the signature tools beside the text. */
.profile-summary-status-line { display: block; min-width: 0; }
.profile-summary-status-line .profile-summary-status { display: block; max-width: 100%; margin: 6px 0 0; white-space: normal; overflow-wrap: anywhere; }
.profile-summary-status-line [data-profile-status-value] { white-space: pre-wrap; }
.profile-summary-status-line .profile-signature-edit-button { display: inline-flex; vertical-align: -3px; width: 20px; height: 20px; margin: 0 0 0 4px; padding: 1px; }
.profile-summary-status-line .profile-signature-edit-button[hidden] { display: none !important; }
.profile-summary-status-line .profile-signature-edit-button svg { width: 18px; height: 18px; stroke-width: 1.9; }
.profile-summary-signature-field { display: grid; gap: 2px; width: min(310px, calc(100vw - 220px)); max-width: 100%; margin-top: 2px; }
.profile-summary-signature-input { width: 100%; min-height: 28px; height: 28px; padding: 3px 9px; border: 1px solid rgba(126,199,255,.12); border-radius: 9px; background: linear-gradient(180deg, rgba(6,18,34,.96), rgba(4,14,28,.96)); line-height: 20px; }
.profile-summary-signature-counter { position: static; display: block; justify-self: end; margin: 0 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.1; }
.profile-contact-owner-edit { padding: 0; border: 0; background: transparent; }
.profile-contacts-quickedit .profile-contact-entry-form { position: relative; }
.profile-contact-delete-action[hidden] { display: none !important; }
.profile-contact-delete-action { justify-self: start; margin: 2px 0 0; padding: 2px 0; border: 0; background: transparent; color: #ff9b9b; font: inherit; font-size: 12px; cursor: pointer; }
.profile-contact-delete-action:hover { color: #ffd0d0; text-decoration: underline; }
@media (max-width: 600px) { .profile-summary-signature-field { width: min(260px, calc(100vw - 165px)); } }

/* Profile controls follow the site's existing modal and feed button styles. */
.profile-edit-dialog-close.knowledge-modal-close { display: block; padding: 0; color: #f6f8ff; font-size: 24px; font-weight: 400; line-height: 38px; text-align: center; }
.profile-edit-dialog-close.knowledge-modal-close:hover { background: rgba(28, 51, 73, .95); }
.profile-edit-dialog .profile-avatar-editor-panel { gap: 8px; }
.profile-edit-dialog .profile-avatar-help { margin: -3px 0 2px; font-size: 12px; line-height: 1.3; }
.profile-edit-dialog .profile-avatar-actions > button { min-height: 36px; border-radius: 9px; }
.profile-edit-dialog .profile-avatar-actions > .profile-avatar-save { border-color: rgba(91, 148, 187, .48); background: rgba(31, 85, 120, .55); }
.profile-contacts-quickedit .profile-contacts-actions { align-items: center; gap: 7px; }
.profile-contacts-quickedit .profile-contact-delete-action { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; margin: 0; padding: 0; border: 1px solid rgba(255, 91, 91, .22); border-radius: 8px; background: rgba(255, 73, 73, .12); color: #ff5b5b; cursor: pointer; }
.profile-contacts-quickedit .profile-contact-delete-action:hover,
.profile-contacts-quickedit .profile-contact-delete-action:focus-visible { border-color: rgba(255, 114, 114, .32); background: rgba(255, 73, 73, .18); color: #ff8c8c; text-decoration: none; }
.profile-contacts-quickedit .profile-contact-delete-action svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Clear contact modes and quiet avatar controls. */
.profile-edit-dialog .profile-edit-dialog-close.knowledge-modal-close { width: 32px; height: 32px; top: 14px; right: 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 27px; line-height: 30px; }
.profile-edit-dialog .profile-edit-dialog-close.knowledge-modal-close:hover,
.profile-edit-dialog .profile-edit-dialog-close.knowledge-modal-close:focus-visible { background: transparent; color: #8edfff; }
.profile-edit-dialog .profile-avatar-actions > .profile-avatar-save { border-color: rgba(88,126,167,.36); background: rgba(30,52,73,.65); box-shadow: none; }
.profile-edit-dialog .profile-avatar-actions > .profile-avatar-save:hover { border-color: rgba(115,207,255,.6); background: rgba(38,77,106,.76); }
.profile-avatar-edit-button svg { width: 22px; height: 22px; fill: currentColor; stroke: none; shape-rendering: geometricPrecision; filter: drop-shadow(0 1px 2px #00111f); }

/* Full-width actions in the contact editor; the profile contact icons stay as before. */
.profile-contacts-quickedit .profile-contacts-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
.profile-contacts-quickedit .profile-contacts-actions.has-delete { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-contacts-quickedit .profile-contacts-save,
.profile-contacts-quickedit .profile-contact-delete-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-width: 0; min-height: 37px; height: 37px; margin: 0; padding: 6px 8px; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 700; line-height: 1; }
.profile-contacts-quickedit .profile-contacts-save svg,
.profile-contacts-quickedit .profile-contact-delete-action svg { display: block; flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-contacts-quickedit .profile-contact-delete-action { background: rgba(255, 73, 73, .12); color: #ff7272; }
.profile-contacts-quickedit .profile-contacts-save { border-color: rgba(91,126,166,.34); background: #182e43; color: #e9f2fb; box-shadow: none; }
.profile-contacts-quickedit .profile-contacts-save:hover,
.profile-contacts-quickedit .profile-contacts-save:focus-visible { border-color: rgba(115,183,225,.48); background: #203a52; }
.profile-summary-status-line .profile-signature-edit-button { vertical-align: -4px; }
.profile-summary-status-line .profile-signature-edit-button { width: 24px; height: 24px; vertical-align: -5px; }
.profile-summary-status-line .profile-signature-edit-button svg { width: 22px; height: 22px; fill: currentColor; stroke: none; filter: none; }
.profile-avatar-edit-button:hover,
.profile-signature-edit-button:hover { transform: none; }
                                                                        
.profile-summary-status-line .profile-signature-pencil { display: block; width: 17px; height: 17px; background: currentColor; -webkit-mask: url('/assets/img/profile-pencil.png?v=3') center / contain no-repeat; mask: url('/assets/img/profile-pencil.png?v=3') center / contain no-repeat; }
.profile-avatar-edit-button svg { filter: none; shape-rendering: auto; }
.dropdown-item[data-profile-action="settings"] .dropdown-item-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; filter: none; shape-rendering: auto; }
.profile-avatar-edit-button svg path { fill: #f5fbff; stroke: #071421; stroke-width: 1.9; stroke-linejoin: round; paint-order: stroke fill; }

/* Shared forum and wall editor. */
.community-editor-frame { width: 100%; min-width: 0; overflow: visible; border: 1px solid rgba(105,151,190,.26); border-bottom: 0; border-radius: 13px 13px 0 0; background: #0b1a2d; }
.page-shell[data-page="forum"] .forum-form .community-send-field, .profile-wall .community-send-field { grid-template-columns: minmax(0, 1fr) !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field > .community-editor-frame { grid-column: 1 / -1; }
.profile-wall .wall-rich-editor-shell .community-editor-frame { width: 100%; }
.community-editor-toolbar { position: relative; padding: 6px 8px; border-bottom: 1px solid rgba(105,151,190,.18); border-radius: 12px 12px 0 0; background: #102238; }
.community-editor-toolbar-primary, .community-editor-toolbar-advanced { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; min-height: 32px; }
.community-editor-toolbar-advanced { margin-top: 6px; padding-top: 7px; border-top: 1px solid rgba(105,151,190,.17); }
.community-editor-toolbar [hidden] { display: none !important; }
.community-editor-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #b9cadc; font: 600 12px/1 Tahoma,Arial,sans-serif; white-space: nowrap; cursor: pointer; }
.community-editor-button:hover, .community-editor-button:focus-visible, .community-editor-button.is-active, .community-editor-button[aria-expanded="true"] { border-color: rgba(105,182,235,.24); background: #203d59; color: #eaf7ff; outline: none; }
.community-editor-button.is-active { color: #84e6ec; }
.community-editor-button--letter { font-size: 14px; }
.community-editor-button--icon svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.community-editor-button--text { padding: 0 9px; }
.community-editor-button--more { margin-left: auto; color: #94dce8; }
.community-editor-chevron { margin-top: -3px; font-size: 16px; }
.community-editor-divider { flex: none; width: 1px; height: 18px; margin: 0 4px; background: rgba(134,167,197,.21); }
.community-editor-select { min-width: 0; height: 30px; max-width: 135px; padding: 0 8px; border: 1px solid rgba(105,151,190,.24); border-radius: 7px; background: #172f49; color: #deebf7; font: 12px Tahoma,Arial,sans-serif; cursor: pointer; }
.community-editor-select:focus-visible { outline: 1px solid #70c6df; }
.community-editor-color { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 7px; border: 1px solid rgba(105,151,190,.24); border-radius: 7px; color: #deebf7; font: 12px Tahoma,Arial,sans-serif; cursor: pointer; }
.community-editor-color input { width: 19px; height: 19px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.community-editor-popup { position: absolute; top: calc(100% + 7px); left: 8px; z-index: 1100; display: grid; gap: 9px; width: min(360px, calc(100vw - 44px)); padding: 12px; border: 1px solid rgba(105,182,235,.35); border-radius: 10px; background: #152d46; box-shadow: 0 12px 35px #0009; }
.community-editor-popup label { display: grid; gap: 7px; color: #dcebf8; font: 600 12px Tahoma,Arial,sans-serif; }
.community-editor-popup input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid rgba(105,151,190,.38); border-radius: 7px; outline: none; background: #0b1c30; color: #eef7ff; font: 13px Tahoma,Arial,sans-serif; }
.community-editor-popup input:focus { border-color: #75c9e6; }
.community-editor-popup-actions { display: flex; justify-content: flex-end; gap: 7px; }
.community-editor-popup-actions button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(105,151,190,.25); border-radius: 7px; background: #203a54; color: #e8f3ff; font: 600 12px Tahoma,Arial,sans-serif; cursor: pointer; }
.community-editor-popup-actions button:last-child { border-color: rgba(98,215,224,.38); background: #24556b; }
.community-editor-frame + .tox.tox-tinymce { width: 100% !important; min-height: 110px; margin: 0 !important; border: 1px solid rgba(105,151,190,.26) !important; border-top: 0 !important; border-radius: 0 0 12px 12px !important; background: #0b1a2d !important; box-shadow: none !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field > .community-editor-frame + .tox.tox-tinymce { margin-top: -10px !important; }
.community-editor-frame + .tox .tox-edit-area { border: 0 !important; }
.community-editor-frame + .tox .tox-edit-area__iframe { background: #0b1a2d !important; }
.community-editor-frame--compact + .tox.tox-tinymce { min-height: 98px; }
@media (max-width: 700px) { .community-editor-toolbar { padding: 5px 6px; } .community-editor-toolbar-primary { gap: 2px; } .community-editor-button { min-width: 29px; height: 29px; padding: 0 5px; } .community-editor-divider { margin: 0 2px; } .community-editor-button--more { margin-left: 0; } .community-editor-toolbar-advanced { gap: 5px; } }

                                                                                               
.page-shell[data-page="forum"] .forum-form .community-send-field,
.page-shell[data-page="profile"] .profile-wall .community-send-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  min-width: 0;
}
.page-shell[data-page="profile"] .profile-wall .profile-post-editor-shell { width: 100% !important; max-width: none !important; margin: 0 !important; }
.page-shell[data-page="profile"] .profile-wall .wall-rich-editor-shell { gap: 0; }
.page-shell[data-page="profile"] .profile-wall .improve-tiny-host { display: flex; flex-direction: column; min-width: 0; }
.page-shell[data-page="forum"] .forum-form .community-send-field > .tox.tox-tinymce,
.page-shell[data-page="profile"] .profile-wall .improve-tiny-host > .tox.tox-tinymce {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-bottom: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  background: #102033 !important;
  box-shadow: none !important;
  overflow: hidden;
}
.page-shell[data-page="forum"] .forum-form .community-send-field > .tox .tox-edit-area,
.page-shell[data-page="profile"] .profile-wall .improve-tiny-host > .tox .tox-edit-area { border: 0 !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field > .tox .tox-edit-area::before,
.page-shell[data-page="profile"] .profile-wall .improve-tiny-host > .tox .tox-edit-area::before { border: 0 !important; box-shadow: none !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field > .community-editor-frame,
.page-shell[data-page="profile"] .profile-wall .improve-tiny-host > .community-editor-frame {
  position: relative;
  display: block;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-top: 1px solid rgba(255,255,255,.055) !important;
  border-radius: 0 0 12px 12px !important;
  background: #102033 !important;
  box-shadow: none !important;
}
.community-editor-frame .community-editor-toolbar { min-height: 45px; padding: 6px 50px 6px 8px; border: 0; border-radius: 0 0 11px 11px; background: transparent; }
.community-editor-frame .community-editor-toolbar-primary { min-height: 32px; gap: 3px; flex-wrap: nowrap; }
.community-editor-frame .community-editor-button { min-width: 31px; height: 31px; padding: 0 6px; border-radius: 7px; color: #b9cbe0; }
.community-editor-frame .community-editor-button:hover,
.community-editor-frame .community-editor-button:focus-visible,
.community-editor-frame .community-editor-button.is-active { background: rgba(126,199,255,.13); color: #edf4ff; }
.community-editor-frame .community-editor-button--more { margin-left: 3px; }
.community-editor-frame .community-editor-divider { margin: 0 3px; }
.community-editor-frame .community-editor-toolbar-advanced {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: flex;
  align-items: center;
  width: min(430px, 100%);
  max-height: min(300px, 60vh);
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(126,199,255,.25);
  border-radius: 12px;
  background: #172b42;
  box-shadow: 0 16px 38px rgba(0,0,0,.4);
}
.community-editor-frame .community-editor-popup { top: auto; bottom: calc(100% + 8px); left: 0; width: min(360px, 100%); }
.page-shell[data-page="forum"] .forum-form .community-send-field > .community-send-button,
.page-shell[data-page="profile"] .profile-wall .community-send-field > .community-send-button {
  position: absolute !important;
  z-index: 2;
  right: 7px;
  bottom: 7px;
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  min-width: 31px;
  min-height: 31px;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(126,199,255,.23) !important;
  border-radius: 8px !important;
  background: rgba(126,199,255,.09) !important;
  color: var(--accent-2) !important;
}
.page-shell[data-page="forum"] .forum-form .community-send-field > .community-send-button:hover,
.page-shell[data-page="profile"] .profile-wall .community-send-field > .community-send-button:hover { background: rgba(126,199,255,.18) !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field:focus-within > .tox.tox-tinymce,
.page-shell[data-page="profile"] .profile-wall .community-send-field:focus-within .improve-tiny-host > .tox.tox-tinymce { border-color: rgba(126,199,255,.36) !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field:focus-within > .community-editor-frame,
.page-shell[data-page="profile"] .profile-wall .community-send-field:focus-within .improve-tiny-host > .community-editor-frame { border-color: rgba(126,199,255,.36) !important; }

/* The forum uses the same card and border tokens as the profile and other site panels. */
.page-shell[data-page="forum"] .forum-section-panel,
.page-shell[data-page="forum"] .forum-section-card,
.page-shell[data-page="forum"] .forum-subsection-card,
.page-shell[data-page="forum"] .forum-topic-row,
.page-shell[data-page="forum"] .forum-topic-row--compact,
.page-shell[data-page="forum"] .forum-topic-row--compact.is-pinned,
.page-shell[data-page="forum"] .forum-topic-post,
.page-shell[data-page="forum"] .forum-topic-post--classic,
.page-shell[data-page="forum"] .forum-comment,
.page-shell[data-page="forum"] .forum-comments-block,
.page-shell[data-page="forum"] .forum-note-card,
.page-shell[data-page="forum"] .forum-stats,
.page-shell[data-page="forum"] .forum-form:not(.forum-comment-form--inline) {
  border-color: var(--line) !important;
  background: var(--unified-chat-box-bg, rgba(15, 31, 49, .9)) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}
.page-shell[data-page="forum"] .forum-topic-page--classic { --forum-topic-feed-bg-exact: var(--unified-chat-box-bg, rgba(15, 31, 49, .9)) !important; }
.page-shell[data-page="forum"] .forum-topic-author-card,
.page-shell[data-page="forum"] .forum-topic-message-panel { background: transparent !important; background-image: none !important; }
@media (max-width: 700px) {
  .community-editor-frame .community-editor-toolbar { padding: 5px 39px 5px 5px; }
  .community-editor-frame .community-editor-toolbar-primary { gap: 2px; }
  .community-editor-frame .community-editor-button { min-width: 28px; height: 29px; padding: 0 4px; }
  .community-editor-frame .community-editor-button--text { font-size: 11px; }
  .community-editor-frame .community-editor-button--more { margin-left: 0; }
  .community-editor-frame .community-editor-divider { margin: 0 1px; }
}

/* Composer controls expand in place; no detached menus or focus flashes. */
.community-editor-frame .community-editor-toolbar { padding: 6px 8px; }
.community-editor-frame .community-editor-toolbar-primary { gap: 3px; flex-wrap: wrap; }
.community-editor-frame .community-editor-toolbar-primary > .community-send-button {
  position: static !important;
  display: inline-grid !important;
  place-items: center;
  flex: none;
  width: 31px;
  height: 31px;
  min-width: 31px;
  min-height: 31px;
  margin: 0 0 0 auto !important;
  padding: 5px !important;
  border: 1px solid rgba(126,199,255,.23) !important;
  border-radius: 8px !important;
  background: rgba(126,199,255,.09) !important;
  color: var(--accent-2) !important;
}
.community-editor-frame .community-editor-toolbar-primary > .community-send-button:hover { background: rgba(126,199,255,.18) !important; }
.community-editor-frame .community-editor-toolbar-advanced,
.community-editor-frame .community-editor-popup {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-height: none;
  margin: 7px 0 0;
  padding: 8px 0 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.community-editor-frame .community-editor-popup { display: grid; }
.community-editor-frame .community-editor-popup label { font-size: 12px; }
.community-editor-frame .community-editor-toolbar [hidden] { display: none !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field:focus-within > .tox.tox-tinymce,
.page-shell[data-page="profile"] .profile-wall .community-send-field:focus-within .improve-tiny-host > .tox.tox-tinymce,
.page-shell[data-page="forum"] .forum-form .community-send-field:focus-within > .community-editor-frame,
.page-shell[data-page="profile"] .profile-wall .community-send-field:focus-within .improve-tiny-host > .community-editor-frame { border-color: var(--line) !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field > .tox .tox-edit-area,
.page-shell[data-page="profile"] .profile-wall .improve-tiny-host > .tox .tox-edit-area,
.page-shell[data-page="forum"] .forum-form .community-send-field > .tox .tox-edit-area__iframe,
.page-shell[data-page="profile"] .profile-wall .improve-tiny-host > .tox .tox-edit-area__iframe { background: #102033 !important; }
.page-shell[data-page="forum"] .forum-form .community-send-field > .tox .tox-edit-area::before,
.page-shell[data-page="profile"] .profile-wall .improve-tiny-host > .tox .tox-edit-area::before { display: none !important; }
@media (max-width: 700px) {
  .community-editor-frame .community-editor-toolbar { padding: 5px; }
  .community-editor-frame .community-editor-toolbar-primary { gap: 2px; }
}

                                                                                      
.page-shell[data-page="forum"] .forum-comment-form.forum-comment-form--inline { margin-left:0 !important; width:100% !important; }
.page-shell[data-page="profile"] .profile-wall-post-composer:has(.site-composer) { padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
.page-shell[data-page] .site-composer.site-composer > .tox.tox-tinymce { border:1px solid rgba(110,161,194,.16) !important; border-radius:8px !important; box-shadow:none !important; }
.page-shell .community-send-field { min-width: 0; }
.page-shell[data-page="forum"] .forum-form .community-send-field,
.page-shell[data-page="profile"] .profile-wall .community-send-field { display: flex !important; flex-direction: column; gap: 0 !important; }
.site-composer { --compose-line: rgba(110,161,194,.16); box-sizing: border-box; width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--compose-line); border-radius: 13px; background: linear-gradient(120deg,#102335 0%,#0c1c2c 60%,#0d1f30 100%); box-shadow: inset 0 1px 0 rgba(176,218,247,.04),0 8px 26px rgba(0,0,0,.1); color: #bdd0e2; text-align: left; }
.site-composer *, .site-composer *::before, .site-composer *::after { box-sizing: border-box; }
.site-composer [hidden] { display:none !important; }
.site-compose-toolbar { padding: 0 0 9px; width: 100%; min-width: 0; }
.site-compose-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; }
.site-composer .site-compose-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-width: 29px; height: 32px; margin: 0; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; box-shadow: none; color: #bdcede; font: 500 12px/1 Tahoma,Arial,sans-serif; white-space: nowrap; cursor: pointer; transition: background .15s,color .15s,border-color .15s; }
.site-composer .site-compose-tool:hover, .site-composer .site-compose-tool[aria-expanded="true"] { background: #18344a; border-color: #294a63; color: #e4f6ff; }
.site-composer .site-compose-tool.is-active { background: #14354a; color: #6ce5ed; }
.site-composer :is(button,select,input):focus-visible { outline: 2px solid #66dbe7; outline-offset: 2px; }
.site-composer button:disabled { opacity: .45; cursor: default; }
.site-compose-tool svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-composer .site-compose-letter { font-family: Georgia,serif; font-size: 17px; }
.site-compose-divider { flex: none; width: 1px; height: 25px; margin: 0 4px; background: var(--compose-line); }
.site-composer .site-compose-select { flex: none; width: 122px; max-width: 100%; height: 32px; margin: 0 2px; padding: 0 7px; border: 1px solid var(--compose-line); border-radius: 7px; background: #0d2031; color: #d6e3f0; font: 12px Tahoma,Arial,sans-serif; color-scheme: dark; cursor: pointer; }
.site-composer .site-compose-select[aria-label="Шрифт"] { width: 98px; }
.site-composer .site-compose-select[aria-label="Размер текста"] { width: 70px; }
.site-composer .site-compose-top-more { margin-left: auto; padding: 0 10px; border-color: var(--compose-line); background: #142e43; }
.page-shell .site-composer > .tox.tox-tinymce { width:100% !important; min-width:0 !important; margin:0 !important; border:1px solid var(--compose-line) !important; border-radius:8px !important; background:#0b1a29 !important; box-shadow:none !important; transition:border-color .15s; }
.page-shell .site-composer:focus-within > .tox.tox-tinymce { border-color:rgba(92,202,221,.35) !important; }
.page-shell .site-composer .tox .tox-edit-area,
.page-shell .site-composer .tox .tox-edit-area__iframe { background:#0b1a29 !important; }
.page-shell .site-composer .tox .tox-edit-area::before { display:none !important; }
.site-compose-footer { width:100%; min-width:0; padding-top:8px; }
.site-compose-actions,.site-compose-actions-left,.site-compose-actions-right { display:flex; align-items:center; min-width:0; }
.site-compose-actions { justify-content:space-between; gap:8px; }
.site-compose-actions-right { gap:7px; margin-left:auto; }
.site-compose-actions-right > .site-compose-tool { width:36px; height:36px; border-color:var(--compose-line); background:rgba(5,19,31,.2); }
.site-composer .site-compose-attach { gap:10px; padding:0 4px; }
.site-compose-attach svg { width:22px; height:22px; }
.site-composer .site-compose-send.community-send-button { position:static !important; display:inline-flex !important; align-items:center; justify-content:center; gap:10px; width:auto !important; height:36px !important; min-width:130px !important; min-height:36px !important; margin:0 !important; padding:0 14px !important; border:1px solid #299ab6 !important; border-radius:6px !important; background:linear-gradient(#19455b,#123248) !important; color:#cbe8f7 !important; font:600 13px Tahoma,Arial,sans-serif !important; box-shadow:inset 0 1px 0 #367088,0 0 13px rgba(42,205,233,.06) !important; cursor:pointer; }
.site-composer .site-compose-send.community-send-button:hover { border-color:#60dae5 !important; background:#1b5066 !important; }
.site-compose-send svg { width:20px; height:20px; fill:rgba(97,236,239,.15); stroke:#67ebef; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.site-compose-extra,.site-compose-panel { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 9px; padding:10px; border:1px solid var(--compose-line); border-radius:8px; background:#0a1b2b; }
.site-compose-panel { align-items:end; }
.site-composer .site-compose-panel label { display:grid; flex:1; gap:6px; min-width:160px; margin:0; color:#b8ccdf; font:12px Tahoma,Arial,sans-serif; }
.site-composer .site-compose-panel input[type="url"] { width:100%; height:35px; min-height:35px; padding:0 10px; border:1px solid #284459; border-radius:6px; background:#071725; color:#e0edf8; font:13px Tahoma,Arial,sans-serif; }
.site-compose-panel-buttons { display:flex; gap:7px; }
.site-composer .site-compose-panel-buttons button { height:35px; padding:0 12px; border:1px solid #2b495f; border-radius:6px; background:#142f43; color:#d6e7f6; cursor:pointer; }
.site-composer .site-compose-panel-buttons button:last-child { border-color:#328fa5; background:#164055; }
.site-composer .site-compose-color { width:30px; height:30px; min-height:0; padding:2px; border:1px solid #315166; border-radius:5px; background:transparent; cursor:pointer; }
.site-compose-emojis { display:flex; flex-wrap:wrap; gap:6px; }
.site-composer .site-compose-emojis .site-compose-tool { width:36px; height:36px; }
.site-compose-emojis img { width:24px; height:24px; object-fit:contain; }
.site-compose-status { padding:0 3px 9px; color:#99c7dc; font:12px/1.5 Tahoma,Arial,sans-serif; overflow-wrap:anywhere; }
.forum-compose-label { display:grid; gap:8px; font-size:14px; }
.forum-rich-text pre,.profile-wall pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:12px; border:1px solid #244155; border-radius:6px; background:#06131f; font:13px/1.6 monospace; }
.forum-rich-text .wall-inline-emoji { width:24px; height:24px; display:inline-block; vertical-align:middle; }
@media(max-width:700px) {
 .site-composer .site-compose-top-more { display:none; }
 .site-composer { padding:8px; border-radius:10px; }
 .site-compose-tools { gap:3px; }
 .site-compose-divider { margin:0 2px; }
 .site-composer .site-compose-tool { min-width:32px; height:34px; }
 .site-compose-actions { flex-wrap:wrap; }
 .site-composer .site-compose-attach span { display:none; }
 .site-compose-actions-right { gap:5px; }
 .site-composer .site-compose-send.community-send-button { min-width:112px !important; padding:0 9px !important; }
 .site-compose-panel-buttons { margin-left:auto; }
}

/* Pixel emoji artwork: Happy_AlexRO, CC BY 4.0; see assets/img/emojis/happy/ATTRIBUTION.txt. */
.wall-pixel-emoji{display:inline-block!important;width:24px!important;height:24px!important;vertical-align:middle;background-image:url("/assets/img/emojis/happy/faces.png");background-size:384px 216px;background-repeat:no-repeat;font-size:0!important;line-height:0!important;image-rendering:pixelated}.wall-pixel-emoji-0{background-position:-0px -0px}.wall-pixel-emoji-1{background-position:-24px -0px}.wall-pixel-emoji-2{background-position:-48px -0px}.wall-pixel-emoji-3{background-position:-72px -0px}.wall-pixel-emoji-4{background-position:-96px -0px}.wall-pixel-emoji-5{background-position:-120px -0px}.wall-pixel-emoji-6{background-position:-144px -0px}.wall-pixel-emoji-7{background-position:-168px -0px}.wall-pixel-emoji-8{background-position:-192px -0px}.wall-pixel-emoji-9{background-position:-216px -0px}.wall-pixel-emoji-10{background-position:-240px -0px}.wall-pixel-emoji-11{background-position:-264px -0px}.wall-pixel-emoji-12{background-position:-288px -0px}.wall-pixel-emoji-13{background-position:-312px -0px}.wall-pixel-emoji-14{background-position:-336px -0px}.wall-pixel-emoji-15{background-position:-360px -0px}.wall-pixel-emoji-16{background-position:-0px -24px}.wall-pixel-emoji-17{background-position:-24px -24px}.wall-pixel-emoji-18{background-position:-48px -24px}.wall-pixel-emoji-19{background-position:-72px -24px}.wall-pixel-emoji-20{background-position:-96px -24px}.wall-pixel-emoji-21{background-position:-120px -24px}.wall-pixel-emoji-22{background-position:-144px -24px}.wall-pixel-emoji-23{background-position:-168px -24px}.wall-pixel-emoji-24{background-position:-192px -24px}.wall-pixel-emoji-25{background-position:-216px -24px}.wall-pixel-emoji-26{background-position:-240px -24px}.wall-pixel-emoji-27{background-position:-264px -24px}.wall-pixel-emoji-28{background-position:-288px -24px}.wall-pixel-emoji-29{background-position:-312px -24px}.wall-pixel-emoji-30{background-position:-336px -24px}.wall-pixel-emoji-31{background-position:-360px -24px}.wall-pixel-emoji-32{background-position:-0px -48px}.wall-pixel-emoji-33{background-position:-24px -48px}.wall-pixel-emoji-34{background-position:-48px -48px}.wall-pixel-emoji-35{background-position:-72px -48px}.wall-pixel-emoji-36{background-position:-96px -48px}.wall-pixel-emoji-37{background-position:-120px -48px}.wall-pixel-emoji-38{background-position:-144px -48px}.wall-pixel-emoji-39{background-position:-168px -48px}.wall-pixel-emoji-40{background-position:-192px -48px}.wall-pixel-emoji-41{background-position:-216px -48px}.wall-pixel-emoji-42{background-position:-240px -48px}.wall-pixel-emoji-43{background-position:-264px -48px}.wall-pixel-emoji-44{background-position:-288px -48px}.wall-pixel-emoji-45{background-position:-312px -48px}.wall-pixel-emoji-46{background-position:-336px -48px}.wall-pixel-emoji-47{background-position:-360px -48px}.wall-pixel-emoji-48{background-position:-0px -72px}.wall-pixel-emoji-49{background-position:-24px -72px}.wall-pixel-emoji-50{background-position:-48px -72px}.wall-pixel-emoji-51{background-position:-72px -72px}.wall-pixel-emoji-52{background-position:-96px -72px}.wall-pixel-emoji-53{background-position:-120px -72px}.wall-pixel-emoji-54{background-position:-144px -72px}.wall-pixel-emoji-55{background-position:-168px -72px}.wall-pixel-emoji-56{background-position:-192px -72px}.wall-pixel-emoji-57{background-position:-216px -72px}.wall-pixel-emoji-58{background-position:-240px -72px}.wall-pixel-emoji-59{background-position:-264px -72px}.wall-pixel-emoji-60{background-position:-288px -72px}.wall-pixel-emoji-61{background-position:-312px -72px}.wall-pixel-emoji-62{background-position:-336px -72px}.wall-pixel-emoji-63{background-position:-360px -72px}.wall-pixel-emoji-64{background-position:-0px -96px}.wall-pixel-emoji-65{background-position:-24px -96px}.wall-pixel-emoji-66{background-position:-48px -96px}.wall-pixel-emoji-67{background-position:-72px -96px}.wall-pixel-emoji-68{background-position:-96px -96px}.wall-pixel-emoji-69{background-position:-120px -96px}.wall-pixel-emoji-70{background-position:-144px -96px}.wall-pixel-emoji-71{background-position:-168px -96px}.wall-pixel-emoji-72{background-position:-192px -96px}.wall-pixel-emoji-73{background-position:-216px -96px}.wall-pixel-emoji-74{background-position:-240px -96px}.wall-pixel-emoji-75{background-position:-264px -96px}.wall-pixel-emoji-76{background-position:-288px -96px}.wall-pixel-emoji-77{background-position:-312px -96px}.wall-pixel-emoji-78{background-position:-336px -96px}.wall-pixel-emoji-79{background-position:-360px -96px}.wall-pixel-emoji-80{background-position:-0px -120px}.wall-pixel-emoji-81{background-position:-24px -120px}.wall-pixel-emoji-82{background-position:-48px -120px}.wall-pixel-emoji-83{background-position:-72px -120px}.wall-pixel-emoji-84{background-position:-96px -120px}.wall-pixel-emoji-85{background-position:-120px -120px}.wall-pixel-emoji-86{background-position:-144px -120px}.wall-pixel-emoji-87{background-position:-168px -120px}.wall-pixel-emoji-88{background-position:-192px -120px}.wall-pixel-emoji-89{background-position:-216px -120px}.wall-pixel-emoji-90{background-position:-240px -120px}.wall-pixel-emoji-91{background-position:-264px -120px}.wall-pixel-emoji-92{background-position:-288px -120px}.wall-pixel-emoji-93{background-position:-312px -120px}.wall-pixel-emoji-94{background-position:-336px -120px}.wall-pixel-emoji-95{background-position:-360px -120px}.wall-pixel-emoji-96{background-position:-0px -144px}.wall-pixel-emoji-97{background-position:-24px -144px}.wall-pixel-emoji-98{background-position:-48px -144px}.wall-pixel-emoji-99{background-position:-72px -144px}.wall-pixel-emoji-100{background-position:-96px -144px}.wall-pixel-emoji-101{background-position:-120px -144px}.wall-pixel-emoji-102{background-position:-144px -144px}.wall-pixel-emoji-103{background-position:-168px -144px}.wall-pixel-emoji-104{background-position:-192px -144px}.wall-pixel-emoji-105{background-position:-216px -144px}.wall-pixel-emoji-106{background-position:-240px -144px}.wall-pixel-emoji-107{background-position:-264px -144px}.wall-pixel-emoji-108{background-position:-288px -144px}.wall-pixel-emoji-109{background-position:-312px -144px}.wall-pixel-emoji-110{background-position:-336px -144px}.wall-pixel-emoji-111{background-position:-360px -144px}.wall-pixel-emoji-112{background-position:-0px -168px}.wall-pixel-emoji-113{background-position:-24px -168px}.wall-pixel-emoji-114{background-position:-48px -168px}.wall-pixel-emoji-115{background-position:-72px -168px}.wall-pixel-emoji-116{background-position:-96px -168px}.wall-pixel-emoji-117{background-position:-120px -168px}.wall-pixel-emoji-118{background-position:-144px -168px}.wall-pixel-emoji-119{background-position:-168px -168px}.wall-pixel-emoji-120{background-position:-192px -168px}.wall-pixel-emoji-121{background-position:-216px -168px}.wall-pixel-emoji-122{background-position:-240px -168px}.wall-pixel-emoji-123{background-position:-264px -168px}.wall-pixel-emoji-124{background-position:-288px -168px}.wall-pixel-emoji-125{background-position:-312px -168px}.wall-pixel-emoji-126{background-position:-336px -168px}.wall-pixel-emoji-127{background-position:-360px -168px}.wall-pixel-emoji-128{background-position:-0px -192px}.wall-pixel-emoji-129{background-position:-24px -192px}
/* Wall: stable cards, an always-open conversation and a single input surface. */
.page-shell[data-page="profile"] .profile-wall-post,
.page-shell[data-page="profile"] .profile-wall-post:hover { transform:none!important; }
.page-shell[data-page="profile"] .profile-wall-comments { margin-top:14px; }
.page-shell[data-page="profile"] .profile-wall-comments-summary { margin:0; padding:12px 0 8px; }
.page-shell[data-page="profile"] .profile-wall-comments-panel.is-expanded { display:block!important; height:auto!important; max-height:none!important; opacity:1!important; overflow:visible!important; pointer-events:auto!important; }
.page-shell[data-page="profile"] .profile-wall-comments-panel.is-expanded > * { transform:none!important; opacity:1!important; }
.page-shell[data-page="profile"] .profile-wall-comment[hidden] { display:none!important; }
.page-shell[data-page="profile"] .profile-wall-comments-list { display:grid; gap:14px; }
.page-shell[data-page="profile"] .profile-wall-comment { padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
.page-shell[data-page="profile"] .profile-wall-comments-panel .profile-wall-comment-editor-inline.profile-wall-simple-composer-comment { width:100%; max-width:100%; margin:14px 0 0; padding:0; border:0; background:transparent; }
.page-shell[data-page="profile"] .profile-wall-comment-editor-inline .wall-rich-editor-shell,
.page-shell[data-page="profile"] .profile-wall-comment-editor-inline .site-composer { padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.page-shell[data-page="profile"] .profile-wall-comment-editor-inline .site-compose-toolbar { padding:0 0 6px; }
.page-shell[data-page="profile"] .profile-wall-comments-more { display:block; margin:12px 0; padding:7px 0; border:0; background:transparent; color:#b2c3d5; font:13px Tahoma,Arial,sans-serif; cursor:pointer; }
.page-shell[data-page="profile"] .profile-wall-comments-more:hover { color:#ecf3fa; text-decoration:underline; }
.page-shell .site-composer .site-compose-tool:disabled,
.page-shell .site-composer .site-compose-tool:disabled:hover { cursor:default!important; opacity:.38; background:transparent!important; border-color:transparent!important; color:#bdcede; }
.page-shell .site-composer .site-compose-send.community-send-button { border-color:#35485a!important; background:linear-gradient(#203143,#182838)!important; color:#d0dbe6!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important; }
.page-shell .site-composer .site-compose-send.community-send-button:hover { border-color:#536b80!important; background:#263a4d!important; }
.page-shell .site-composer .site-compose-send svg { stroke:#becddd!important; fill:none!important; }
/* Portal stays above the composer and outside post overflow/stacking contexts. */
.site-emoji-popover { position:fixed; z-index:15000; width:328px; max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); overflow:auto; box-sizing:border-box; padding:12px; border:1px solid #33485d; border-radius:12px; background:#102132; color:#dce6f0; box-shadow:0 12px 40px rgba(0,0,0,.5); }
.site-emoji-popover[hidden] { display:none!important; }
.site-emoji-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.site-emoji-tabs { display:flex; gap:4px; }
.site-emoji-popover .site-emoji-tabs button,.site-emoji-popover .site-emoji-close { border:0; border-radius:6px; padding:7px 10px; color:#acbfd1; background:transparent; font:13px Tahoma,Arial,sans-serif; cursor:pointer; }
.site-emoji-popover .site-emoji-tabs button[aria-pressed="true"] { color:#edf5ff; background:#263e53; }
.site-emoji-popover .site-emoji-close { font-size:23px; line-height:20px; padding:3px 8px; }
.site-emoji-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:3px; }
.site-emoji-popover .site-compose-tool { display:flex; align-items:center; justify-content:center; width:100%; height:34px; padding:3px; border:0; border-radius:6px; background:transparent; font:24px/1 'Segoe UI Emoji','Apple Color Emoji',sans-serif; cursor:pointer; }
.site-emoji-popover button:hover { background:#263e53; }
.site-emoji-popover button:focus-visible { outline:2px solid #8daac4; outline-offset:1px; }
.site-emoji-credit { display:block; margin-top:12px; color:#9aafc3; font:10px/1.5 Tahoma,Arial,sans-serif; text-decoration:none; }
.site-emoji-credit:hover { text-decoration:underline; }

/* Quiet actions and a compact, opt-in wall reply composer. */
.page-shell [data-wall-inline-composer][hidden] { display:none!important; }
.page-shell .profile-wall-comment-open { display:inline-block; padding:6px 0; margin:10px 0 0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#acbdcf; font:13px Tahoma,Arial,sans-serif; cursor:pointer; }
.page-shell .profile-wall-comment-open:hover { color:#edf4fc; background:transparent; text-decoration:underline; }
.page-shell .site-composer .site-compose-send.community-send-button,
.page-shell .site-composer .site-compose-send.community-send-button:hover,
.page-shell .site-composer .site-compose-send.community-send-button:focus-visible { min-width:0!important; padding:0 4px!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; color:#c3d1df!important; }
.page-shell .site-composer .site-compose-send.community-send-button:hover { color:#fff!important; text-decoration:underline; }
.page-shell .site-compose-actions-right > .site-compose-divider { display:none; }
.page-shell .site-composer .site-compose-tool,
.page-shell .site-composer .site-compose-tool:hover,
.page-shell .site-composer .site-compose-tool[aria-expanded="true"],
.page-shell :is(.profile-wall-entry-actions,.forum-topic-post-actions) button,
.page-shell :is(.profile-wall-entry-actions,.forum-topic-post-actions) button:hover { border-color:transparent!important; background:transparent!important; box-shadow:none!important; }
.page-shell .site-composer .site-compose-tool:hover { color:#f1f6fc; }
.page-shell .site-composer .site-compose-tool.is-active { color:#82ced8; }
.page-shell .site-emoji-popover button:hover { background:transparent; color:#fff; }
.page-shell[data-page="profile"] .profile-wall-comment-editor-inline .site-composer[data-compact-comment] { padding:10px 12px!important; border:1px solid rgba(116,148,177,.18)!important; border-radius:10px!important; background:#0b1a29!important; }
.page-shell[data-page="profile"] .site-composer[data-compact-comment] .site-compose-toolbar { padding:0 0 7px; border-bottom:1px solid rgba(116,148,177,.12); }
.page-shell[data-page="profile"] .site-composer[data-compact-comment] .site-compose-tools { gap:3px; }
.site-composer[data-compact-comment] .site-compose-select,
.site-composer[data-compact-comment] .site-compose-divider,
.site-composer[data-compact-comment] [aria-label="Видео по URL"],
.site-composer[data-compact-comment] [aria-label="Таблица"],
.site-composer[data-compact-comment] [aria-label="По левому краю"],
.site-composer[data-compact-comment] [aria-label="По центру"],
.site-composer[data-compact-comment] [aria-label="По правому краю"] { display:none; }
.page-shell[data-page] .site-composer.site-composer[data-compact-comment] > .tox.tox-tinymce { border:0!important; border-radius:0!important; background:transparent!important; }
.site-composer[data-compact-comment] .site-compose-footer { padding-top:5px; border-top:1px solid rgba(116,148,177,.1); }
.site-composer[data-compact-comment] .site-compose-actions-left { margin-left:0; }
.page-shell .profile-wall-comment-open:focus-visible { outline:2px solid #8daac4; outline-offset:3px; }
@media(max-width:700px) {
 .page-shell[data-page="profile"] .profile-wall-comment-editor-inline .site-composer[data-compact-comment] { padding:8px!important; }
 .page-shell .site-composer[data-compact-comment] .site-compose-tool { min-width:29px; height:30px; }
}

/* A lightweight reply row; rich editing remains for posts and the forum. */
.page-shell[data-page="profile"] .profile-wall-plain-reply { display:flex; align-items:flex-end; gap:12px; margin:16px 0 0 calc(2 * (var(--wall-avatar-size) + var(--wall-avatar-gap))); padding:0; border:0; background:transparent; }
.page-shell[data-page="profile"] .profile-wall-plain-reply .profile-wall-simple-input { flex:1; width:100%; min-width:0; margin:0; min-height:44px; padding:11px 13px; border:1px solid rgba(116,148,177,.2); border-radius:8px; background:#0b1a29; color:#dce7f2; font:14px/20px Tahoma,Arial,sans-serif; outline:none; box-shadow:none; }
.page-shell[data-page="profile"] .profile-wall-plain-reply .profile-wall-simple-input:focus { border-color:#526b82; }
.profile-wall-plain-reply .profile-wall-simple-input:focus::placeholder { color:transparent; }
.page-shell[data-page="profile"] .profile-wall-plain-send { display:grid; place-items:center; flex:0 0 44px; width:44px; min-height:44px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#c3d1df; font:600 13px Tahoma,Arial,sans-serif; cursor:pointer; }
.page-shell[data-page="profile"] .profile-wall-plain-send:hover { background:transparent; color:#fff; text-decoration:none; }
.page-shell[data-page="profile"] .profile-wall-plain-send svg { width:24px; height:24px; }
.page-shell[data-page="profile"] .profile-wall-plain-send:focus-visible { outline:2px solid #8daac4; outline-offset:2px; }
.page-shell[data-page="forum"] .forum-form.forum-topic-create-form { padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.page-shell[data-page="forum"] .forum-topic-create-form .site-composer { background:#0b1a29; }
.page-shell[data-page="forum"] .forum-topic-create-form .site-composer.site-composer > .tox.tox-tinymce { border:0!important; border-radius:0!important; }
.page-shell[data-page="forum"] .forum-topic-create-form .site-compose-toolbar { border-bottom:1px solid rgba(116,148,177,.12); }
.page-shell[data-page="forum"] .forum-topic-create-form .site-compose-footer { border-top:1px solid rgba(116,148,177,.12); }
@media(max-width:480px) {
 .page-shell[data-page="profile"] .profile-wall-plain-reply { gap:8px; margin-left:0; }
 .page-shell[data-page="profile"] .profile-wall-plain-reply .profile-wall-simple-input { font-size:16px; }
 .page-shell[data-page="profile"] .profile-wall-plain-send { font-size:12px; }
}


/* Keep email verification feedback with the email controls. */
#profile-settings #recovery-email-status { grid-column: 1 / -1; margin: 0 0 0 47px !important; }
#profile-settings #recovery-email-change-form { grid-column: 1 / -1; margin-left: 47px; display: grid; gap: 10px; }
#profile-settings #recovery-email-change-form[hidden] { display: none; }
#profile-settings #recovery-email-change-code-wrap { display: grid; gap: 9px; }
#profile-settings #recovery-email-new { width: min(280px, 100%); }
#profile-settings #recovery-email-actions[hidden] { display: none; }
#profile-settings #recovery-email-change-form button { min-height: 38px; padding: 7px 13px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
#profile-settings #recovery-email-change-form button:hover { color: var(--text); }
#profile-settings .recovery-email-identity-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; }
#profile-settings .recovery-email-flash { color: #8fc5a8; font-size: .8rem; font-weight: 600; white-space: nowrap; }
#profile-settings #recovery-email-verify,
#profile-settings #recovery-email-send { width: auto !important; border-color: transparent; background: transparent; color: var(--muted); }
#profile-settings #recovery-email-verify:hover,
#profile-settings #recovery-email-send:hover { border-color: transparent; background: transparent; color: var(--text); }
@media (max-width: 560px) { #profile-settings #recovery-email-status, #profile-settings #recovery-email-change-form { margin-left: 0 !important; } }

/* Keep feedback with the control that produced it. */
#profile-settings .recovery-method-card > .recovery-settings-feedback,
#profile-settings .recovery-method-card .recovery-unlink-confirm { grid-column: 1 / -1; }
#profile-settings .recovery-settings-feedback { margin: 4px 0 0 !important; padding: 0; border: 0; border-radius: 0; background: transparent; color: #b8dafa !important; font-size: .84rem; line-height: 1.4; }
#profile-settings .recovery-settings-feedback.is-error { background: transparent; color: #ff9c9c !important; }
#profile-settings .recovery-unlink-confirm { margin-top: 4px; padding-top: 0; border-top: 0; }
#profile-settings .recovery-unlink-confirm .recovery-settings-feedback { margin-top: 9px !important; }
#profile-settings #recovery-status { margin: 0 0 12px !important; }

.profile-inline-feedback { margin: 8px 0 0; color: #8fc5a8; font-size: .82rem; line-height: 1.4; }
.profile-inline-feedback.is-error { color: #ff9c9c; }
.profile-summary-status-line:has(> .profile-inline-feedback) { display: block; }
.profile-summary-contacts > .profile-inline-feedback { width: 100%; }
#profile-settings #settings-feed > .profile-inline-feedback,
#profile-settings .profile-messages-settings-card > .profile-inline-feedback { margin-top: 10px; }
#profile-settings .profile-sound-setting-row:has(> .profile-inline-feedback) { flex-wrap: wrap; }
#profile-settings .profile-sound-setting-row > .profile-inline-feedback { flex-basis: 100%; }
#profile-settings #recovery-unlink-resend { margin-top: 8px; }
#profile-settings #recovery-unlink-resend:disabled { opacity: .65; cursor: default; }

/* One quiet button style throughout the binding controls. */
#profile-settings .recovery-method-card .recovery-method-action,
#profile-settings .recovery-method-card .recovery-method-link,
#profile-settings #recovery-unlink-submit,
#profile-settings #recovery-unlink-cancel,
#profile-settings #recovery-unlink-resend,
#profile-settings #recovery-email-verify,
#profile-settings #recovery-email-change-form button {
  min-height: 38px;
  padding: 7px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
#profile-settings .recovery-method-card .recovery-method-action:hover,
#profile-settings .recovery-method-card .recovery-method-link:hover,
#profile-settings #recovery-unlink-submit:hover,
#profile-settings #recovery-unlink-cancel:hover,
#profile-settings #recovery-unlink-resend:hover,
#profile-settings #recovery-email-verify:hover,
#profile-settings #recovery-email-change-form button:hover { color: var(--text); background: transparent; }
#profile-settings .recovery-channel-state-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; }
#profile-settings .recovery-channel-note { color: #b8dafa; font-size: .8rem; line-height: 1.4; }
#profile-settings .recovery-channel-note[hidden] { display: none; }
#profile-settings .recovery-method-card > .recovery-unlink-confirm,
#profile-settings .recovery-method-card > #recovery-telegram-status { margin-left: 47px !important; }
@media (max-width: 600px) {
  #profile-settings .recovery-unlink-confirm-row input { flex: 0 0 100%; width: 100%; }
}

/* Public legal links in the shared footer */
#site-footer .footer-minimal-row,.frame-footer-page .footer-minimal-row{gap:24px;flex-wrap:wrap}
#site-footer .footer-legal-links,.frame-footer-page .footer-legal-links{display:flex;gap:10px 22px;align-items:center;flex-wrap:wrap}
#site-footer .footer-legal-links a,.frame-footer-page .footer-legal-links a{color:var(--muted);font-size:14px;text-decoration:underline;text-underline-offset:3px}
#site-footer .footer-legal-links a:hover,.frame-footer-page .footer-legal-links a:hover{color:#fff}
@media(max-width:650px){#site-footer .footer-minimal-meta,.frame-footer-page .footer-minimal-meta{margin-left:0;text-align:left}}

#site-footer .footer-legal-links a,.frame-footer-page .footer-legal-links a{text-decoration:none}
#site-footer .footer-legal-links a:hover,.frame-footer-page .footer-legal-links a:hover{text-decoration:none;color:var(--accent)}


/* October mobile layout and inline wall editing */
.profile-wall-edit-editor-post {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 8px;
}
.profile-wall-edit-editor-post .profile-wall-editor-label {
  display: block;
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
}
.profile-wall-edit-editor-post .profile-post-editor-shell {
  margin-top: 7px;
  border: 1px solid rgba(126,199,255,.18);
  border-radius: 12px;
  background: rgba(7,19,33,.48);
  overflow: visible;
}
.profile-wall-edit-editor-post .wall-editor-toolbar-wrap,
.profile-wall-edit-editor-post .wall-editor-toolbar,
.profile-wall-edit-editor-post .profile-post-modal-textarea {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.profile-wall-edit-editor-post .wall-editor-toolbar-wrap {
  border-bottom: 1px solid rgba(126,199,255,.12) !important;
}
.profile-wall-edit-editor-post .profile-post-modal-textarea {
  min-height: 112px;
}

@media (max-width: 720px) {
  :root { --header-frame-height: 72px; }
  #site-header.site-header-transition-host,
  .site-header-transition-host .site-header-fallback .site-header {
    height: auto;
    min-height: 72px;
  }
  .site-header-transition-host .nav,
  .site-header .nav {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 8px;
    min-height: 72px;
    align-content: center;
  }
  .site-header .logo { min-width: 0; min-height: 0; }
  .site-header .logo-image { width: min(150px, 100%); height: auto; max-height: 45px; }
  .site-header .header-actions {
    order: 2;
    grid-column: auto;
    width: auto;
    min-width: 0;
    justify-self: end;
  }
  .site-header .menu-toggle { order: 3; width: 44px; height: 44px; min-height: 44px; }
  .site-header .header-actions :is(#auth-widget,.profile-menu,.auth-button,.profile-trigger,.profile-dropdown-menu),
  .site-header-transition-host .fallback-auth-widget { width: auto; min-width: 0; }
  .site-header-transition-host .fallback-auth-widget { min-height: 0; }
  .site-header .menu { order: 4; grid-column: 1 / -1; }
  .container { width: min(1180px, calc(100% - 20px)); }
  body.page-shell::after { background-image: none !important; }
  .page-shell[data-page="profile"] .profile-page-section { overflow: visible; }
  .page-shell[data-page="profile"] .profile-page-layout,
  .page-shell[data-page="profile"] .profile-overview-grid-with-sidebar { grid-template-columns: minmax(0,1fr); }
  .page-shell[data-page="profile"] .profile-characters-stack,
  .page-shell[data-page="profile"] #profile-tab-characters .profile-characters-stack,
  .page-shell[data-page="profile"] #profile-tab-privates .profile-placeholder-list { grid-template-columns: minmax(0,1fr) !important; }
  .page-shell[data-page="profile"] #profile-tab-characters .profile-character-entry { min-height: 0 !important; }
  .page-shell[data-page="profile"] #profile-tab-characters .profile-line,
  .page-shell[data-page="profile"] #profile-tab-privates .profile-line { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 8px; }
  .page-shell[data-page="profile"] #profile-tab-characters .profile-line > strong,
  .page-shell[data-page="profile"] #profile-tab-privates .profile-line > strong { text-align: right; overflow-wrap: anywhere; }
  .page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry,
  .page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry.is-residents-view {
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; padding: 18px 18px 64px !important;
  }
  .page-shell[data-page="profile"] #profile-tab-privates .profile-private-face-front { height: auto; min-height: 0; }
  .page-shell[data-page="profile"] #profile-tab-privates .profile-private-top { padding-right: 0; }
  .page-shell[data-page="profile"] #profile-tab-privates .profile-private-entry h3 { overflow-wrap: anywhere; }
  .profile-wall-edit-editor-post { width: 100%; max-width: 100%; margin-left: 0; }
  .profile-wall-edit-editor-post .wall-editor-toolbar { flex-wrap: wrap; }
  .page-shell[data-page="knowledge"] .knowledge-subtab-list,
  .page-shell[data-page="knowledge"] .knowledge-subtab-list.knowledge-subtab-list--many {
    grid-template-columns: minmax(0,1fr) !important;
  }
  .page-shell[data-page="knowledge"] .knowledge-subtab,
  .page-shell[data-page="knowledge"] .knowledge-subtab-label {
    width: 100%; white-space: normal !important; overflow-wrap: anywhere; text-overflow: clip;
  }
  .page-shell[data-page="knowledge"] .knowledge-content { padding-inline: 10px; }
}

/* The edited post uses its existing post card as the only container. */
.page-shell[data-page="profile"] .profile-wall .profile-wall-edit-editor-post {
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  gap: 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .profile-post-editor-shell {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .wall-editor-toolbar-wrap,
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .wall-editor-toolbar,
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .community-editor-frame,
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .improve-tiny-host > .tox.tox-tinymce,
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .profile-post-modal-textarea {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .wall-editor-toolbar-wrap,
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .community-editor-toolbar {
  border-bottom: 1px solid rgba(126,199,255,.12) !important;
  padding-bottom: 8px;
}
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .profile-post-modal-textarea {
  min-height: 112px;
  padding: 12px 2px !important;
}
.page-shell[data-page="profile"] .profile-wall-edit-editor-post .profile-wall-edit-actions {
  padding-top: 2px;
}

/* Seller details stay visible on every public page, including mobile. */
#site-footer .footer-seller-details,
.frame-footer-page .footer-seller-details {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 8px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
#site-footer .footer-seller-details a,
.frame-footer-page .footer-seller-details a { color: inherit; text-decoration: none; }
#site-footer .footer-seller-details a:hover,
.frame-footer-page .footer-seller-details a:hover { color: var(--accent); }

/* Space out seven desktop text tabs within the existing header width.
   The logo, search control and account action keep their original positions. */
@media (min-width: 1101px) {
  .site-header .menu a:nth-of-type(1) { transform: translateX(-6px); }
  .site-header .menu a:nth-of-type(2) { transform: translateX(-4px); }
  .site-header .menu a:nth-of-type(3) { transform: translateX(-2px); }
  .site-header .menu a:nth-of-type(5) { transform: translateX(2px); }
  .site-header .menu a:nth-of-type(6) { transform: translateX(4px); }
  .site-header .menu a:nth-of-type(7) { transform: translateX(6px); }
}

.profile-dimp-audit-button svg { width: 19px; height: 19px; }
.profile-dimp-audit-dialog {
  width: min(680px, calc(100vw - 28px)); max-height: min(750px, calc(100vh - 40px));
  padding: 24px; border: 1px solid #35506b; border-radius: 16px;
  background: #0d1b2d; color: #e5edf7; overflow: auto;
}
.profile-dimp-audit-dialog::backdrop { background: rgba(1, 9, 20, .8); }
.profile-dimp-audit-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.profile-dimp-audit-head h2 { margin: 0 0 6px; }
.profile-dimp-audit-head p { margin: 0 0 16px; color: #a9bbd3; }
.profile-dimp-audit-close { border: 0; background: none; color: inherit; font-size: 28px; cursor: pointer; }
.profile-dimp-audit-balance { font-weight: 700; color: #80e5ee; }
.profile-dimp-audit-list { max-height: 480px; overflow: auto; }
.profile-dimp-audit-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #263950; }
.profile-dimp-audit-row strong { display: block; }
.profile-dimp-audit-row small { display: block; margin-top: 4px; color: #a9bbd3; overflow-wrap: anywhere; }
.profile-dimp-audit-row > strong { white-space: nowrap; }
.profile-dimp-audit-note { color: #a9bbd3; font-size: 13px; }

}
}