:root {
  --primary-green: #00ff88;
  --primary-green-dark: #00cc6f;
  --bg-primary: #1a1a1f;
  --bg-secondary: #222228;
  --bg-card: #2a2a32;
  --bg-input: #32323c;
  --bg-glass: rgba(0,255,136,0.05);
  --bg-glass-hover: rgba(0,255,136,0.1);
  --text-primary: #eeeef2;
  --text-secondary: #aaaab4;
  --text-tertiary: #77778a;
  --border-color: #3a3a44;
  --accent-blue: #4ea1ff;
  --font: "JetBrains Mono", "Share Tech Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  width: 100%;
  overflow-x: hidden;
}
a { color: var(--primary-green); text-decoration: none; }
a:hover { color: #7dffb5; }
img { max-width: 100%; }
button, input, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--bg-input); border-radius: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand center auth";
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(26,26,31,0.98);
  border-bottom: 1px solid var(--border-color);
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.nav-main {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  pointer-events: none;
}
.nav-main > a { pointer-events: auto; }
.nav-auth { grid-area: auth; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-burger {
  display: none;
  grid-area: burger;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  place-items: center;
  z-index: 130;
  position: relative;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0,255,136,0.28);
  flex-shrink: 0;
  background: #141418;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-title {
  color: var(--primary-green);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(36vw, 200px);
}
.brand-sub {
  color: var(--text-tertiary);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  padding: 0 9px;
  height: 30px;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 1px;
  font-family: inherit;
}
.lang-switch button.active {
  background: var(--bg-glass);
  color: var(--primary-green);
}
.nav-main a, .nav-auth a, .nav-auth > button, .btn {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0 12px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: .15s background, .15s color, .15s border-color;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
}
.nav-main a:hover, .nav-auth a:hover, .btn:hover {
  background: var(--bg-glass-hover);
  color: var(--primary-green);
  border-color: rgba(0,255,136,0.35);
}
.nav-main a.active {
  color: var(--primary-green);
  border-color: rgba(0,255,136,0.4);
  background: var(--bg-glass);
}
.btn.primary {
  background: rgba(0,255,136,0.12);
  border-color: rgba(0,255,136,0.45);
  color: var(--primary-green);
}
.btn.ghost { background: transparent; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  position: relative;
}
.user-chip:hover,
.user-menu.open .user-chip {
  border-color: rgba(0,255,136,0.45);
  color: var(--primary-green) !important;
}
.user-chip .avatar {
  width: 18px;
  height: 18px;
  font-size: 9px;
}
.user-chip span,
.user-chip-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.user-menu {
  position: relative;
  z-index: 40;
}
.user-menu-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 50;
}
.user-menu-drop[hidden] { display: none !important; }
.user-menu-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 4px 10px 8px;
}
.user-menu-drop a,
.user-menu-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}
.user-menu-drop a:hover,
.user-menu-mobile a:hover,
.user-menu-drop a.active,
.user-menu-mobile a.active {
  color: var(--primary-green);
  border-color: rgba(0,255,136,0.35);
  background: rgba(0,255,136,0.06);
}
.user-menu-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--primary-green);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.user-menu-badge[hidden] { display: none !important; }
.user-chip-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--primary-green);
  color: #111;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 1px solid var(--bg-primary);
}
.user-chip-badge[hidden] { display: none !important; }
.user-menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
}
.user-menu-mobile .user-menu-label { padding-left: 2px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #3a3a44; object-fit: cover;
  display: grid; place-items: center;
  font-size: 11px; color: #fff; overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 10px 36px;
  box-sizing: border-box;
}

.home-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.home-main {
  flex: 0 1 auto;
  width: var(--home-main-w, calc(100% - 34% - 10px));
  max-width: var(--home-main-w, calc(100% - 34% - 10px));
  min-width: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
  box-sizing: border-box;
}
.home-main .panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.home-feed {
  flex: 0 0 33%;
  width: 33%;
  max-width: 640px;
  min-width: 280px;
  min-height: 100%;
  height: auto;
  max-height: none;
  overflow: auto;
  position: relative;
  top: auto;
  box-sizing: border-box;
  padding: 12px;
  align-self: stretch;
}

