/* Audit wave: guest gate, help, dual achievements, friend rank v2 */

:root {
  --mnm-window-gutter: 12px;
  --ui-chrome-corner-inset: 6px;
  --mnm-window-header-pad-top: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 6px);
  --mnm-window-header-pad-right: calc(var(--mnm-window-gutter) + var(--ui-chrome-size) + var(--ui-chrome-gap));
}

.guest-gate-overlay,
.help-center-overlay {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.guest-gate-overlay.visible,
.help-center-overlay.visible {
  display: flex;
}
.guest-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 4, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.help-center-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 4, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.guest-gate-panel {
  position: relative;
  width: min(420px, 92vw);
  max-height: min(82vh, 520px);
  border-radius: var(--radius-window, 8px);
  padding: 0;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(8, 18, 14, 0.98), rgba(4, 10, 8, 0.99));
  border: 1px solid rgba(125, 252, 138, 0.42);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(58, 200, 120, 0.12);
  color: rgba(220, 245, 230, 0.96);
}
.guest-gate-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: var(--mnm-window-header-pad-top) var(--mnm-window-header-pad-right) 10px var(--mnm-window-gutter);
  border-bottom: 1px solid rgba(125, 252, 138, 0.22);
  background: rgba(6, 14, 11, 0.92);
}
.guest-gate-header span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(190, 245, 210, 0.95);
  font-weight: 700;
}
.guest-gate-close.ui-close {
  position: absolute !important;
  top: var(--ui-chrome-inset) !important;
  right: var(--mnm-window-gutter) !important;
  left: auto !important;
}
.guest-gate-lead {
  margin: 0;
  padding: 16px var(--mnm-window-gutter) 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(175, 215, 190, 0.92);
  letter-spacing: 0.02em;
}
.guest-gate-lead strong {
  color: rgba(210, 255, 225, 0.98);
  font-weight: 600;
}
.guest-gate-note {
  margin: 0;
  padding: 0 var(--mnm-window-gutter) var(--mnm-window-gutter);
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(140, 180, 155, 0.82);
  letter-spacing: 0.03em;
}
.guest-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 var(--mnm-window-gutter) var(--mnm-window-gutter);
}
.guest-gate-actions .btn-main,
.guest-gate-actions .btn-ghost {
  width: 100%;
  justify-content: center;
  min-height: 36px;
}
.help-center-panel {
  position: relative;
  --help-center-w: 500px;
  width: min(var(--help-center-w), 94vw);
  height: auto;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-window, 8px);
  padding: 0;
  overflow: hidden;
  background: rgba(8, 18, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(125, 252, 138, 0.38);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(58, 200, 120, 0.1);
  color: rgba(220, 245, 230, 0.96);
  flex-shrink: 0;
}

.help-center-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  min-height: 32px;
  padding: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 4px) 52px 10px;
  border-bottom: 1px solid rgba(125, 252, 138, 0.22);
  background: linear-gradient(180deg, rgba(8, 18, 14, 0.96), rgba(6, 14, 11, 0.92));
}

.help-center-header::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 252, 138, 0.45),
    transparent
  );
  pointer-events: none;
}

.help-center-kicker {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(125, 252, 138, 0.72);
  font-weight: 600;
}

.help-center-title {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(190, 245, 210, 0.95);
  font-weight: 700;
}

.help-center-close.ui-close {
  z-index: 5;
}

.help-center-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 0;
  padding: 10px var(--mnm-window-gutter) 0;
  flex-shrink: 0;
}

.help-center-tab {
  position: relative;
  border: 1px solid rgba(125, 252, 138, 0.22);
  background: linear-gradient(180deg, rgba(10, 22, 16, 0.92), rgba(4, 10, 8, 0.88));
  color: rgba(175, 215, 190, 0.88);
  border-radius: var(--radius-window, 8px);
  padding: 9px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-font-smoothing: antialiased;
}

.help-center-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(125, 252, 138, 0.35);
}

.help-center-tab:hover {
  border-color: rgba(125, 252, 138, 0.45);
  color: rgba(230, 255, 238, 0.98);
  background: linear-gradient(180deg, rgba(14, 28, 20, 0.96), rgba(6, 14, 10, 0.9));
}

.help-center-tab:hover::before {
  opacity: 1;
}

.help-center-tab.is-active {
  background: linear-gradient(180deg, rgba(125, 252, 138, 0.16), rgba(58, 200, 120, 0.08));
  border-color: rgba(125, 252, 138, 0.62);
  color: rgba(240, 255, 244, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px rgba(125, 252, 138, 0.14);
}

.help-center-tab.is-active::before {
  opacity: 1;
}

.help-center-body {
  position: relative;
  flex: 0 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.help-center-pane {
  display: none;
  height: auto;
  overflow: visible;
  padding: 12px var(--mnm-window-gutter) 8px;
  box-sizing: border-box;
  font-size: 0.82rem;
  line-height: 1.48;
  color: rgba(200, 235, 210, 0.92);
}

.help-center-pane.is-active {
  display: block;
}

.help-center-h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 252, 138, 0.9);
  font-weight: 700;
}

.help-center-list {
  margin: 0;
  padding-left: 1.15rem;
}

.help-center-list li {
  margin-bottom: 8px;
}

.help-center-list strong,
.help-center-faq dt {
  color: rgba(230, 255, 238, 0.98);
}

.help-center-faq dt {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.82rem;
}

.help-center-faq dd {
  margin: 4px 0 0;
  color: rgba(175, 215, 190, 0.9);
}

.help-center-body kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(125, 252, 138, 0.35);
  background: rgba(8, 20, 14, 0.8);
  font-size: 0.78rem;
  color: rgba(200, 255, 215, 0.95);
}

.help-center-muted {
  margin-top: 12px;
  font-size: 0.72rem;
  color: rgba(140, 180, 155, 0.82);
}

.help-center-footer {
  padding: 10px var(--mnm-window-gutter) var(--mnm-window-gutter);
  border-top: 1px solid rgba(125, 252, 138, 0.18);
  background: rgba(5, 12, 9, 0.88);
  flex-shrink: 0;
}

.help-center-tour-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-window, 8px);
  border: 1px solid rgba(125, 252, 138, 0.55);
  background: linear-gradient(180deg, rgba(125, 252, 138, 0.14), rgba(58, 200, 120, 0.06));
  color: rgba(230, 255, 238, 0.98);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 18px rgba(125, 252, 138, 0.12);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  -webkit-font-smoothing: antialiased;
}

.help-center-tour-btn i {
  font-size: 13px;
  color: rgba(125, 252, 138, 0.95);
  filter: drop-shadow(0 0 6px rgba(125, 252, 138, 0.35));
}

.help-center-tour-btn:hover {
  border-color: rgba(125, 252, 138, 0.78);
  background: linear-gradient(180deg, rgba(125, 252, 138, 0.22), rgba(58, 200, 120, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 22px rgba(125, 252, 138, 0.2);
}

.help-center-tour-btn:active {
  transform: translateY(1px);
}

.help-center-tour-btn:focus-visible {
  outline: 2px solid rgba(125, 252, 138, 0.65);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .help-center-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-center-pane {
    font-size: 0.78rem;
    padding: 10px 12px 6px;
  }
}
.app-theme-binary {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.app-theme-binary-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.app-theme-binary-btn.is-active {
  background: rgba(100, 200, 255, 0.2);
  border-color: rgba(100, 200, 255, 0.6);
}
html[data-theme-mode="light"] {
  color-scheme: light;
}
.app-data-actions--compact .app-data-actions-row {
  display: flex;
  gap: 8px;
}
.app-data-actions--compact .app-data-actions-row .btn-main,
.app-data-actions--compact .app-data-actions-row .btn-ghost {
  flex: 1;
}
.achievements-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .achievements-dual-grid {
    grid-template-columns: 1fr;
  }
}
.achievements-rank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.achievements-rules-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.achievements-section-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 252, 138, 0.92);
}
.achievements-rules-lead {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(160, 210, 190, 0.88);
}
.achievements-rules-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.achievements-arena-heading {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(200, 245, 220, 0.95);
}
.achievements-rank-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(125, 252, 138, 0.22);
  padding-bottom: 4px;
  background: linear-gradient(180deg, rgba(4, 10, 8, 0) 0%, rgba(4, 10, 8, 0.92) 28%);
}

#achievementsPanelFooter.achievements-rank-footer {
  position: static;
  z-index: auto;
  margin-top: 0;
}
.achievements-rank-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(125, 252, 138, 0.45);
  background: linear-gradient(135deg, rgba(8, 22, 16, 0.95), rgba(4, 12, 10, 0.98));
  color: rgba(226, 254, 236, 0.98);
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.achievements-rank-cta:hover {
  border-color: rgba(125, 252, 138, 0.75);
  box-shadow:
    0 0 0 1px rgba(125, 252, 138, 0.2),
    0 0 22px rgba(58, 200, 120, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}
.achievements-rank-cta--home {
  border-color: rgba(88, 182, 255, 0.42);
  background: linear-gradient(135deg, rgba(8, 18, 28, 0.95), rgba(4, 10, 18, 0.98));
}
.achievements-rank-cta--home:hover {
  border-color: rgba(88, 182, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(88, 182, 255, 0.2),
    0 0 22px rgba(58, 166, 255, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.4);
}
.achievements-rank-cta-icon {
  font-size: 1.35rem;
  line-height: 1;
}
.achievements-rank-cta-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.achievements-rank-cta-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.achievements-rank-cta-sub {
  font-size: 0.72rem;
  opacity: 0.82;
}
.achievements-rank-cta-arrow {
  font-size: 1.1rem;
  opacity: 0.7;
}
.achievements-rank-pos {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* Friend rank — full left column dock (premium centered layout) */
.left-panel .friend-rank-overlay--dock {
  position: absolute;
  inset: 0;
  z-index: 1062;
  display: none;
  pointer-events: none;
}
.left-panel .friend-rank-overlay--dock.visible {
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.left-panel .friend-rank-overlay--dock .friend-rank-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 6, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.left-panel .friend-rank-overlay--dock .friend-rank-panel {
  --fr-gap-xs: 3px;
  --fr-gap-sm: 6px;
  --fr-gap-md: 8px;
  --fr-row-h: 22px;
  --fr-row-gap: 2px;
  --fr-list-tail: 12px;
  --fr-time-ad-gap: 10px;
  --fr-footer-min: 132px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 45% at 50% 18%, rgba(58, 200, 120, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(7, 16, 12, 0.98), rgba(3, 8, 6, 0.99));
  box-shadow: inset 0 1px 0 rgba(125, 252, 138, 0.12);
}
.friend-rank-panel[data-arena="domestic"] {
  background:
    radial-gradient(ellipse 80% 45% at 50% 18%, rgba(58, 166, 255, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(7, 14, 18, 0.98), rgba(3, 8, 10, 0.99));
}

/* Toolbar: arena tabs only */
.friend-rank-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px var(--mnm-window-gutter) 8px;
  border-bottom: 1px solid rgba(125, 252, 138, 0.14);
}
.friend-rank-arena-tabs {
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.friend-rank-year-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 4px;
  margin: 0;
  scrollbar-width: thin;
}
.friend-rank-year-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 252, 138, 0.22);
  background: rgba(6, 14, 10, 0.82);
  color: rgba(175, 220, 190, 0.88);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.friend-rank-year-chip.is-active {
  border-color: rgba(125, 252, 138, 0.7);
  background: linear-gradient(90deg, rgba(58, 200, 120, 0.32), rgba(125, 252, 138, 0.18));
  color: rgba(230, 255, 238, 0.98);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(58, 200, 120, 0.18);
}
.friend-rank-panel[data-arena="domestic"] .friend-rank-year-chip.is-active {
  border-color: rgba(88, 182, 255, 0.7);
  background: linear-gradient(90deg, rgba(58, 166, 255, 0.28), rgba(88, 182, 255, 0.14));
  box-shadow: 0 0 14px rgba(58, 166, 255, 0.2);
}
.friend-rank-year-chip.is-just-picked {
  animation: fr-year-chip-pop 0.38s cubic-bezier(0.22, 1.1, 0.36, 1);
}
@keyframes fr-year-chip-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14);
    box-shadow: 0 0 18px rgba(125, 252, 138, 0.45);
  }
  100% {
    transform: scale(1);
  }
}
.friend-rank-panel[data-arena="domestic"] .friend-rank-year-chip.is-just-picked {
  animation-name: fr-year-chip-pop-blue;
}
@keyframes fr-year-chip-pop-blue {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14);
    box-shadow: 0 0 18px rgba(88, 182, 255, 0.45);
  }
  100% {
    transform: scale(1);
  }
}
.friend-rank-arena-tab {
  flex: 1;
  border: 1px solid rgba(125, 252, 138, 0.2);
  background: rgba(6, 12, 10, 0.62);
  color: rgba(165, 205, 180, 0.78);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.friend-rank-arena-tab.is-active {
  background: rgba(10, 24, 16, 0.82);
  border-color: rgba(125, 252, 138, 0.38);
  color: rgba(215, 245, 225, 0.94);
  font-weight: 600;
  box-shadow: none;
}
.friend-rank-panel[data-arena="domestic"] .friend-rank-arena-tab.is-active {
  background: rgba(8, 20, 30, 0.82);
  border-color: rgba(88, 182, 255, 0.4);
  color: rgba(205, 232, 255, 0.94);
}

/* Friend rank dock — premium fit layout (no scroll, ad fills remainder) */
.friend-rank-stage {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--fr-gap-sm) var(--mnm-window-gutter) var(--fr-gap-xs);
  overflow: hidden;
}
.left-panel .friend-rank-overlay--dock .friend-rank-stage {
  padding-top: 12px;
  padding-bottom: 2px;
  flex: 0 0 auto;
}
.left-panel .friend-rank-overlay--dock .friend-rank-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 300px;
  margin: 4px auto var(--fr-gap-sm);
  gap: 3px;
}
.left-panel .friend-rank-overlay--dock .fr-hero-badge-ring {
  width: 58px;
  height: 58px;
  margin: 2px 0 4px;
  align-self: center;
}
.left-panel .friend-rank-overlay--dock .fr-digital-badge {
  width: 58px;
  height: 58px;
}
.left-panel .friend-rank-overlay--dock .fr-hero-rank {
  font-size: 1.34rem;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 14px rgba(125, 252, 138, 0.3);
}
.left-panel .friend-rank-overlay--dock .fr-hero-name {
  font-size: 0.74rem;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.04em;
}
.left-panel .friend-rank-overlay--dock .fr-hero-tier,
.left-panel .friend-rank-overlay--dock .fr-hero-score {
  font-size: 0.54rem;
  line-height: 1.2;
  text-align: center;
}
.left-panel .friend-rank-overlay--dock .fr-hero-chase {
  font-size: 0.5rem;
  line-height: 1.25;
  opacity: 0.84;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  margin-top: 3px;
}
.left-panel .friend-rank-overlay--dock .fr-hero-score strong {
  font-size: 0.78rem;
}
.left-panel .friend-rank-overlay--dock .friend-rank-leader-chip {
  align-self: center;
  margin: 0 0 var(--fr-gap-sm);
  font-size: 0.5rem;
  padding: 3px 10px;
  max-width: calc(100% - 4px);
  justify-content: center;
  text-align: center;
}
.left-panel .friend-rank-overlay--dock .friend-rank-meta--compact {
  margin-bottom: var(--fr-gap-xs);
  gap: var(--fr-gap-xs);
}
.left-panel .friend-rank-overlay--dock .friend-rank-meta--compact .friend-rank-meta-card {
  padding: 4px 6px;
}
.left-panel .friend-rank-overlay--dock .friend-rank-mission {
  margin: 0 0 var(--fr-gap-sm) !important;
  padding: 0 !important;
  font-size: 0.56rem !important;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-rank-list-head {
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: var(--fr-gap-xs);
  padding: 0 2px;
}
.friend-rank-list-head-label {
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(158, 214, 177, 0.82);
  font-weight: 700;
}
.friend-rank-list-head-hint {
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(130, 170, 145, 0.55);
}
.friend-rank-list--top10 {
  width: 100%;
  max-width: 300px;
  height: calc(10 * var(--fr-row-h) + 9 * var(--fr-row-gap));
  display: flex;
  flex-direction: column;
  gap: var(--fr-row-gap);
  overflow: hidden;
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 0 var(--fr-list-tail, 12px);
}
.friend-rank-list--top10 .friend-rank-row-item--bar {
  height: var(--fr-row-h);
  min-height: var(--fr-row-h);
  max-height: var(--fr-row-h);
  padding: 0 6px !important;
  margin: 0;
  align-items: center;
  box-sizing: border-box;
}
.friend-rank-row-item--bar.is-empty {
  opacity: 0.38;
  border-style: dashed !important;
  border-color: rgba(125, 252, 138, 0.14) !important;
  background: rgba(6, 12, 10, 0.35) !important;
  box-shadow: none !important;
}
.left-panel .friend-rank-overlay--dock .friend-rank-toolbar {
  padding: 6px var(--mnm-window-gutter) 10px;
  border-bottom-color: rgba(125, 252, 138, 0.08);
}
.friend-rank-spacer {
  display: none;
}
.friend-rank-hero {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 10px;
}
.fr-hero-badge-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
}
.fr-hero-badge-ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(125, 252, 138, 0.05), rgba(125, 252, 138, 0.45), rgba(58, 200, 120, 0.08));
  filter: blur(0.5px);
  animation: fr-badge-orbit 5s linear infinite;
}
.fr-hero-badge-ring--domestic::before {
  background: conic-gradient(from 200deg, rgba(88, 182, 255, 0.06), rgba(88, 182, 255, 0.5), rgba(58, 166, 255, 0.1));
}
.fr-digital-badge--intl {
  filter: none;
}
.fr-digital-badge--domestic {
  filter: drop-shadow(0 0 16px rgba(88, 182, 255, 0.42));
}
.fr-digital-badge--domestic.fr-digital-badge--t5 {
  filter: drop-shadow(0 0 22px rgba(255, 200, 100, 0.5));
}
@keyframes fr-badge-orbit {
  to {
    transform: rotate(360deg);
  }
}
.fr-digital-badge {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
}
.fr-digital-badge .fr-badge-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.fr-digital-badge--t5.fr-digital-badge--intl {
  filter: none;
}
.fr-hero-rank {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(230, 255, 238, 0.98);
  text-shadow: 0 0 24px rgba(125, 252, 138, 0.45);
}
.fr-hero-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(210, 245, 220, 0.95);
  letter-spacing: 0.06em;
}
.fr-hero-tier {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(158, 214, 177, 0.9);
}
.fr-hero-tier span {
  opacity: 0.75;
}
.fr-hero-score {
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(175, 220, 190, 0.88);
}
.fr-hero-score strong {
  font-size: 1rem;
  color: rgba(125, 252, 138, 0.98);
  margin-right: 4px;
}
.fr-hero-chase {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: rgba(140, 190, 160, 0.82);
  margin-top: 2px;
}

