/* ==========================================================================
   nuxtirius — 2010-era skin (nx.css)
   Tahoma, 11–12px, square corners, 1px borders, subtle gradients.
   Loaded after style.css. All classes are namespaced with .nx- .
   ========================================================================== */

:root {
  --nx2-brand: #3c7344;
  --nx2-brand-dark: #2c5c33;
  --nx2-brand-darker: #1d4223;
  --nx2-brand-soft: #eef4ef;
  --nx2-brand-line: #c8dbcb;
  --nx2-accent: #3b6ea5;
  --nx2-accent-soft: #eaf1f8;
  --nx2-gold: #c8941d;
  --nx2-danger: #a33027;
  --nx2-danger-soft: #fbeceb;
  --nx2-page: #e4e8ea;
  --nx2-surface: #ffffff;
  --nx2-surface-2: #f4f6f7;
  --nx2-surface-3: #e9edef;
  --nx2-line: #c5ccd2;
  --nx2-line-soft: #e2e6e9;
  --nx2-text: #232b33;
  --nx2-text-2: #444e58;
  --nx2-muted: #79838d;
  --nx2-radius: 2px;
  --nx2-radius-sm: 2px;
  --nx2-radius-lg: 3px;
  --nx2-shadow: 0 1px 2px rgba(0, 0, 0, .07);
  --nx2-shadow-lg: 0 2px 8px rgba(0, 0, 0, .25);
  --nx2-font: Tahoma, Verdana, Arial, sans-serif;
  --nx2-head-grad: linear-gradient(#fbfcfc, #edf0f2);
  --nx2-btn-grad: linear-gradient(#ffffff, #eceff1);
  --nx2-btn-grad-hover: linear-gradient(#ffffff, #e1e6e9);
}

body.nx-theme-dark {
  --nx2-brand: #5b9a62;
  --nx2-brand-dark: #3c7344;
  --nx2-brand-soft: #1e2a20;
  --nx2-brand-line: #32462f;
  --nx2-accent: #6a9fd4;
  --nx2-accent-soft: #1b242d;
  --nx2-page: #161a1d;
  --nx2-surface: #20262b;
  --nx2-surface-2: #262d33;
  --nx2-surface-3: #2d353c;
  --nx2-line: #39424a;
  --nx2-line-soft: #2e363d;
  --nx2-text: #e3e8ec;
  --nx2-text-2: #bcc5cd;
  --nx2-muted: #8d97a1;
  --nx2-danger-soft: #32211f;
  --nx2-head-grad: linear-gradient(#2a3238, #232a2f);
  --nx2-btn-grad: linear-gradient(#2b3239, #242a30);
  --nx2-btn-grad-hover: linear-gradient(#323a42, #2a3138);
  --nx2-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --nx2-shadow-lg: 0 2px 10px rgba(0, 0, 0, .6);
}

body.nx-app {
  background-color: var(--nx2-page);
  color: var(--nx2-text);
  font-family: var(--nx2-font);
  font-size: 12px;
}

body.nx-app.has-wallpaper {
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* =========================================================================
   Classic header (.nx-header in style.css) — layout fixes so nothing in the
   top bar overflows its edges at any width.
   ========================================================================= */
/* Ничего не обрезаем: выпадашка уведомлений висит ниже шапки.
   За то, чтобы иконки не вылезали, отвечают правила сжатия ниже. */
.nx-header-top {
  gap: 12px;
  padding: 0 14px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Логотип не ужимаем: из-за этого «nuxtirius» обрезался прямо в шапке.
   Лишние пиксели забирает поиск — он тянется. */
.nx-brand { min-width: 0; flex: 0 0 auto; overflow: hidden; }
.nx-brand img { width: 56px; height: 56px; margin-right: 10px; flex: 0 0 56px; }
.nx-brand strong { font-size: 26px; white-space: nowrap; }
.nx-brand em { white-space: nowrap; }

.nx-search {
  width: auto;
  flex: 1 1 220px;
  max-width: 330px;
  min-width: 120px;
  margin-left: auto;
}

.nx-userbar {
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
  padding-right: 4px;
}

.nx-user-mini { max-width: 170px; min-width: 0; }
.nx-user-mini img, .nx-user-mini .avatar-fallback { flex: 0 0 42px; }
.nx-user-mini > span { min-width: 0; overflow: hidden; }
.nx-user-mini b, .nx-user-mini em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* badges sit inside the bar instead of hanging off the last icon */
.nx-header .nx-top-icon { flex: 0 0 auto; }
.nx-header .nx-top-icon .nx-count { top: -2px; right: -4px; }
.nx-header .nx-userbar > *:last-child .nx-count { right: 0; }
.nx-header .nx-top-icon .nx-icon { flex: 0 0 auto; }

/* ------------------------------------------------- выпадашка уведомлений */
.nx-header .nav-dropdown { position: relative; }

.nx-header .dropdown-menu {
  width: 300px;
  max-height: 340px;
  overflow-y: auto;
  padding: 0;
  border: 1px solid #16381c;
  border-radius: 2px;
  background: var(--nx2-surface);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
  z-index: 600;
}

.nx-header .dropdown-menu .dropdown-item {
  display: block;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--nx2-line-soft);
  background: var(--nx2-surface);
}

.nx-header .dropdown-menu .dropdown-item:last-child { border-bottom: 0; }
.nx-header .dropdown-menu .dropdown-item.unread { background: var(--nx2-brand-soft); }
.nx-header .dropdown-menu .dropdown-item.unread:hover { background: #e3eee5; }
.nx-header .dropdown-menu .dropdown-item:hover { background: var(--nx2-surface-2); }

.nx-header .notification-item-button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--nx2-text);
  font-family: var(--nx2-font);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.nx-header .notification-item-button strong {
  display: block;
  font-size: 11.5px;
  font-weight: bold;
  line-height: 1.4;
  color: #26313a;
}

.nx-header .notification-item-button span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--nx2-muted);
}

.nx-header .dropdown-menu .dropdown-item:only-child strong { color: var(--nx2-muted); font-weight: normal; }

/* the tab strip scrolls instead of spilling over */
.nx-tabs { overflow-x: auto; scrollbar-width: none; }
.nx-tabs::-webkit-scrollbar { display: none; }
.nx-tabs a { min-width: 0; flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 1120px) {
  .nx-userbar .nx-top-icon b { display: none; }
  .nx-user-mini { max-width: 130px; }
}

@media (max-width: 980px) {
  .nx-brand em { display: none; }
  .nx-brand img { width: 44px; height: 44px; flex-basis: 44px; }
  .nx-brand strong { font-size: 21px; }
  .nx-search { flex-basis: 150px; }
  .nx-user-mini > span { display: none; }
}

/* --------------------------------------------------------- icons */
.nx-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.nx-icon-14 { width: 12px; height: 12px; vertical-align: -2px; }
.nx-icon-16 { width: 14px; height: 14px; vertical-align: -2px; }
.nx-icon-18 { width: 15px; height: 15px; }
.nx-icon-22 { width: 18px; height: 18px; }
.nx-icon-26 { width: 22px; height: 22px; }
.nx-icon-32 { width: 26px; height: 26px; }
.nx-icon-48 { width: 40px; height: 40px; stroke-width: 1.4; }

/* --------------------------------------------------------- header */
.nx-top {
  background: linear-gradient(#3f7046, #254f2c 60%, #1d4223);
  border-bottom: 1px solid #16381c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  font-family: var(--nx2-font);
}

.nx-top-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 1000px;
  max-width: calc(100% - 20px);
  height: 44px;
  margin: 0 auto;
}

.nx-logo { display: flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.nx-logo:hover { text-decoration: none; }

.nx-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #16381c;
}

.nx-logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.nx-logo-text b { font-size: 16px; font-weight: bold; color: #fff; letter-spacing: -.2px; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.nx-logo-text i { font-size: 9px; font-style: normal; color: #a9c6ae; letter-spacing: .4px; text-transform: uppercase; }

.nx-searchbox { position: relative; flex: 1 1 auto; max-width: 260px; }

.nx-searchbox .nx-icon {
  position: absolute;
  left: 5px;
  top: 50%;
  margin-top: -7px;
  width: 13px;
  height: 13px;
  color: #7e8c83;
  pointer-events: none;
}

.nx-searchbox input {
  width: 100%;
  height: 22px;
  padding: 0 6px 0 22px;
  border: 1px solid #16381c;
  border-radius: 2px;
  background: #fff;
  color: var(--nx2-text);
  font-size: 11px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
}

.nx-searchbox input::placeholder { color: #9aa4ad; }
.nx-searchbox input:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }

.nx-top-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.nx-top-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 24px;
  min-width: 26px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #dbe8dd;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
}

.nx-top-btn:hover,
.nx-top-btn.is-open {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
}

.nx-top-btn .nx-icon { width: 15px; height: 15px; }

.nx-top-btn .nx-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 2px;
  background: #c0392b;
  border: 1px solid #8c271c;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  line-height: 12px;
  text-align: center;
  box-sizing: border-box;
}

.nx-top-clouds {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
}

.nx-top-clouds:hover { background: rgba(255, 255, 255, .2); text-decoration: none; color: #fff; }
.nx-top-clouds .nx-icon { width: 14px; height: 14px; color: #cfe4ff; }

.nx-top-me {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 6px 0 3px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #fff;
  text-decoration: none;
}

.nx-top-me:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .2); text-decoration: none; color: #fff; }

.nx-top-me img,
.nx-top-me .nx-ava-fallback {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .5);
  box-sizing: border-box;
}

.nx-top-me span { font-size: 11px; font-weight: bold; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* nav row */
.nx-nav {
  background: linear-gradient(#1d4223, #17371c);
  border-bottom: 1px solid #10280f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.nx-nav-inner {
  display: flex;
  align-items: stretch;
  width: 1000px;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nx-nav-inner::-webkit-scrollbar { display: none; }

.nx-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 11px;
  color: #c6d9c9;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid rgba(0, 0, 0, .22);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05);
}

.nx-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nx-nav a.is-active { background: linear-gradient(#4d8656, #386a3f); color: #fff; }
.nx-nav a .nx-icon { width: 13px; height: 13px; }

/* dropdowns */
.nx-dd { position: relative; }

.nx-dd-panel {
  position: absolute;
  top: calc(100% + 3px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 20px);
  background: var(--nx2-surface);
  border: 1px solid #97a2ab;
  border-radius: 2px;
  box-shadow: var(--nx2-shadow-lg);
  overflow: hidden;
  z-index: 500;
  color: var(--nx2-text);
}

.nx-dd-panel[hidden] { display: none !important; }

.nx-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--nx2-line);
  background: var(--nx2-head-grad);
  font-size: 11px;
  font-weight: bold;
}

.nx-dd-head form { margin: 0; }
.nx-dd-list { max-height: 330px; overflow-y: auto; }

.nx-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--nx2-line-soft);
  color: var(--nx2-text);
  font-size: 11px;
  text-decoration: none;
}

.nx-dd-item:last-child { border-bottom: 0; }
.nx-dd-item:hover { background: var(--nx2-brand-soft); text-decoration: none; }
.nx-dd-item.is-unread { background: #f4f8fb; }

.nx-dd-item .nx-dd-ico {
  width: 22px; height: 22px; flex: 0 0 22px;
  border: 1px solid var(--nx2-line);
  border-radius: 2px;
  background: var(--nx2-surface-2);
  color: var(--nx2-brand);
  display: flex; align-items: center; justify-content: center;
}

.nx-dd-item b { display: block; font-weight: bold; line-height: 1.35; }
.nx-dd-item small { display: block; margin-top: 2px; color: var(--nx2-muted); font-size: 10px; }
.nx-dd-empty { padding: 18px 10px; text-align: center; color: var(--nx2-muted); font-size: 11px; }

/* --------------------------------------------------------- layout */
.nx-page {
  font-family: var(--nx2-font);
  color: var(--nx2-text);
  width: 1000px;
  max-width: calc(100% - 20px);
  margin: 12px auto 26px;
}

.nx-grid {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr) 210px;
  gap: 10px;
  align-items: start;
}

.nx-grid-2 { display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 10px; align-items: start; }

.nx-grid-2.nx-side-left { grid-template-columns: 200px minmax(0, 1fr); }
.nx-grid-2.nx-side-left-wide { grid-template-columns: 250px minmax(0, 1fr); }
.nx-grid-2.nx-side-right { grid-template-columns: minmax(0, 1fr) 250px; }
.nx-grid-2.nx-side-right-wide { grid-template-columns: minmax(0, 1fr) 270px; }
.nx-grid-2.nx-halves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.nx-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nx-sticky { position: sticky; top: 80px; }

/* --------------------------------------------------------- blocks */
.nx-card {
  background: var(--nx2-surface);
  border: 1px solid var(--nx2-line);
  border-radius: 2px;
  box-shadow: var(--nx2-shadow);
  overflow: hidden;
}

.nx-card-pad { padding: 10px; }

.nx-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--nx2-line);
  background: var(--nx2-head-grad);
  font-size: 12px;
  font-weight: bold;
  color: #2f3a44;
}

.nx-card-head .nx-icon { color: var(--nx2-brand); }
.nx-card-head .nx-card-head-action { margin-left: auto; font-size: 11px; font-weight: normal; }

.nx-card-body { padding: 10px; }
.nx-card-foot { padding: 7px 10px; border-top: 1px solid var(--nx2-line-soft); background: var(--nx2-surface-2); }

.nx-empty { padding: 22px 12px; text-align: center; color: var(--nx2-muted); font-size: 11px; }
.nx-empty .nx-icon { color: #c3cad1; margin-bottom: 6px; }
.nx-empty b { display: block; color: var(--nx2-text-2); font-size: 12px; margin-bottom: 3px; }

/* --------------------------------------------------------- side menu */
.nx-sidenav { display: flex; flex-direction: column; }

.nx-sidenav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  height: 26px;
  color: #33414d;
  font-size: 11px;
  text-decoration: none;
  border-bottom: 1px solid var(--nx2-line-soft);
}

.nx-sidenav a:last-child { border-bottom: 0; }
.nx-sidenav a:hover { background: var(--nx2-surface-2); text-decoration: none; }
.nx-sidenav a.is-active { background: var(--nx2-brand-soft); color: var(--nx2-brand-dark); font-weight: bold; }
.nx-sidenav a .nx-icon { width: 14px; height: 14px; color: #7b8791; }
.nx-sidenav a.is-active .nx-icon { color: var(--nx2-brand); }
.nx-sidenav a .nx-pill { margin-left: auto; }

.nx-pill {
  min-width: 16px;
  height: 15px;
  padding: 0 4px;
  border-radius: 2px;
  background: #c0392b;
  border: 1px solid #8c271c;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  line-height: 13px;
  text-align: center;
  box-sizing: border-box;
}

.nx-pill-soft { background: var(--nx2-surface-3); border-color: var(--nx2-line); color: var(--nx2-text-2); }

/* --------------------------------------------------------- avatars */
.nx-ava {
  width: 40px;
  height: 40px;
  border: 1px solid var(--nx2-line);
  border-radius: 2px;
  object-fit: cover;
  background: var(--nx2-surface-3);
  flex: 0 0 auto;
  display: block;
  box-sizing: border-box;
}

.nx-ava-fallback {
  width: 40px;
  height: 40px;
  border: 1px solid #33613a;
  border-radius: 2px;
  background: linear-gradient(#5e9566, #3c7344);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
  flex: 0 0 auto;
  box-sizing: border-box;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

.nx-ava-24, .nx-ava-24.nx-ava-fallback { width: 24px; height: 24px; font-size: 10px; }
.nx-ava-28, .nx-ava-28.nx-ava-fallback { width: 28px; height: 28px; font-size: 11px; }
.nx-ava-32, .nx-ava-32.nx-ava-fallback { width: 32px; height: 32px; font-size: 12px; }
.nx-ava-34, .nx-ava-34.nx-ava-fallback { width: 34px; height: 34px; font-size: 13px; }
.nx-ava-36, .nx-ava-36.nx-ava-fallback { width: 36px; height: 36px; font-size: 14px; }
.nx-ava-40, .nx-ava-40.nx-ava-fallback { width: 40px; height: 40px; font-size: 15px; }
.nx-ava-44, .nx-ava-44.nx-ava-fallback { width: 44px; height: 44px; font-size: 16px; }
.nx-ava-46, .nx-ava-46.nx-ava-fallback { width: 46px; height: 46px; font-size: 17px; }
.nx-ava-50, .nx-ava-50.nx-ava-fallback { width: 50px; height: 50px; font-size: 19px; }
.nx-ava-56, .nx-ava-56.nx-ava-fallback { width: 56px; height: 56px; font-size: 21px; }
.nx-ava-64, .nx-ava-64.nx-ava-fallback { width: 64px; height: 64px; font-size: 24px; }
.nx-ava-72, .nx-ava-72.nx-ava-fallback { width: 72px; height: 72px; font-size: 27px; }
.nx-ava-80, .nx-ava-80.nx-ava-fallback { width: 80px; height: 80px; font-size: 30px; }
.nx-ava-96, .nx-ava-96.nx-ava-fallback { width: 96px; height: 96px; font-size: 36px; }

.nx-ava-wrap { position: relative; flex: 0 0 auto; display: inline-block; }

.nx-ava-wrap .nx-online {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  background: #4a9e58;
  border: 1px solid #2c6635;
  box-sizing: border-box;
}

/* --------------------------------------------------------- buttons */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 23px;
  padding: 0 10px;
  border: 1px solid #b3bcc4;
  border-radius: 2px;
  background: var(--nx2-btn-grad);
  color: #2c3740;
  font-family: var(--nx2-font);
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.nx-btn:hover { background: var(--nx2-btn-grad-hover); text-decoration: none; color: #1e2830; }
.nx-btn:active { background: #e3e8eb; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.nx-btn[disabled], .nx-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.nx-btn .nx-icon { width: 13px; height: 13px; }

.nx-btn-primary {
  background: linear-gradient(#5d9866, #3c7344);
  border-color: #2c5c33;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}

.nx-btn-primary:hover { background: linear-gradient(#69a672, #43804c); color: #fff; }
.nx-btn-primary:active { background: #3a6f42; }

.nx-btn-accent { background: linear-gradient(#5a8cc0, #3b6ea5); border-color: #2d5680; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.nx-btn-accent:hover { background: linear-gradient(#6899cb, #427ab5); color: #fff; }

.nx-btn-danger { background: var(--nx2-btn-grad); border-color: #c9a5a0; color: var(--nx2-danger); }
.nx-btn-danger:hover { background: var(--nx2-danger-soft); color: var(--nx2-danger); }

.nx-btn-ghost { background: transparent; border-color: transparent; color: var(--nx2-text-2); text-shadow: none; }
.nx-btn-ghost:hover { background: var(--nx2-surface-2); border-color: var(--nx2-line); }

.nx-btn-sm { height: 20px; padding: 0 7px; font-size: 10px; }
.nx-btn-sm .nx-icon { width: 12px; height: 12px; }
.nx-btn-lg { height: 27px; padding: 0 16px; font-size: 12px; }
.nx-btn-block { display: flex; width: 100%; }
.nx-btn-icon { width: 23px; padding: 0; }
.nx-btn-icon.nx-btn-sm { width: 20px; }
.nx-btn-row { display: flex; flex-wrap: wrap; gap: 5px; }

/* --------------------------------------------------------- forms */
.nx-field { display: block; margin-bottom: 9px; }

.nx-field > span,
.nx-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  color: #56616b;
}

.nx-input,
.nx-textarea,
.nx-select {
  width: 100%;
  min-height: 22px;
  padding: 3px 5px;
  border: 1px solid #9daab4;
  border-top-color: #8795a0;
  border-radius: 2px;
  background: var(--nx2-surface);
  color: var(--nx2-text);
  font-family: var(--nx2-font);
  font-size: 12px;
  box-sizing: border-box;
  outline: none;
}

.nx-input:focus,
.nx-textarea:focus,
.nx-select:focus { border-color: #5e8f66; box-shadow: 0 0 3px rgba(60, 115, 68, .35); }

.nx-textarea { min-height: 56px; resize: vertical; line-height: 1.45; }
.nx-input::placeholder, .nx-textarea::placeholder { color: #9aa4ad; }
.nx-hint { margin-top: 3px; font-size: 10px; color: var(--nx2-muted); }

.nx-check {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--nx2-line);
  border-radius: 2px;
  background: var(--nx2-surface-2);
  font-size: 11px;
  cursor: pointer;
}

.nx-check input { margin: 1px 0 0; flex: 0 0 auto; }

/* --------------------------------------------------------- uploader */
.nx-upload {
  position: relative;
  display: block;
  border: 1px dashed #a9b4bd;
  border-radius: 2px;
  background: var(--nx2-surface-2);
  padding: 12px;
  text-align: center;
  cursor: pointer;
}

.nx-upload:hover, .nx-upload.is-drag { border-color: var(--nx2-brand); background: var(--nx2-brand-soft); }

[data-nx-upload] > input[type=file],
.nx-upload input[type=file],
.nx-composer-tool input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.nx-upload-ico { color: var(--nx2-brand); margin-bottom: 4px; }
.nx-upload-title { font-size: 11px; font-weight: bold; color: var(--nx2-text); }
.nx-upload-title u { color: var(--nx2-brand); text-decoration: underline; }
.nx-upload-hint { margin-top: 2px; font-size: 10px; color: var(--nx2-muted); }

.nx-upload-compact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid #b3bcc4;
  border-style: solid;
  background: var(--nx2-btn-grad);
  text-align: left;
}

.nx-upload-compact:hover { background: var(--nx2-brand-soft); border-color: var(--nx2-brand); }
.nx-upload-compact .nx-upload-ico { margin: 0; }

.nx-upload-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nx-upload-files:empty { display: none; }

.nx-upload-thumb {
  position: relative;
  width: 74px;
  height: 74px;
  border: 1px solid var(--nx2-line);
  background: var(--nx2-surface-3);
  overflow: hidden;
}

.nx-upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nx-upload-thumb-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  padding: 4px;
  color: var(--nx2-muted);
  font-size: 9px;
  text-align: center;
  word-break: break-all;
  box-sizing: border-box;
}

.nx-upload-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #8c271c;
  background: rgba(180, 50, 40, .9);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-upload-remove .nx-icon { width: 10px; height: 10px; stroke-width: 2.6; }
.nx-upload-remove:hover { background: #a33027; }

/* --------------------------------------------------------- verified badge */
.nx-name { display: inline-flex; align-items: center; gap: 3px; }
.nx-name-label { font-weight: inherit; }

.nx-verified {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  vertical-align: -2px;
  cursor: help;
}

.nx-verified svg { width: 100%; height: 100%; display: block; }
.nx-verified-lg { width: 18px; height: 18px; flex-basis: 18px; }

.nx-verified-tip {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 7px;
  border: 1px solid #2b333b;
  background: #3b444d;
  color: #fff;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 60;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

.nx-verified:hover .nx-verified-tip { opacity: 1; visibility: visible; }

/* --------------------------------------------------------- composer */
.nx-composer-top { position: relative; display: flex; gap: 8px; padding: 9px 10px; }
.nx-composer-top.is-drag { background: var(--nx2-brand-soft); box-shadow: inset 0 0 0 1px var(--nx2-brand); }

.nx-composer-input { flex: 1 1 auto; min-width: 0; }

.nx-composer-input textarea {
  width: 100%;
  min-height: 40px;
  max-height: 300px;
  padding: 5px 6px;
  border: 1px solid #9daab4;
  border-top-color: #8795a0;
  border-radius: 2px;
  background: #fff;
  color: var(--nx2-text);
  font-family: var(--nx2-font);
  font-size: 12px;
  line-height: 1.45;
  resize: none;
  outline: none;
  box-sizing: border-box;
  overflow: hidden;
}

.nx-composer-input textarea:focus { border-color: #5e8f66; box-shadow: 0 0 3px rgba(60, 115, 68, .3); }

.nx-composer-media { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 4px; }
.nx-composer-media:empty { display: none; padding: 0; }

.nx-composer-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 8px 6px 10px;
  border-top: 1px solid var(--nx2-line-soft);
  background: var(--nx2-surface-2);
  flex-wrap: wrap;
}

.nx-composer-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #48535d;
  font-family: var(--nx2-font);
  font-size: 11px;
  cursor: pointer;
  position: relative;
}

.nx-composer-tool:hover { background: var(--nx2-btn-grad); border-color: #bcc5cc; }
.nx-composer-tool .nx-icon { width: 14px; height: 14px; color: var(--nx2-brand); }
.nx-composer-submit { margin-left: auto; }

/* emoji picker */
.nx-emoji-panel {
  position: absolute;
  z-index: 520;
  width: 262px;
  max-height: 230px;
  overflow-y: auto;
  padding: 5px;
  background: var(--nx2-surface);
  border: 1px solid #97a2ab;
  box-shadow: var(--nx2-shadow-lg);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.nx-emoji-panel[hidden] { display: none !important; }

.nx-emoji-panel button {
  width: 100%;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.nx-emoji-panel button:hover { background: var(--nx2-brand-soft); border-color: var(--nx2-brand-line); }
.nx-emoji-panel img { max-width: 100%; max-height: 24px; display: block; }

/* --------------------------------------------------------- posts */
.nx-post { position: relative; }
.nx-post-head { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px 6px; }
.nx-post-head-meta { flex: 1 1 auto; min-width: 0; }
.nx-post-author { font-size: 12px; font-weight: bold; color: #2b5f34; text-decoration: none; display: inline-block; }
.nx-post-author:hover { text-decoration: underline; }
.nx-post-sub { display: flex; align-items: center; gap: 4px; margin-top: 1px; font-size: 10px; color: var(--nx2-muted); }
.nx-post-sub .nx-icon { width: 11px; height: 11px; }

.nx-post-menu { position: relative; margin-left: auto; }

.nx-post-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  min-width: 160px;
  padding: 2px;
  background: var(--nx2-surface);
  border: 1px solid #97a2ab;
  box-shadow: var(--nx2-shadow-lg);
  z-index: 60;
}

.nx-post-menu-panel[hidden] { display: none !important; }

.nx-post-menu-panel button,
.nx-post-menu-panel a {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  color: var(--nx2-text);
  font-family: var(--nx2-font);
  font-size: 11px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nx-post-menu-panel button:hover,
.nx-post-menu-panel a:hover { background: var(--nx2-brand-soft); }
.nx-post-menu-panel .is-danger { color: var(--nx2-danger); }
.nx-post-menu-panel .is-danger:hover { background: var(--nx2-danger-soft); }

.nx-post-text {
  padding: 0 10px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--nx2-text);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.nx-post-text img[src*="/emoji/"] { vertical-align: -3px; width: 17px; height: 17px; }
.nx-post-text a { color: #2b5f34; }

/* photo album */
.nx-media { display: grid; gap: 2px; background: var(--nx2-line-soft); border-top: 1px solid var(--nx2-line-soft); border-bottom: 1px solid var(--nx2-line-soft); }
.nx-media-1 { grid-template-columns: 1fr; }
.nx-media-2 { grid-template-columns: 1fr 1fr; }
.nx-media-3 { grid-template-columns: 2fr 1fr; }
.nx-media-3 > *:first-child { grid-row: span 2; }
.nx-media-4 { grid-template-columns: 1fr 1fr; }

.nx-media-item { position: relative; display: block; overflow: hidden; background: #1b1f22; cursor: pointer; min-height: 0; }
.nx-media-1 .nx-media-item { max-height: 560px; }
.nx-media-1 .nx-media-item img { width: 100%; height: auto; max-height: 560px; object-fit: contain; display: block; }
.nx-media:not(.nx-media-1) .nx-media-item { aspect-ratio: 1 / 1; }
.nx-media:not(.nx-media-1) .nx-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-media-3 > *:first-child { aspect-ratio: auto !important; }

.nx-media-more {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 22, .62);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* attachments */
.nx-attach {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 8px;
  padding: 6px 8px;
  border: 1px solid var(--nx2-line);
  background: var(--nx2-surface-2);
  text-decoration: none;
  color: var(--nx2-text);
}

.nx-attach:hover { background: var(--nx2-brand-soft); text-decoration: none; }

.nx-attach-ico {
  width: 28px; height: 28px; flex: 0 0 28px;
  border: 1px solid var(--nx2-line);
  background: #fff;
  color: var(--nx2-brand);
  display: flex; align-items: center; justify-content: center;
}

.nx-attach-meta { flex: 1 1 auto; min-width: 0; }
.nx-attach-meta b { display: block; font-size: 11px; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-attach-meta small { color: var(--nx2-muted); font-size: 10px; }

.nx-audio { margin: 0 10px 8px; }
.nx-audio audio { width: 100%; height: 32px; }

/* stats + actions */
.nx-post-stats {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 10px;
  border-top: 1px solid var(--nx2-line-soft);
  background: #fbfcfc;
  font-size: 10px;
  color: var(--nx2-muted);
}

.nx-post-stats .nx-stat { display: inline-flex; align-items: center; gap: 3px; }
.nx-post-stats .nx-stat b { color: var(--nx2-text-2); font-weight: bold; }
.nx-post-stat-right { margin-left: auto; }

.nx-post-actions {
  display: flex;
  align-items: center;
  padding: 0;
  border-top: 1px solid var(--nx2-line-soft);
  background: var(--nx2-surface-2);
}

.nx-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 0;
  height: 25px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid var(--nx2-line-soft);
  background: transparent;
  color: #4a555f;
  font-family: var(--nx2-font);
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.nx-act:last-child { border-right: 0; }
.nx-act:hover { background: #e9eef0; color: #26313a; text-decoration: none; }
.nx-act .nx-icon { width: 14px; height: 14px; }
.nx-act.is-active { color: var(--nx2-danger); }
.nx-act.is-active .nx-icon { color: var(--nx2-danger); }

/* reactions */
.nx-reactions { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px 10px; border-top: 1px solid var(--nx2-line-soft); }

.nx-reaction {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 5px;
  border: 1px solid var(--nx2-line);
  border-radius: 2px;
  background: var(--nx2-btn-grad);
  cursor: pointer;
  font-family: var(--nx2-font);
  font-size: 10px;
  font-weight: bold;
  color: var(--nx2-text-2);
}

.nx-reaction:hover { background: var(--nx2-btn-grad-hover); }
.nx-reaction.is-active { background: var(--nx2-brand-soft); border-color: var(--nx2-brand); color: var(--nx2-brand-dark); }
.nx-reaction img { width: 17px; height: 17px; display: block; }
.nx-reaction-count:empty { display: none; }
.nx-reaction-add { color: var(--nx2-muted); }
.nx-reaction-add .nx-icon { width: 13px; height: 13px; }

/* --------------------------------------------------------- comments */
.nx-comments { border-top: 1px solid var(--nx2-line); background: #f6f8f9; }
.nx-comments[hidden] { display: none !important; }
.nx-comments-list { padding: 8px 10px 2px; display: flex; flex-direction: column; gap: 8px; }
.nx-comments-list:empty { display: none; }

.nx-comment { display: flex; gap: 7px; }
.nx-comment-body { flex: 1 1 auto; min-width: 0; }

.nx-comment-bubble {
  display: block;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--nx2-line);
  background: #fff;
  box-sizing: border-box;
}

.nx-comment-author { font-size: 11px; font-weight: bold; color: #2b5f34; text-decoration: none; }
.nx-comment-author:hover { text-decoration: underline; }
.nx-comment-reply-to { color: #3b6ea5; font-weight: bold; text-decoration: none; }
.nx-comment-reply-to:hover { text-decoration: underline; }

.nx-comment-text {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--nx2-text);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.nx-comment-text img[src*="/emoji/"] { vertical-align: -3px; width: 16px; height: 16px; }
.nx-comment-tools { display: flex; align-items: center; gap: 9px; margin: 3px 0 0 2px; font-size: 10px; color: var(--nx2-muted); }

.nx-comment-tool {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--nx2-font);
  font-size: 10px;
  color: #5d6973;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nx-comment-tool:hover { color: var(--nx2-brand); text-decoration: underline; }
.nx-comment-tool.is-danger:hover { color: var(--nx2-danger); }
.nx-comment-tool .nx-icon { width: 11px; height: 11px; }

.nx-comment-replies {
  margin: 7px 0 0 10px;
  padding-left: 10px;
  border-left: 2px solid var(--nx2-line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nx-comment-replies:empty { display: none; }

.nx-comments-more {
  display: block;
  width: 100%;
  padding: 5px;
  border: 0;
  background: none;
  color: var(--nx2-brand);
  font-family: var(--nx2-font);
  font-size: 11px;
  cursor: pointer;
  text-align: left;
}

.nx-comment-form { display: flex; gap: 7px; padding: 7px 10px 10px; align-items: flex-start; }
.nx-comment-form.is-reply { padding: 0; margin-top: 6px; }

.nx-comment-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 1px 1px 6px;
  border: 1px solid #9daab4;
  border-top-color: #8795a0;
  background: #fff;
}

.nx-comment-input-wrap:focus-within { border-color: #5e8f66; box-shadow: 0 0 3px rgba(60, 115, 68, .3); }

.nx-comment-input-wrap textarea {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--nx2-text);
  font-family: var(--nx2-font);
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 0;
  max-height: 130px;
  overflow-y: auto;
}

.nx-comment-btn {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 0;
  background: transparent;
  color: #6c7781;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-comment-btn:hover { background: var(--nx2-surface-3); color: var(--nx2-brand); }
.nx-comment-btn-send { color: var(--nx2-brand); }
.nx-comment-btn-send:hover { background: var(--nx2-brand); color: #fff; }
.nx-comment-btn .nx-icon { width: 14px; height: 14px; }

.nx-reply-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  padding: 2px 4px 2px 7px;
  border: 1px solid #b9cde1;
  background: var(--nx2-accent-soft);
  color: #2d5680;
  font-size: 10px;
  font-weight: bold;
}

.nx-reply-chip button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; display: flex; }
.nx-reply-chip .nx-icon { width: 11px; height: 11px; }

/* --------------------------------------------------------- rows */
.nx-rows { display: flex; flex-direction: column; }

.nx-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--nx2-line-soft);
  color: var(--nx2-text);
  text-decoration: none;
}

.nx-row:last-child { border-bottom: 0; }
.nx-row:hover { background: var(--nx2-surface-2); text-decoration: none; }
.nx-row-meta { flex: 1 1 auto; min-width: 0; }
.nx-row-meta b { display: block; font-size: 12px; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-row-meta small { display: block; margin-top: 1px; color: var(--nx2-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-row-actions { display: flex; gap: 4px; margin-left: auto; flex: 0 0 auto; }

/* --------------------------------------------------------- tiles */
.nx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }

.nx-tile {
  display: flex;
  flex-direction: column;
  background: var(--nx2-surface);
  border: 1px solid var(--nx2-line);
  box-shadow: var(--nx2-shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--nx2-text);
}

.nx-tile:hover { border-color: #9fb0a3; text-decoration: none; color: var(--nx2-text); }
.nx-tile-cover { height: 70px; background: linear-gradient(#4a7f52, #33693c); position: relative; }
.nx-tile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-tile-ava { position: absolute; left: 9px; bottom: -18px; border: 2px solid var(--nx2-surface); background: var(--nx2-surface); }
.nx-tile-ava img, .nx-tile-ava .nx-ava-fallback { width: 44px; height: 44px; border-radius: 0; object-fit: cover; }
.nx-tile-ava .nx-ava-fallback { display: flex; font-size: 18px; border-radius: 0; }
.nx-tile-body { padding: 24px 9px 9px; flex: 1 1 auto; }
.nx-tile-body b { display: block; font-size: 12px; font-weight: bold; }
.nx-tile-body p { margin: 4px 0 0; font-size: 11px; line-height: 1.4; color: var(--nx2-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-tile-foot { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-top: 1px solid var(--nx2-line-soft); background: var(--nx2-surface-2); font-size: 10px; color: var(--nx2-muted); }
.nx-tile-foot .nx-icon { width: 12px; height: 12px; }

/* --------------------------------------------------------- hero / tabs */
.nx-hero { overflow: hidden; }
.nx-hero-cover { height: 150px; background: linear-gradient(#4a7f52, #2f6437); position: relative; }
.nx-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nx-hero-body { display: flex; align-items: flex-end; gap: 12px; padding: 0 12px 10px; margin-top: -34px; position: relative; }

.nx-hero-ava { border: 2px solid var(--nx2-surface); background: var(--nx2-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); flex: 0 0 auto; }
.nx-hero-ava img, .nx-hero-ava .nx-ava-fallback { width: 90px; height: 90px; border-radius: 0; object-fit: cover; border: 0; }
.nx-hero-ava .nx-ava-fallback { display: flex; font-size: 34px; }
.nx-hero-meta { flex: 1 1 auto; min-width: 0; padding-bottom: 2px; }
.nx-hero-meta h1 { margin: 0; font-size: 18px; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nx-hero-meta p { margin: 3px 0 0; font-size: 11px; color: var(--nx2-muted); }
.nx-hero-actions { display: flex; gap: 5px; flex-wrap: wrap; padding-bottom: 3px; }

.nx-hero-stats { display: flex; gap: 0; padding: 0; border-top: 1px solid var(--nx2-line-soft); background: var(--nx2-surface-2); }
.nx-hero-stat { flex: 1 1 0; padding: 6px 8px; text-align: center; border-right: 1px solid var(--nx2-line-soft); }
.nx-hero-stat:last-child { border-right: 0; }
.nx-hero-stat b { display: block; font-size: 14px; font-weight: bold; }
.nx-hero-stat span { font-size: 10px; color: var(--nx2-muted); }

.nx-tabs { display: flex; gap: 0; border-top: 1px solid var(--nx2-line); background: var(--nx2-head-grad); overflow-x: auto; }

.nx-tabs a {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  color: #4a555f;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  border-right: 1px solid var(--nx2-line-soft);
  white-space: nowrap;
}

.nx-tabs a:hover { background: #fff; text-decoration: none; }
.nx-tabs a.is-active { background: #fff; color: var(--nx2-brand-dark); box-shadow: inset 0 -2px 0 var(--nx2-brand); }
.nx-tabs a .nx-icon { width: 13px; height: 13px; }

/* --------------------------------------------------------- chat */
.nx-chat {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  height: calc(100vh - 150px);
  min-height: 420px;
  overflow: hidden;
}

.nx-chat-side { display: flex; flex-direction: column; border-right: 1px solid var(--nx2-line); background: var(--nx2-surface); min-width: 0; }
.nx-chat-search { padding: 6px 8px; border-bottom: 1px solid var(--nx2-line-soft); background: var(--nx2-surface-2); }
.nx-chat-list { flex: 1 1 auto; overflow-y: auto; }

.nx-chat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  color: var(--nx2-text);
  text-decoration: none;
  border-bottom: 1px solid var(--nx2-line-soft);
}

.nx-chat-item:hover { background: var(--nx2-surface-2); text-decoration: none; }
.nx-chat-item.is-active { background: var(--nx2-brand-soft); }
.nx-chat-item-meta { flex: 1 1 auto; min-width: 0; }
.nx-chat-item-top { display: flex; align-items: baseline; gap: 6px; }
.nx-chat-item-top b { flex: 1 1 auto; font-size: 11px; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-chat-item-top time { font-size: 9px; color: var(--nx2-muted); flex: 0 0 auto; }
.nx-chat-item-preview { display: flex; align-items: center; gap: 4px; margin-top: 1px; font-size: 10px; color: var(--nx2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-chat-item-preview .nx-icon { width: 11px; height: 11px; flex: 0 0 11px; }

.nx-chat-main { display: flex; flex-direction: column; min-width: 0; background: #f2f4f5; }

.nx-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--nx2-line);
  background: var(--nx2-head-grad);
  flex: 0 0 auto;
}

.nx-chat-head-meta { flex: 1 1 auto; min-width: 0; }
.nx-chat-head-meta b { display: block; font-size: 12px; font-weight: bold; }
.nx-chat-head-meta small { color: var(--nx2-muted); font-size: 10px; }
.nx-chat-head-actions { display: flex; gap: 4px; margin-left: auto; }

.nx-chat-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-msg-day { align-self: center; margin: 7px 0; padding: 2px 9px; border: 1px solid var(--nx2-line); background: #fff; color: var(--nx2-text-2); font-size: 10px; }

.nx-msg { display: flex; gap: 7px; max-width: 78%; align-items: flex-end; }
.nx-msg + .nx-msg { margin-top: 3px; }
.nx-msg-out { margin-left: auto; flex-direction: row-reverse; }

.nx-msg-bubble {
  position: relative;
  padding: 5px 8px 4px;
  border: 1px solid var(--nx2-line);
  background: #fff;
  min-width: 0;
}

.nx-msg-out .nx-msg-bubble { background: #eaf3ec; border-color: #bcd5c1; }
.nx-msg-text { font-size: 12px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.nx-msg-text img[src*="/emoji/"] { vertical-align: -3px; width: 16px; height: 16px; }
.nx-msg-time { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 1px; font-size: 9px; color: var(--nx2-muted); }
.nx-msg-time .nx-icon { width: 10px; height: 10px; }

.nx-msg-media { margin: 0 0 4px; max-width: 280px; }
.nx-msg-media img { width: 100%; display: block; border: 1px solid var(--nx2-line); cursor: pointer; }
.nx-msg-file { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; padding: 4px 6px; border: 1px solid var(--nx2-line); background: var(--nx2-surface-2); color: inherit; text-decoration: none; }
.nx-msg-file b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; display: block; }

.nx-chat-typing { padding: 0 10px 4px; font-size: 10px; color: var(--nx2-muted); height: 14px; }

.nx-chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 7px 9px;
  border-top: 1px solid var(--nx2-line);
  background: var(--nx2-surface-2);
  flex: 0 0 auto;
}

.nx-chat-compose-input {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  padding: 1px 2px 1px 6px;
  border: 1px solid #9daab4;
  border-top-color: #8795a0;
  background: #fff;
}

.nx-chat-compose-input:focus-within { border-color: #5e8f66; box-shadow: 0 0 3px rgba(60, 115, 68, .3); }

.nx-chat-compose-input textarea {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  resize: none;
  color: var(--nx2-text);
  font-family: var(--nx2-font);
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 0;
  max-height: 120px;
}

.nx-chat-attach-preview { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 9px 6px; background: var(--nx2-surface-2); }
.nx-chat-attach-preview:empty { display: none; padding: 0; }

/* --------------------------------------------------------- music */
.nx-music-hero {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: linear-gradient(#3f7046, #24512a);
  color: #fff;
  border-bottom: 1px solid #16381c;
}

.nx-music-art {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nx-music-art img { width: 100%; height: 100%; object-fit: cover; }
.nx-music-art .nx-icon { color: rgba(255, 255, 255, .5); }
.nx-music-hero-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.nx-music-hero-meta small { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: #b9d3bd; }
.nx-music-hero-meta h1 { margin: 3px 0 2px; font-size: 18px; line-height: 1.2; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.nx-music-hero-meta p { margin: 0; font-size: 12px; color: #d3e4d6; }

.nx-player-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.nx-player-controls { display: flex; align-items: center; gap: 3px; }

.nx-player-btn {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: 2px;
  background: linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-player-btn:hover { background: linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .16)); }
.nx-player-btn-main { width: 32px; height: 32px; background: linear-gradient(#ffffff, #dfe7e0); color: #2c5c33; border-color: #16381c; }
.nx-player-btn-main:hover { background: linear-gradient(#ffffff, #eef3ef); }
.nx-player-btn.is-on { background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .28)); }

.nx-player-seek { flex: 1 1 auto; display: flex; align-items: center; gap: 7px; min-width: 0; }
.nx-player-time { font-size: 10px; font-variant-numeric: tabular-nums; color: #cfe0d2; flex: 0 0 auto; }

.nx-track-bar {
  position: relative;
  flex: 1 1 auto;
  height: 8px;
  border: 1px solid rgba(0, 0, 0, .35);
  background: rgba(0, 0, 0, .25);
  cursor: pointer;
  min-width: 0;
  box-sizing: border-box;
}

.nx-track-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#d6e7d9, #a9c8ae); width: 0; }
.nx-track-bar-knob { position: absolute; top: 50%; width: 9px; height: 12px; margin: -6px 0 0 -4px; background: linear-gradient(#fff, #d5ddd6); border: 1px solid #16381c; left: 0; }

.nx-player-vol { display: flex; align-items: center; gap: 5px; width: 100px; flex: 0 0 auto; }
.nx-player-vol .nx-track-bar { height: 7px; }

/* track rows */
.nx-track {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--nx2-line-soft);
  cursor: pointer;
}

.nx-track:last-child { border-bottom: 0; }
.nx-track:hover { background: var(--nx2-surface-2); }
.nx-track.is-playing { background: var(--nx2-brand-soft); }

.nx-track-index { width: 22px; flex: 0 0 22px; text-align: center; font-size: 11px; color: var(--nx2-muted); font-variant-numeric: tabular-nums; }
.nx-track.is-playing .nx-track-index { color: var(--nx2-brand); }

.nx-track-art {
  width: 34px; height: 34px; flex: 0 0 34px;
  border: 1px solid var(--nx2-line);
  overflow: hidden;
  background: var(--nx2-surface-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--nx2-muted);
}

.nx-track-art img { width: 100%; height: 100%; object-fit: cover; }
.nx-track-meta { flex: 1 1 auto; min-width: 0; }
.nx-track-meta b { display: block; font-size: 12px; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-track-meta small { display: block; font-size: 10px; color: var(--nx2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-track-actions { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nx-track-dur { font-size: 10px; color: var(--nx2-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }

.nx-eq { display: inline-flex; align-items: flex-end; gap: 1px; height: 12px; }
.nx-eq i { width: 3px; background: var(--nx2-brand); animation: nx-eq 1s ease-in-out infinite; height: 4px; }
.nx-eq i:nth-child(2) { animation-delay: .18s; }
.nx-eq i:nth-child(3) { animation-delay: .36s; }

@keyframes nx-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* mini player */
.nx-mini {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 620;
  width: 300px;
  max-width: calc(100vw - 20px);
  background: var(--nx2-surface);
  border: 1px solid #97a2ab;
  box-shadow: var(--nx2-shadow-lg);
  overflow: hidden;
  display: none;
}

.nx-mini.is-visible { display: block; }
.nx-mini-progress { height: 6px; background: var(--nx2-surface-3); border-bottom: 1px solid var(--nx2-line-soft); cursor: pointer; }
.nx-mini-progress-fill { height: 100%; width: 0; background: linear-gradient(#5d9866, #3c7344); }
.nx-mini-body { display: flex; align-items: center; gap: 7px; padding: 6px 7px; }
.nx-mini-art { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid var(--nx2-line); overflow: hidden; background: var(--nx2-surface-3); display: flex; align-items: center; justify-content: center; color: var(--nx2-muted); }
.nx-mini-art img { width: 100%; height: 100%; object-fit: cover; }
.nx-mini-meta { flex: 1 1 auto; min-width: 0; }
.nx-mini-meta b { display: block; font-size: 11px; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-mini-meta small { display: block; font-size: 10px; color: var(--nx2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-mini-controls { display: flex; align-items: center; gap: 2px; }

.nx-mini-btn {
  width: 22px; height: 22px;
  border: 1px solid transparent;
  background: transparent;
  color: #4a555f;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.nx-mini-btn:hover { background: var(--nx2-btn-grad); border-color: #bcc5cc; }
.nx-mini-btn-main { background: linear-gradient(#5d9866, #3c7344); border-color: #2c5c33; color: #fff; }
.nx-mini-btn-main:hover { background: linear-gradient(#69a672, #43804c); color: #fff; }

/* --------------------------------------------------------- clouds */
.nx-clouds-hero {
  position: relative;
  padding: 14px 14px 16px;
  background: linear-gradient(#4a7fb5, #2f5f8f);
  border-bottom: 1px solid #24496d;
  color: #fff;
  overflow: hidden;
}

.nx-clouds-hero h1 { margin: 0 0 4px; font-size: 19px; display: flex; align-items: center; gap: 7px; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.nx-clouds-hero p { margin: 0; font-size: 12px; color: #dbe8f4; max-width: 560px; line-height: 1.45; }

.nx-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .13);
}

.nx-balance b { font-size: 19px; font-weight: bold; line-height: 1; }
.nx-balance span { font-size: 11px; color: #dbe8f4; }
.nx-balance .nx-icon { width: 22px; height: 22px; }

.nx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; }

.nx-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px 10px;
  border: 1px solid var(--nx2-line);
  background: linear-gradient(#ffffff, #f6f8f9);
  text-align: center;
}

.nx-pack:hover { border-color: #8fa6b8; }
.nx-pack.is-best { border-color: var(--nx2-gold); background: linear-gradient(#fffdf6, #fdf6e6); padding-top: 26px; }

.nx-pack-tag {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  padding: 2px 6px;
  background: linear-gradient(#e0ad3a, #c8941d);
  border: 1px solid #a87b13;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

.nx-pack-icon { color: var(--nx2-accent); }
.nx-pack-amount { font-size: 21px; font-weight: bold; line-height: 1.1; }
.nx-pack-label { font-size: 11px; color: var(--nx2-muted); }
.nx-pack-bonus { font-size: 10px; font-weight: bold; color: var(--nx2-brand); }
.nx-pack .nx-btn { margin-top: 7px; width: 100%; }

.nx-ledger { width: 100%; border-collapse: collapse; font-size: 11px; }
.nx-ledger th { padding: 5px 9px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: var(--nx2-muted); background: var(--nx2-surface-2); border-bottom: 1px solid var(--nx2-line); }
.nx-ledger td { padding: 5px 9px; border-bottom: 1px solid var(--nx2-line-soft); }
.nx-ledger tr:last-child td { border-bottom: 0; }
.nx-ledger .nx-amount-plus { color: var(--nx2-brand); font-weight: bold; }
.nx-ledger .nx-amount-minus { color: var(--nx2-danger); font-weight: bold; }

/* --------------------------------------------------------- modal */
.nx-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 26, 31, .55);
}

.nx-modal[hidden] { display: none !important; }

.nx-modal-box {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--nx2-surface);
  border: 1px solid #7d8a94;
  box-shadow: var(--nx2-shadow-lg);
  overflow: hidden;
}

.nx-modal-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--nx2-line); background: var(--nx2-head-grad); }
.nx-modal-head h2 { margin: 0; font-size: 13px; flex: 1 1 auto; }
.nx-modal-body { padding: 12px; overflow-y: auto; }
.nx-modal-foot { display: flex; gap: 6px; justify-content: flex-end; padding: 8px 10px; border-top: 1px solid var(--nx2-line); background: var(--nx2-surface-2); }
.nx-modal-close { width: 22px; height: 22px; border: 1px solid transparent; background: transparent; color: var(--nx2-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nx-modal-close:hover { background: var(--nx2-btn-grad); border-color: #bcc5cc; color: var(--nx2-text); }

/* lightbox */
.nx-lightbox { position: fixed; inset: 0; z-index: 950; background: rgba(8, 12, 16, .9); display: flex; align-items: center; justify-content: center; }
.nx-lightbox[hidden] { display: none !important; }
.nx-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border: 2px solid #fff; }
.nx-lightbox-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: 1px solid #6d7780; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nx-lightbox-close:hover { background: rgba(255, 255, 255, .3); }
.nx-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 44px; border: 1px solid #6d7780; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nx-lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.nx-lightbox-prev { left: 14px; }
.nx-lightbox-next { right: 14px; }

/* --------------------------------------------------------- cropper */
.nx-crop-stage {
  position: relative;
  width: 100%;
  height: 280px;
  background: #2b3238;
  overflow: hidden;
  border: 1px solid var(--nx2-line);
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.nx-crop-stage.is-grabbing { cursor: grabbing; }
.nx-crop-stage img { position: absolute; transform-origin: 0 0; -webkit-user-drag: none; user-select: none; pointer-events: none; max-width: none; }
.nx-crop-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: 0 0 0 2000px rgba(20, 26, 31, .6); border: 1px solid #fff; }
/* аватарки квадратные — круглая маска осталась на случай, если понадобится */
.nx-crop-mask-circle { border-radius: 50%; }
.nx-crop-tools { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.nx-crop-tools input[type=range] { flex: 1 1 auto; accent-color: var(--nx2-brand); }

/* --------------------------------------------------------- toast */
.nx-toasts { position: fixed; right: 12px; bottom: 12px; z-index: 980; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }

.nx-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
  max-width: 330px;
  padding: 7px 11px;
  border: 1px solid #2b333b;
  background: #3b444d;
  color: #fff;
  font-size: 11px;
  box-shadow: var(--nx2-shadow-lg);
  pointer-events: auto;
}

.nx-toast.is-out { opacity: 0; transition: opacity .2s; }
.nx-toast-ok { background: #3c7344; border-color: #2c5c33; }
.nx-toast-err { background: #a33027; border-color: #7d241d; }
.nx-toast .nx-icon { width: 15px; height: 15px; flex: 0 0 15px; }

/* --------------------------------------------------------- notices */
.nx-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--nx2-line);
  background: var(--nx2-surface-2);
  font-size: 11px;
  line-height: 1.45;
  color: var(--nx2-text-2);
}

.nx-notice .nx-icon { flex: 0 0 auto; margin-top: 1px; }
.nx-notice-ok { border-color: #b6d2bb; background: #edf5ee; color: #2c5c33; }
.nx-notice-err { border-color: #ddb3ae; background: #fbeceb; color: #8d2a20; }
.nx-notice-info { border-color: #b8cde0; background: #eef4fa; color: #2d5680; }

/* --------------------------------------------------------- misc */
.nx-muted { color: var(--nx2-muted); }
.nx-small { font-size: 10px; }
.nx-strong { font-weight: bold; }
.nx-center { text-align: center; }
.nx-mt-0 { margin-top: 0; }
.nx-mt { margin-top: 9px; }
.nx-mb { margin-bottom: 9px; }
.nx-flex { display: flex; align-items: center; gap: 7px; }
.nx-flex-wrap { flex-wrap: wrap; }
.nx-spacer { flex: 1 1 auto; }
.nx-divider { height: 1px; background: var(--nx2-line-soft); margin: 10px 0; }
.nx-scroll-x { overflow-x: auto; }

.nx-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 19px;
  padding: 0 7px;
  border: 1px solid var(--nx2-line);
  background: var(--nx2-surface-2);
  color: var(--nx2-text-2);
  font-size: 10px;
  text-decoration: none;
}

.nx-chip:hover { background: var(--nx2-brand-soft); border-color: var(--nx2-brand-line); color: var(--nx2-brand-dark); text-decoration: none; }
.nx-chip .nx-icon { width: 12px; height: 12px; }
.nx-chip-brand { background: var(--nx2-brand-soft); border-color: var(--nx2-brand-line); color: var(--nx2-brand-dark); }
.nx-chip-gold { background: #fdf6e6; border-color: #e3cf9a; color: #8a6410; }

.nx-code {
  display: block;
  padding: 9px 11px;
  border: 1px solid #2b333b;
  background: #2b3238;
  color: #d6e3ec;
  font-family: "Courier New", Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.nx-code .nx-c-key { color: #8fd4a6; }
.nx-code .nx-c-str { color: #f0c674; }
.nx-code .nx-c-com { color: #7d94a3; }

.nx-kbd { display: inline-block; padding: 0 4px; border: 1px solid var(--nx2-line); border-bottom-width: 2px; background: var(--nx2-surface-2); font-family: monospace; font-size: 10px; }

.nx-skeleton { background: var(--nx2-surface-3); }
.nx-spin { animation: nx-spin 1s linear infinite; }
@keyframes nx-spin { to { transform: rotate(360deg); } }

.nx-mobilebar { display: none; }

/* --------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .nx-grid { grid-template-columns: 180px minmax(0, 1fr); }
  .nx-col-right { display: none; }
  .nx-grid-2.nx-side-right,
  .nx-grid-2.nx-side-right-wide { grid-template-columns: minmax(0, 1fr) 230px; }
  .nx-grid-2.nx-side-left-wide { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .nx-page { width: calc(100% - 12px); margin: 8px auto 74px; }
  .nx-grid,
  .nx-grid-2,
  .nx-grid-2.nx-side-left,
  .nx-grid-2.nx-side-left-wide,
  .nx-grid-2.nx-side-right,
  .nx-grid-2.nx-side-right-wide,
  .nx-grid-2.nx-halves { grid-template-columns: minmax(0, 1fr); }
  .nx-col-left { display: none; }
  .nx-top-inner { width: calc(100% - 12px); height: 40px; gap: 6px; }
  .nx-logo-text { display: none; }
  .nx-top-me span { display: none; }
  .nx-top-btn span, .nx-top-clouds span { display: none; }
  .nx-nav-inner { width: calc(100% - 12px); }
  .nx-nav a { padding: 0 9px; }
  .nx-chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 140px); }
  .nx-chat-side { display: none; border-right: 0; }
  .nx-chat.is-list-mode .nx-chat-side { display: flex; }
  .nx-chat.is-list-mode .nx-chat-main { display: none; }
  .nx-msg { max-width: 90%; }
  .nx-hero-cover { height: 110px; }
  .nx-hero-body { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nx-hero-ava img, .nx-hero-ava .nx-ava-fallback { width: 70px; height: 70px; font-size: 26px; }
  .nx-music-hero { flex-direction: column; }
  .nx-music-art { width: 100%; height: 140px; flex: 0 0 auto; }
  .nx-mini { left: 6px; right: 6px; bottom: 52px; width: auto; }

  .nx-mobilebar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 700;
    background: linear-gradient(#f7f9fa, #e7ecee);
    border-top: 1px solid var(--nx2-line);
  }

  .nx-mobilebar a {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 5px 0 4px;
    color: #55616b;
    font-size: 9px;
    font-weight: bold;
    text-decoration: none;
    border-right: 1px solid var(--nx2-line-soft);
  }

  .nx-mobilebar a:last-child { border-right: 0; }
  .nx-mobilebar a.is-active { color: var(--nx2-brand-dark); background: #fff; }
  .nx-mobilebar a .nx-icon { width: 17px; height: 17px; }

  .nx-mobilebar .nx-badge-count {
    position: absolute;
    top: 2px;
    right: 50%;
    margin-right: -18px;
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    background: #c0392b;
    border: 1px solid #8c271c;
    color: #fff;
    font-size: 8px;
    line-height: 11px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .nx-composer-bar { gap: 1px; padding-left: 8px; }
  .nx-composer-tool span { display: none; }
  .nx-tiles { grid-template-columns: 1fr; }
  .nx-packs { grid-template-columns: 1fr 1fr; }
}
