:root {
  --bg: #f6f8fb;
  --text: #17202a;
  --muted: #617080;
  --panel: #ffffff;
  --line: #d9e0e8;
  --teal: #0f8f8a;
  --teal-dark: #08615e;
  --ink: #0d1726;
  --amber: #d9912b;
  --shadow: 0 18px 45px rgba(18, 31, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.has-dialog {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  color: #fff;
  background: rgba(11, 20, 32, 0.2);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-header.solid,
.site-header.is-scrolled {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(22, 34, 49, 0.1);
  box-shadow: 0 8px 28px rgba(22, 34, 49, 0.08);
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.site-header.site-header--invites { height: 80px; }
.site-header--invites + .page-main { padding-top: 80px; }

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  font-size: 13px;
  letter-spacing: 0;
}

.brand-name {
  font-size: 18px;
}

.quick-nav {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 10px;
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.site-header.solid .quick-nav a,
.site-header.is-scrolled .quick-nav a {
  color: var(--teal-dark);
  background: rgba(15, 143, 138, 0.1);
  border-color: rgba(15, 143, 138, 0.12);
}

.quick-nav a[aria-current="page"] {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.quick-sponsor-group {
  position: relative;
  display: contents;
}

.quick-sponsor-label {
  display: none;
}

.site-nav {
  margin-left: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sponsor-nav-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 4px 3px;
  border: 1px solid #111;
  border-radius: 4px;
}

.sponsor-nav-label {
  position: absolute;
  top: -10px;
  left: 8px;
  padding: 0 5px;
  color: #111;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  white-space: nowrap;
}

.sponsor-nav-group--invites {
  flex-direction: column;
  align-items: stretch;
}

.sponsor-nav-group--invites .sponsor-nav-label {
  top: -8px;
  font-size: 9px;
  line-height: 14px;
}

.sponsor-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.sponsor-nav-group--invites .sponsor-nav-links a {
  padding-block: 3px;
}

.sponsor-nav-invites {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  padding: 0 8px 2px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.sponsor-nav-invites span {
  white-space: nowrap;
}

.site-nav a,
.sponsor-nav-group a {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: inherit;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.sponsor-nav-group a:hover,
.sponsor-nav-group a[aria-current="page"] {
  background: rgba(15, 143, 138, 0.13);
}

.site-header .nav-auth { font-weight: 700; }
.site-header .nav-copy-tool {
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  font-weight: 700;
}
.site-header .nav-copy-tool:hover,
.site-header .nav-copy-tool:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}
.site-header .nav-auth-login { border: 1px solid currentColor; }
.site-header .nav-auth-register { color: #fff; background: var(--teal); border: 1px solid var(--teal); }
.site-header .nav-auth-register:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.site-header.solid .menu-toggle,
.site-header.is-scrolled .menu-toggle {
  background: rgba(15, 143, 138, 0.12);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 90px;
  color: #fff;
  text-align: center;
  background-image: url("../../images/hero-spring-paper-plane.jpg");
  background-size: cover;
  background-position: center 38%;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(246, 248, 251, 0), var(--bg));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 248, 255, 0.16), rgba(64, 132, 150, 0.12) 48%, rgba(36, 96, 112, 0.24) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(49, 112, 128, 0.28));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.primary,
.button.small {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.button.ao-ying-hero-entry {
  color: #fff;
  background: #d93636;
  border-color: #ff6b61;
  box-shadow: 0 10px 28px rgba(109, 18, 18, 0.32);
}

.button.ao-ying-hero-entry:hover {
  background: #bd2727;
}

.ao-ying-live-dot {
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: #7dff95;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(125, 255, 149, 0.18);
}

.bookmark-tip[hidden] {
  display: none;
}

.bookmark-tip {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(13, 23, 38, 0.42);
  backdrop-filter: blur(8px);
}

.bookmark-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.bookmark-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.bookmark-panel p {
  margin: 0;
  color: var(--muted);
}

.bookmark-panel .button {
  width: 100%;
  margin-top: 18px;
}

.bookmark-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #eef3f6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bookmark-url {
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--teal-dark);
  background: #eefaf8;
  border: 1px solid rgba(15, 143, 138, 0.18);
  border-radius: 8px;
  font-weight: 800;
}

.button.small {
  min-width: 86px;
  min-height: 40px;
  padding: 0 16px;
  flex: 0 0 auto;
}

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

.container.narrow {
  width: min(820px, calc(100% - 36px));
  text-align: center;
}

.section-pad {
  padding: 72px 0;
}

.intro h2,
.page-title h1 {
  color: var(--ink);
}

.intro h2 {
  margin: 0 0 14px;
  font-size: 34px;
}

.intro p,
.page-title p {
  margin: 0;
  color: var(--muted);
}

.text-alert {
  color: #c84d50;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(25, 39, 55, 0.06);
}

.feature-card {
  padding: 26px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 800;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.feature-card p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.page-main {
  padding-top: 72px;
}

.page-title {
  padding: 38px 0 28px;
  background:
    linear-gradient(135deg, rgba(15, 143, 138, 0.14), rgba(217, 145, 43, 0.12)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 5vw, 52px);
}

.page-main > .section-pad {
  padding-top: 42px;
}

.links-box {
  padding: clamp(18px, 3vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(25, 39, 55, 0.08);
}

.link-group + .link-group {
  margin-top: 34px;
}

.link-title {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.3;
}

.link-title span {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--teal);
}

.link-description {
  margin: 10px 0 16px;
  color: var(--muted);
}

.link-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 174px;
  padding: 24px 14px 18px;
  overflow: hidden;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.link-item:hover .link-card {
  transform: translateY(-2px);
}

.link-item {
  overflow: hidden;
  background: #f8fbfd;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.link-item:hover {
  border-color: rgba(15, 143, 138, 0.45);
  box-shadow: 0 16px 34px rgba(20, 35, 52, 0.12);
}

.corner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 13px;
  font-style: normal;
}

.corner-badge.hot {
  background: var(--amber);
}

.corner-badge.warn {
  background: #c84d50;
}

.site-logo,
.site-logo-img {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  color: #fff;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.13);
}

.site-logo-img {
  display: block;
  object-fit: cover;
}

.site-logo-img.logo-wide {
  width: 92px;
  object-fit: contain;
  background: #fff;
  box-shadow: none;
}

.site-logo-img.logo-shop {
  width: min(150px, 86%);
  height: 46px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.site-logo.teal { background: linear-gradient(135deg, #0f8f8a, #0b565b); }
.site-logo.blue { background: linear-gradient(135deg, #3077c8, #183a75); }
.site-logo.amber { background: linear-gradient(135deg, #d9912b, #9c5917); }
.site-logo.green { background: linear-gradient(135deg, #16a36b, #087044); }
.site-logo.navy { background: linear-gradient(135deg, #243b63, #101c31); }
.site-logo.violet { background: linear-gradient(135deg, #7862c8, #463585); }
.site-logo.red { background: linear-gradient(135deg, #c84d50, #86262d); }
.site-logo.pale {
  color: #506173;
  background: linear-gradient(135deg, #eef4f7, #d8e3ea);
}

.link-card strong {
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.link-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.review-panel {
  margin-top: 0;
  padding: 7px;
  background: #fff;
  border: 0;
  border-top: 1px solid #dfe7ef;
  border-radius: 0;
}

.review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: #5b6b7c;
  font-size: 12px;
  line-height: 1.2;
}

.review-summary b {
  color: var(--ink);
  font-size: 13px;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: #7a8795;
  font-size: 11px;
  line-height: 1.2;
}

.review-meta b {
  color: var(--ink);
}

.review-meta button {
  padding: 0;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.review-meta button[hidden] {
  display: none;
}

.review-votes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.review-votes button,
.review-form button {
  min-height: 28px;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  color: #526273;
  background: #f8fbfd;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.review-votes button.is-active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.review-votes button[data-vote="down"].is-active {
  background: #6b7684;
  border-color: #6b7684;
}

.review-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 5px;
  margin-top: 5px;
}

.review-form input {
  width: 100%;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.review-form input::placeholder {
  color: #8a98a8;
}

.review-form button {
  color: #fff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.review-list {
  margin-top: 5px;
}

.review-empty,
.review-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.review-item {
  padding-top: 5px;
  border-top: 1px solid #edf2f6;
}

.review-item + .review-item {
  margin-top: 5px;
}

.review-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 12px;
}

.review-hidden-meta {
  display: none !important;
}

.review-item b {
  color: var(--teal-dark);
}

.review-item b.down {
  color: #6b7684;
}

.review-item span {
  color: #95a2af;
}

.airport-notice {
  margin-top: 28px;
  padding: 16px 18px;
  color: #675135;
  background: #fff8ea;
  border: 1px solid #efd7a7;
  border-radius: 8px;
}

.contact-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.meta-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #536373;
  font-size: 14px;
}

.meta-list li {
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef4f7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-panel {
  padding: 28px;
}

.capital-layout {
  display: grid;
  gap: 18px;
}

@media (min-width: 1021px) {
  .container.capital-layout {
    width: min(1600px, calc(100% - 24px));
  }
}

.capital-page-title {
  padding: 26px 0 22px;
}

.capital-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}

.capital-title-row .eyebrow,
.capital-title-row h1 {
  margin-bottom: 0;
}

.capital-title-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(20, 35, 52, 0.12);
}

.capital-page-title h1 {
  font-size: 34px;
}

.capital-page-title p {
  max-width: 920px;
  font-size: 14px;
  line-height: 1.7;
}

.capital-page-title .capital-invite-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  max-width: none;
  color: #dc2626;
  font-weight: 700;
}

.capital-invite-codes span {
  white-space: nowrap;
}

.capital-page-title .capital-invite-access {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 6px;
  color: var(--text);
}

.capital-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(340px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
}

.fomo-position-panel {
  grid-column: 1;
  grid-row: 1;
}

.fomo-sync-notice {
  margin: 7px 0 5px;
  color: #087f5b !important;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.45 !important;
}

.fomo-updated-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.fomo-updated-row p {
  flex: 1 1 auto;
}

.fomo-copy-entry {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  color: #fff;
  background: #d92d20;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.fomo-copy-entry:hover,
.fomo-copy-entry:focus-visible {
  color: #fff;
  background: #b42318;
}

.position-panel {
  grid-column: 2;
  grid-row: 1;
}

.statement-panel {
  grid-column: 3;
  grid-row: 1;
}

.mute-panel {
  grid-column: 4;
  grid-row: 1;
}

.community-panel {
  grid-column: 1 / -1;
  grid-row: 2;
}

.community-group-number {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: underline;
}

.community-motto {
  flex: 1 1 520px;
  align-self: center;
  margin: 0 !important;
  color: #c62828 !important;
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1.5 !important;
  text-align: center;
}

.community-x-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 340px);
  padding: 6px 8px;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid #d8e3ea;
  border-radius: 7px;
}

.community-x-profile img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: cover;
  border-radius: 50%;
}

.community-x-profile span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.community-x-profile strong {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

.community-x-profile small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.community-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.qq-action {
  background: #1769aa;
}

.tg-action {
  background: #187fa8;
}

.community-warning {
  margin: 0 0 10px;
  padding: 8px 10px;
  color: #9d2027;
  background: #fff4f4;
  border-left: 3px solid #cc3f48;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.copy-trade-status-notice {
  margin: 0 0 10px;
  padding: 9px 11px;
  color: #694300;
  background: #fff8e8;
  border: 1px solid #efcf83;
  border-left: 4px solid #df9d16;
  border-radius: 5px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.55;
}

.copy-trade-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
  align-items: stretch;
}

.copy-trade-proof-image {
  display: block;
  width: 100%;
  height: clamp(240px, 34vw, 520px);
  object-fit: contain;
  background: #fff;
  border: 1px solid #d8e3ea;
  border-radius: 6px;
  cursor: zoom-in;
}

.x-feed-panel {
  overflow: hidden;
}

.x-feed-profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-bottom: 10px;
}

.x-feed-profile-row .x-feed-profile {
  margin: 0;
}

.x-feed-invite {
  margin: 0;
  max-width: 100%;
  color: #dc2626;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.x-feed-profile {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: #0b6e68;
  text-decoration: none;
}

.x-feed-profile img,
.x-post-author img {
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #d8e3ea;
  border-radius: 50%;
}

.x-feed-profile span,
.x-post-author span {
  display: flex;
  flex-direction: column;
}

.x-feed-profile small,
.x-post-author small {
  color: #718195;
}

.x-feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}

.x-post-item {
  min-width: 0;
  padding: 11px;
  background: #f8fbfd;
  border: 1px solid #d8e3ea;
  border-radius: 6px;
}

.x-post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-post-author img {
  width: 34px;
  height: 34px;
}

.x-post-author strong {
  color: #075f5b;
  font-size: 13px;
}

.x-post-author small {
  margin-top: 1px;
  font-size: 11px;
}

.x-post-text {
  margin: 9px 0;
  color: #172433;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.x-post-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.x-post-media--1 {
  grid-template-columns: minmax(0, 1fr);
}

.x-post-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
}

.x-post-media--1 img {
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}

.x-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #e0e8ee;
  font-size: 11px;
}

.x-post-footer a {
  color: #0b6e68;
  font-weight: 700;
}

.community-qr-platform-key {
  display: grid;
  grid-template-columns: 3fr 1fr;
  width: min(100%, 1000px);
  margin: 0 auto;
  overflow: hidden;
  color: #fff;
  background: #050505;
  border: 1px solid #111;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.community-qr-platform-key span {
  padding: 7px 6px;
}

.community-qr-platform-key span:last-child {
  color: #f5c94d;
  border-left: 4px solid #d7a91f;
}

.community-qr-platform-key--bottom {
  border-top: 0;
  border-bottom: 1px solid #111;
  border-radius: 0 0 8px 8px;
}

.community-qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1000px);
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  border: 1px solid #111;
  border-radius: 0;
}

.community-qr-image {
  display: block;
  width: 100% !important;
  max-height: none !important;
  margin: 0 auto !important;
  background: #000 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.community-qr-image:last-child {
  border-left: 4px solid #d7a91f !important;
}

.capital-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.capital-panel {
  position: relative;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
}

.capital-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.capital-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.capital-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

.capital-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.status-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: #675135;
  background: #fff8ea;
  border: 1px solid #efd7a7;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.position-status-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.desktop-position-pnl {
  display: none;
}

.position-status-summary .desktop-position-pnl.position-positive { color: #07845a; }
.position-status-summary .desktop-position-pnl.position-negative { color: #d23f50; }

@media (min-width: 901px) {
  .position-status-summary .desktop-position-pnl {
    display: block;
    margin: 0 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
}

.position-heading-with-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  column-gap: 16px;
  align-items: start;
}

.position-heading-copy {
  min-width: 0;
}

.position-heading-with-entry > .position-status-summary {
  grid-column: 1;
  justify-content: flex-start;
  margin-top: 8px;
}

.position-entry-aside {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
  align-items: center;
  justify-self: end;
  width: 230px;
  margin-right: -6px;
}

.position-entry-label {
  margin: 0;
  color: #607487;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.position-entry-label strong,
.position-entry-label span {
  display: block;
}

.position-entry-label strong {
  color: #15283a;
  font-size: 14px;
}

.position-entry-media {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 104px;
}

.position-entry-aside .fomo-copy-entry {
  width: 100%;
  min-height: 32px;
  padding: 6px 4px;
  font-size: 12px;
  text-align: center;
}

.position-qr-thumbnail {
  display: block;
  width: 104px;
  aspect-ratio: 432 / 458;
  object-fit: contain;
  cursor: zoom-in;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  background: #10151b;
}

.position-empty {
  padding: 14px;
  color: var(--muted);
  background: #f8fbfd;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.position-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.position-comments {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #dfe7ed;
}

.position-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.position-comments-head h3 {
  margin: 0;
  color: #1b3442;
  font-size: 13px;
}

.position-comments-head span,
.position-comments-feedback,
.position-comments-more {
  color: #71818d;
  font-size: 10px;
}

.position-comments-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.position-comments-form input {
  min-width: 0;
  height: 32px;
  padding: 5px 9px;
  color: #172b38;
  background: #fff;
  border: 1px solid #cfdbe4;
  border-radius: 5px;
  outline: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
}

.position-comments-form input:focus {
  border-color: #168b86;
  box-shadow: 0 0 0 2px rgba(15, 143, 138, 0.1);
}

.position-comments-form button {
  min-width: 54px;
  height: 32px;
  padding: 5px 10px;
  color: #fff;
  background: #087b76;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.position-comments-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.position-comments-feedback {
  margin: 3px 0 0;
  text-align: right;
}

.position-comments-list {
  margin-top: 4px;
  max-height: 150px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #8299a5 #edf3f6;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.position-comments-list:focus-visible { outline: 2px solid #087b76; outline-offset: 2px; }
.position-comments-list::-webkit-scrollbar { width: 5px; }
.position-comments-list::-webkit-scrollbar-thumb { background: #8299a5; border-radius: 3px; }
.position-comments-list::-webkit-scrollbar-track { background: #edf3f6; }

.position-comment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 5px 2px;
  border-top: 1px solid #edf1f4;
}

.position-comment-item p {
  min-width: 0;
  margin: 0;
  color: #314653;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.position-comment-item time {
  color: #82909a;
  font-size: 10px;
  white-space: nowrap;
}

.position-comments-empty {
  margin: 4px 0 0;
  color: #82909a;
  font-size: 11px;
}

.position-comments-more {
  display: block;
  margin: 3px 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.position-comments-more[hidden] {
  display: none;
}

.position-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.fomo-position-grid {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  overflow-x: hidden;
}

.fomo-position-grid .position-card {
  min-width: 0;
}

.fomo-position-grid .position-card dl {
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  background: #dfe7ef;
  border: 1px solid #dfe7ef;
  border-radius: 7px;
}

.fomo-position-grid .position-metric {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
}

.fomo-position-grid .position-metric dt {
  color: var(--muted);
  font-size: 11px;
}

.fomo-position-grid .position-metric dd {
  min-width: 0;
  margin-top: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.position-card .position-positive {
  color: #07845a;
}

.position-card .position-negative {
  color: #c84848;
}

.position-card,
.source-link {
  padding: 18px;
  background: #f8fbfd;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.position-card h3,
.source-link h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.position-snapshot-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.position-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.position-card dt,
.position-card dd {
  margin: 0;
}

.position-card dd {
  color: var(--ink);
  font-weight: 800;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-grid-single {
  grid-template-columns: minmax(260px, 380px);
}

.mute-scroll {
  height: clamp(300px, 48vh, 520px);
}

.source-link {
  display: block;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.source-link:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 143, 138, 0.45);
  box-shadow: 0 12px 26px rgba(20, 35, 52, 0.1);
}

.source-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.source-link p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.source-action {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.updates-list {
  display: grid;
  gap: 7px;
}

.statement-context {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  padding: 3px 4px 0;
  color: #687886;
  font-size: 13.5px;
  line-height: 1.4;
}

.statement-context[hidden] {
  display: none;
}

.statement-context-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.statement-context-line strong {
  flex: 0 0 auto;
  max-width: 118px;
  overflow: hidden;
  color: #258573;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statement-context-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capital-scroll {
  height: clamp(360px, 58vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 6px;
}

.capital-scroll::-webkit-scrollbar {
  width: 8px;
}

.capital-scroll::-webkit-scrollbar-track {
  background: #edf2f5;
  border-radius: 8px;
}

.capital-scroll::-webkit-scrollbar-thumb {
  background: #9aabb7;
  border: 2px solid #edf2f5;
  border-radius: 8px;
}

.capital-scroll::-webkit-scrollbar-thumb:hover {
  background: #718792;
}

.history-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.history-controls button {
  padding: 6px 10px;
  color: #fff;
  background: var(--teal-dark);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.history-controls button[hidden] {
  display: none;
}

.update-item,
.mute-message,
.position-message {
  padding: 10px 11px;
  background: #f8fbfd;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.position-message {
  grid-column: 1 / -1;
}

.update-meta {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}

.update-author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.update-item p,
.mute-message p,
.position-message p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.update-item img,
.mute-message img,
.position-message img {
  display: block;
  width: min(520px, 100%);
  max-height: 280px;
  margin-top: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.update-item .update-avatar,
.mute-message .update-avatar {
  width: 28px;
  height: 28px;
  max-height: none;
  flex: 0 0 28px;
  margin: 0;
  object-fit: cover;
  background: #fff;
  border: 1px solid #d9e2e8;
  border-radius: 50%;
}

.update-item a,
.mute-message a,
.position-message a {
  display: inline-block;
  margin-top: 7px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.message-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 7px;
}

.message-actions a {
  margin-top: 0;
}

.message-site-mark {
  margin-left: auto;
  color: #4e7775;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.position-message > .message-site-mark {
  display: block;
  width: fit-content;
  margin: 3px 0 2px;
}

.message-copy-link {
  padding: 3px 7px;
  color: #fff !important;
  background: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  border-radius: 4px;
  font-size: 11px !important;
  line-height: 1.35;
}

.position-panel .message-copy-link {
  color: #fff !important;
  background: #d92d20;
  border-color: #d92d20;
  font-weight: 900;
}

.position-panel .message-copy-link:hover,
.position-panel .message-copy-link:focus-visible {
  color: #fff !important;
  background: #b42318;
  border-color: #b42318;
}

.message-context-toggle {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.message-photo {
  cursor: zoom-in;
}

body.viewer-open {
  overflow: hidden;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 14px;
  background: rgba(9, 18, 28, 0.92);
}

.image-viewer-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 10px;
}

.image-viewer-toolbar button {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.image-viewer-toolbar button[data-viewer-reset] {
  min-width: 58px;
  font-size: 12px;
}

.image-viewer-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: auto;
}

.image-viewer-stage img {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 78vh;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.15s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.mobile-scroll-indicator {
  display: none;
}

.capital-note {
  margin: 0;
  padding: 14px 16px;
  color: #675135;
  background: #fff8ea;
  border: 1px solid #efd7a7;
  border-radius: 8px;
  font-size: 13px;
}

.guestbook-panel {
  display: block;
}

.guestbook-total {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.guestbook-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px;
  background: #f8fbfd;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.guestbook-form label {
  display: grid;
  align-content: start;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 7px 9px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfdbe4;
  border-radius: 6px;
  outline: 0;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
}

.guestbook-form textarea {
  min-height: 48px;
  max-height: 96px;
  resize: vertical;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(15, 143, 138, 0.12);
}

.guestbook-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.guestbook-submit-row button {
  flex: 0 0 auto;
  padding: 7px 12px;
  color: #fff;
  background: var(--teal-dark);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.guestbook-submit-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.guestbook-list {
  display: grid;
  align-content: start;
  gap: 5px;
  max-height: 166px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #8ca0ad #e8eef2;
  padding-right: 4px;
}

.guestbook-list::-webkit-scrollbar {
  width: 7px;
}

.guestbook-list::-webkit-scrollbar-track {
  background: #e8eef2;
  border-radius: 7px;
}

.guestbook-list::-webkit-scrollbar-thumb {
  background: #8ca0ad;
  border: 1px solid #e8eef2;
  border-radius: 7px;
}

.guestbook-item {
  position: relative;
  padding: 7px 52px 7px 10px;
  background: #f8fbfd;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
}

.guestbook-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.guestbook-item-head strong {
  overflow: hidden;
  color: var(--teal-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guestbook-item p {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guestbook-report {
  position: absolute;
  right: 10px;
  bottom: 7px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.guestbook-empty {
  padding: 12px;
  color: var(--muted);
  background: #f8fbfd;
  border: 1px dashed #cfdbe4;
  border-radius: 8px;
  font-size: 12px;
}

.site-footer {
  padding: 28px 18px;
  color: #d6dee8;
  text-align: center;
  background: #0d1726;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1280px) {
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand quick menu" "sponsor sponsor sponsor";
    gap: 5px 10px;
    height: 104px;
    padding: 8px 16px;
  }
  .header-brand-group { display: contents; }
  .brand { grid-area: brand; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 16px; }
  .quick-nav {
    grid-area: quick;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    min-width: 0;
  }
  .quick-nav a { min-height: 32px; padding: 0 7px; font-size: 12px; }
  .menu-toggle { grid-area: menu; display: block; width: 34px; height: 34px; margin: 0; }
  .sponsor-nav-group {
    grid-area: sponsor;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    gap: 2px;
    margin: 3px 0 0;
    padding: 5px 4px 3px;
  }
  .sponsor-nav-group a { padding: 5px 8px; font-size: 12px; }
  .sponsor-nav-label { top: -8px; font-size: 9px; line-height: 14px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .page-main { padding-top: 104px; }

  .site-header.site-header--invites { height: 124px; }
  .site-header--invites + .page-main { padding-top: 124px; }
}

@media (max-width: 600px) {
  .site-header.site-header--invites { height: 144px; }
  .site-header--invites + .page-main { padding-top: 144px; }
  .sponsor-nav-group--invites .sponsor-nav-invites { flex-direction: column; }
}

@media (max-width: 400px) {
  .site-header { gap: 5px 6px; padding-left: 10px; padding-right: 10px; }
  .brand { gap: 6px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 14px; }
  .quick-nav a { padding: 0 5px; font-size: 11px; }
  .menu-toggle { width: 32px; height: 32px; }
  .sponsor-nav-group a { padding: 5px 6px; font-size: 11px; }
}

@media (max-width: 760px) {
  .hero {
    min-height: 88vh;
    padding-top: 132px;
    background-size: auto 78vh;
    background-position: 78% 70px;
    background-repeat: no-repeat;
    background-color: #cdeefa;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .capital-heading {
    display: block;
  }

  .capital-heading.position-heading-with-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    column-gap: 8px;
    row-gap: 3px;
  }

  .position-heading-with-entry .position-heading-copy {
    display: contents;
  }

  .position-heading-with-entry .position-heading-copy > h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .position-heading-meta {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
  }

  .position-heading-meta > p,
  .position-heading-meta .fomo-updated-row p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fomo-position-panel .position-heading-meta {
    display: grid;
    gap: 1px;
  }

  .fomo-position-panel .position-heading-meta > p,
  .fomo-position-panel .position-heading-meta .fomo-updated-row p {
    margin-top: 0;
    font-size: 9px;
    line-height: 1;
  }

  .position-heading-with-entry > .position-status-summary {
    grid-column: 1;
    grid-row: 4;
    align-self: end;
    margin-top: 0;
  }

  .position-entry-aside {
    display: contents;
  }

  .position-entry-label {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    justify-self: end;
    padding: 0;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
    transform: translateX(-6px);
    white-space: nowrap;
  }

  .position-entry-label strong,
  .position-entry-label span {
    display: inline;
  }

  .position-entry-label strong {
    margin-right: 4px;
    font-size: 12px;
  }

  .fomo-position-panel .position-entry-label {
    transform: translate(-6px, -5px);
  }

  .fomo-position-panel .position-status-summary {
    transform: translateY(-5px);
  }

  .position-entry-media {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
    justify-self: end;
    width: 80px;
    margin-right: 0;
  }

  .position-qr-thumbnail {
    width: 80px;
  }

  .capital-page-title h1 {
    font-size: 27px;
  }

  .capital-title-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .capital-page-title p {
    font-size: 13px;
  }

  .capital-dashboard {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .position-panel,
  .fomo-position-panel,
  .community-panel,
  .statement-panel,
  .mute-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .x-feed-list {
    grid-template-columns: 1fr;
    max-height: 520px;
  }

  .x-post-media img {
    height: 150px;
  }

  .x-post-media--1 img {
    height: auto;
    max-height: 360px;
  }

  .community-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .community-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 8px 8px 0 0;
  }

  .community-qr-platform-key {
    display: none;
  }

  .community-qr-platform-key--bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 11px;
  }

  .community-panel .capital-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .community-panel .capital-heading > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .community-x-profile {
    width: min(54%, 230px);
    gap: 5px;
    padding: 5px;
  }

  .community-motto {
    order: 3;
    flex-basis: 100%;
    font-size: 14px !important;
    text-align: left;
  }

  .community-x-profile img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .community-x-profile strong {
    font-size: 9px;
  }

  .community-x-profile small {
    font-size: 8px;
    line-height: 1.25;
  }

  .community-action {
    padding: 6px 5px;
    font-size: 11px;
  }

  .capital-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    padding: 12px 8px 12px 12px;
  }

  .capital-panel > * {
    grid-column: 1;
  }

  .capital-scroll {
    height: 420px;
    overscroll-behavior-y: auto;
  }

  .capital-panel > .mobile-scroll-indicator {
    position: absolute;
    right: 18px;
    z-index: 2;
    display: block;
    width: 6px;
    min-height: 40px;
    overflow: hidden;
    pointer-events: none;
    background: #e3e9ed;
    border-radius: 6px;
  }

  .guestbook-panel {
    display: block;
    padding: 9px;
  }

  .guestbook-panel .capital-heading {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
  }

  .guestbook-panel .capital-heading h2 {
    font-size: 17px;
  }

  .guestbook-panel .capital-heading p {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.4;
  }

  .guestbook-total {
    padding-top: 2px;
    font-size: 10px;
    white-space: nowrap;
  }

  .guestbook-form {
    grid-template-columns: minmax(86px, 0.34fr) minmax(0, 0.66fr);
    gap: 5px;
    margin-bottom: 7px;
    padding: 6px;
  }

  .guestbook-form label > span {
    display: none;
  }

  .guestbook-form input,
  .guestbook-form textarea {
    min-height: 38px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .guestbook-form textarea {
    height: 38px;
    max-height: 70px;
  }

  .guestbook-submit-row {
    grid-column: 1 / -1;
    gap: 6px;
    font-size: 9px;
  }

  .guestbook-submit-row button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .guestbook-item {
    padding: 6px 48px 6px 8px;
  }

  .guestbook-item-head,
  .guestbook-report {
    font-size: 9px;
  }

  .guestbook-item p {
    margin-top: 2px;
    font-size: 11px;
  }

  .guestbook-report {
    right: 8px;
    bottom: 6px;
  }

  .guestbook-list {
    max-height: 142px;
  }

  .mobile-scroll-thumb {
    display: block;
    width: 100%;
    min-height: 34px;
    background: #7f929f;
    border-radius: 6px;
    transition: transform 0.08s linear;
  }

  .mobile-scroll-indicator.is-static .mobile-scroll-thumb {
    opacity: 0.45;
  }

  .status-pill {
    display: inline-block;
    margin-top: 10px;
  }

  .position-status-summary {
    justify-content: flex-start;
    gap: 3px;
    flex-wrap: nowrap;
    margin-top: 6px;
  }

  .position-status-summary .status-pill {
    margin-top: 0;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 11px;
  }

  .position-status-summary .account-margin-balance {
    font-size: 11px !important;
  }

  .position-entry-aside .fomo-copy-entry {
    min-height: 28px;
    padding: 5px 4px;
    font-size: 11px;
  }

  .position-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .fomo-position-grid .position-card dl {
    grid-template-columns: 1fr;
  }

  .fomo-position-grid .position-metric {
    display: grid;
    grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    align-items: start;
  }

  .fomo-position-grid .position-metric dd {
    margin-top: 0;
    text-align: right;
  }

  .section-pad {
    padding: 48px 0;
  }

  .page-title {
    padding: 28px 0 22px;
  }

  .page-main {
    padding-top: 104px;
  }

  .page-main > .section-pad {
    padding-top: 28px;
  }

  .links-box {
    width: min(100% - 24px, 1100px);
    padding: 16px;
  }

  .link-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .link-card {
    min-height: 164px;
    padding: 22px 10px 16px;
  }

  .site-logo,
  .site-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 21px;
  }

  .link-card strong {
    font-size: 15px;
  }

  .link-card em {
    font-size: 12px;
  }

  .review-panel {
    padding: 8px;
  }

  .review-summary {
    font-size: 11px;
  }

  .review-votes button,
  .review-form input,
  .review-form button {
    font-size: 11px;
  }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .link-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .fomo-position-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .position-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .statement-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .mute-panel {
    grid-column: 2;
    grid-row: 2;
  }

  .community-panel {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* Independent copy-trade QR cards keep each code sharp and saveable. */
.copy-trade-section {
  width: 100%;
  margin: 10px 0 0;
}

.copy-trade-help {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

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

.copy-trade-card {
  display: grid;
  grid-template-rows: 38px auto auto auto;
  min-width: 0;
  padding: 8px 6px;
  overflow: hidden;
  color: #f5c340;
  background: #101419;
  border: 2px solid #e5ad1d;
  border-radius: 8px;
}

.copy-trade-card h3 {
  align-self: center;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.copy-trade-qr-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 2px 0;
}

.copy-trade-qr-wrap:has(.copy-trade-mode) {
  padding-inline: 18px;
}

.copy-trade-qr {
  display: block;
  width: 132px !important;
  max-width: 100% !important;
  aspect-ratio: 1;
  margin: 0 !important;
  object-fit: contain;
  image-rendering: auto;
  background: #fff !important;
  border: 0 !important;
  border-radius: 5px !important;
}

.copy-trade-mode {
  position: absolute;
  z-index: 1;
  top: 50%;
  color: #f04444;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.copy-trade-mode--left {
  left: 0;
}

.copy-trade-mode--right {
  right: 0;
}

.copy-trade-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  font-size: 10px;
  font-weight: 800;
}

.copy-trade-platform img {
  width: 48px;
  height: 23px;
  object-fit: contain;
}

.copy-trade-card > p {
  margin: 2px 0 0;
  color: #c9d0d8;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
}

.copy-trade-card--okx {
  color: #fff;
  border-color: #e5e8ec;
}

.copy-trade-card--okx .copy-trade-qr {
  width: 112px !important;
}

@media (max-width: 760px) {
  .community-panel .copy-trade-section {
    grid-column: 1 / -1;
    width: 100%;
  }

  .copy-trade-help {
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.4;
  }

  .copy-trade-grid {
    grid-template-columns: repeat(5, 142px);
    gap: 7px;
    padding-bottom: 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .copy-trade-card {
    grid-template-rows: 38px auto auto auto;
    padding: 7px 5px 8px;
    border-width: 1px;
    border-radius: 6px;
  }

  .copy-trade-card h3 {
    font-size: 11px;
    line-height: 1.25;
  }

  .copy-trade-qr-wrap:has(.copy-trade-mode) {
    padding-inline: 15px;
  }

  .copy-trade-qr {
    width: 112px !important;
    max-width: 100% !important;
  }

  .copy-trade-mode {
    font-size: 11px;
  }

  .copy-trade-platform {
    min-height: 21px;
    gap: 3px;
    font-size: 9px;
  }

  .copy-trade-platform img {
    width: 40px;
    height: 19px;
  }

  .copy-trade-card > p {
    margin-top: 1px;
    font-size: 8px;
  }

  .copy-trade-card--okx {
    align-self: center;
    margin: 8px 10px;
    padding-block: 5px;
  }

  .copy-trade-card--okx .copy-trade-qr {
    width: 88px !important;
  }
}

/* Eight numbered copy-trade cards. */
.copy-trade-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

.copy-trade-grid .copy-trade-card {
  display: none;
}

.copy-trade-card-image {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 800 / 900;
  object-fit: contain;
  border: 0;
  border-radius: 8px;
  user-select: none;
  -webkit-touch-callout: default;
}

@media (max-width: 760px) {
  .copy-trade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding-bottom: 0;
    overflow: visible;
  }

  .copy-trade-card-image {
    border-radius: 5px;
  }
}

/* Position plaza: one selected source at a time on desktop and mobile. */
.position-hub {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.position-switcher {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding: 5px;
  background: #eaf2f6;
  border: 1px solid #cfdde6;
  border-radius: 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.position-switcher button {
  min-height: 46px;
  padding: 8px 12px;
  color: #31505f;
  background: #fff;
  border: 1px solid #c6d7e1;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.position-switcher button:hover,
.position-switcher button:focus-visible {
  color: #056b68;
  border-color: #4ca8a4;
  outline: none;
}

.position-switcher button.is-active {
  color: #fff;
  background: #087b76;
  border-color: #087b76;
}

.position-hub > .capital-panel {
  grid-column: 1 / -1;
  grid-row: auto;
  width: 100%;
}

.position-hub > .capital-panel[hidden] {
  display: none;
}

.position-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dbe4ea;
  border-radius: 7px;
}

.live-position-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  color: #182b37;
  background: #fff;
  font-size: 14px;
}

.live-position-table th,
.live-position-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #dfe6eb;
  text-align: right;
  white-space: nowrap;
}

.live-position-table td {
  white-space: pre-line;
}

.live-position-table th {
  color: #71808a;
  background: #f6f9fb;
  font-size: 12px;
  font-weight: 700;
}

.live-position-table th:first-child,
.live-position-table td:first-child {
  text-align: left;
}

.live-position-table tbody tr:last-child td {
  border-bottom: 0;
}

.live-position-table .position-positive {
  color: #07845a;
  font-weight: 900;
}

.live-position-table .position-negative {
  color: #d23f50;
  font-weight: 900;
}

.position-symbol {
  position: relative;
  display: block;
  padding-left: 10px;
  color: #13242f;
  font-size: 15px;
}

.position-symbol::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  background: #14a06f;
  border-radius: 2px;
  content: "";
}

.position-symbol.is-short::before {
  background: #ef4d62;
}

.position-badges {
  display: inline-block;
  margin: 5px 0 0 10px;
  padding: 2px 5px;
  color: #4e5e68;
  background: #eef3f6;
  border: 1px solid #d4dee5;
  border-radius: 3px;
  font-size: 10px;
}

.account-margin-balance {
  margin: 0 !important;
  color: #087b76 !important;
  font-size: 13px !important;
  font-weight: 800;
  white-space: nowrap;
}

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

.community-panel {
  grid-column: 1 / -1;
  grid-row: 1;
}

.statement-panel {
  grid-column: 1;
  grid-row: 2;
}

.mute-panel {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 760px) {
  .position-hub {
    gap: 8px;
  }

  .position-switcher {
    display: flex;
    gap: 5px;
    margin-inline: -2px;
    padding: 4px;
  }

  .position-switcher button {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 42px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .position-hub > .capital-panel {
    display: grid;
  }

  .position-hub > .capital-panel > .position-heading-with-entry {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .position-hub > .capital-panel > .position-comments {
    grid-column: 1 / -1;
  }

  .position-hub .position-entry-aside {
    margin-right: -6px;
  }

  .position-table-scroll {
    grid-column: 1 / -1 !important;
    overflow: visible;
    border: 0;
  }

  .live-position-table {
    display: block;
    min-width: 0;
    background: transparent;
    font-size: 11px;
  }

  .live-position-table thead {
    display: none;
  }

  .live-position-table tbody {
    display: grid;
    gap: 7px;
  }

  .live-position-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe4ea;
    border-radius: 7px;
  }

  .live-position-table td,
  .live-position-table td:first-child {
    display: flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    justify-content: center;
    padding: 7px 8px;
    overflow-wrap: anywhere;
    border: 0;
    border-right: 1px solid #e5ebef;
    border-bottom: 1px solid #e5ebef;
    text-align: left;
    white-space: pre-line;
  }

  .live-position-table td:nth-child(3),
  .live-position-table td:nth-child(6),
  .live-position-table td:nth-child(7) {
    border-right: 0;
  }

  .live-position-table td:nth-child(n+7) {
    border-bottom: 0;
  }

  .live-position-table td:nth-child(7) {
    grid-column: 1 / -1;
    min-height: 40px;
  }

  .live-position-table.has-liquidation td:nth-child(7) {
    grid-column: 1;
  }

  .live-position-table.has-liquidation td:nth-child(8) {
    grid-column: 2 / -1;
    min-height: 40px;
    border-right: 0;
    border-bottom: 0;
  }

  .live-position-table td:not(:first-child)::before {
    display: block;
    margin-bottom: 3px;
    color: #82909a;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    content: attr(data-label);
  }

  .position-symbol {
    padding-left: 8px;
    font-size: 13px;
    line-height: 1.15;
  }

  .position-badges {
    margin: 4px 0 0 8px;
    padding: 1px 3px;
    font-size: 9px;
  }

  .capital-dashboard {
    grid-template-columns: 1fr;
  }

  .community-panel,
  .statement-panel,
  .mute-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .capital-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .statement-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .mute-panel {
    grid-column: 2;
    grid-row: 2;
  }
}