/* Time machine — year shift animations */
.friend-rank-stage.is-year-shift {
  animation: fr-year-stage-pulse 0.58s ease-out;
}
.friend-rank-stage.is-year-shift--back {
  animation-name: fr-year-stage-back;
}
.friend-rank-stage.is-year-shift--fwd {
  animation-name: fr-year-stage-fwd;
}
@keyframes fr-year-stage-pulse {
  0% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(1.12);
  }
  100% {
    filter: brightness(1);
  }
}
@keyframes fr-year-stage-back {
  0% {
    transform: translateX(0);
    filter: brightness(1);
  }
  35% {
    transform: translateX(-6px);
    filter: brightness(1.1) hue-rotate(-6deg);
  }
  100% {
    transform: translateX(0);
    filter: brightness(1);
  }
}
@keyframes fr-year-stage-fwd {
  0% {
    transform: translateX(0);
    filter: brightness(1);
  }
  35% {
    transform: translateX(6px);
    filter: brightness(1.1) hue-rotate(6deg);
  }
  100% {
    transform: translateX(0);
    filter: brightness(1);
  }
}
.friend-rank-hero.is-year-pulse .fr-hero-rank {
  animation: fr-hero-rank-flip 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.friend-rank-hero.is-year-pulse .fr-digital-badge {
  animation: fr-badge-spin-in 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fr-hero-rank-flip {
  0% {
    transform: perspective(400px) rotateX(0) scale(1);
    opacity: 1;
  }
  42% {
    transform: perspective(400px) rotateX(78deg) scale(0.88);
    opacity: 0.35;
  }
  100% {
    transform: perspective(400px) rotateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes fr-badge-spin-in {
  0% {
    transform: rotate(-18deg) scale(0.82);
    opacity: 0.5;
  }
  55% {
    transform: rotate(8deg) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}
.friend-rank-panel.is-time-tunnel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(125, 252, 138, 0.14) 50%,
    transparent 58%
  );
  animation: fr-time-tunnel-sweep 0.58s ease-out;
}
.friend-rank-panel[data-arena="domestic"].is-time-tunnel::after {
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(88, 182, 255, 0.16) 50%,
    transparent 58%
  );
}
@keyframes fr-time-tunnel-sweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}
.friend-rank-panel.is-arena-switch .fr-hero-badge-ring {
  animation: fr-arena-badge-morph 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fr-arena-badge-morph {
  0% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
  45% {
    transform: scale(0.75) rotate(-12deg);
    opacity: 0.35;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.friend-rank-leader-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 252, 138, 0.28);
  background: rgba(8, 18, 14, 0.72);
  font-size: 0.64rem;
  color: rgba(190, 235, 205, 0.92);
}
.fr-leader-crown {
  color: rgba(255, 215, 90, 0.95);
  font-size: 0.85rem;
}
.friend-rank-meta--compact {
  width: 100%;
  max-width: 300px;
  margin-bottom: 8px;
}
.friend-rank-meta--compact .friend-rank-meta-card {
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
}
.friend-rank-meta-card--glow {
  border-color: rgba(125, 252, 138, 0.55) !important;
  box-shadow: 0 0 16px rgba(58, 200, 120, 0.15);
}
.friend-rank-mission {
  width: 100%;
  max-width: 300px;
  text-align: center;
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 0.64rem !important;
  opacity: 0.85;
}
.friend-rank-overlay--dock .friend-rank-list {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.friend-rank-row-item--bar {
  grid-template-columns: 24px minmax(0, 1fr) minmax(40px, 56px) 28px;
  padding: 0 6px !important;
  border-radius: 5px !important;
  font-size: 0.58rem;
}
.friend-rank-row-item--bar .friend-rank-pos {
  font-size: 0.56rem;
}
.friend-rank-row-item--bar .friend-rank-name {
  font-size: 0.58rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-rank-row-item--bar .friend-rank-score {
  font-size: 0.56rem;
  text-align: right;
}
.friend-rank-bar-wrap {
  height: 6px !important;
}
.friend-rank-row-item.is-me {
  border-color: rgba(125, 252, 138, 0.45) !important;
  background: rgba(12, 28, 20, 0.82) !important;
  box-shadow: 0 0 12px rgba(58, 200, 120, 0.12);
}
.friend-rank-row-badge {
  display: none;
}
.friend-rank-row-item.is-me .friend-rank-row-badge {
  display: none;
}

/* Bottom ad — full gutter width, height fills remainder */
.friend-rank-ad-dock {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--fr-time-ad-gap, 10px) var(--mnm-window-gutter) var(--mnm-window-gutter);
}
.friend-rank-ad-dock.is-ready {
  display: flex;
}
.friend-rank-ad-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.friend-rank-ad-aspect {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  border: 1px dashed rgba(255, 200, 100, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(10, 18, 14, 0.92), rgba(5, 10, 8, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(125, 252, 138, 0.1),
    0 0 14px rgba(58, 200, 120, 0.08);
  overflow: hidden;
}
.friend-rank-ad-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}
.friend-rank-ad-placeholder-kicker {
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 200, 100, 0.88);
  font-weight: 700;
}
.friend-rank-ad-placeholder-text {
  margin: 0;
  font-size: 0.56rem;
  line-height: 1.35;
  color: rgba(165, 205, 180, 0.88);
  max-width: 92%;
}
.friend-rank-ad-placeholder-text a {
  color: rgba(125, 252, 138, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.friend-rank-ad-dock.is-preview-on .friend-rank-ad-placeholder[hidden] {
  display: none;
}
.friend-rank-ad-dock .mnm-ad-slot-host--300-600 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.friend-rank-ad-dock .mnm-ad-slot-host--300-600:not([hidden]) {
  display: flex;
}
.friend-rank-ad-dock .mnm-ad-slot-host--300-600 .mnm-ad-slot-inner {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.58rem;
}
.friend-rank-ad-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.friend-rank-ad-dock-tag {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 200, 100, 0.9);
  font-weight: 700;
}
.friend-rank-ad-dock-hint {
  font-size: 0.58rem;
  color: rgba(140, 180, 155, 0.7);
  letter-spacing: 0.06em;
}
.mnm-ad-slot-host--320-50 .mnm-ad-slot-inner {
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 8px;
  border-color: rgba(255, 200, 80, 0.35);
  background: linear-gradient(135deg, rgba(12, 20, 16, 0.95), rgba(6, 12, 10, 0.98));
  box-shadow:
    0 0 0 1px rgba(125, 252, 138, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Fixed footer — time proof above ad, ad takes leftover height */
.friend-rank-footer {
  flex: 1 1 0;
  min-height: var(--fr-footer-min, 132px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 2px;
  border-top: 1px solid rgba(125, 252, 138, 0.14);
  background: linear-gradient(180deg, rgba(4, 10, 8, 0.92), rgba(4, 10, 8, 0.98));
}
.friend-rank-time-proof {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px var(--mnm-window-gutter) 10px;
  border-bottom: none;
}
.friend-rank-time-proof-label {
  flex: 0 0 auto;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140, 180, 155, 0.72);
  white-space: nowrap;
}
.friend-rank-time-proof-value {
  flex: 0 0 auto;
  min-width: 2.4em;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: right;
  color: rgba(125, 252, 138, 0.95);
  font-variant-numeric: tabular-nums;
}
.friend-rank-panel[data-arena="domestic"] .friend-rank-time-proof-value {
  color: rgba(136, 200, 255, 0.95);
}
.friend-rank-year-slider {
  width: 100%;
  min-width: 0;
  height: 16px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.friend-rank-year-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(58, 200, 120, 0.22);
  border: 1px solid rgba(125, 252, 138, 0.28);
}
.friend-rank-year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(125, 252, 138, 0.95);
  border: 2px solid rgba(20, 50, 32, 0.9);
  box-shadow: 0 0 10px rgba(125, 252, 138, 0.55);
  cursor: grab;
}
.friend-rank-year-slider::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(58, 200, 120, 0.22);
  border: 1px solid rgba(125, 252, 138, 0.28);
}
.friend-rank-year-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(125, 252, 138, 0.95);
  border: 2px solid rgba(20, 50, 32, 0.9);
  box-shadow: 0 0 10px rgba(125, 252, 138, 0.55);
  cursor: grab;
}
.friend-rank-panel[data-arena="domestic"] .friend-rank-year-slider::-webkit-slider-runnable-track,
.friend-rank-panel[data-arena="domestic"] .friend-rank-year-slider::-moz-range-track {
  background: rgba(58, 166, 255, 0.2);
  border-color: rgba(88, 182, 255, 0.32);
}
.friend-rank-panel[data-arena="domestic"] .friend-rank-year-slider::-webkit-slider-thumb,
.friend-rank-panel[data-arena="domestic"] .friend-rank-year-slider::-moz-range-thumb {
  background: rgba(136, 200, 255, 0.95);
  box-shadow: 0 0 10px rgba(88, 182, 255, 0.5);
}

@media (max-height: 760px) {
  .left-panel .friend-rank-overlay--dock .friend-rank-panel {
    --fr-row-h: 20px;
    --fr-row-gap: 2px;
    --fr-gap-sm: 4px;
    --fr-list-tail: 8px;
    --fr-time-ad-gap: 8px;
    --fr-footer-min: 118px;
  }
  .left-panel .friend-rank-overlay--dock .friend-rank-header {
    min-height: 40px;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  .left-panel .friend-rank-overlay--dock .fr-hero-badge-ring,
  .left-panel .friend-rank-overlay--dock .fr-digital-badge {
    width: 50px;
    height: 50px;
  }
  .left-panel .friend-rank-overlay--dock .fr-hero-rank {
    font-size: 1.14rem;
  }
}

.friend-rank-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.friend-rank-bar {
  display: block;
  height: 100%;
  width: var(--bar-pct, 10%);
  background: linear-gradient(90deg, rgba(58, 200, 120, 0.85), rgba(125, 252, 138, 0.65));
  border-radius: 999px;
  transform-origin: left center;
  animation: friend-rank-bar-grow 0.7s ease-out;
}
@keyframes friend-rank-bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.friend-map-pin--droplet {
  width: 44px;
  height: 56px;
}
.friend-map-pin-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dev-hub-mod-row {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.dev-hub-mod-row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}
.mp-friend-invite-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.mp-friend-invite-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(236, 202, 116, 0.22);
  background: linear-gradient(145deg, rgba(18, 20, 16, 0.82), rgba(8, 12, 10, 0.92));
  margin-bottom: 10px;
}
.terminal-field--recommend label {
  color: rgba(158, 214, 177, 0.88);
}
.terminal-recommend-btn.is-active {
  animation: none !important;
  transform: none !important;
}
.terminal-recommend-btn--yes.is-active {
  border-color: rgba(125, 252, 138, 0.95) !important;
  background: rgba(80, 210, 130, 0.28) !important;
  box-shadow: inset 0 0 0 1px rgba(125, 252, 138, 0.45), 0 0 14px rgba(80, 210, 130, 0.28) !important;
  color: #c8ffe0 !important;
}
.terminal-recommend-btn--no.is-active {
  border-color: rgba(255, 130, 130, 0.95) !important;
  background: rgba(200, 70, 70, 0.28) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 120, 120, 0.4), 0 0 14px rgba(200, 80, 80, 0.25) !important;
  color: #ffd0d0 !important;
}
.terminal-recommend-row.has-choice .terminal-recommend-btn:not(.is-active) {
  animation: none !important;
  /* keep same box size — only mute color, not opacity/filter (avoids layout shrink) */
  color: rgba(180, 200, 190, 0.72);
  border-color: rgba(125, 252, 138, 0.18);
  background: rgba(8, 18, 14, 0.45);
  box-shadow: none;
}
.terminal-recommend-row.has-choice.terminal-recommend-row--pulse .terminal-recommend-btn {
  animation: none !important;
}
.mnm-ad-slot-host {
  width: 100%;
  display: block;
}
.map-ad-dock {
  position: absolute;
  left: 50%;
  bottom: calc(var(--map-floating-bottom, 40px) + 6px);
  transform: translateX(-50%);
  z-index: 14;
  width: min(520px, calc(100% - 280px));
  max-width: 728px;
  pointer-events: auto;
  box-sizing: border-box;
}
.map-ad-dock.is-visible {
  display: block;
}
.map-ad-dock:not(.is-visible) {
  display: none;
}
.map-ad-dock-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  opacity: 0.75;
}
.map-ad-dock-close:hover {
  opacity: 1;
}
.mnm-ad-slot-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 200, 80, 0.28);
  border-radius: 10px;
  padding: 8px 36px 8px 12px;
  background: rgba(8, 14, 28, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  line-height: 1.25;
}
.mnm-ad-slot-demo {
  font-weight: 700;
  color: rgba(255, 200, 100, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mnm-ad-slot-label {
  opacity: 0.9;
}
.mnm-ad-slot-cta {
  opacity: 0.65;
  font-size: 0.72rem;
}
@media (max-width: 1100px) {
  .map-ad-dock {
    width: min(420px, calc(100% - 32px));
    bottom: calc(var(--map-floating-bottom, 40px) + 52px);
  }
}
@media (max-width: 760px) {
  .map-ad-dock {
    width: calc(100% - 24px);
    bottom: calc(var(--map-floating-bottom, 40px) + 64px);
  }
  .mnm-ad-slot-inner {
    flex-direction: column;
    text-align: center;
    padding-right: 12px;
  }
}

/* Ad preview toggle — bottom-left above Time Machine */
.mnm-ads-preview-toggle {
  position: absolute;
  top: auto;
  left: 12px;
  bottom: calc(var(--map-floating-bottom, 40px) + var(--map-chat-collapsed-height, 44px) + 8px);
  right: auto;
  z-index: 1305;
  width: min(268px, calc(100% - 24px));
  box-sizing: border-box;
  padding: 8px 14px;
  border: 2px solid #ff2d2d;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff3b3b, #cc0000);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(255, 40, 40, 0.45);
}
body.intro-active .mnm-ads-preview-toggle {
  display: none !important;
}
.mnm-ads-preview-toggle:hover {
  filter: brightness(1.08);
}
.mnm-ads-preview-toggle.is-on {
  background: linear-gradient(180deg, #2ecc71, #1a9b52);
  border-color: #7dfc8a;
  box-shadow: 0 0 18px rgba(125, 252, 138, 0.4);
}

/* Friend rank — premium header, centered title */
.friend-rank-header {
  position: relative !important;
  z-index: 8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px calc(var(--mnm-window-gutter) + var(--ui-chrome-size) + var(--ui-chrome-gap)) 8px var(--mnm-window-gutter) !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(125, 252, 138, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 22, 16, 0.98), rgba(6, 14, 10, 0.92)),
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(125, 252, 138, 0.12), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(125, 252, 138, 0.14);
}
.friend-rank-header--centered .friend-rank-header-main {
  flex: 0 1 auto;
  justify-content: center;
  text-align: center;
}
.friend-rank-header--centered .friend-rank-header-copy {
  align-items: center;
  text-align: center;
}
.friend-rank-header--centered .friend-rank-header-title,
.friend-rank-header--centered .friend-rank-header-eyebrow {
  text-align: center;
}
.friend-rank-panel[data-arena="domestic"] .friend-rank-header {
  background:
    linear-gradient(180deg, rgba(8, 18, 26, 0.98), rgba(6, 12, 18, 0.92)),
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(88, 182, 255, 0.12), transparent 58%);
  border-bottom-color: rgba(88, 182, 255, 0.22);
}
.friend-rank-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.friend-rank-header-glyph {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 90, 0.45);
  background: linear-gradient(145deg, rgba(255, 215, 90, 0.18), rgba(8, 18, 14, 0.85));
  color: rgba(255, 230, 150, 0.95);
  font-size: 0.82rem;
  text-shadow: 0 0 10px rgba(255, 200, 80, 0.45);
}
.friend-rank-header-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.friend-rank-header-eyebrow {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(158, 214, 177, 0.72);
}
.friend-rank-header-title {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(230, 255, 238, 0.98);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.left-panel .friend-rank-overlay--dock .friend-rank-header .friend-rank-close.ui-close {
  position: absolute !important;
  top: var(--ui-chrome-inset) !important;
  left: auto !important;
  bottom: auto !important;
  right: var(--ui-chrome-inset) !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 9 !important;
}
.friend-rank-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.friend-rank-toolbar-row .friend-rank-arena-tabs {
  flex: 1;
  min-width: 0;
}
.friend-rank-ads-toggle {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 2px solid #ff2d2d;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff3b3b, #c40000);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 40, 40, 0.35);
  white-space: nowrap;
}
.friend-rank-ads-toggle.is-on {
  border-color: #7dfc8a;
  background: linear-gradient(180deg, #2ecc71, #1a9b52);
  box-shadow: 0 0 12px rgba(125, 252, 138, 0.35);
}
.friend-rank-ads-toggle:hover {
  filter: brightness(1.06);
}
body.intro-active .friend-rank-ads-toggle {
  display: none !important;
}

/* Vertical ad rails — fill side column with inner padding */
.mnm-ad-rail[hidden] {
  display: none !important;
}
.left-panel .mnm-ad-rail--left,
.right-panel-wrapper .mnm-ad-rail--right {
  position: absolute;
  inset: 8px;
  z-index: 120;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px dashed rgba(125, 252, 138, 0.38);
  background: rgba(4, 10, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  box-shadow: inset 0 0 0 1px rgba(125, 252, 138, 0.08);
}
.mnm-ad-rail-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 200, 100, 0.9);
}
.mnm-ad-rail-zone {
  flex: 1;
  min-width: 0;
  color: rgba(125, 252, 138, 0.85);
}
.mnm-ad-rail-timer {
  font-variant-numeric: tabular-nums;
  color: rgba(200, 230, 255, 0.9);
}
.mnm-ad-rail-close {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 60, 60, 0.2);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
}
.mnm-ad-rail-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: stretch;
}
.mnm-ad-rail-stack .mnm-ad-slot-host {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mnm-ad-slot-host--300-250 .mnm-ad-slot-inner {
  flex-direction: column;
  min-height: 200px;
  justify-content: center;
  text-align: center;
  padding: 12px;
}
.mnm-ad-slot-host--300-600 .mnm-ad-slot-inner {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 300 / 600;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
}
.mnm-ad-slot-format {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.right-panel-wrapper {
  position: relative;
}
body.mnm-ads-preview-on .left-panel > :not(.mnm-ad-rail):not(.friend-rank-overlay) {
  opacity: 0.1;
  pointer-events: none;
}
body.mnm-ads-preview-on .right-panel-wrapper > :not(.mnm-ad-rail) {
  opacity: 0.1;
  pointer-events: none;
}
body.mnm-ads-preview-on .map-ad-dock.is-visible {
  outline: 2px dashed rgba(125, 252, 138, 0.45);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .left-panel .mnm-ad-rail--left,
  .right-panel-wrapper .mnm-ad-rail--right {
    display: none !important;
  }
}

/* === UI polish wave 2 (forum, terminal, docks, achievement help) === */

/* Left-panel dock overlays — square corners, symmetric gutters */
.left-panel .friend-rank-overlay--dock .friend-rank-panel,
.left-panel .notifications-panel,
.left-panel .friends-online-panel {
  border-radius: 0 !important;
}
.left-panel .friend-rank-overlay--dock .friend-rank-panel {
  padding: 0 !important;
  box-sizing: border-box;
}
.left-panel .notifications-panel,
.left-panel .friends-online-panel {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
.friend-rank-arena-tabs,
.friend-rank-meta,
.friend-rank-mission {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0;
  margin-right: 0;
}
.friend-rank-list {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Forum NEW TOPIC — solid frame + safe gutters (no right-edge clipping) */
.tf-modal-window--newtopic {
  --mnm-newtopic-gutter: 16px;
  padding: 0 var(--mnm-newtopic-gutter) var(--mnm-newtopic-gutter) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  isolation: isolate;
  background: var(--ui-tf-modal-bg) !important;
  background-clip: padding-box;
  border: var(--window-border-width) solid var(--window-border-color) !important;
  border-radius: var(--radius-window) !important;
  /* Reinforces continuous border at rounded corners (no translucent gaps) */
  box-shadow: var(--window-shadow-depth), 0 0 0 1px var(--window-border-color) !important;
  scrollbar-gutter: auto;
  max-width: min(520px, calc(100vw - 24px));
}
.tf-modal-head--newtopic {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 0 10px !important;
  margin-left: calc(-1 * var(--mnm-newtopic-gutter)) !important;
  margin-right: calc(-1 * var(--mnm-newtopic-gutter)) !important;
  padding: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 4px)
    calc(var(--mnm-newtopic-gutter) + var(--ui-chrome-size) + var(--ui-chrome-gap))
    10px var(--mnm-newtopic-gutter) !important;
  box-sizing: border-box;
  border-radius: var(--radius-window) var(--radius-window) 0 0;
  background: var(--ui-tf-modal-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  width: auto;
}
.tf-modal-head--newtopic .tf-modal-title {
  margin: 0 !important;
  padding: 0 !important;
}
.tf-modal-window--newtopic > :not(.tf-modal-head--newtopic):not(.tf-modal-close) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.tf-modal-window--newtopic > :last-child {
  margin-bottom: 0 !important;
}
.tf-modal-window--newtopic .tf-form-label,
.tf-modal-window--newtopic .tf-form-input,
.tf-modal-window--newtopic .tf-form-textarea,
.tf-modal-window--newtopic .tf-compose-tools,
.tf-modal-window--newtopic .tf-newtopic-publish,
.tf-modal-window--newtopic .tf-form-submit,
.tf-modal-window--newtopic .tf-geo-suggest,
.tf-modal-window--newtopic .tf-emoji-picker,
.tf-modal-window--newtopic .tf-media-preview-list {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.tf-modal-window--newtopic select.tf-form-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px !important;
  background-image: linear-gradient(45deg, transparent 50%, rgba(200, 255, 210, 0.85) 50%),
    linear-gradient(135deg, rgba(200, 255, 210, 0.85) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.tf-modal-window--newtopic #tfNewTopicBody {
  resize: vertical;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Terminal — equal side gutters; Yes/No = footer button widths */
.terminal-body.mnm-scroll-rail {
  scrollbar-gutter: stable;
}
.terminal-body {
  padding-left: var(--mnm-window-gutter) !important;
  padding-right: var(--mnm-window-gutter) !important;
  box-sizing: border-box;
}
.terminal-body .terminal-field,
.terminal-body .terminal-grid,
.terminal-body .terminal-visit-hint,
.terminal-body .terminal-recommend-row {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.terminal-footer {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px var(--mnm-window-gutter) !important;
}
.terminal-footer .btn-main,
.terminal-footer .btn-ghost {
  width: 100%;
  justify-content: center;
}
.terminal-recommend-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(125, 252, 138, 0.28);
}
.terminal-recommend-row .terminal-recommend-btn {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  height: 38px;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 12px;
  line-height: 1;
  flex: none;
}
.terminal-recommend-row--pulse .terminal-recommend-btn--yes {
  animation: mnm-recommend-glow-a 2.8s ease-in-out infinite;
}
.terminal-recommend-row--pulse .terminal-recommend-btn--no {
  animation: mnm-recommend-glow-b 2.8s ease-in-out infinite;
}
@keyframes mnm-recommend-glow-a {
  0%,
  42%,
  100% {
    border-color: rgba(125, 252, 138, 0.22);
    box-shadow: none;
    background: rgba(8, 18, 14, 0.5);
  }
  8%,
  22% {
    border-color: rgba(125, 252, 138, 0.85);
    box-shadow: 0 0 20px rgba(58, 200, 120, 0.45), inset 0 0 12px rgba(125, 252, 138, 0.12);
    background: rgba(20, 48, 32, 0.55);
  }
}
@keyframes mnm-recommend-glow-b {
  0%,
  48%,
  100% {
    border-color: rgba(125, 252, 138, 0.18);
    box-shadow: none;
    background: rgba(8, 18, 14, 0.5);
  }
  56%,
  72% {
    border-color: rgba(125, 252, 138, 0.75);
    box-shadow: 0 0 18px rgba(58, 200, 120, 0.38), inset 0 0 10px rgba(125, 252, 138, 0.1);
    background: rgba(18, 42, 30, 0.5);
  }
}

/* Achievement help (left menu card) — rank CTAs at bottom */
.achievement-help-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.achievement-help-close.ui-close {
  top: var(--ui-chrome-inset) !important;
  right: var(--ui-chrome-inset) !important;
}
.achievement-help-scroll {
  flex: 1;
  min-height: 0;
  padding: calc(var(--ui-chrome-inset) + var(--ui-chrome-size) + 8px) 12px 10px !important;
  box-sizing: border-box;
}
.achievement-help-rank-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(125, 252, 138, 0.22);
  background: rgba(4, 10, 8, 0.92);
}
.achievement-help-rank-footer .achievements-rank-cta {
  padding: 10px 12px;
}
.achievement-help-rank-footer .achievements-rank-cta-title {
  font-size: 0.8rem;
}
.achievement-help-rank-footer .achievements-rank-cta-sub {
  font-size: 0.66rem;
}

/* Registration phone — ISO + dial + national */
.auth-field--phone {
  margin-top: 4px;
}
.auth-phone-row {
  display: grid;
  grid-template-columns: minmax(76px, 84px) 52px 1fr;
  gap: 6px;
  align-items: center;
}
.auth-phone-iso,
.auth-phone-dial,
.auth-phone-country {
  background: var(--ui-auth-input-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--ui-auth-input-border);
  padding: 4px 4px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.78rem;
  min-width: 0;
}
.auth-phone-iso {
  padding-right: 18px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%2399a8b8' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 8px 5px;
  cursor: pointer;
}
.auth-phone-dial {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.auth-phone-row input[type="tel"] {
  min-width: 0;
}
.auth-phone-hint {
  font-size: 0.62rem !important;
  line-height: 1.25;
  opacity: 0.82;
}

/* === UI polish wave 3: unified symmetric window gutters (all modals) === */

/* Left-panel dock overlays — equal 12px side gutters */
.left-panel .notifications-panel,
.left-panel .friends-online-panel,
.left-panel .travel-routes-panel,
.left-panel .app-data-panel:not(.app-data-panel--split-shell) {
  padding: calc(var(--ui-chrome-inset) + var(--ui-chrome-size) + 8px) var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
  box-sizing: border-box;
}
.left-panel #achievementsOverlay.visible {
  padding: var(--mnm-window-gutter) !important;
}
.achievements-panel-scroll {
  padding: 10px var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
}
.notifications-header > #notificationsTitle {
  padding-right: calc(var(--ui-chrome-size) * 2 + var(--ui-chrome-gap) + 8px) !important;
}
.notifications-header-actions {
  right: var(--mnm-window-gutter) !important;
}
.friends-online-header {
  padding-right: var(--mnm-window-header-pad-right) !important;
}
.friends-online-header .friends-online-close.ui-close,
.friends-online-header-actions {
  right: var(--mnm-window-gutter) !important;
}

/* Terminal — symmetric header + centered title on panel axis */
.terminal-window .terminal-header {
  padding: 12px calc(var(--ui-chrome-size) + var(--ui-chrome-gap) + 14px) 10px calc(var(--ui-chrome-size) + var(--ui-chrome-gap) + 14px) !important;
  min-height: 42px !important;
  justify-content: center !important;
  align-items: center !important;
}
.terminal-window .terminal-title {
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  width: 100% !important;
  line-height: 1.2 !important;
}

/* Terminal close — inset from corner, not on the radius apex */
body:not(.tomato-mode) .terminal-window > .terminal-close.ui-close--corner {
  top: 10px !important;
  right: 10px !important;
  transform: none !important;
}
body:not(.tomato-mode) .terminal-window > .terminal-close.ui-close--corner:hover,
body:not(.tomato-mode) .terminal-window > .terminal-close.ui-close--corner:focus-visible,
body:not(.tomato-mode) .terminal-window > .terminal-close.ui-close--corner:active {
  transform: none !important;
}

/* Forum thread modal */
.tf-modal-window--thread {
  padding: 0 !important;
  scrollbar-gutter: stable both-edges;
}
.travel-forum-panel .tf-modal-overlay:not([hidden]) .tf-modal-window--thread {
  padding: 0 !important;
}
.tf-thread-sticky-top {
  margin: 0 0 6px !important;
  padding: var(--mnm-window-header-pad-top) var(--mnm-window-header-pad-right) 6px var(--mnm-window-gutter) !important;
  box-sizing: border-box;
}
.tf-thread-comments {
  margin-left: var(--mnm-window-gutter);
  margin-right: var(--mnm-window-gutter);
  padding-right: 0 !important;
}
.tf-thread-compose-shell {
  margin: 8px 0 0 !important;
  padding: 10px var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
  box-sizing: border-box;
}

/* Generic forum / rules modals */
.tf-modal-window:not(.tf-modal-window--newtopic):not(.tf-modal-window--thread) {
  padding: var(--mnm-window-gutter) !important;
  scrollbar-gutter: stable both-edges;
}

/* Achievement help */
.achievement-help-close.ui-close {
  top: var(--ui-chrome-inset) !important;
  right: var(--mnm-window-gutter) !important;
}
.achievement-help-scroll {
  padding: var(--mnm-window-header-pad-top) var(--mnm-window-gutter) 10px !important;
}
.achievement-help-rank-footer {
  padding: 10px var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
}

/* Legal / privacy modals */
.legal-info-header {
  position: relative !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--ui-chrome-inset) + var(--ui-chrome-size) + 10px);
  padding: var(--mnm-window-header-pad-top) var(--mnm-window-header-pad-right) 12px var(--mnm-window-gutter) !important;
}
.legal-info-title {
  margin: 0 !important;
  text-align: center;
  width: 100%;
  padding: 0 calc(var(--ui-chrome-size) + var(--ui-chrome-gap) + 4px);
  box-sizing: border-box;
}
.legal-info-header .legal-info-close.ui-close {
  top: var(--ui-chrome-inset) !important;
  transform: none !important;
  right: var(--mnm-window-gutter) !important;
}
.legal-info-tabs {
  padding: 10px var(--mnm-window-gutter) !important;
}
.legal-info-body,
.privacy-settings-body {
  padding: var(--mnm-window-gutter) !important;
  scrollbar-gutter: stable both-edges;
}

/* Visit choice, photo album, new chat */
.visit-choice-window {
  padding: var(--mnm-window-gutter) !important;
  scrollbar-gutter: stable both-edges;
}
.visit-choice-list.mnm-scroll-rail {
  padding-right: 0 !important;
}
.photo-album-header {
  padding: var(--mnm-window-header-pad-top) var(--mnm-window-header-pad-right) 8px var(--mnm-window-gutter) !important;
}
.photo-album-main,
.photo-album-caption {
  padding-left: var(--mnm-window-gutter) !important;
  padding-right: var(--mnm-window-gutter) !important;
  box-sizing: border-box;
}
.mp-newchat-window {
  padding: var(--mnm-window-header-pad-top) var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
  box-sizing: border-box;
}
.mp-newchat-close.ui-close {
  top: var(--ui-chrome-inset) !important;
  right: var(--mnm-window-gutter) !important;
}

/* Split expenses overlay */
#splitExpensesOverlay .split-panel {
  padding: calc(var(--ui-chrome-inset) + var(--ui-chrome-size) + 8px) var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
  box-sizing: border-box;
}

/* Dev hub, report modals */
.dev-hub-header {
  padding: var(--mnm-window-header-pad-top) var(--mnm-window-header-pad-right) 10px var(--mnm-window-gutter) !important;
}
.dev-hub-close.ui-close {
  right: var(--mnm-window-gutter) !important;
}
.dev-hub-body {
  padding: var(--mnm-window-gutter) !important;
}
.mnm-report-window {
  padding: 0 var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
  scrollbar-gutter: stable;
}
.mnm-report-window.mnm-modal-chrome {
  padding-top: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 8px) !important;
}
.mnm-report-close.ui-close {
  right: var(--ui-chrome-corner-inset) !important;
  top: var(--ui-chrome-corner-inset) !important;
}
.mnm-report-textarea {
  resize: vertical;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.mnm-report-foot {
  margin-top: 10px;
  margin-bottom: 4px;
}

/* Left-panel dock close buttons — align with content gutter (legacy, not inset) */
.left-panel .app-data-close.ui-close:not(.ui-close--inset),
.left-panel .travel-routes-close.ui-close:not(.ui-close--inset),
.left-panel .notifications-close.ui-close:not(.ui-close--inset) {
  right: var(--mnm-window-gutter) !important;
}

@media (max-height: 760px) {
  .tf-modal-window--newtopic {
    padding: 0 14px 14px !important;
    width: min(560px, calc(100vw - 20px)) !important;
    max-height: 96vh !important;
  }
  .tf-modal-head--newtopic {
    margin: 0 0 8px !important;
    margin-left: -14px !important;
    margin-right: -14px !important;
    padding: var(--mnm-window-header-pad-top) calc(14px + var(--ui-chrome-size) + var(--ui-chrome-gap)) 8px 14px !important;
  }
}

/* === Side dock shell — match main panel border + one-shot Google snake on open === */
.mnm-side-dock-shell {
  border: 1px solid var(--border-soft) !important;
  box-shadow:
    0 0 0 1px var(--ui-panel-shell-ring),
    0 14px 26px rgba(0, 0, 0, 0.7) !important;
}
.mnm-side-dock-shell--left {
  box-shadow:
    0 0 0 1px var(--ui-panel-shell-ring),
    0 14px 26px rgba(0, 0, 0, 0.7),
    inset -1px 0 12px var(--ui-panel-inset-shadow) !important;
}
.mnm-side-dock-shell--left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ui-panel-texture);
  opacity: var(--ui-panel-texture-opacity);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}