#map-container {
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  min-height: 260px;
  max-height: 480px;
  background: #1a1a20;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.panel-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-block { margin-top: 16px; }
.section-head {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 14px;
  border-radius: 6px 6px 0 0;
}
.home-main .section-head {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}
.forum-list {
  border: 1px solid var(--border-color);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.home-main .forum-list {
  background: var(--bg-secondary);
}
.forum-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: transparent;
  color: var(--text-primary);
  transition: background .15s;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: rgba(0,255,136,0.15);
}
.forum-row:last-child { border-bottom: 0; }
.forum-row:hover { background: rgba(0,255,136,0.04); }
.forum-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(0,255,136,0.35);
  display: grid; place-items: center;
  color: var(--primary-green);
}
.forum-ico svg { width: 22px; height: 22px; }
.forum-title {
  color: #7eb6ff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}
.forum-row:hover .forum-title { color: #a8d0ff; }
.forum-desc {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.forum-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  min-width: 72px;
  text-align: right;
}
.forum-stat {
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.forum-stat b {
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: 4px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}
.feed-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px;
}
.feed-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 10px; color: var(--text-tertiary); margin-bottom: 6px;
}
.feed-title { font-size: 12px; color: var(--primary-green); margin-bottom: 4px; }
.feed-body {
  font-size: 11px; color: var(--text-secondary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.update-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}
.update-img {
  display: block;
  background: #141418;
  line-height: 0;
}
.update-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
}
.update-body { padding: 10px 12px 12px; }
.home-feed .feed {
  gap: 10px;
}
.update-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 6px;
}
.update-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  white-space: pre-wrap;
}
.update-meta {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-tertiary);
}

.page-title {
  font-size: 22px; margin-bottom: 8px; letter-spacing: 1px;
}
.page-lead { color: var(--text-secondary); font-size: 12px; margin-bottom: 18px; line-height: 1.6; }

.soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.soft-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.soft-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: none !important;
  background-color: transparent !important;
  border: 1px solid rgba(0,255,136,0.45) !important;
  box-shadow: none !important;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 22px;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
}
.soft-icon--svg {
  width: 56px;
  height: 56px;
  color: var(--primary-green);
}
.soft-icon--svg svg { width: 26px; height: 26px; display: block; }
img.soft-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0,255,136,0.45);
}
.soft-title { font-size: 14px; font-weight: 700; }
.soft-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.soft-price { color: var(--primary-green); font-size: 16px; font-weight: 700; }

.plat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-green);
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  line-height: 1;
}
.plat-ico--sm { font-size: 12px; width: auto; height: auto; border-radius: 0; }
.plat-preview { display: flex; align-items: center; margin-top: 10px; }