.mnm-side-dock-shell--left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--ui-seam-color);
  box-shadow: var(--ui-seam-glow);
  pointer-events: none;
  z-index: 5;
}
.mnm-side-dock-shell--right {
  box-shadow:
    0 0 0 1px var(--ui-panel-shell-ring),
    0 14px 26px rgba(0, 0, 0, 0.7),
    inset 1px 0 12px var(--ui-panel-inset-shadow) !important;
}
.mnm-side-dock-shell--right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ui-panel-texture);
  opacity: var(--ui-panel-texture-opacity);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}
.mnm-side-dock-shell--right::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background: var(--ui-seam-color);
  box-shadow: var(--ui-seam-glow);
  pointer-events: none;
  z-index: 5;
}
.mnm-side-dock-shell > :not(.mnm-dock-snake) {
  position: relative;
  z-index: 1;
}
/* Dock overlays fill the left column — drop nested border/ring (left-panel already frames). */
.left-panel .friend-rank-overlay--dock .friend-rank-panel.mnm-side-dock-shell,
.left-panel #achievementsOverlay .achievements-panel.mnm-side-dock-shell,
.left-panel #achievementsOverlay .achievements-panel {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.left-panel .friend-rank-overlay--dock .friend-rank-panel.mnm-side-dock-shell::before,
.left-panel .friend-rank-overlay--dock .friend-rank-panel.mnm-side-dock-shell::after,
.left-panel #achievementsOverlay .achievements-panel.mnm-side-dock-shell::before,
.left-panel #achievementsOverlay .achievements-panel.mnm-side-dock-shell::after {
  display: none !important;
  content: none !important;
}

/* Google-style snake — single lap on open */
.mnm-dock-snake {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0;
}
.mnm-dock-snake__ring {
  position: absolute;
  inset: 0;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  overflow: hidden;
}
.mnm-dock-snake__rotor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  height: 220%;
  transform: translate(-50%, -50%) rotate(0deg);
  will-change: transform, opacity;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 286deg,
    #4285f4 290deg,
    #34a853 300deg,
    #fbbc04 310deg,
    #ea4335 320deg,
    #4285f4 330deg,
    transparent 334deg,
    transparent 360deg
  );
  opacity: 0;
  filter:
    drop-shadow(0 0 4px rgba(66, 133, 244, 0.45))
    drop-shadow(0 0 8px rgba(52, 168, 83, 0.28));
}
.mnm-side-dock-shell.is-dock-reveal .mnm-dock-snake__rotor {
  animation: mnm-dock-snake-once 1.12s cubic-bezier(0.33, 0.9, 0.42, 1) forwards;
}
@keyframes mnm-dock-snake-once {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
    opacity: 0;
  }
}
body.mnm-guided-tour-active .mnm-side-dock-shell--left::after,
body.mnm-guided-tour-active .mnm-side-dock-shell--right::after {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* === Wave 17: map chat typography + global modal chrome audit === */

/* Map mini-chat — match other chats (was 10px / --font-sm) */
.map-mini-chat-msgs {
  font-size: 12px;
  line-height: 1.42;
}
.map-mini-chat-msgs .map-mini-msg,
.map-mini-chat-msgs .map-mini-msg-text,
.map-mini-chat-msgs .map-mini-msg-loc {
  font-size: 12px;
  line-height: 1.42;
}
.map-mini-chat-compose .map-mini-chat-input,
.map-mini-chat-compose .map-mini-chat-input textarea {
  font-size: 12px;
  line-height: 1.42;
}
.map-chat-dock-name {
  font-size: 12px;
}
.map-chat-dock-snippet {
  font-size: 11px;
}

/* Centered modal titles + top-right close (single-title headers) */
.photo-album-header,
.dev-hub-header,
.map-users-header,
.travel-routes-header,
.guest-gate-header,
.left-panel .app-data-header {
  position: relative;
  justify-content: center !important;
}
.photo-album-title,
.dev-hub-title,
.map-users-title,
.travel-routes-header > span,
.guest-gate-header > span,
.left-panel .app-data-header > span,
.left-panel .app-data-header > #appDataTitle {
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding-left: calc(var(--ui-chrome-size) + var(--ui-chrome-gap) + 2px);
  padding-right: calc(var(--ui-chrome-size) + var(--ui-chrome-gap) + 2px);
}
.left-panel .notifications-header {
  position: relative !important;
}
.left-panel .notifications-header > #notificationsTitle {
  display: block;
  text-align: center;
  padding-left: 72px !important;
  padding-right: 72px !important;
  box-sizing: border-box;
}
.left-panel .friends-online-header {
  position: relative;
  justify-content: center;
  min-height: calc(var(--ui-chrome-size) + var(--ui-chrome-inset));
}
.left-panel .friends-online-header > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 150px);
  text-align: center;
  padding: 0;
}
.left-panel .friends-online-header-actions {
  position: absolute;
  top: var(--ui-chrome-inset);
  right: var(--mnm-window-gutter);
  z-index: 2;
}
.dev-hub-header > div:first-child {
  width: 100%;
  text-align: center;
  padding: 0 calc(var(--ui-chrome-size) + var(--ui-chrome-gap) + 2px);
  box-sizing: border-box;
}
.photo-album-header {
  justify-content: center !important;
}
body:not(.tomato-mode) .ui-close--gutter,
body:not(.tomato-mode) .ui-close--inset {
  top: var(--ui-chrome-corner-inset) !important;
  right: var(--ui-chrome-corner-inset) !important;
  transform: none !important;
}
body:not(.tomato-mode) .ui-close--gutter:hover,
body:not(.tomato-mode) .ui-close--gutter:focus-visible,
body:not(.tomato-mode) .ui-close--gutter:active,
body:not(.tomato-mode) .ui-close--inset:hover,
body:not(.tomato-mode) .ui-close--inset:focus-visible,
body:not(.tomato-mode) .ui-close--inset:active {
  transform: none !important;
}
.mp-newchat-window {
  text-align: center;
}
.mp-newchat-title {
  text-align: center;
  width: 100%;
  padding: 0 calc(var(--ui-chrome-size) + var(--ui-chrome-gap) + 4px);
  box-sizing: border-box;
}
.visit-choice-window > .visit-choice-title,
.visit-choice-window > h2:first-of-type {
  text-align: center;
}
.achievement-help-title {
  text-align: center;
}
.tf-modal-head:not(.tf-modal-head--newtopic) .tf-modal-title,
.tf-modal-window:not(.tf-modal-window--thread) > .tf-modal-title {
  text-align: center;
  width: 100%;
}

/* === UI polish wave 18 — registration fit, dock border, live events stage, share, AI close === */

/* Friends Online — single contour (no stacked ring + seam) */
.left-panel .friends-online-panel.mnm-side-dock-shell {
  border: 1px solid var(--border-soft) !important;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.7) !important;
}
.left-panel .friends-online-panel.mnm-side-dock-shell--left::after {
  display: none !important;
}

/* Registration — full right column, single-column fields, premium scroll */
.right-panel-wrapper {
  position: relative;
  min-height: 0;
  height: 100%;
}
.right-panel-wrapper > #authPanel.auth-panel {
  position: absolute;
  inset: 0;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  height: 100%;
  z-index: 40;
  display: none !important;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0 !important;
  padding: var(--space-12) !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
  overflow: hidden;
  border-left: none;
  border-radius: 0;
}
.right-panel-wrapper > #authPanel.auth-panel.auth-panel--open {
  display: flex !important;
}
.right-panel-wrapper > #authPanel.mnm-side-dock-shell--right {
  box-shadow:
    0 0 0 1px var(--ui-panel-shell-ring),
    0 14px 26px rgba(0, 0, 0, 0.7),
    inset 1px 0 12px var(--ui-panel-inset-shadow) !important;
}
.auth-panel .profile-header {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.profile-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.profile-settings-gear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 252, 138, 0.2);
  border-radius: 6px;
  background: linear-gradient(165deg, rgba(18, 32, 26, 0.72), rgba(6, 12, 10, 0.55));
  color: rgba(170, 245, 190, 0.88);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.25);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.profile-settings-gear i {
  opacity: 0.9;
}
.profile-settings-gear:hover,
.profile-settings-gear:focus-visible {
  color: rgba(200, 255, 215, 1);
  background: linear-gradient(165deg, rgba(22, 40, 30, 0.88), rgba(8, 16, 12, 0.7));
  border-color: rgba(125, 252, 138, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px rgba(125, 252, 138, 0.18);
  transform: rotate(-12deg);
}
.auth-panel--profile-edit .auth-mode-switch,
.auth-panel--profile-edit .auth-legal,
.auth-panel--profile-edit #authPasswordFieldsBlock {
  display: none !important;
}
.auth-panel--profile-edit #authUsername.is-readonly {
  opacity: 0.72;
  cursor: not-allowed;
}
body:not(.tomato-mode) .auth-panel {
  position: relative;
}
body:not(.tomato-mode) .auth-panel > .auth-panel-close.ui-close {
  position: absolute !important;
  top: var(--ui-chrome-corner-inset) !important;
  right: var(--ui-chrome-corner-inset) !important;
  transform: none !important;
  z-index: 3;
}
.auth-panel:not(.auth-panel--login) .profile-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  padding-bottom: 4px !important;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
.auth-panel:not(.auth-panel--login) .profile-body::-webkit-scrollbar {
  width: 6px;
}
.auth-panel:not(.auth-panel--login) .profile-body::-webkit-scrollbar-thumb {
  background: rgba(125, 252, 138, 0.35);
  border-radius: 99px;
}
.auth-panel:not(.auth-panel--login) .profile-body::-webkit-scrollbar-track {
  background: transparent;
}
.auth-panel:not(.auth-panel--login) #authRegisterBlock,
.auth-panel:not(.auth-panel--login) #authRegisterForm {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.auth-panel:not(.auth-panel--login) .profile-block {
  margin-bottom: 4px;
  padding: 8px 10px;
}
.auth-panel:not(.auth-panel--login) .profile-block--photos {
  flex: 0 0 auto;
  padding-bottom: 6px;
}
.auth-panel:not(.auth-panel--login) .auth-field {
  margin-top: 5px;
  gap: 3px;
}
.auth-panel:not(.auth-panel--login) .auth-field label {
  font-size: 0.62rem;
}
.auth-panel:not(.auth-panel--login) .auth-field input,
.auth-panel:not(.auth-panel--login) .auth-field select {
  padding: 5px 7px;
  font-size: 0.82rem;
}
.auth-panel:not(.auth-panel--login) .auth-note,
.auth-panel:not(.auth-panel--login) .auth-phone-hint {
  font-size: 0.65rem;
  line-height: 1.28;
}
.auth-panel:not(.auth-panel--login) .auth-photo-grid {
  min-height: 0;
  max-height: 132px;
  margin-top: 4px;
  align-content: start;
  flex: 0 0 auto;
}
.auth-panel:not(.auth-panel--login) .auth-photo-grid:has(.auth-photo-empty) {
  display: block;
  max-height: none;
}
.auth-panel:not(.auth-panel--login) .auth-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  max-height: 64px;
  height: auto;
  padding: 8px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(125, 252, 138, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: center;
}
.auth-panel:not(.auth-panel--login) .auth-photo-empty i {
  font-size: 1rem;
  opacity: 0.55;
  color: rgba(125, 252, 138, 0.75);
}
.auth-panel:not(.auth-panel--login) #authPhotoAddBtn {
  padding: 6px 10px;
  font-size: 0.78rem;
}
.auth-panel:not(.auth-panel--login) .auth-legal {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.68rem;
  line-height: 1.32;
}
.auth-panel:not(.auth-panel--login) .auth-actions-row {
  flex-shrink: 0;
  margin-top: 4px;
  padding-top: 2px;
}