.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.icon-pick {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.icon-pick svg { width: 18px; height: 18px; }
.icon-pick:hover { border-color: rgba(0,255,136,0.35); color: var(--primary-green); }
.icon-pick.active {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(0,255,136,0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ccard {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  background: var(--bg-secondary);
  min-height: 170px;
  transition: border-color .15s, background .15s, transform .15s;
}
.ccard:hover {
  background: var(--bg-glass);
  border-color: rgba(0,255,136,0.35);
  transform: translateY(-1px);
}
.ccard-top { display: flex; align-items: center; gap: 10px; }
.ccard-ico {
  width: 42px; height: 42px;
  background: radial-gradient(circle at 30% 25%, rgba(0,255,136,0.16), transparent 60%), var(--bg-input);
  border: 1px solid rgba(0,255,136,0.22);
  display: grid; place-items: center; border-radius: 10px;
  color: var(--primary-green);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}
.ccard-ico img { width: 100%; height: 100%; object-fit: cover; }
.ccard-platform { font-size: 9px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1.5px; }
.ccard-name { font-size: 14px; font-weight: 700; }
.ccard-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.ccard-link { font-size: 10px; color: var(--primary-green); margin-top: auto; }
.ccard--tox { cursor: default; }
.ccard--tox:hover { transform: none; }
.ccard-tox {
  margin-top: auto;
  font-size: 11px;
  line-height: 1.45;
  color: var(--primary-green);
  word-break: break-all;
  font-family: 'JetBrains Mono', monospace;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(0,255,136,0.25);
  background: rgba(0,0,0,0.25);
}
.ccard-copy { align-self: flex-start; height: 28px; font-size: 10px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
}
.stat-box .k { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; }
.stat-box .v { font-size: 20px; font-weight: 700; color: var(--primary-green); margin-top: 6px; }

.login-gate {
  padding: 18px;
  border: 1px dashed rgba(0,255,136,0.35);
  border-radius: 8px;
  background: rgba(0,255,136,0.04);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.rules {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  line-height: 1.7;
  font-size: 12px;
  color: var(--text-secondary);
}
.rules h2 { color: var(--text-primary); font-size: 14px; margin: 18px 0 8px; }
.rules h2:first-child { margin-top: 0; }
.rules ul { padding-left: 18px; }
.rules li { margin: 6px 0; }
.rules strong { color: var(--primary-green); }

.auth-card, .form-card {
  width: min(420px, 100%);
  margin: 40px auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 22px;
}
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 10px; color: var(--text-tertiary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.err { color: #ff8a80; font-size: 12px; margin-top: 10px; display: none; }
.err.show { display: block; }

.thread-list .thread-row, .post {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 8px;
}
.thread-row a { color: var(--text-primary); font-size: 13px; font-weight: 600; }
.thread-meta, .post-meta { font-size: 10px; color: var(--text-tertiary); margin-top: 6px; }
.post-body { font-size: 13px; line-height: 1.6; white-space: pre-wrap; margin-top: 8px; color: var(--text-secondary); }
.post-body img.post-inline-img {
  display: block;
  max-width: min(100%, 640px);
  width: auto;
  height: auto;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: #141418;
}
.post-body strong { color: var(--text-primary); font-weight: 700; }
.post-body em { font-style: italic; }
.post-u { text-decoration: underline; text-underline-offset: 2px; }
.post-link { color: var(--primary-green); text-decoration: underline; text-underline-offset: 2px; }
.post-code, .post-code-inline {
  font-family: 'JetBrains Mono', monospace;
  background: #121216;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.post-code {
  display: block;
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
  white-space: pre;
  font-size: 12px;
  color: var(--primary-green);
}
.post-code-inline {
  display: inline;
  padding: 1px 5px;
  font-size: 12px;
  white-space: pre-wrap;
}
.post-quote {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--primary-green);
  background: rgba(0,255,136,0.05);
  color: var(--text-secondary);
  white-space: pre-wrap;
}
.post-spoiler {
  background: #2a2a32;
  color: transparent;
  border-radius: 3px;
  cursor: pointer;
  padding: 0 4px;
  transition: color .15s, background .15s;
}
.post-spoiler.open,
.post-spoiler:hover {
  color: var(--text-primary);
  background: rgba(0,255,136,0.08);
}
.composer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.composer-toolbar .btn {
  height: 30px;
  min-width: 32px;
  font-size: 10px;
  font-weight: 700;
}
.composer-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}
.composer-previews .thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #141418;
}
.composer-previews .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.composer-previews .thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 3px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 0;
}
.post-head { display: flex; gap: 10px; align-items: center; }

.profile-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 18px;
}
.profile-card .avatar { width: 100px; height: 100px; font-size: 28px; }
.muted { color: var(--text-tertiary); font-size: 11px; }

.admin-wrap { display: grid; gap: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td {
  border: 1px solid var(--border-color);
  padding: 8px; text-align: left;
}
.admin-table th { background: var(--bg-card); color: var(--text-tertiary); font-size: 10px; text-transform: uppercase; }

/* Settings / admin shell with side nav */
.settings-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 60vh;
}
.settings-nav {
  position: sticky;
  top: 72px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-nav-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 8px 10px 6px;
}
.settings-nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.settings-nav button:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
  border-color: var(--border-color);
}
.settings-nav button.active {
  color: var(--primary-green);
  border-color: rgba(0,255,136,0.35);
  background: rgba(0,255,136,0.06);
}
.settings-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.settings-panel .panel { margin: 0; }
.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.settings-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.settings-head p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-tertiary);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.form-grid .span-2 { grid-column: 1 / -1; }
.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(0,255,136,0.06), transparent 55%), var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 16px;
}
.profile-hero .avatar { width: 56px; height: 56px; font-size: 18px; }
.profile-hero .who { font-size: 14px; font-weight: 700; }
.profile-hero .meta { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }
.settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.admin-split {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.admin-split .panel { margin: 0; }
.table-scroll { overflow-x: auto; }

@media (max-width: 1100px) {
  .home-grid {
    gap: 10px;
  }
  .home-feed {
    flex-basis: 320px;
    width: 320px;
    max-width: 320px;
    min-width: 260px;
  }
}
@media (max-width: 980px) {
  .home-grid {
    flex-direction: column;
    gap: 12px;
  }
  .home-main {
    width: 100% !important;
    max-width: none !important;
  }
  .home-feed {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    position: static;
    max-height: none;
  }
  .contact-grid { grid-template-columns: 1fr; }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    width: 100%;
    max-width: 100vw;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .brand-title {
    max-width: calc(100vw - 72px);
    font-size: 12px;
  }
  .brand-sub { display: none; }
  .nav-auth {
    display: none !important;
  }
  .nav-burger {
    display: grid;
    flex-shrink: 0;
    background: transparent;
  }
  .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(300px, 86vw);
    max-width: 300px;
    height: auto;
    margin: 0;
    padding: 56px 14px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: #1c1c22;
    border-left: 1px solid var(--border-color);
    box-shadow: -12px 0 40px rgba(0,0,0,0.5);
    z-index: 120;
    transform: translateX(100%);
    transition: transform .22s ease;
    overflow: auto;
    pointer-events: auto;
  }
  .nav-main > a {
    pointer-events: auto;
    width: 100%;
    justify-content: flex-start;
    height: 42px;
    font-size: 12px;
    background: transparent;
  }
  .nav-drawer-extra a,
  .nav-drawer-extra > button {
    width: 100%;
    justify-content: flex-start;
    height: 42px;
    font-size: 12px;
    background: transparent;
  }
  .nav-drawer-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
  }
  .nav-drawer-extra .lang-switch { align-self: flex-start; }
  .nav-drawer-extra a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-main { transform: translateX(0); }
  body.nav-open .nav-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .profile-card { grid-template-columns: 1fr; }
  .settings-shell { grid-template-columns: 1fr; }
  .settings-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .settings-nav-label { width: 100%; padding: 4px 6px; }
  .settings-nav button { width: auto; }
  .admin-split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .app-install-grid { grid-template-columns: 1fr; }
  .forum-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }
  .forum-stats {
    grid-column: 2;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    min-width: 0;
    text-align: left;
    margin-top: 2px;
  }
  .forum-ico { width: 40px; height: 40px; }
  .wrap { padding: 10px 8px 28px; max-width: 100vw; }
  #map-container { min-height: 160px; max-height: 220px; }
  .map-panel .panel-sub { display: none; }
}
@media (min-width: 981px) {
  .nav-drawer-extra { display: none !important; }
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
  #map-container { min-height: 160px; max-height: 200px; }
}