/* Settings welcome pane */
.app-data-welcome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 4px 0;
}
.app-data-welcome .app-data-lead {
  margin-bottom: 0;
  text-align: center;
}
.app-data-welcome .app-data-roadmap {
  text-align: center;
  margin: 0;
}

/* Live Events — centered column like MY PAGE + optional ad rails */
.left-panel #liveEventsOverlay.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  box-sizing: border-box;
}
.left-panel #liveEventsOverlay .app-data-backdrop {
  background: rgba(2, 5, 4, 0.55);
}
.left-panel #liveEventsOverlay .app-data-content-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(var(--my-page-max-w, 1200px), 100%) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  height: 100%;
  align-items: stretch;
  box-sizing: border-box;
}
.left-panel #liveEventsOverlay .live-events-panel {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: min(92dvh, 900px);
  min-height: min(68dvh, 520px);
  border-radius: var(--radius-window, 12px);
  overflow: hidden;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.live-events-ad-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px dashed rgba(125, 252, 138, 0.38);
  background: rgba(4, 10, 8, 0.92);
  min-width: 0;
  align-self: stretch;
}
.live-events-ad-rail .mnm-ad-rail-stack {
  flex: 1;
  min-height: 0;
  display: flex;
}
.live-events-ad-rail .mnm-ad-slot-host {
  flex: 1;
  min-height: 120px;
}
body:not(.mnm-ads-preview-on) .live-events-ad-rail {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .left-panel #liveEventsOverlay .app-data-content-stage {
    grid-template-columns: 1fr;
    max-width: min(var(--my-page-max-w, 1200px), 100%);
    margin: 0 auto;
  }
  .live-events-ad-rail {
    display: none !important;
  }
}

/* Notebook share — darker backdrop + folder picker */
.left-panel #notebookShareOverlay .app-data-backdrop {
  background: rgba(2, 5, 4, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.left-panel #notebookShareOverlay .app-data-panel {
  background: rgba(6, 12, 10, 0.97);
}
.left-panel #notebookShareOverlay .app-data-header > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 150px);
  padding: 0 !important;
  text-align: center;
}
.notebook-share-pick {
  margin: 6px 0 10px;
}
.notebook-share-pick-hint {
  margin: 0 0 6px;
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.35;
}
.notebook-share-folder-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(125, 252, 138, 0.22);
  background: rgba(4, 10, 8, 0.65);
}
.notebook-share-folder-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-main);
  cursor: pointer;
}
.notebook-share-folder-count {
  font-size: 10px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.notebook-share-pick-empty {
  margin: 0;
  font-size: 10px;
  color: var(--text-dim);
}

/* Achievements + app-data headers — true axis center */
.left-panel #achievementsOverlay .app-data-header > span,
.left-panel #liveEventsOverlay .app-data-header > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 150px);
  padding: 0 !important;
  text-align: center;
}

/* === Wave 21 — chrome close: corner arc center + stable hover === */

body:not(.tomato-mode) .terminal-window,
body:not(.tomato-mode) .visit-choice-window,
body:not(.tomato-mode) .tf-modal-window,
body:not(.tomato-mode) .achievement-help-window,
body:not(.tomato-mode) .photo-album-frame,
body:not(.tomato-mode) .legal-info-window,
body:not(.tomato-mode) .guest-gate-panel,
body:not(.tomato-mode) .chat-image-lightbox,
body:not(.tomato-mode) .nodus-profile-window {
  --mnm-shell-radius: var(--radius-window, 8px);
}
body:not(.tomato-mode) .ai-planner-window,
body:not(.tomato-mode) .mp-newchat-window,
body:not(.tomato-mode) .match-window {
  --mnm-shell-radius: 18px;
}
body:not(.tomato-mode) .mnm-report-window,
body:not(.tomato-mode) .dev-hub-window,
body:not(.tomato-mode) .friend-loc-request-window,
body:not(.tomato-mode) .tf-media-viewer-window {
  --mnm-shell-radius: var(--radius-md, 4px);
}
body:not(.tomato-mode) .nodus-profile-window {
  --mnm-shell-radius: 2px;
}
body:not(.tomato-mode) .mnm-story-panel {
  --mnm-shell-radius: 14px;
}

body:not(.tomato-mode) .ui-close.ui-close--corner {
  position: absolute !important;
  left: auto !important;
  bottom: auto !important;
  top: var(--mnm-shell-radius, var(--radius-window, 8px)) !important;
  right: var(--mnm-shell-radius, var(--radius-window, 8px)) !important;
  transform: translate(50%, -50%) !important;
  margin: 0 !important;
  z-index: 4;
}

body:not(.tomato-mode) .ui-close.ui-close--corner:hover,
body:not(.tomato-mode) .ui-close.ui-close--corner:focus-visible,
body:not(.tomato-mode) .ui-close.ui-close--corner:active {
  transform: translate(50%, -50%) !important;
}

body:not(.tomato-mode) .terminal-window > .terminal-close.ui-close--corner:hover,
body:not(.tomato-mode) .terminal-window > .terminal-close.ui-close--corner:focus-visible {
  background-color: var(--ui-chrome-close-hover) !important;
  box-shadow: var(--ui-chrome-close-glow) !important;
}

body:not(.tomato-mode) .rating-action-btn:hover,
body:not(.tomato-mode) .rating-action-btn:focus-visible {
  transform: none;
}

/* === Wave 23 — premium inset chrome (symmetric 6px, chrome row) === */

body:not(.tomato-mode) .ui-close.ui-close--inset {
  position: absolute !important;
  left: auto !important;
  bottom: auto !important;
  top: var(--ui-chrome-corner-inset) !important;
  right: var(--ui-chrome-corner-inset) !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 4;
}

body:not(.tomato-mode) .ui-window-chrome--inset {
  position: absolute;
  top: var(--ui-chrome-corner-inset);
  right: var(--ui-chrome-corner-inset);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--ui-chrome-gap);
  height: var(--ui-chrome-size);
}

body:not(.tomato-mode) .ui-window-chrome--inset > .ui-close,
body:not(.tomato-mode) .ui-window-chrome--inset > .ui-close.ui-close--inset,
body:not(.tomato-mode) .ui-window-chrome--inset > .ui-chrome-peer,
body:not(.tomato-mode) .ui-window-chrome--inset > .photo-album-fs {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  flex-shrink: 0;
}

/* Small-radius shells: symmetric inset instead of arc-center */
body:not(.tomato-mode) .mnm-report-window > .ui-close--corner,
body:not(.tomato-mode) .dev-hub-window > .ui-close--corner,
body:not(.tomato-mode) .friend-loc-request-window > .ui-close--corner,
body:not(.tomato-mode) .tf-media-viewer-window > .ui-close--corner,
body:not(.tomato-mode) .nodus-profile-window > .ui-close--corner {
  top: var(--ui-chrome-corner-inset) !important;
  right: var(--ui-chrome-corner-inset) !important;
  transform: none !important;
}

body:not(.tomato-mode) .mnm-report-window > .ui-close--corner:hover,
body:not(.tomato-mode) .mnm-report-window > .ui-close--corner:focus-visible,
body:not(.tomato-mode) .mnm-report-window > .ui-close--corner:active,
body:not(.tomato-mode) .dev-hub-window > .ui-close--corner:hover,
body:not(.tomato-mode) .dev-hub-window > .ui-close--corner:focus-visible,
body:not(.tomato-mode) .dev-hub-window > .ui-close--corner:active,
body:not(.tomato-mode) .friend-loc-request-window > .ui-close--corner:hover,
body:not(.tomato-mode) .friend-loc-request-window > .ui-close--corner:focus-visible,
body:not(.tomato-mode) .friend-loc-request-window > .ui-close--corner:active,
body:not(.tomato-mode) .tf-media-viewer-window > .ui-close--corner:hover,
body:not(.tomato-mode) .tf-media-viewer-window > .ui-close--corner:focus-visible,
body:not(.tomato-mode) .tf-media-viewer-window > .ui-close--corner:active,
body:not(.tomato-mode) .nodus-profile-window > .ui-close--corner:hover,
body:not(.tomato-mode) .nodus-profile-window > .ui-close--corner:focus-visible,
body:not(.tomato-mode) .nodus-profile-window > .ui-close--corner:active {
  transform: none !important;
  box-shadow: none !important;
}

body:not(.tomato-mode) .map-mini-chat {
  position: absolute !important;
}

body:not(.tomato-mode) .map-mini-chat-header {
  padding-right: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 8px);
}

body:not(.tomato-mode) .friends-online-panel .friends-online-header-actions,
body:not(.tomato-mode) .notifications-panel .notifications-header-actions {
  top: var(--ui-chrome-corner-inset) !important;
  right: var(--ui-chrome-corner-inset) !important;
}

/* === Wave 22 — chat wrap: no mid-word breaks (all chat surfaces) === */

.map-mini-chat-msgs {
  overflow-x: hidden !important;
}

body:not(.tomato-mode) .map-mini-chat-msgs .map-mini-msg-text,
body:not(.tomato-mode) .map-mini-chat-msgs .map-mini-msg-loc,
body:not(.tomato-mode) .map-mini-msg-text,
body:not(.tomato-mode) .map-mini-msg-loc,
body:not(.tomato-mode) .msg-text,
body:not(.tomato-mode) .my-page-shell .msg-text,
body:not(.tomato-mode) .my-page-shell .message-chat .msg-text,
body:not(.tomato-mode) #mpGroupChatLog .msg-text,
body:not(.tomato-mode) .ai-planner-log,
body:not(.tomato-mode) .chat-dialog-msgs .msg-text,
body:not(.tomato-mode) .tf-thread-comment-text {
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: pre-wrap;
  hyphens: none;
}

body:not(.tomato-mode) .map-mini-chat-msgs .map-mini-msg,
body:not(.tomato-mode) .map-mini-chat-msgs .map-mini-msg-stack--out {
  flex-shrink: 0 !important;
  min-width: min-content !important;
  max-width: min(92%, 38ch) !important;
  width: fit-content;
}

body:not(.tomato-mode) .map-mini-chat-msgs .msg-row > .map-mini-msg,
body:not(.tomato-mode) .map-mini-chat-msgs .msg-row > .map-mini-msg-stack--out {
  flex-shrink: 0 !important;
}

.map-mini-msg--out .map-mini-msg-text {
  text-align: left;
}

/* Isolate chats from global .map-panel { overflow-wrap: anywhere } */
body:not(.tomato-mode) .map-mini-chat,
body:not(.tomato-mode) .map-mini-chat-msgs,
body:not(.tomato-mode) .message-chat,
body:not(.tomato-mode) .chat-dialog-msgs,
body:not(.tomato-mode) .mp-group-chat,
body:not(.tomato-mode) #mpGroupChatLog {
  overflow-wrap: normal;
}

/* === Wave 20 — collapsed dock peek === */

.map-mini-chat-report {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.82;
  color: rgba(200, 220, 210, 0.9);
}
.map-mini-chat-report:hover {
  opacity: 1;
  color: rgba(255, 170, 150, 0.95);
}
.tf-comment-report-btn {
  border: none;
  background: transparent;
  color: rgba(255, 170, 150, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 4px;
}
.tf-comment-report-btn:hover {
  color: rgba(255, 190, 170, 0.98);
}

/* Collapsed CHATS dock — taller peek, time in corner */
:root {
  --map-chat-collapsed-height: 52px;
}

.map-chat-dock.map-chat-dock--collapsed .map-chat-dock-list {
  max-height: 88px;
  overflow: hidden;
  padding-bottom: 6px;
}

.map-chat-dock.map-chat-dock--collapsed .map-chat-dock-row--nodus {
  min-height: 66px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.map-chat-dock-meta {
  position: relative;
  padding-right: 34px;
}

.map-chat-dock-time {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.map-chat-dock.map-chat-dock--collapsed .map-chat-dock-snippet {
  -webkit-line-clamp: 2;
  line-height: 1.32;
  max-height: 2.65em;
  margin-top: 1px;
}

@media (max-height: 820px) {
  .auth-panel:not(.auth-panel--login) .auth-field {
    margin-top: 4px;
  }
  .auth-panel:not(.auth-panel--login) .profile-block {
    padding: 6px 8px;
  }
}

/* === Wave 23b — dock shells: shell-anchored 6px inset close === */

body:not(.tomato-mode) .bucket-list-panel > .ui-close--inset,
body:not(.tomato-mode) .notebook-panel > .ui-close--inset,
body:not(.tomato-mode) .app-data-panel > .app-data-close.ui-close--inset,
body:not(.tomato-mode) .travel-routes-panel > .travel-routes-close.ui-close--inset {
  position: absolute !important;
  left: auto !important;
  bottom: auto !important;
  top: var(--ui-chrome-corner-inset) !important;
  right: var(--ui-chrome-corner-inset) !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 5;
}

body:not(.tomato-mode) .left-panel .app-data-panel > .app-data-close.ui-close--inset,
body:not(.tomato-mode) .left-panel .travel-routes-panel > .travel-routes-close.ui-close--inset {
  right: var(--ui-chrome-corner-inset) !important;
}

body:not(.tomato-mode) .bucket-list-panel {
  padding: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 8px) var(--space-14) var(--space-14) var(--space-14) !important;
  box-sizing: border-box;
}

body:not(.tomato-mode) .notebook-panel {
  padding: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 8px) var(--space-6) var(--space-6) var(--space-6) !important;
  box-sizing: border-box;
}

body:not(.tomato-mode) .notebook-panel > .notebook-chrome-share {
  position: absolute;
  top: var(--ui-chrome-corner-inset);
  left: var(--ui-chrome-corner-inset);
  z-index: 5;
}

body:not(.tomato-mode) .notebook-header-row {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 0 !important;
}

body:not(.tomato-mode) .left-panel .app-data-panel:not(.app-data-panel--split-shell) {
  padding: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 8px) var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
}

body:not(.tomato-mode) .left-panel .travel-routes-panel {
  padding: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 8px) var(--mnm-window-gutter) var(--mnm-window-gutter) !important;
}

/* === Roadmap wave: achievement pulse, badges, moderation UI === */

@keyframes ach-text-glow-pulse {
  0%,
  100% {
    text-shadow: 0 0 8px rgba(125, 252, 138, 0.35);
  }
  50% {
    text-shadow: 0 0 14px rgba(125, 252, 138, 0.62);
  }
}

body:not(.tomato-mode) .left-panel .info-pair-card--achievement .achievement-text {
  animation: ach-text-glow-pulse 2.4s ease-in-out infinite;
}

.achievement-badge-mini {
  display: none !important;
}

.info-card-achievement {
  position: relative;
}

.ach-badge-grid-wrap {
  margin-bottom: 14px;
}

.ach-badge-grid-title {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(125, 252, 138, 0.85);
}

.ach-badge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ach-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid rgba(125, 252, 138, 0.22);
  background: rgba(6, 14, 10, 0.55);
}

.ach-badge--intl {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.ach-badge-art {
  width: var(--ach-badge-size, 64px);
  height: var(--ach-badge-size, 64px);
}

.ach-badge-art .ach-badge-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ach-badge-img {
  filter: url(#achBadgeCutBlack);
}

.ach-badge--intl .ach-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.ach-badge-art--shine {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.ach-badge-art--shine::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 248, 220, 0.45) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  animation: ach-badge-sheen 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ach-badge-sheen {
  0%,
  72%,
  100% {
    transform: translateX(-130%);
    opacity: 0;
  }
  78% {
    opacity: 0.85;
  }
  88% {
    transform: translateX(130%);
    opacity: 0;
  }
}

.ach-badge--unlocked.ach-badge--intl {
  animation: ach-badge-glow 4.8s ease-in-out infinite;
}

.map-badge-showcase .ach-badge--intl {
  animation: none;
  filter: none;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Map awards chrome strip — bar + sticker only */
.map-badge-showcase .ach-badge,
.map-badge-showcase .ach-badge-art,
.map-badge-showcase .ach-badge-art--shine,
.map-badge-showcase .ach-badge-img {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

@keyframes ach-badge-glow {
  0%,
  86%,
  100% {
    filter: brightness(1);
  }
  92% {
    filter: brightness(1.14);
  }
}

.fr-digital-badge .ach-badge-art,
.fr-digital-badge .ach-badge-img {
  width: 100%;
  height: 100%;
}

.fr-digital-badge .ach-badge-img {
  object-fit: contain;
}

.fr-digital-badge .ach-badge-art--shine::after {
  animation-duration: 5.2s;
}

.ach-badge-label {
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 240, 210, 0.9);
  text-align: center;
  line-height: 1.15;
}

.ach-badge--locked {
  filter: grayscale(0.85) brightness(0.72);
  opacity: 0.72;
}

.ach-badge--new {
  box-shadow: 0 0 0 1px rgba(125, 252, 138, 0.45), 0 0 16px rgba(125, 252, 138, 0.28);
  animation: ach-text-glow-pulse 1.8s ease-in-out infinite;
}

.ach-badge-lock {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  opacity: 0.9;
}

.celebration-badge {
  margin: 0 auto 8px;
  width: 72px;
  height: 72px;
}

.celebration-badge .ach-badge {
  border: none;
  background: transparent;
  padding: 0;
}

.celebration-badge .ach-badge-label {
  display: none;
}

.dev-hub-mod-priority {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.9);
}

body:not(.tomato-mode) .fr-hero-badge-ring::before {
  opacity: 0.92;
}

/* === Wave 24 — Help & guided tour premium chrome === */

body:not(.tomato-mode) .help-center-close.ui-close--inset {
  z-index: 5;
}

body:not(.tomato-mode) .mnm-guided-tour__card {
  border-radius: 18px;
  padding: 20px 20px 16px;
  border: none;
  background:
    linear-gradient(168deg, rgba(12, 32, 24, 0.97) 0%, rgba(5, 14, 10, 0.99) 52%, rgba(3, 9, 7, 1) 100%);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(125, 255, 200, 0.04);
}

body:not(.tomato-mode) .mnm-guided-tour__progress {
  color: rgba(125, 255, 200, 0.72);
  letter-spacing: 0.14em;
}

body:not(.tomato-mode) .mnm-guided-tour__title {
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(236, 255, 246, 0.98);
}

body:not(.tomato-mode) .mnm-guided-tour__body {
  color: rgba(214, 242, 226, 0.9);
  line-height: 1.58;
}

body:not(.tomato-mode) .mnm-guided-tour__neon {
  filter:
    drop-shadow(0 0 5px rgba(125, 252, 138, 0.35))
    drop-shadow(0 0 10px rgba(58, 200, 120, 0.22));
}

body:not(.tomato-mode) .mnm-guided-tour__neon-dash-rect {
  stroke: rgba(125, 252, 138, 0.92);
}

body:not(.tomato-mode) .mnm-guided-tour__picker-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 14px) 22px 20px;
  border-radius: var(--radius-window, 8px);
  border: 1px solid rgba(125, 252, 138, 0.42);
  background: linear-gradient(165deg, rgba(8, 18, 14, 0.98), rgba(4, 10, 8, 0.99));
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(58, 200, 120, 0.12);
}

body:not(.tomato-mode) .mnm-guided-tour__picker-card > .ui-close--inset {
  z-index: 5;
}

body:not(.tomato-mode) .mnm-guided-tour__picker-kicker {
  color: rgba(125, 252, 138, 0.72);
}

body:not(.tomato-mode) .mnm-guided-tour__picker-btn {
  border-radius: var(--radius-window, 8px);
  border-color: rgba(125, 252, 138, 0.28);
}

body:not(.tomato-mode) .mnm-guided-tour__picker-btn--featured {
  border-color: rgba(125, 252, 138, 0.55);
  background: rgba(125, 252, 138, 0.08);
}

/* Wave 27 — auth password toggle + parental consent modal */
.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.auth-password-wrap input {
  flex: 1;
  min-width: 0;
  padding-right: 2.2rem !important;
}
.auth-password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(175, 215, 190, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-field[hidden],
.auth-legal-item[hidden],
#authParentHandleWrap[hidden],
#authParentConsentWrap[hidden] {
  display: none !important;
}

.auth-field--error,
.auth-birth-row.auth-field--error {
  border-radius: 8px;
}
.auth-field--error label {
  color: rgba(255, 100, 120, 0.92) !important;
}
.auth-field--error input,
.auth-field--error select,
.auth-field--error textarea {
  border-color: var(--red-neon, #ff4060) !important;
  background: rgba(255, 64, 96, 0.08) !important;
  box-shadow: 0 0 0 1px rgba(255, 64, 96, 0.35);
}
.auth-legal-item.auth-field--error {
  border: 1px solid rgba(255, 64, 96, 0.45);
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(255, 64, 96, 0.06);
}
#authSubmitBtn.is-busy {
  opacity: 0.72;
  pointer-events: none;
}
.parent-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 12070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.parent-consent-overlay[hidden] {
  display: none !important;
}
.parent-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 4, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.parent-consent-card {
  position: relative;
  width: min(420px, 92vw);
  padding: 20px 18px 16px;
  border-radius: var(--radius-window, 8px);
  background: linear-gradient(165deg, rgba(12, 24, 18, 0.96), rgba(6, 12, 10, 0.98));
  border: 1px solid rgba(255, 90, 111, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  color: rgba(235, 245, 238, 0.96);
}
.parent-consent-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.parent-consent-lead {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.parent-consent-meta {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: rgba(175, 215, 190, 0.8);
}
.parent-consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* === Wave 25 — Premium face: achievements + side panels === */

/* Achievements: title higher, brighter badge crown */
body:not(.tomato-mode) .left-panel #achievementsOverlay .achievements-panel {
  padding-top: calc(var(--ui-chrome-corner-inset) + var(--ui-chrome-size) + 2px) !important;
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(125, 252, 138, 0.14), transparent 52%),
    radial-gradient(80% 50% at 100% 0%, rgba(88, 182, 255, 0.08), transparent 45%),
    var(--my-page-shell-bg, var(--ui-glass-bg));
  border: none !important;
  box-shadow: none !important;
}

body:not(.tomato-mode) .achievements-panel .app-data-header {
  margin-top: -2px;
  margin-bottom: 6px;
  justify-content: center;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(170, 255, 190, 0.98);
  text-shadow:
    0 0 18px rgba(125, 252, 138, 0.45),
    0 0 2px rgba(125, 252, 138, 0.35);
}

.achievements-panel-badges {
  padding: 8px 12px 12px !important;
  border-bottom: 1px solid rgba(125, 252, 138, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(14, 32, 22, 0.72), rgba(6, 14, 10, 0.28)),
    radial-gradient(90% 80% at 50% 0%, rgba(125, 252, 138, 0.12), transparent 70%) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.achievements-badges-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ach-badge-grid-wrap {
  margin-bottom: 0;
  padding: 10px 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(125, 252, 138, 0.2);
  background:
    linear-gradient(155deg, rgba(10, 24, 16, 0.88), rgba(4, 10, 8, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

.ach-badge-grid-title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(170, 255, 195, 0.95);
  text-shadow: 0 0 12px rgba(125, 252, 138, 0.35);
}

.ach-badge-grid {
  gap: 10px;
}

/* Unified badge frame — intl + domestic share the same chrome */
.ach-badge {
  border-radius: 14px !important;
  border: 1px solid rgba(125, 252, 138, 0.2) !important;
  background:
    linear-gradient(165deg, rgba(12, 26, 18, 0.92), rgba(5, 12, 9, 0.78)) !important;
  padding: 8px 4px 6px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease,
    filter 0.2s ease;
}

.ach-badge--intl {
  /* keep same frame as domestic — no bare square */
  padding: 8px 4px 6px !important;
  border: 1px solid rgba(125, 252, 138, 0.2) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(165deg, rgba(12, 26, 18, 0.92), rgba(5, 12, 9, 0.78)) !important;
}

.ach-badge-art {
  border-radius: 12px;
}

.ach-badge-art--shine {
  border-radius: 12px;
}

.ach-badge-label {
  font-size: 7.5px;
  letter-spacing: 0.05em;
  color: rgba(210, 245, 220, 0.92);
}

.ach-badge--unlocked:not(.ach-badge--current) {
  border-color: rgba(125, 252, 138, 0.32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 14px rgba(125, 252, 138, 0.12);
}

.ach-badge--locked {
  filter: grayscale(0.88) brightness(0.68);
  opacity: 0.68;
}

/* Same premium ring for current intl + domestic */
.ach-badge--current,
.ach-badge--new {
  border-color: rgba(125, 252, 138, 0.78) !important;
  background:
    linear-gradient(165deg, rgba(18, 42, 28, 0.98), rgba(8, 18, 12, 0.92)) !important;
  box-shadow:
    0 0 0 1px rgba(125, 252, 138, 0.35),
    0 0 22px rgba(125, 252, 138, 0.32),
    0 0 40px rgba(58, 200, 120, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  animation: ach-badge-current-pulse 2.4s ease-in-out infinite;
  transform: translateY(-1px);
  z-index: 1;
}

.ach-badge--current .ach-badge-label,
.ach-badge--new .ach-badge-label {
  color: rgba(190, 255, 210, 1);
  text-shadow: 0 0 10px rgba(125, 252, 138, 0.55);
  font-weight: 700;
}

@keyframes ach-badge-current-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(125, 252, 138, 0.32),
      0 0 16px rgba(125, 252, 138, 0.24),
      0 0 28px rgba(58, 200, 120, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(125, 252, 138, 0.55),
      0 0 26px rgba(125, 252, 138, 0.42),
      0 0 44px rgba(58, 200, 120, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

.ach-badge--unlocked.ach-badge--intl {
  animation: none;
}

.ach-badge--current.ach-badge--intl,
.ach-badge--new.ach-badge--intl {
  animation: ach-badge-current-pulse 2.4s ease-in-out infinite;
}

/* Footer CTAs — slightly richer */
.achievements-rank-cta {
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

/* Left panel achievement blink restored */
@keyframes ach-text-glow-pulse {
  0%,
  100% {
    color: rgba(170, 255, 190, 0.95);
    text-shadow: 0 0 6px rgba(125, 252, 138, 0.28);
  }
  50% {
    color: rgba(210, 255, 220, 1);
    text-shadow:
      0 0 12px rgba(125, 252, 138, 0.72),
      0 0 22px rgba(125, 252, 138, 0.35);
  }
}

body:not(.tomato-mode) .left-panel .info-pair-card--achievement .achievement-text,
body:not(.tomato-mode) .left-panel .info-pair-card--achievement #achievementText,
body:not(.tomato-mode) #travelAchievementRow .travel-achievement-strip {
  animation: ach-text-glow-pulse 2.2s ease-in-out infinite !important;
}

body:not(.tomato-mode) .left-panel .info-pair-card--achievement {
  border-color: rgba(125, 252, 138, 0.38);
  background:
    linear-gradient(165deg, rgba(10, 22, 16, 0.55), rgba(4, 10, 8, 0.35));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 16px rgba(125, 252, 138, 0.08);
}

/* Right profile header — one left edge, rectangular chrome */
#rightPanel .profile-header-main {
  align-items: flex-start;
  gap: 12px;
}

#rightPanel .profile-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 2px 0 0;
}

#rightPanel .profile-label-row,
#rightPanel .profile-sub,
#rightPanel .profile-auth-actions {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#rightPanel .profile-label {
  display: block;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: left;
}

#rightPanel .profile-sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#rightPanel #userStatus,
#rightPanel #userStatus.accent-neon {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  letter-spacing: 0.01em;
}

#rightPanel .profile-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: stretch;
}

/* Match left-menu #addPlaceBtn / .btn-main primary force */
#rightPanel .profile-auth-actions .btn-auth--premium,
#rightPanel #authBtn.btn-auth--premium,
#rightPanel #authLogoutBtn.btn-auth--premium,
#rightPanel #btnShowMyPage.btn-auth--premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 24px;
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: var(--radius-sm, 6px) !important;
  box-sizing: border-box;
  border: 1px solid var(--ui-primary-border, rgba(90, 180, 120, 0.8));
  background: var(--ui-primary-bg, linear-gradient(135deg, #0f2215, #19412b));
  color: var(--ui-primary-text, #7dfc8a);
  box-shadow: var(--ui-primary-shadow), var(--ui-glow-primary);
  text-shadow: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.16s ease;
}

#rightPanel #authBtn.btn-auth--premium,
#rightPanel #btnShowMyPage.btn-auth--premium {
  border-color: var(--ui-primary-border, rgba(90, 180, 120, 0.8));
  color: var(--ui-primary-text, #7dfc8a);
}

#rightPanel #authLogoutBtn.btn-auth--premium {
  border-color: rgba(255, 160, 160, 0.35);
  color: rgba(255, 190, 190, 0.95);
  background: linear-gradient(135deg, #221015, #41191b);
  box-shadow: 0 0 8px rgba(255, 64, 96, 0.22), 0 10px 18px rgba(0, 0, 0, 0.55);
}

#rightPanel .profile-auth-actions .btn-auth--premium:hover,
#rightPanel #authBtn.btn-auth--premium:hover,
#rightPanel #btnShowMyPage.btn-auth--premium:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 252, 138, 0.85);
  box-shadow: var(--ui-primary-shadow), var(--ui-glow-primary);
  filter: brightness(1.06);
}

#rightPanel #authLogoutBtn.btn-auth--premium:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 64, 96, 0.55);
  filter: brightness(1.06);
}

/* Side panels — soft gloss + depth */
body:not(.tomato-mode) .left-panel,
body:not(.tomato-mode) .right-panel-wrapper > #rightPanel.right-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 18%),
    radial-gradient(circle at 0 0, var(--ui-panel-grad-a) 0, var(--ui-panel-grad-b) 55%),
    var(--bg-panel);
}

body:not(.tomato-mode) .left-panel::before,
body:not(.tomato-mode) .right-panel-wrapper > #rightPanel.right-panel::before {
  opacity: calc(var(--ui-panel-texture-opacity) + 0.04);
}

/* Side-panel card fills: unified in premium chrome block at file end */

body:not(.tomato-mode) #rightPanel .profile-nav-item {
  border-radius: 8px;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    color 0.16s ease;
}

body:not(.tomato-mode) #rightPanel .profile-nav-item:hover {
  background: rgba(125, 252, 138, 0.08);
  box-shadow: inset 0 0 0 1px rgba(125, 252, 138, 0.18);
  transform: translateX(2px);
}

body:not(.tomato-mode) #rightPanel .profile-header {
  border-bottom: 1px solid rgba(125, 252, 138, 0.12);
  padding-bottom: 10px;
  margin-bottom: 2px;
  background: transparent;
}

body:not(.tomato-mode) #rightPanel .avatar-circle {
  border: 1.5px solid var(--ui-frame-border, rgba(118, 228, 140, 0.72)) !important;
  box-shadow:
    0 0 0 1px rgba(118, 228, 140, 0.28),
    0 0 10px rgba(118, 228, 140, 0.45),
    0 0 20px rgba(118, 228, 140, 0.22) !important;
}