.app-install-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.app-card { text-align: center; }
.app-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid rgba(0,255,136,0.3);
  margin: 8px auto 14px;
  display: block;
  background: #141418;
}
.app-card h2 {
  font-size: 16px;
  color: var(--primary-green);
  letter-spacing: 1px;
}
.app-steps { display: grid; gap: 10px; margin-top: 8px; }
.app-step {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
}
.app-step b {
  display: block;
  font-size: 12px;
  color: var(--primary-green);
  margin-bottom: 6px;
}
.app-step span {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Composer + dropzone */
.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.page-toolbar .page-title { margin: 0; }
.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0,255,136,0.45);
  background: rgba(0,255,136,0.12);
  color: var(--primary-green);
  border-radius: 4px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.btn-icon:hover { background: rgba(0,255,136,0.2); }
.composer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.composer-backdrop.open { display: flex; }
.composer {
  width: min(720px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.composer-top {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.composer-top h2 { margin: 0; font-size: 14px; }
.composer-body { padding: 16px; }
.composer-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(0,0,0,0.15);
}
.req-tag {
  color: #ff6b6b;
  font-size: 9px;
  letter-spacing: 1px;
  margin-left: 6px;
  text-transform: uppercase;
}
.dropzone {
  border: 1px dashed rgba(0,255,136,0.28);
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  padding: 16px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  position: relative;
  transition: .15s border-color, .15s background;
}
.dropzone:hover, .dropzone.drag, .dropzone.has-file {
  border-color: rgba(0,255,136,0.55);
  background: rgba(0,255,136,0.05);
}
.dropzone-ico {
  width: 28px; height: 28px;
  color: var(--primary-green);
  display: grid; place-items: center;
}
.dropzone-ico svg { width: 22px; height: 22px; }
.dropzone-text { font-size: 12px; color: var(--text-secondary); }
.dropzone-meta { font-size: 10px; color: var(--text-tertiary); margin-top: 4px; }
.dropzone-file {
  font-size: 11px;
  color: var(--primary-green);
  margin-top: 8px;
}
.dropzone input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.dropzone-label.btn {
  cursor: pointer;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  line-height: 1;
  padding: 0 12px;
  box-sizing: border-box;
}
.reply-card {
  width: 100%;
  margin-top: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}
.post-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.seed-box {
  background: #141418;
  border: 1px solid rgba(0,255,136,0.35);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
}
.seed-words {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.seed-words span {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  font-size: 12px;
  text-align: center;
}
.seed-words b { color: var(--text-tertiary); margin-right: 4px; font-weight: 400; }
.empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 12px;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
}


/* Messenger */
.msg-page { overflow: hidden; }
.msg-page .wrap { display: none; }
.msg-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px 16px;
  height: calc(100vh - 54px);
  max-height: calc(100vh - 54px);
  overflow: hidden;
  box-sizing: border-box;
  background: var(--bg-primary);
}
.msg-sidebar {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.msg-side-head { padding: 14px 14px 10px; }
.msg-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.msg-title-lock {
  font-size: 10px;
  color: var(--primary-green);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 999px;
  padding: 3px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.msg-search input {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
}
.msg-search input:focus {
  outline: none;
  border-color: rgba(0,255,136,0.4);
}
.msg-tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px 10px;
}
.msg-tabs button {
  flex: 1;
  height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-tertiary);
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.msg-tabs button.active {
  color: var(--primary-green);
  border-color: rgba(0,255,136,0.35);
  background: rgba(0,255,136,0.07);
}
.msg-badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--primary-green);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}
.msg-list, .msg-search-results {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.msg-search-results {
  flex: 0 0 auto;
  max-height: 240px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0,0,0,0.2);
}
.msg-pad { padding: 16px; font-size: 12px; }
.msg-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease;
}
.msg-row:hover, .msg-row.active { background: rgba(0,255,136,0.06); }
.msg-row-meta { min-width: 0; flex: 1; }
.msg-row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.msg-row-top span { color: var(--text-tertiary); font-size: 10px; white-space: nowrap; }
.msg-row-preview {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-unread {
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--primary-green);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.msg-req-actions { display: flex; gap: 4px; }
.msg-req-actions .btn { width: 32px; padding: 0; height: 32px; }
.msg-chat {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.msg-empty {
  margin: auto;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
  padding: 32px;
  max-width: 320px;
  line-height: 1.5;
}
.msg-empty[hidden],
.msg-chat-inner[hidden] {
  display: none !important;
}
.msg-chat-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex: 1;
}
.msg-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.msg-back { display: none; width: 36px; padding: 0; }
.msg-peer { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.msg-peer-ava .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.msg-peer-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.msg-peer-sub { font-size: 10px; color: var(--text-tertiary); display: flex; align-items: center; gap: 6px; }
.msg-peer-sub .e2e-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-green);
  box-shadow: 0 0 8px rgba(0,255,136,0.6);
}
.msg-peer-sub .e2e-dot.off { background: #666; box-shadow: none; }
.msg-thread {
  flex: 1;
  overflow: auto;
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-primary);
  min-height: 0;
}
.dm-bubble {
  max-width: min(72%, 480px);
  padding: 9px 12px 7px;
  border-radius: 12px 12px 12px 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
  touch-action: pan-y;
  box-shadow: none;
}
.dm-bubble.mine {
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
  background: var(--bg-card);
  border-color: #3f3f4a;
}
.dm-bubble.theirs {
  align-self: flex-start;
  background: var(--bg-secondary);
}
.dm-text { font-size: 13px; line-height: 1.45; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; font-weight: 400; }
.dm-deleted { font-size: 12px; color: var(--text-tertiary); font-style: italic; }
.dm-meta {
  margin-top: 5px;
  font-size: 10px;
  color: var(--text-tertiary);
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
}
.dm-meta .e2e-mini { opacity: 0.7; }
.dm-reply {
  border-left: 2px solid var(--primary-green);
  padding: 2px 0 6px 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  background: transparent;
  border-radius: 0;
}
.dm-reply b { display: block; color: var(--primary-green); font-size: 10px; }
.dm-attach {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}
.dm-attach img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #0a0a0c;
}
.dm-attach a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--primary-green);
  text-decoration: none;
  font-size: 12px;
}
.dm-attach a:hover { background: rgba(0,255,136,0.06); }
.dm-actions {
  display: none;
  gap: 2px;
  margin-top: 4px;
}
.dm-bubble:hover .dm-actions { display: flex; }
.dm-actions button {
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}
.dm-actions button:hover { color: var(--primary-green); background: rgba(0,255,136,0.08); }
.msg-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--border-color);
  background: rgba(0,255,136,0.05);
}
.msg-reply-bar-text { flex: 1; min-width: 0; font-size: 11px; color: var(--text-secondary); }
.msg-reply-bar-text b { color: var(--primary-green); display: block; }
.msg-reply-bar-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.msg-attach-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.25);
  font-size: 12px;
  color: var(--text-secondary);
}
.msg-attach-preview img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.msg-attach-preview[hidden],
.msg-reply-bar[hidden] { display: none !important; }
.msg-composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  align-items: flex-end;
  flex-shrink: 0;
}
.msg-composer .msg-attach-btn,
.msg-composer .msg-send {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.msg-composer .msg-attach-btn svg,
.msg-composer .msg-send svg {
  width: 20px;
  height: 20px;
}
.msg-composer textarea {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 140px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 11px 14px;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
}
.msg-composer textarea:focus {
  outline: none;
  border-color: rgba(0,255,136,0.4);
}
@media (max-width: 860px) {
  .msg-page .site-header {
    padding-left: 10px;
    padding-right: 10px;
  }
  .msg-shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    height: calc(100dvh - 54px);
    max-height: calc(100dvh - 54px);
  }
  .msg-sidebar,
  .msg-chat {
    border: 0;
    border-radius: 0;
    background: var(--bg-primary);
  }
  .msg-chat { display: none; }
  .msg-shell.chat-open .msg-sidebar { display: none; }
  .msg-shell.chat-open .msg-chat { display: flex; }
  .msg-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .msg-chat-head {
    padding: 8px 10px;
    gap: 8px;
    min-height: 56px;
  }
  .msg-peer-ava .avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .msg-peer-name {
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
  }
  .msg-peer-sub {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .msg-thread {
    padding: 12px 10px;
    gap: 8px;
  }
  .dm-bubble {
    max-width: 86%;
  }
  .dm-actions { display: flex; opacity: 0.9; }
  .msg-composer {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .msg-composer .msg-attach-btn,
  .msg-composer .msg-send {
    width: 44px;
    height: 44px;
  }
  .msg-composer textarea {
    min-height: 44px;
    font-size: 16px; /* iOS zoom fix */
  }
  .msg-side-head { padding: 12px 12px 8px; }
  .msg-row { padding: 12px; min-height: 56px; }
  .msg-tabs button { height: 36px; }
}