body:not(.tomato-mode) .left-panel .logo-block {
  text-shadow: 0 0 18px rgba(125, 252, 138, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .ach-badge--current,
  .ach-badge--new,
  body:not(.tomato-mode) .left-panel .info-pair-card--achievement .achievement-text,
  body:not(.tomato-mode) .left-panel .info-pair-card--achievement #achievementText,
  body:not(.tomato-mode) #travelAchievementRow .travel-achievement-strip {
    animation: none !important;
  }
  #rightPanel .profile-auth-actions .btn-auth--premium:hover,
  body:not(.tomato-mode) #rightPanel .profile-nav-item:hover {
    transform: none;
  }
}

html.mnm-reduce-motion .ach-badge--current,
html.mnm-reduce-motion .ach-badge--new,
html.mnm-reduce-motion body:not(.tomato-mode) .left-panel .info-pair-card--achievement .achievement-text,
html.mnm-reduce-motion body:not(.tomato-mode) .left-panel .info-pair-card--achievement #achievementText,
html.mnm-reduce-motion body:not(.tomato-mode) #travelAchievementRow .travel-achievement-strip {
  animation: none !important;
}

/* =============================================================================
   PREMIUM SIDE CHROME — last wins (loads after styles.css)
   Airy chaotic node-links + neon shell around L/R menus
   ============================================================================= */

/* Neon perimeter around L/R menus — thinner, less acid; inset glow (overflow:hidden safe) */
body:not(.tomato-mode) .left-panel,
body:not(.tomato-mode) .right-panel-wrapper > #rightPanel.right-panel {
  border: 1.5px solid var(--ui-frame-border, rgba(118, 228, 140, 0.72)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(118, 228, 140, 0.14),
    inset 0 0 14px rgba(118, 228, 140, 0.05),
    0 14px 26px rgba(0, 0, 0, 0.65) !important;
}

body:not(.tomato-mode) .left-panel::after,
body:not(.tomato-mode) .right-panel-wrapper > #rightPanel.right-panel::after {
  display: none !important;
}

/* Travel Routes: flush to left-panel neon chrome (no double edge / offset strip) */
body:not(.tomato-mode) .left-panel .travel-routes-overlay {
  inset: 0 !important;
  border: none !important;
  outline: none !important;
  border-radius: 0 !important;
}

body:not(.tomato-mode) .left-panel .travel-routes-panel,
body:not(.tomato-mode) .left-panel .travel-routes-backdrop {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body:not(.tomato-mode) .left-panel.mnm-chrome-substrate::before,
body:not(.tomato-mode) #rightPanel.right-panel.mnm-chrome-substrate::before,
body:not(.tomato-mode) .right-panel-wrapper > #rightPanel.right-panel.mnm-chrome-substrate::before {
  opacity: 0.55 !important;
  mix-blend-mode: normal;
  background-color: transparent;
  background-image: var(--mnm-premium-hatch) !important;
  background-size: 240px 280px !important;
  background-repeat: repeat !important;
}

body:not(.tomato-mode) .left-panel .info-card,
body:not(.tomato-mode) .left-panel .places-panel,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base,
body:not(.tomato-mode) #rightPanel .profile-block.card-base,
body:not(.tomato-mode) #rightPanel #quickActions.card-base,
body:not(.tomato-mode) #rightPanel .travel-stats-block.card-base {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--mnm-premium-card-border, rgba(125, 252, 138, 0.28)) !important;
  background: var(--mnm-premium-card-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--mnm-premium-card-shadow) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body:not(.tomato-mode) .left-panel .info-card::before,
body:not(.tomato-mode) .left-panel .places-panel::before,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base::before,
body:not(.tomato-mode) #rightPanel .profile-block.card-base::before,
body:not(.tomato-mode) #rightPanel #quickActions.card-base::before,
body:not(.tomato-mode) #rightPanel .travel-stats-block.card-base::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  background-image: var(--mnm-premium-hatch) !important;
  background-size: 200px 236px !important;
  background-repeat: repeat !important;
  opacity: 0.48 !important;
}

body:not(.tomato-mode) .left-panel .info-card > *,
body:not(.tomato-mode) .left-panel .places-panel > *,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base > *,
body:not(.tomato-mode) #rightPanel .profile-block.card-base > *,
body:not(.tomato-mode) #rightPanel #quickActions.card-base > *,
body:not(.tomato-mode) #rightPanel .travel-stats-block.card-base > * {
  position: relative;
  z-index: 1;
}

body:not(.tomato-mode) .left-panel .info-card:hover,
body:not(.tomato-mode) .left-panel .places-panel:hover,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base.hover-float:hover,
body:not(.tomato-mode) #rightPanel .profile-block.card-base.hover-float:hover {
  border-color: rgba(125, 252, 138, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(125, 252, 138, 0.1),
    0 0 18px rgba(125, 252, 138, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

/* Quick-action cells: dark glass + keep side-line neon on hover */
body:not(.tomato-mode) #rightPanel .quick-action-btn {
  background: rgba(4, 10, 8, 0.42) !important;
  border-color: rgba(125, 252, 138, 0.2) !important;
  box-shadow: inset 0 0 0 1px rgba(125, 252, 138, 0.04);
}

body:not(.tomato-mode) #rightPanel .quick-action-btn:hover,
body:not(.tomato-mode) #rightPanel .quick-action-btn.active {
  background: rgba(125, 252, 138, 0.1) !important;
  border-color: rgba(125, 252, 138, 0.42) !important;
  box-shadow:
    inset 3px 0 0 rgba(125, 252, 138, 0.9),
    inset -3px 0 0 rgba(125, 252, 138, 0.9) !important;
}

/* Center section window titles (right + left labels) */
body:not(.tomato-mode) #rightPanel .profile-nav-title,
body:not(.tomato-mode) #rightPanel .profile-caption {
  display: block;
  width: 100%;
  text-align: center;
  font-size: var(--font-sm, 10px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-olive, #6fa16a);
  text-shadow: 0 0 12px rgba(125, 252, 138, 0.12);
}

body:not(.tomato-mode) .left-panel .info-label {
  text-align: center;
  font-size: var(--font-sm, 10px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

body:not(.tomato-mode) .left-panel .places-panel .node-log-title,
body:not(.tomato-mode) .left-panel .places-panel .panel-header-main {
  text-align: center;
  width: 100%;
}

html[data-app-lang="ru"] body:not(.tomato-mode) #rightPanel .profile-nav-title,
html[data-app-lang="ru"] body:not(.tomato-mode) #rightPanel .profile-caption,
html[data-app-lang="ru"] body:not(.tomato-mode) .left-panel .info-label {
  letter-spacing: 0.04em;
}

/* =============================================================================
   PREMIUM FINAL PASS — unified hover lift + vapor mist + hero header
   ============================================================================= */

/* Avatar ring — same RGB tempo as .logo-cycle / mnm-header-contour-pulse (6s) */
@keyframes mnm-avatar-logo-cycle {
  0%,
  20% {
    border-color: rgba(58, 166, 255, 0.75) !important;
    box-shadow:
      0 0 0 1px rgba(58, 166, 255, 0.35),
      0 0 12px rgba(58, 166, 255, 0.38),
      0 0 22px rgba(58, 166, 255, 0.16);
  }
  33%,
  53% {
    border-color: rgba(125, 252, 138, 0.75) !important;
    box-shadow:
      0 0 0 1px rgba(125, 252, 138, 0.35),
      0 0 12px rgba(125, 252, 138, 0.38),
      0 0 22px rgba(125, 252, 138, 0.14);
  }
  66%,
  86% {
    border-color: rgba(255, 64, 96, 0.75) !important;
    box-shadow:
      0 0 0 1px rgba(255, 64, 96, 0.35),
      0 0 12px rgba(255, 64, 96, 0.36),
      0 0 22px rgba(255, 64, 96, 0.14);
  }
  100% {
    border-color: rgba(58, 166, 255, 0.75) !important;
    box-shadow:
      0 0 0 1px rgba(58, 166, 255, 0.35),
      0 0 12px rgba(58, 166, 255, 0.38),
      0 0 22px rgba(58, 166, 255, 0.16);
  }
}

/* Same tempo + palette as left logo (.logo-cycle / logo-color-cycle 6s) */
@keyframes mnm-header-contour-pulse {
  0%,
  20% {
    border-color: rgba(58, 166, 255, 0.62);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 8px 20px rgba(0, 0, 0, 0.22),
      0 0 14px rgba(58, 166, 255, 0.42),
      0 0 26px rgba(58, 166, 255, 0.18);
  }
  33%,
  53% {
    border-color: rgba(125, 252, 138, 0.62);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 8px 20px rgba(0, 0, 0, 0.22),
      0 0 14px rgba(125, 252, 138, 0.42),
      0 0 26px rgba(125, 252, 138, 0.16);
  }
  66%,
  86% {
    border-color: rgba(255, 64, 96, 0.62);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 8px 20px rgba(0, 0, 0, 0.22),
      0 0 14px rgba(255, 64, 96, 0.4),
      0 0 26px rgba(255, 64, 96, 0.16);
  }
  100% {
    border-color: rgba(58, 166, 255, 0.62);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 8px 20px rgba(0, 0, 0, 0.22),
      0 0 14px rgba(58, 166, 255, 0.42),
      0 0 26px rgba(58, 166, 255, 0.18);
  }
}

/* Hero profile header — glass plate; contour cycles with left logo title */
body:not(.tomato-mode) #rightPanel > .profile-header--premium {
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin: 0;
  padding: 10px 10px 12px !important;
  border-radius: 10px;
  border: 1px solid rgba(58, 166, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(12, 24, 18, 0.55), rgba(4, 10, 8, 0.42)),
    radial-gradient(ellipse 90% 80% at 12% 20%, rgba(125, 252, 138, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 80%, rgba(143, 211, 255, 0.07), transparent 50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 0 14px rgba(58, 166, 255, 0.42),
    0 0 26px rgba(58, 166, 255, 0.18);
  animation: mnm-header-contour-pulse 6s infinite;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.4;
  overflow: hidden;
  background-image: var(--mnm-premium-hatch);
  background-size: 220px 260px;
  background-repeat: repeat;
}

/*
  Classic separator hangs under the header frame (not inside .profile-middle).
  Avoids flex gap stacking that opened a large slit above Social Network.
  Header → line = 6px; line → Social = 5px (same as left ACHIEVEMENT cards).
*/
body:not(.tomato-mode) #rightPanel > .profile-header--premium::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% + 6px);
  height: 1px;
  pointer-events: none;
  z-index: 2;
  animation: none !important;
  background: linear-gradient(
    90deg,
    rgba(58, 166, 255, 0),
    rgba(58, 166, 255, 0.34),
    rgba(125, 252, 138, 0.26),
    rgba(58, 166, 255, 0.34),
    rgba(58, 166, 255, 0)
  );
  box-shadow: 0 0 10px rgba(58, 166, 255, 0.12);
}

/* Old middle-line slot — disabled (was adding flex gap + margin) */
body:not(.tomato-mode) #rightPanel > .profile-middle::before {
  content: none !important;
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

/* Equal rhythm between all right-panel windows + footer */
body:not(.tomato-mode) #rightPanel.right-panel {
  gap: var(--rp-section-gap, 10px) !important;
}

/* 6px + 1px line + 5px = 12px from header bottom → Social Network */
body:not(.tomato-mode) #rightPanel > .profile-middle {
  margin-top: calc(12px - var(--rp-section-gap, 10px)) !important;
  padding-top: 0 !important;
}

body:not(.tomato-mode) #rightPanel > .profile-middle,
body:not(.tomato-mode) #rightPanel #rightPanelNav,
body:not(.tomato-mode) #rightPanel > .profile-middle > .profile-body {
  gap: var(--rp-section-gap, 10px) !important;
}

body:not(.tomato-mode) #rightPanel #rightPanelNav {
  padding-top: 0 !important;
}

body:not(.tomato-mode) #rightPanel > .profile-nav-section--system {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body:not(.tomato-mode) #rightPanel > .profile-legal-stack {
  margin-top: 0 !important;
  gap: var(--rp-section-gap, 10px);
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium > * {
  position: relative;
  z-index: 1;
}

/* Keep edit-profile pen always visible + tilt on hover */
body:not(.tomato-mode) #rightPanel > .profile-header--premium .profile-label-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .profile-settings-gear {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
  margin-left: auto;
}

/* Hover keeps the synced pulse — only a slight lift in brightness via filter */
body:not(.tomato-mode) #rightPanel > .profile-header--premium:hover {
  filter: brightness(1.03);
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .avatar-circle {
  position: relative;
  overflow: visible;
  border: none !important;
  animation: none !important;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.38) !important;
  transition: transform 0.28s ease, filter 0.28s ease;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .avatar-circle .avatar-ring-inner-solid {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 0.75px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
  z-index: 2;
  box-shadow: none;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .avatar-circle .avatar-ring-outer-scallop {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: center / 100% 100% no-repeat
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%20fill%3D'none'%3E%3Cpath%20d%3D'M%2050.00%203.50%20L%2052.32%202.68%20L%2054.62%203.06%20L%2056.77%204.36%20L%2058.89%205.33%20L%2061.21%205.25%20L%2063.69%204.86%20L%2065.96%205.39%20L%2067.79%207.04%20L%2069.51%208.76%20L%2071.60%209.58%20L%2074.09%209.80%20L%2076.36%2010.55%20L%2077.92%2012.36%20L%2079.07%2014.57%20L%2080.64%2016.20%20L%2082.88%2017.12%20L%2085.10%2018.18%20L%2086.46%2020.07%20L%2087.06%2022.52%20L%2087.87%2024.69%20L%2089.57%2026.28%20L%2091.60%2027.76%20L%2092.83%2029.74%20L%2092.96%2032.21%20L%2092.96%2034.63%20L%2093.85%2036.70%20L%2095.46%2038.61%20L%2096.54%2040.74%20L%2096.36%2043.12%20L%2095.61%2045.51%20L%2095.57%2047.76%20L%2096.50%2050.00%20L%2097.32%2052.32%20L%2096.94%2054.62%20L%2095.64%2056.77%20L%2094.67%2058.89%20L%2094.75%2061.21%20L%2095.14%2063.69%20L%2094.61%2065.96%20L%2092.96%2067.79%20L%2091.24%2069.51%20L%2090.42%2071.60%20L%2090.20%2074.09%20L%2089.45%2076.36%20L%2087.64%2077.92%20L%2085.43%2079.07%20L%2083.80%2080.64%20L%2082.88%2082.88%20L%2081.82%2085.10%20L%2079.93%2086.46%20L%2077.48%2087.06%20L%2075.31%2087.87%20L%2073.72%2089.57%20L%2072.24%2091.60%20L%2070.26%2092.83%20L%2067.79%2092.96%20L%2065.37%2092.96%20L%2063.30%2093.85%20L%2061.39%2095.46%20L%2059.26%2096.54%20L%2056.88%2096.36%20L%2054.49%2095.61%20L%2052.24%2095.57%20L%2050.00%2096.50%20L%2047.68%2097.32%20L%2045.38%2096.94%20L%2043.23%2095.64%20L%2041.11%2094.67%20L%2038.79%2094.75%20L%2036.31%2095.14%20L%2034.04%2094.61%20L%2032.21%2092.96%20L%2030.49%2091.24%20L%2028.40%2090.42%20L%2025.91%2090.20%20L%2023.64%2089.45%20L%2022.08%2087.64%20L%2020.93%2085.43%20L%2019.36%2083.80%20L%2017.12%2082.88%20L%2014.90%2081.82%20L%2013.54%2079.93%20L%2012.94%2077.48%20L%2012.13%2075.31%20L%2010.43%2073.72%20L%208.40%2072.24%20L%207.17%2070.26%20L%207.04%2067.79%20L%207.04%2065.37%20L%206.15%2063.30%20L%204.54%2061.39%20L%203.46%2059.26%20L%203.64%2056.88%20L%204.39%2054.49%20L%204.43%2052.24%20L%203.50%2050.00%20L%202.68%2047.68%20L%203.06%2045.38%20L%204.36%2043.23%20L%205.33%2041.11%20L%205.25%2038.79%20L%204.86%2036.31%20L%205.39%2034.04%20L%207.04%2032.21%20L%208.76%2030.49%20L%209.58%2028.40%20L%209.80%2025.91%20L%2010.55%2023.64%20L%2012.36%2022.08%20L%2014.57%2020.93%20L%2016.20%2019.36%20L%2017.12%2017.12%20L%2018.18%2014.90%20L%2020.07%2013.54%20L%2022.52%2012.94%20L%2024.69%2012.13%20L%2026.28%2010.43%20L%2027.76%208.40%20L%2029.74%207.17%20L%2032.21%207.04%20L%2034.63%207.04%20L%2036.70%206.15%20L%2038.61%204.54%20L%2040.74%203.46%20L%2043.12%203.64%20L%2045.51%204.39%20L%2047.76%204.43%20L%2050.00%203.50%20Z'%20stroke%3D'rgba(255%2C255%2C255%2C0.26)'%20stroke-width%3D'0.45'%20stroke-linejoin%3D'round'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E");
  opacity: 0.58;
  filter: none;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .avatar-circle .avatar-ring-wavy {
  display: none;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .avatar-circle #avatarImage {
  position: relative;
  z-index: 3;
  border-radius: 50%;
  object-fit: cover;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium:hover .avatar-circle {
  transform: scale(1.03);
  filter: brightness(1.04);
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .profile-label {
  color: rgba(255, 255, 255, 0.62) !important;
  font-weight: 500;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium #userStatus {
  color: rgba(255, 255, 255, 0.92) !important;
  animation: none !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-shadow: none;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .profile-text {
  font-family: "IBM Plex Sans", var(--font-main), system-ui, sans-serif;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .btn-auth--premium {
  position: relative;
  overflow: hidden;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .btn-auth--premium::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(125, 252, 138, 0.22),
    transparent 55%
  );
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.45s ease;
  pointer-events: none;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .btn-auth--premium:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 252, 138, 0.85) !important;
  box-shadow: var(--ui-primary-shadow), var(--ui-glow-primary) !important;
}

body:not(.tomato-mode) #rightPanel > .profile-header--premium .btn-auth--premium:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Room for hover glow; keep Social Network tight under classic line */
body:not(.tomato-mode) #rightPanel > .profile-middle,
body:not(.tomato-mode) #rightPanel #rightPanelNav {
  overflow: visible !important;
  padding-top: 0;
}

/* Unified window hover: lift + vapor trail (all L/R chrome cards) */
body:not(.tomato-mode) .left-panel .info-card,
body:not(.tomato-mode) .left-panel .places-panel,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base,
body:not(.tomato-mode) #rightPanel .profile-block.card-base {
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    transform 0.22s ease,
    z-index 0s !important;
}

body:not(.tomato-mode) .left-panel .info-card::after,
body:not(.tomato-mode) .left-panel .places-panel::after,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base::after,
body:not(.tomato-mode) #rightPanel .profile-block.card-base::after {
  content: "" !important;
  position: absolute !important;
  /* Keep mist inside the card — avoids top edge clipping (Social Network) */
  inset: 0 !important;
  height: auto !important;
  pointer-events: none !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  opacity: 0;
  background: radial-gradient(
    ellipse 90% 55% at 50% 0%,
    rgba(125, 252, 138, 0.14),
    rgba(143, 211, 255, 0.05) 40%,
    transparent 68%
  );
  filter: blur(8px);
  transform: translateY(4px) scale(0.98);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 0.8, 0.28, 1);
}

body:not(.tomato-mode) .left-panel .info-card:hover,
body:not(.tomato-mode) .left-panel .places-panel:hover,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base:hover,
body:not(.tomato-mode) #rightPanel .profile-block.card-base:hover {
  z-index: 6;
  transform: translateY(-2px) !important;
  border-color: rgba(118, 228, 140, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(118, 228, 140, 0.12),
    0 0 20px rgba(118, 228, 140, 0.14),
    0 12px 26px rgba(0, 0, 0, 0.28) !important;
}

/* Social sits under the header — glow only, no vertical lift (prevents top-line hide) */
body:not(.tomato-mode) #rightPanel .profile-nav-section--social.card-base:hover {
  transform: none !important;
}

body:not(.tomato-mode) .left-panel .info-card:hover::after,
body:not(.tomato-mode) .left-panel .places-panel:hover::after,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base:hover::after,
body:not(.tomato-mode) #rightPanel .profile-block.card-base:hover::after {
  opacity: 0.8;
  transform: translateY(0) scale(1);
}

/* Soft vapor linger after mouse leaves */
body:not(.tomato-mode) .left-panel .info-card:not(:hover)::after,
body:not(.tomato-mode) .left-panel .places-panel:not(:hover)::after,
body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base:not(:hover)::after,
body:not(.tomato-mode) #rightPanel .profile-block.card-base:not(:hover)::after {
  transition:
    opacity 0.7s ease,
    transform 0.75s ease;
}

@media (prefers-reduced-motion: reduce) {
  body:not(.tomato-mode) #rightPanel > .profile-header--premium,
  body:not(.tomato-mode) #rightPanel > .profile-header--premium .avatar-circle,
  body:not(.tomato-mode) #rightPanel > .profile-header--premium #userStatus {
    animation: none !important;
  }
  body:not(.tomato-mode) .left-panel .info-card:hover,
  body:not(.tomato-mode) .left-panel .places-panel:hover,
  body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base:hover,
  body:not(.tomato-mode) #rightPanel .profile-block.card-base:hover,
  body:not(.tomato-mode) #rightPanel > .profile-header--premium .btn-auth--premium:hover,
  body:not(.tomato-mode) #rightPanel > .profile-header--premium:hover .avatar-circle {
    transform: none !important;
  }
  body:not(.tomato-mode) .left-panel .info-card::after,
  body:not(.tomato-mode) .left-panel .places-panel::after,
  body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base::after,
  body:not(.tomato-mode) #rightPanel .profile-block.card-base::after {
    display: none !important;
  }
}

html.mnm-reduce-motion body:not(.tomato-mode) #rightPanel > .profile-header--premium,
html.mnm-reduce-motion body:not(.tomato-mode) #rightPanel > .profile-header--premium .avatar-circle,
html.mnm-reduce-motion body:not(.tomato-mode) #rightPanel > .profile-header--premium #userStatus {
  animation: none !important;
}
html.mnm-reduce-motion body:not(.tomato-mode) .left-panel .info-card:hover,
html.mnm-reduce-motion body:not(.tomato-mode) .left-panel .places-panel:hover,
html.mnm-reduce-motion body:not(.tomato-mode) #rightPanel .profile-nav-section.card-base:hover,
html.mnm-reduce-motion body:not(.tomato-mode) #rightPanel .profile-block.card-base:hover {
  transform: none !important;
}

/* =============================================================================
   MAP DEPTH GRID — equal UV step (true perspective), soft thin lines + soft seam glow
   ============================================================================= */

body:not(.tomato-mode) .map-panel {
  --mnm-depth-line: rgba(125, 252, 138, 0.28);
  --mnm-depth-line-soft: rgba(143, 211, 255, 0.16);
  /* Equal rail pitch in wall UV; empty lead-in from panel seam */
  --mnm-depth-rails-l: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22400%22%20viewBox%3D%220%200%20200%20400%22%20preserveAspectRatio%3D%22none%22%3E%3Cg%20stroke%3D%22%237dfc8a%22%20stroke-linecap%3D%22round%22%3E%3Cline%20x1%3D%2248%22%20y1%3D%220%22%20x2%3D%2248%22%20y2%3D%22400%22%20stroke-width%3D%221%22%20stroke-opacity%3D%220.32%22%2F%3E%3Cline%20x1%3D%2278%22%20y1%3D%220%22%20x2%3D%2278%22%20y2%3D%22400%22%20stroke-width%3D%220.95%22%20stroke-opacity%3D%220.29%22%2F%3E%3Cline%20x1%3D%22108%22%20y1%3D%220%22%20x2%3D%22108%22%20y2%3D%22400%22%20stroke-width%3D%220.9%22%20stroke-opacity%3D%220.26%22%2F%3E%3Cline%20x1%3D%22138%22%20y1%3D%220%22%20x2%3D%22138%22%20y2%3D%22400%22%20stroke-width%3D%220.85%22%20stroke-opacity%3D%220.22%22%2F%3E%3Cline%20x1%3D%22168%22%20y1%3D%220%22%20x2%3D%22168%22%20y2%3D%22400%22%20stroke-width%3D%220.72%22%20stroke-opacity%3D%220.17%22%2F%3E%3Cline%20x1%3D%22198%22%20y1%3D%220%22%20x2%3D%22198%22%20y2%3D%22400%22%20stroke-width%3D%220.55%22%20stroke-opacity%3D%220.11%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%238fd3ff%22%20stroke-opacity%3D%220.1%22%3E%3Cline%20x1%3D%220%22%20y1%3D%2228%22%20x2%3D%22200%22%20y2%3D%2228%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%2256%22%20x2%3D%22200%22%20y2%3D%2256%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%2284%22%20x2%3D%22200%22%20y2%3D%2284%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22112%22%20x2%3D%22200%22%20y2%3D%22112%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22140%22%20x2%3D%22200%22%20y2%3D%22140%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22168%22%20x2%3D%22200%22%20y2%3D%22168%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22196%22%20x2%3D%22200%22%20y2%3D%22196%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22224%22%20x2%3D%22200%22%20y2%3D%22224%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22252%22%20x2%3D%22200%22%20y2%3D%22252%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22280%22%20x2%3D%22200%22%20y2%3D%22280%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22308%22%20x2%3D%22200%22%20y2%3D%22308%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22336%22%20x2%3D%22200%22%20y2%3D%22336%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22364%22%20x2%3D%22200%22%20y2%3D%22364%22%20stroke-width%3D%220.55%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --mnm-depth-rails-r: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22400%22%20viewBox%3D%220%200%20200%20400%22%20preserveAspectRatio%3D%22none%22%3E%3Cg%20stroke%3D%22%237dfc8a%22%20stroke-linecap%3D%22round%22%3E%3Cline%20x1%3D%22152%22%20y1%3D%220%22%20x2%3D%22152%22%20y2%3D%22400%22%20stroke-width%3D%221%22%20stroke-opacity%3D%220.32%22%2F%3E%3Cline%20x1%3D%22122%22%20y1%3D%220%22%20x2%3D%22122%22%20y2%3D%22400%22%20stroke-width%3D%220.95%22%20stroke-opacity%3D%220.29%22%2F%3E%3Cline%20x1%3D%2292%22%20y1%3D%220%22%20x2%3D%2292%22%20y2%3D%22400%22%20stroke-width%3D%220.9%22%20stroke-opacity%3D%220.26%22%2F%3E%3Cline%20x1%3D%2262%22%20y1%3D%220%22%20x2%3D%2262%22%20y2%3D%22400%22%20stroke-width%3D%220.85%22%20stroke-opacity%3D%220.22%22%2F%3E%3Cline%20x1%3D%2232%22%20y1%3D%220%22%20x2%3D%2232%22%20y2%3D%22400%22%20stroke-width%3D%220.72%22%20stroke-opacity%3D%220.17%22%2F%3E%3Cline%20x1%3D%222%22%20y1%3D%220%22%20x2%3D%222%22%20y2%3D%22400%22%20stroke-width%3D%220.55%22%20stroke-opacity%3D%220.11%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%238fd3ff%22%20stroke-opacity%3D%220.1%22%3E%3Cline%20x1%3D%220%22%20y1%3D%2228%22%20x2%3D%22200%22%20y2%3D%2228%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%2256%22%20x2%3D%22200%22%20y2%3D%2256%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%2284%22%20x2%3D%22200%22%20y2%3D%2284%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22112%22%20x2%3D%22200%22%20y2%3D%22112%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22140%22%20x2%3D%22200%22%20y2%3D%22140%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22168%22%20x2%3D%22200%22%20y2%3D%22168%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22196%22%20x2%3D%22200%22%20y2%3D%22196%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22224%22%20x2%3D%22200%22%20y2%3D%22224%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22252%22%20x2%3D%22200%22%20y2%3D%22252%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22280%22%20x2%3D%22200%22%20y2%3D%22280%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22308%22%20x2%3D%22200%22%20y2%3D%22308%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22336%22%20x2%3D%22200%22%20y2%3D%22336%22%20stroke-width%3D%220.55%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22364%22%20x2%3D%22200%22%20y2%3D%22364%22%20stroke-width%3D%220.55%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

body:not(.tomato-mode) .map-panel > .map-depth-grid {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  /* Soft seam glow: long ease-out dissipation */
  background-image:
    linear-gradient(
      to right,
      rgba(125, 252, 138, 0.28) 0%,
      rgba(125, 252, 138, 0.14) 12%,
      rgba(125, 252, 138, 0.06) 32%,
      rgba(125, 252, 138, 0.02) 58%,
      transparent 100%
    ),
    linear-gradient(
      to left,
      rgba(125, 252, 138, 0.28) 0%,
      rgba(125, 252, 138, 0.14) 12%,
      rgba(125, 252, 138, 0.06) 32%,
      rgba(125, 252, 138, 0.02) 58%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(125, 252, 138, 0.07) 0%,
      transparent 48%
    );
  background-repeat: no-repeat;
  background-size: 110px 100%, 110px 100%, 100% 36%;
  background-position: left top, right top, center bottom;
}

/* Left / right wall → into depth */
body:not(.tomato-mode) .map-panel > .map-depth-grid::before,
body:not(.tomato-mode) .map-panel > .map-depth-grid::after {
  content: "";
  position: absolute;
  top: -6%;
  bottom: -6%;
  width: min(44%, 240px);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.82;
  will-change: transform;
}

body:not(.tomato-mode) .map-panel > .map-depth-grid::before {
  left: 0;
  background-image: var(--mnm-depth-rails-l);
  transform: perspective(620px) rotateY(30deg) scaleY(1.05);
  transform-origin: left center;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.22) 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.22) 72%,
    transparent 100%
  );
}

body:not(.tomato-mode) .map-panel > .map-depth-grid::after {
  right: 0;
  left: auto;
  background-image: var(--mnm-depth-rails-r);
  transform: perspective(620px) rotateY(-30deg) scaleY(1.05);
  transform-origin: right center;
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.22) 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.22) 72%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  body:not(.tomato-mode) .map-panel > .map-depth-grid {
    opacity: 0.5;
  }
}

html.mnm-reduce-motion body:not(.tomato-mode) .map-panel > .map-depth-grid {
  opacity: 0.5;
}

/* Left controls → journal: equal short buttons; gap = right window rhythm */
body:not(.tomato-mode) .left-panel .controls-row {
  margin-top: 4px;
  margin-bottom: 0;
  align-items: stretch;
}

body:not(.tomato-mode) .left-panel .controls-row #clearPlacesBtn,
body:not(.tomato-mode) .left-panel .controls-row #soundToggleBtn,
body:not(.tomato-mode) .left-panel .controls-row #addPlaceBtn {
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  padding: 0 6px !important;
  box-sizing: border-box;
  align-items: center;
  line-height: 1;
}

body:not(.tomato-mode) .left-panel .controls-row #addPlaceBtn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

body:not(.tomato-mode) .left-panel .controls-row #clearPlacesBtn,
body:not(.tomato-mode) .left-panel .controls-row #soundToggleBtn {
  font-size: 8.5px;
}

body:not(.tomato-mode) .left-panel .controls-row .btn-ghost {
  min-height: 24px;
}

body:not(.tomato-mode) .left-panel .places-panel {
  margin-top: var(--rp-section-gap, 10px);
}
