/* Waypoint Social — premium inner workspace / terminal layout */

.social-root,
.social-shell {
  min-height: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Laptop Social — compact density; class fallback (media query below is canonical) */
html.ui-tier-laptop .ws-root {
  --ws-type: 1rem;
  padding: 8px 12px;
}

html.ui-tier-laptop .ws-app {
  grid-template-columns: 184px minmax(0, 1fr) 236px;
}

html.ui-tier-laptop .ws-app:has(.ws-rail.is-collapsed) {
  grid-template-columns: 184px minmax(0, 1fr);
}

html.ui-tier-laptop .ws-sidenav,
html.ui-tier-laptop .ws-rail {
  padding: 10px 8px;
  gap: 8px;
}

html.ui-tier-laptop .ws-app-header {
  padding: 8px 12px;
  gap: 10px 12px;
}

html.ui-tier-laptop .ws-main {
  padding: 12px 14px 24px;
}

@media (max-width: 1699px) {
  html.ui-tier-laptop .ws-main {
    max-width: min(720px, 100%);
  }
}

html.ui-tier-laptop .ws-brand-hero .ws-mark,
html.ui-tier-laptop .ws-mark {
  width: 36px;
  height: 36px;
}

html.ui-tier-laptop .ws-wordmark {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
}

html.ui-tier-laptop .ws-nav-btn,
html.ui-tier-laptop .ws-feed-tab,
html.ui-tier-laptop .ws-tab {
  font-size: 0.8rem;
  min-height: var(--btn-h, 32px);
  padding: 6px 9px;
}

html.ui-tier-tablet .ws-root {
  --ws-type: 0.94rem;
  padding: 6px 8px;
}

html.ui-tier-tablet .ws-nav-btn,
html.ui-tier-tablet .ws-feed-tab,
html.ui-tier-tablet .ws-tab,
html.ui-tier-tablet .ws-chrome-btn {
  min-height: var(--touch-min, 44px);
  font-size: 0.82rem;
}

.ws-root {
  --ws-cyan: #1e9bff;
  --ws-cyan-soft: rgba(30, 155, 255, 0.35);
  --ws-gold: rgba(201, 162, 39, 0.28);
  --ws-navy: #070b12;
  --ws-panel: #0a1018;
  --ws-ink: #e8edf5;
  --ws-type: clamp(0.95rem, 0.35vw + 0.88rem, 1.05rem);
  box-sizing: border-box;
  min-height: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: clamp(8px, 1.4vh, 20px) clamp(10px, 2vw, 32px);
  color: var(--ws-ink);
  font-size: var(--ws-type);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(30, 155, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 8% 90%, rgba(30, 155, 255, 0.04), transparent 50%),
    linear-gradient(rgba(30, 155, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 155, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #060a10 0%, #080d14 50%, #05080e 100%);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  overflow: hidden;
}

.ws-workspace {
  width: 100%;
  max-width: min(var(--ws-shell-max, 1560px), 100%);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  transition: max-width 0.22s ease;
}

.ws-workspace.is-expanded {
  max-width: min(var(--ws-shell-max-expanded, 1840px), 100%);
}

/* Big monitor / ultrawide: use more width, stay centered, no giant dead zone */
@media (min-width: 1700px) {
  :root {
    --ws-shell-max: 1640px;
    --ws-shell-max-expanded: 1880px;
  }
  .ws-page { max-width: min(920px, 100%); }
  .ws-page-wide,
  .ws-profile-page,
  .ws-editor-page { max-width: min(1240px, 100%); }
}

@media (min-width: 1800px) {
  :root {
    --ws-shell-max: 1720px;
    --ws-shell-max-expanded: 2000px;
  }
}

@media (min-width: 1900px) {
  .ws-page-wide,
  .ws-profile-page,
  .ws-editor-page { max-width: min(1360px, 100%); }
  .ws-app {
    grid-template-columns: 228px minmax(0, 1fr) 300px;
  }
}

@media (min-width: 2400px) {
  :root {
    --ws-shell-max: 1960px;
    --ws-shell-max-expanded: 2280px;
  }
  .ws-page-wide,
  .ws-profile-page,
  .ws-editor-page { max-width: min(1450px, 100%); }
  .ws-root {
    padding-left: max(24px, calc((100vw - var(--ws-shell-max-expanded)) / 2 * 0.12));
    padding-right: max(24px, calc((100vw - var(--ws-shell-max-expanded)) / 2 * 0.12));
  }
}

@media (min-width: 3000px) {
  :root {
    --ws-shell-max: 2140px;
    --ws-shell-max-expanded: 2480px;
  }
}

.ws-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ws-cyan-soft);
  border-radius: 14px;
  background: var(--ws-panel);
  box-shadow:
    0 0 0 1px var(--ws-gold),
    0 22px 56px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.ws-app-header {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30, 155, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(30, 155, 255, 0.07), transparent 70%),
    #0a1018;
  flex-shrink: 0;
}

.ws-app-search { min-width: 0; }

.ws-app-search input {
  width: 100%;
  border: 1px solid rgba(46, 140, 255, 0.22);
  background: #0d1622;
  color: #e8edf5;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  min-height: var(--btn-h, 34px);
}

.ws-app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ws-chrome-btn {
  border: 1px solid rgba(30, 155, 255, 0.28);
  background: rgba(16, 24, 38, 0.9);
  color: #c5d6ea;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: var(--btn-h-sm, 28px);
}

.ws-chrome-btn[aria-pressed="true"] {
  color: #f4f8ff;
  border-color: rgba(30, 155, 255, 0.55);
  background: rgba(30, 155, 255, 0.14);
}

.ws-app {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 292px;
  flex: 1 1 auto;
  min-height: 0;
  background: #070b12;
  color: #e8edf5;
  overflow: hidden;
}

.ws-sidenav,
.ws-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  background: #0a1018;
  border-right: 1px solid rgba(46, 140, 255, 0.12);
  overflow: auto;
  min-height: 0;
}

.ws-rail {
  border-right: 0;
  border-left: 1px solid rgba(46, 140, 255, 0.12);
}

.ws-rail.is-collapsed {
  display: none;
}

.ws-app:has(.ws-rail.is-collapsed) {
  grid-template-columns: 228px minmax(0, 1fr);
}

.ws-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.ws-brand-hero .ws-mark {
  width: 52px;
  height: 52px;
}

.ws-brand img,
.ws-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(30, 155, 255, 0.35));
  /* Canonical orientation — upright W only (no rotate/flip/mirror) */
  transform: none;
  rotate: none;
  scale: none;
}

.ws-wordmark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  font-family: "Segoe UI", Montserrat, "DIN Alternate", sans-serif;
  letter-spacing: 0.14em;
  font-size: clamp(0.92rem, 1.1vw, 1.12rem);
  font-weight: 750;
  line-height: 1.05;
}

.ws-word-waypoint {
  color: #f4f7fb;
  font-weight: 750;
}

.ws-word-social {
  color: #1e9bff;
  font-weight: 750;
}

.ws-tagline {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #a8b8cc;
}

.ws-tagline em {
  font-style: normal;
  color: #1e9bff;
  font-weight: 600;
}

.ws-side-search input {
  width: 100%;
  border: 1px solid rgba(46, 140, 255, 0.2);
  background: #0d1622;
  color: #e8edf5;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
}

.ws-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-nav-btn,
.ws-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #9eb0c6;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.86rem;
  text-align: left;
  width: 100%;
}

.ws-nav-btn:hover,
.ws-tab:hover,
.ws-nav-btn:focus-visible,
.ws-tab:focus-visible,
.ws-feed-tab:focus-visible,
.ws-react:focus-visible,
.ws-text-link:focus-visible {
  color: #f4f8ff;
  background: rgba(30, 155, 255, 0.08);
  outline: 2px solid rgba(30, 155, 255, 0.65);
  outline-offset: 2px;
}

.ws-nav-btn.active,
.ws-tab.active {
  color: #f4f8ff;
  background: rgba(30, 155, 255, 0.18);
  font-weight: 600;
}

.ws-nav-ico { width: 1.2em; text-align: center; }
.ws-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1e9bff;
  color: #fff;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ws-btn-primary,
.btn.ws-btn-primary {
  background: #1e9bff !important;
  border-color: #1e9bff !important;
  color: #fff !important;
}

.ws-new-post { width: 100%; justify-content: center; }

.ws-community-stats {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-presence-card {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(30, 155, 255, 0.12);
  background: rgba(8, 14, 22, 0.7);
}

.ws-stat-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f93ab;
}

.ws-stat-label,
.ws-stat-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #9eb0c6;
  margin: 0 0 8px;
}

.ws-stat-label strong,
.ws-stat-sub strong {
  color: #f4f8ff;
  font-size: 1.15rem;
}

.ws-stat-unit {
  font-size: 0.72rem;
  color: #7f93ab;
}

.ws-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
}

.ws-facepile {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
}

.ws-facepile .ws-avatar { margin-left: -8px; border: 2px solid #0a1018; }
.ws-facepile .ws-avatar:first-child { margin-left: 0; }

.ws-stage {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(30, 155, 255, 0.08), transparent 55%),
    #070b12;
}

.ws-main {
  padding: 16px 20px 36px;
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.ws-page,
.ws-profile-page,
.ws-editor-page {
  width: 100%;
  max-width: min(820px, 100%);
  margin: 0 auto;
}

.ws-page-wide {
  max-width: min(1100px, 100%);
}

.ws-profile-page,
.ws-editor-page {
  max-width: min(1100px, 100%);
}

@media (min-width: 1500px) and (max-width: 1699px) {
  .ws-page,
  .ws-profile-page,
  .ws-editor-page {
    max-width: min(820px, 100%);
  }
}

/* These must come after the 1100px caps so ultrawide actually wins. */
@media (min-width: 1700px) {
  .ws-page { max-width: min(920px, 100%); }
  .ws-page-wide,
  .ws-profile-page,
  .ws-editor-page { max-width: min(1240px, 100%); }
}
@media (min-width: 1900px) {
  .ws-page-wide,
  .ws-profile-page,
  .ws-editor-page { max-width: min(1360px, 100%); }
}
@media (min-width: 2400px) {
  .ws-page-wide,
  .ws-profile-page,
  .ws-editor-page { max-width: min(1450px, 100%); }
}

.ws-feed-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.ws-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ws-stage-search {
  flex: 1;
}

.ws-stage-search input {
  width: 100%;
  border: 1px solid rgba(46, 140, 255, 0.2);
  background: #0d1622;
  color: #e8edf5;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
}

.ws-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-icon-btn {
  position: relative;
  border: 0;
  background: #101826;
  color: #d7ecff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
}

.ws-icon-btn .ws-avatar {
  width: 28px;
  height: 28px;
  border-width: 1px;
}

.ws-icon-btn .ws-nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  margin-left: 0;
}

.ws-feed-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  color: #f4f8ff;
}

.ws-feed-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ws-feed-tab {
  border: 0;
  background: none;
  color: #8fa3bb;
  padding: 8px 0 10px;
  cursor: pointer;
  font-size: 0.92rem;
}

.ws-feed-tab.active {
  color: #f4f8ff;
  box-shadow: inset 0 -2px 0 #1e9bff;
  font-weight: 600;
}

.ws-id-card,
.ws-side-card,
.ws-composer,
.ws-post,
.ws-panel,
.ws-member-card,
.ws-auth-gate,
.ws-empty,
.ws-widget,
.ws-pro-card,
.ws-spotlight {
  border-radius: 12px;
  border: 1px solid rgba(46, 140, 255, 0.12);
  background: #101826;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.ws-id-card { overflow: hidden; padding: 0; }

.ws-id-banner,
.ws-member-banner,
.ws-profile-banner,
.ws-banner-edit {
  min-height: 84px;
  background:
    linear-gradient(120deg, rgba(30, 155, 255, 0.35), rgba(20, 30, 48, 0.2)),
    radial-gradient(circle at 80% 20%, rgba(30, 155, 255, 0.25), transparent 45%);
  background-size: cover;
  background-position: center;
}

.ws-id-body,
.ws-member-body,
.ws-side-card,
.ws-composer,
.ws-post,
.ws-panel,
.ws-empty,
.ws-auth-gate,
.ws-widget {
  padding: 14px;
}

.ws-id-avatar-wrap {
  position: relative;
  width: fit-content;
  margin-top: -34px;
}

.ws-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  background: #152033;
  border: 2px solid rgba(30, 155, 255, 0.45);
  color: #d7ecff;
  font-family: Inter, sans-serif;
  flex-shrink: 0;
}

.ws-avatar-portrait {
  object-fit: contain;
  background: transparent;
  border-radius: 14px;
  border-color: rgba(201, 162, 39, 0.4);
}

.ws-id-avatar-wrap .ws-avatar-portrait {
  width: 96px;
  height: 118px;
  border-radius: 18px;
}

.ws-profile-chip {
  padding: 2px;
}

.ws-profile-chip .ws-avatar-portrait {
  width: 40px;
  height: 48px;
  border-radius: 12px;
}

.ws-avatar-xs { width: 26px; height: 26px; font-size: 0.62rem; }
.ws-avatar-sm { width: 36px; height: 36px; font-size: 0.75rem; }
.ws-avatar-md { width: 44px; height: 44px; font-size: 0.85rem; }
.ws-avatar-lg { width: 56px; height: 56px; font-size: 1rem; margin-top: -28px; }
.ws-avatar-xl { width: 72px; height: 72px; font-size: 1.3rem; border-width: 3px; }
.ws-avatar-xxl { width: 112px; height: 112px; font-size: 2rem; border-width: 4px; margin-top: -56px; }

.ws-presence {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3ddc84;
  border: 2px solid #0a121c;
}

.ws-presence.away,
.ws-presence.offline { background: #7a8494; }
.ws-presence.trading,
.ws-presence.on-the-floor { background: #1e9bff; }

.ws-id-card h2,
.ws-page-head h2,
.ws-profile-intro h1,
.ws-empty h3 {
  margin: 8px 0 2px;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #f4f8ff;
  font-weight: 650;
}

.ws-handle { color: #9aa8bd; font-size: 0.8rem; margin: 0; }
.ws-linkish .ws-handle { margin-left: 6px; font-weight: 400; }
.ws-headline { color: #d5deea; font-size: 0.86rem; margin: 6px 0; line-height: 1.4; }
.ws-meta { color: #8f9cb0; font-size: 0.74rem; margin: 2px 0; }
.ws-rank { color: #c9a227; font-size: 0.74rem; margin: 6px 0; }

.ws-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.ws-chip,
.ws-post-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: #c9d4e4;
  font-size: 0.68rem;
}

.ws-chip-gold {
  border-color: rgba(201, 162, 39, 0.4);
  color: #e6d7a2;
}

.ws-id-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
  text-align: center;
}

.ws-id-stats strong { display: block; color: #f4f8ff; }
.ws-id-stats span { font-size: 0.65rem; color: #8f9cb0; }

.ws-id-actions,
.ws-card-actions,
.ws-composer-actions,
.ws-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-side-card h3,
.ws-panel h3,
.ws-section-label,
.ws-widget h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ecbff;
}

.ws-widget header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ws-text-link {
  border: 0;
  background: none;
  color: #1e9bff;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0;
}

.ws-msg-list,
.ws-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-msg-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 4px 0;
}

.ws-msg-row-pete {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  align-items: center;
}

.ws-msg-row-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 4px 0;
}

.ws-msg-row-main em,
.ws-msg-row em {
  display: block;
  font-style: normal;
  color: #7f93ab;
  font-size: 0.72rem;
}

.ws-widget-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ws-msg-summary {
  margin: 0 0 8px;
  font-size: 0.74rem;
}

.ws-view-all {
  margin-top: 8px;
}

.ws-mini-pop {
  border: 1px solid rgba(30, 155, 255, 0.28);
  background: rgba(16, 24, 38, 0.9);
  color: #9ec9ff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.ws-post-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ws-empty-board {
  text-align: center;
  padding: 18px 10px 8px;
}

.ws-empty-ico {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 155, 255, 0.12);
  border: 1px solid rgba(30, 155, 255, 0.28);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.ws-empty-title {
  margin: 0 0 6px;
  color: #e8edf5;
  font-size: 0.86rem;
  line-height: 1.4;
}

.ws-active-now { color: #3ddc84 !important; }

.ws-board li {
  display: grid;
  grid-template-columns: 22px auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.ws-board-full li {
  grid-template-columns: 28px auto 1fr;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ws-board-rank { color: #c9a227; font-weight: 700; }
.ws-gain { color: #3ddc84; font-size: 0.82rem; }

.ws-pro-card {
  padding: 16px;
  background: linear-gradient(160deg, #123a66, #0d1b2e);
}

.ws-pro-star {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1e9bff;
  margin-bottom: 8px;
}

.ws-composer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.ws-composer textarea,
.ws-field input,
.ws-discover-form input,
.ws-discover-form select,
.ws-editor-grid input,
.ws-editor-grid select,
.ws-editor-grid textarea,
.ws-comment-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(46, 140, 255, 0.18);
  background: #0a121c;
  color: #e8edf5;
  padding: 10px 12px;
  font: inherit;
}

.ws-tag-presets,
.ws-quick-searches,
.ws-mod-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.ws-tag-btn,
.ws-chip-btn,
.ws-react {
  border: 1px solid rgba(46, 140, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: #c9d0dc;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.68rem;
  cursor: pointer;
}

.ws-react.is-active {
  border-color: rgba(30, 155, 255, 0.65);
  background: rgba(30, 155, 255, 0.18);
  color: #d7f0ff;
}

.ws-preview-banner {
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px dashed rgba(30, 155, 255, 0.35);
  border-radius: 8px;
}

.ws-chip-muted { opacity: 0.55; }

.ws-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.ws-post-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.ws-post-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.ws-top-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(30, 155, 255, 0.18);
  color: #7ecbff;
  font-size: 0.65rem;
}

.ws-linkish {
  border: 0;
  background: transparent;
  color: #f4f8ff;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.ws-post-body {
  white-space: pre-wrap;
  color: #dce4f0;
  line-height: 1.5;
  margin: 0 0 8px;
}

.ws-post-media {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  margin: 8px 0;
}

.ws-post-media img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
  background: #05080e;
}

.ws-media-panel {
  border: 1px solid rgba(30, 155, 255, 0.28);
  border-radius: 10px;
  overflow: hidden;
  background: #070b12;
}

.ws-trade-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.ws-trade-meta span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f93ab;
}

.ws-trade-meta strong {
  color: #f4f8ff;
  font-size: 0.86rem;
}

.ws-spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.ws-avatar-pete {
  background: #123a66;
  color: #7ad4ff;
  font-weight: 700;
}

.ws-mobile-nav {
  display: none;
}

.ws-review-badge {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(212, 177, 95, 0.16);
  color: #d4b15f;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ws-post-review .ws-post-body {
  line-height: 1.45;
}

.ws-review-card {
  border-color: rgba(212, 177, 95, 0.28);
}

.ws-profile-posts .ws-post {
  margin: 10px 0 0;
}

.ws-msg-row-pete {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}

.ws-pete-card {
  margin: 8px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(30, 155, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(30, 155, 255, 0.1), rgba(10, 16, 24, 0.4)),
    rgba(12, 22, 34, 0.9);
}

.ws-composer {
  margin-bottom: 4px;
}

.ws-post {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    #101826;
}

.ws-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.ws-reactions .ws-text-link { margin-left: auto; }

.ws-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }

.ws-app .btn-gold,
.ws-auth-gate .btn-gold {
  background: #1e9bff !important;
  border-color: #1e9bff !important;
  color: #fff !important;
}

.ws-app .eyebrow,
.ws-auth-gate .eyebrow {
  color: #7ecbff;
  letter-spacing: 0.1em;
}

.ws-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

.ws-comment {
  font-size: 0.84rem;
  color: #c9d4e4;
  margin: 4px 0;
}

.ws-pending {
  display: inline-block;
  margin-left: 6px;
  color: #e2b04a;
  font-size: 0.7rem;
}

.ws-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.ws-suggest-row,
.ws-person-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.ws-person-row {
  grid-template-columns: auto 1fr repeat(3, auto);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ws-page-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ws-network-grid,
.ws-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ws-discover-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.ws-discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.ws-member-card { overflow: hidden; padding: 0; }
.ws-member-body { display: flex; flex-direction: column; gap: 4px; }
.ws-profile-page { display: flex; flex-direction: column; gap: 14px; }

.ws-profile-hero {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(46, 140, 255, 0.16);
  background: rgba(12, 18, 28, 0.92);
}

.ws-profile-banner { min-height: 180px; }

.ws-profile-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 0 18px 18px;
  align-items: end;
}

.ws-profile-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.ws-chip-grid { display: flex; flex-wrap: wrap; gap: 6px; }

.ws-chip-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 8px;
  cursor: pointer;
}

.ws-chip-check input { width: auto; }

.ws-editor-grid fieldset {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 8px 8px;
  margin: 0 0 8px;
}

.ws-editor-grid legend {
  padding: 0 6px;
  color: #7ecbff;
  font-size: 0.72rem;
}

.ws-banner-edit {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 110px;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.ws-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.ws-empty,
.ws-auth-gate {
  text-align: center;
  padding: 36px 20px;
}

.ws-empty-inline { padding: 12px 0; }
.ws-quiet { font-size: 0.8rem; line-height: 1.45; }
.ws-note { font-size: 0.78rem; margin-top: 6px; }
.btn-block { width: 100%; }

.ws-img-preview {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.82);
  display: grid;
  place-items: center;
  padding: 24px;
}

.ws-img-preview img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}

.ws-img-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.ws-mod-card {
  border: 1px solid rgba(224, 160, 64, 0.35);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Laptop Social — scoped; does not apply at >=1920 */
@media (max-width: 1699px) and (min-width: 1280px) {
  .ws-root {
    --ws-type: 1rem;
    padding: 8px 12px;
  }
  .ws-app {
    grid-template-columns: 184px minmax(0, 1fr) 236px;
  }
  .ws-app:has(.ws-rail.is-collapsed) {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .ws-sidenav,
  .ws-rail {
    padding: 10px 8px;
    gap: 8px;
  }
  .ws-app-header {
    padding: 8px 12px;
    gap: 10px 12px;
  }
  .ws-main {
    padding: 12px 14px 24px;
    max-width: none;
  }
  .ws-page,
  .ws-profile-page,
  .ws-editor-page {
    max-width: min(720px, 100%);
  }
  .ws-page-wide {
    max-width: min(860px, 100%);
  }
  .ws-brand-hero .ws-mark,
  .ws-mark {
    width: 36px;
    height: 36px;
  }
  .ws-wordmark {
    font-size: 0.84rem;
    letter-spacing: 0.1em;
  }
  .ws-nav-btn,
  .ws-feed-tab,
  .ws-tab {
    font-size: 0.8rem;
    min-height: 32px;
    padding: 6px 9px;
  }
}

/* Tablet Social — drop context rail; feed stays dominant (does not apply >=1920) */
@media (max-width: 1279px) {
  .ws-root { padding: 8px 10px; }
  .ws-workspace,
  .ws-workspace.is-expanded { max-width: 100%; }
  .ws-app-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .ws-app-search { grid-column: 1 / -1; order: 3; }
  .ws-app,
  .ws-app:has(.ws-rail.is-collapsed) {
    grid-template-columns: 168px minmax(0, 1fr);
  }
  .ws-rail { display: none; }
  .ws-sidenav { padding: 12px 10px; }
  .ws-tagline { display: none; }
  .ws-brand-hero .ws-mark,
  .ws-mark { width: 36px; height: 36px; }
  .ws-wordmark { font-size: 0.84rem; letter-spacing: 0.1em; }
  .ws-nav-btn,
  .ws-tab {
    min-height: var(--touch-min, 44px);
    font-size: 0.82rem;
  }
}

/* Tablet landscape — compact side nav, no clipped panes */
@media (max-width: 1024px) and (min-width: 901px) {
  .ws-root {
    padding: 6px 8px;
  }
  .ws-app,
  .ws-app:has(.ws-rail.is-collapsed) {
    grid-template-columns: 148px minmax(0, 1fr);
  }
  .ws-sidenav {
    padding: 10px 8px;
    gap: 8px;
  }
  .ws-main {
    padding: 14px 14px 20px;
    max-width: none;
  }
  .ws-app-header {
    padding: 10px 12px;
  }
  .ws-chrome-btn {
    min-height: var(--touch-min, 44px);
    padding: 8px 12px;
  }
}

/* Tablet portrait — feed only, touch nav (does not squeeze three columns) */
@media (max-width: 900px) and (min-width: 761px) {
  .ws-root {
    padding: 6px 8px;
    overflow: hidden;
  }
  .ws-app,
  .ws-app:has(.ws-rail.is-collapsed) {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .ws-sidenav,
  .ws-rail {
    display: none;
  }
  .ws-main {
    padding: 12px 12px 18px;
    max-width: none;
  }
  .ws-mobile-nav {
    display: flex;
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #0a1018;
    border-top: 1px solid rgba(46, 140, 255, 0.16);
    flex-shrink: 0;
  }
  .ws-mobile-nav .ws-nav-btn {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    font-size: 0.62rem;
    padding: 8px 4px;
    width: auto;
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .ws-root {
    padding: 0;
    background: #070b12;
  }
  .ws-workspace,
  .ws-workspace.is-expanded { max-width: 100%; }
  .ws-frame {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ws-app-header {
    grid-template-columns: 1fr auto;
    padding: 10px 12px;
  }
  .ws-chrome-btn:not(.ws-kyr-btn) { display: none; }
  .ws-app,
  .ws-app:has(.ws-rail.is-collapsed) {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .ws-sidenav {
    display: none;
  }
  .ws-stage { min-height: 0; }
  .ws-main { padding: 12px 12px 18px; max-width: none; }
  .ws-mobile-nav {
    display: flex;
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #0a1018;
    border-top: 1px solid rgba(46, 140, 255, 0.16);
    flex-shrink: 0;
  }
  .ws-mobile-nav .ws-nav-btn {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    font-size: 0.62rem;
    padding: 6px 4px;
    width: auto;
  }
  .ws-network-grid,
  .ws-editor-grid,
  .ws-profile-sections {
    grid-template-columns: 1fr;
  }
  .ws-discover-form { grid-template-columns: 1fr; }
  .ws-profile-intro { grid-template-columns: 1fr; }
  .ws-person-row { grid-template-columns: auto 1fr; }
  .ws-topbar-actions .ws-avatar { display: none; }
}

/* Post pop-out window */
.ws-post-float {
  position: fixed;
  z-index: 11040;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 260px;
  border-radius: 14px;
  border: 1px solid rgba(30, 155, 255, 0.4);
  background: linear-gradient(180deg, #121a28 0%, #0b111a 100%);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.18), 0 18px 48px rgba(0, 0, 0, 0.55);
  color: #e8edf5;
  overflow: hidden;
}

.ws-post-float.is-minimized {
  height: auto !important;
  min-height: 0;
}

.ws-post-float.is-minimized .ws-post-float-body,
.ws-post-float.is-minimized .ws-post-float-resize {
  display: none;
}

.ws-post-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  cursor: move;
  border-bottom: 1px solid rgba(30, 155, 255, 0.2);
  background: #101826;
}

.ws-post-float-actions {
  display: flex;
  gap: 4px;
}

.ws-post-float-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px;
  min-height: 0;
}

.ws-post-float-body .ws-post {
  margin: 0;
  box-shadow: none;
}

.ws-post-float-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, rgba(30, 155, 255, 0.45) 50%);
}

/* Crop editor */
.ws-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 14000;
  background: rgba(4, 8, 14, 0.78);
  display: grid;
  place-items: center;
  padding: 16px;
}
.ws-crop-modal {
  width: min(720px, 100%);
  background: #0a1018;
  border: 1px solid rgba(30, 155, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.22), 0 24px 60px rgba(0,0,0,0.55);
  border-radius: 12px;
  padding: 16px 18px 18px;
  color: #e8edf5;
}
.ws-crop-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ws-crop-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(30, 155, 255, 0.4);
  background: #05080e;
  cursor: grab;
  touch-action: none;
}
.ws-crop-viewport img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; }
.ws-crop-stage.is-circle .ws-crop-viewport {
  border-radius: 50%;
  max-width: 360px;
  margin: 0 auto;
}
.ws-crop-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.ws-crop-zoom input { flex: 1; }
.ws-banner-edit, .ws-avatar-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Identity tokens / ranking */
.ws-chip-check input:checked + span,
.ws-chip-check:has(input:checked) span {
  background: rgba(30, 155, 255, 0.22);
  border-color: rgba(30, 155, 255, 0.7);
  color: #f4f8ff;
}
.ws-chip-grid { display: flex; flex-wrap: wrap; gap: 4px 5px; margin: 4px 0 8px; }
.ws-chip-check { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ws-chip-check span {
  border: 1px solid rgba(30, 155, 255, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  line-height: 1.25;
  min-height: 24px;
}
.ws-chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ws-chip-check:focus-within span { outline: 2px solid rgba(30, 155, 255, 0.7); outline-offset: 2px; }
.ws-other-input { width: 100%; margin: 6px 0 10px; }
.ws-token-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; }
.ws-token {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
  border-radius: 999px; padding: 4px 8px 4px 10px; font-size: 0.78rem;
}
.ws-token-remove { border: 0; background: transparent; color: #d7c48a; cursor: pointer; }
.ws-token-add { display: flex; gap: 8px; margin-bottom: 8px; }
.ws-token-add input { flex: 1; }
.ws-indicator-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 8px; }
.ws-indicator-rank { color: #c9a227; font-weight: 700; }
.ws-indicator-custom { grid-column: 2; }
.ws-indicator-public { margin: 0; padding-left: 1.2rem; }
.ws-pref-row { display: grid; grid-template-columns: minmax(140px, 1.4fr) repeat(5, auto); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(30,155,255,0.08); font-size: 0.82rem; }

/* Rank insignia */
.ws-rank-badge { display: inline-flex; align-items: center; gap: 8px; }
.ws-rank-mark {
  width: 28px; height: 28px; border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(201,162,39,0.9), rgba(201,162,39,0.35)),
    repeating-linear-gradient(90deg, transparent, transparent 6px, rgba(8,14,22,0.5) 6px, rgba(8,14,22,0.5) 7px);
  box-shadow: inset 0 0 0 1px rgba(30,155,255,0.35);
  flex-shrink: 0;
}
.ws-rank-badge[data-insignia^="chevron"] .ws-rank-mark {
  clip-path: polygon(50% 8%, 92% 78%, 8% 78%);
}
.ws-rank-badge[data-insignia^="bar"] .ws-rank-mark {
  background: repeating-linear-gradient(180deg, #c9a227 0 4px, transparent 4px 7px);
}
.ws-rank-badge[data-insignia^="star"] .ws-rank-mark {
  clip-path: polygon(50% 4%, 61% 38%, 98% 38%, 68% 59%, 79% 96%, 50% 74%, 21% 96%, 32% 59%, 2% 38%, 39% 38%);
}
.ws-admin-tag { display: block; font-size: 0.62rem; letter-spacing: 0.12em; color: #c9a227; text-transform: uppercase; font-style: normal; }
.ws-xp-track { height: 6px; background: rgba(30,155,255,0.12); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.ws-xp-track span { display: block; height: 100%; background: linear-gradient(90deg, #1e9bff, #c9a227); }
.ws-xp-remain, .ws-xp-tenure { font-size: 0.78rem; color: #9eb4cc; margin: 0; }
.ws-pete-result, .ws-pete-result-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(30,155,255,0.16); }

body.social-standalone .ws-root { padding: 0; }
body.social-standalone .ws-workspace,
body.social-standalone .ws-workspace.is-expanded { max-width: 100%; height: 100%; }
body.social-standalone .ws-frame { border-radius: 0; }

@keyframes ws-attn-wiggle {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.12) rotate(-7deg); }
  50% { transform: scale(1.08) rotate(6deg); }
  75% { transform: scale(1.1) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.nav-rail-btn-social.ws-attn-pulse,
#crewMsgFab.ws-attn-pulse,
.crew-msg-fab.ws-attn-pulse {
  animation: ws-attn-wiggle 0.7s ease;
}
@media (prefers-reduced-motion: reduce) {
  .nav-rail-btn-social.ws-attn-pulse,
  #crewMsgFab.ws-attn-pulse,
  .crew-msg-fab.ws-attn-pulse,
  .ws-workspace { animation: none; transition: none; }
}

@media (max-width: 900px) {
  .ws-pref-row { grid-template-columns: 1fr 1fr; }
}

.ws-choose-all {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #7a8fa8;
}

.ws-kyr-btn {
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: linear-gradient(180deg, rgba(30, 155, 255, 0.16), rgba(12, 18, 28, 0.9));
  color: #f0d080;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0 12px;
  min-height: 32px;
}
.ws-kyr-btn:focus-visible { outline: 2px solid #1e9bff; outline-offset: 2px; }

.ws-rank-avatar {
  display: inline-block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
  background: transparent;
}
.ws-rank-badge { display: inline-flex; align-items: center; gap: 8px; }
.ws-treasure-coin { display: inline-block; vertical-align: -3px; }
.ws-treasure-line { display: flex; align-items: center; gap: 6px; margin: 4px 0; }

.ws-kyr-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 8, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.ws-kyr-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  overflow: auto;
  background: #0a1018;
  border: 1px solid rgba(30, 155, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.22), 0 24px 60px rgba(0,0,0,0.55);
  border-radius: 12px;
  color: #e8edf5;
}
@media (min-width: 1280px) {
  .ws-kyr-dialog { width: min(820px, calc(100vw - 48px)); }
}
@media (min-width: 1700px) {
  .ws-kyr-dialog {
    width: min(1120px, calc(100vw - 80px));
    max-height: min(90vh, 1100px);
  }
  .ws-kyr-ladder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
@media (min-width: 1900px) {
  .ws-kyr-dialog { width: min(1280px, calc(100vw - 96px)); }
}
@media (min-width: 2400px) {
  .ws-kyr-dialog { width: min(1440px, calc(100vw - 120px)); }
}
.ws-kyr-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 8px;
  position: sticky;
  top: 0;
  background: #0a1018;
  z-index: 1;
}
.ws-kyr-sub { color: #c9a227; margin: 0; font-size: 0.92rem; }
.ws-kyr-body { padding: 8px 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.ws-kyr-current {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.06);
}
.ws-kyr-hero-avatar { width: 88px; height: 88px; }
.ws-kyr-kicker { letter-spacing: 0.14em; font-size: 0.68rem; color: #7ecbff; text-transform: uppercase; margin: 0 0 4px; }
.ws-kyr-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1700px) {
  .ws-kyr-ladder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
.ws-kyr-rank {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(30, 155, 255, 0.12);
  border-radius: 10px;
}
.ws-kyr-rank.is-current {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(30, 155, 255, 0.08);
}
.ws-kyr-rank.is-complete { opacity: 0.85; }
.ws-kyr-rank.is-locked { opacity: 0.48; }
.ws-kyr-level { margin: 0; font-size: 0.62rem; letter-spacing: 0.12em; color: #7ecbff; }
.ws-kyr-earn { margin: 0 0 8px; }
.ws-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,155,255,0.08);
}
.ws-notice-promo {
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  padding: 10px;
  background: rgba(201, 162, 39, 0.06);
}
@keyframes ws-promo-gold {
  0% { box-shadow: 0 0 0 rgba(201, 162, 39, 0); }
  50% { box-shadow: 0 0 18px rgba(201, 162, 39, 0.28); }
  100% { box-shadow: 0 0 0 rgba(201, 162, 39, 0); }
}
.ws-notice-promo { animation: ws-promo-gold 1.6s ease 1; }
@media (prefers-reduced-motion: reduce) {
  .ws-notice-promo { animation: none; }
}

.ws-roster-wrap { overflow: auto; }
.ws-roster {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ws-roster th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #7ecbff;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(30,155,255,0.2);
}
.ws-roster td {
  padding: 10px;
  border-bottom: 1px solid rgba(30,155,255,0.08);
  vertical-align: middle;
}
.ws-roster-pos { color: #c9a227; font-weight: 700; width: 36px; }
.ws-roster-rank { margin-left: 8px; }

.ws-trader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.ws-trader-card {
  border: 1px solid rgba(30, 155, 255, 0.16);
  border-radius: 12px;
  padding: 14px;
  background: rgba(10, 16, 24, 0.9);
}
.ws-trader-card header { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.ws-trader-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ws-chip-btn.is-on {
  background: rgba(30, 155, 255, 0.22);
  border-color: rgba(30, 155, 255, 0.7);
}

.ws-market-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.ws-market-cat {
  text-align: left;
  border: 1px solid rgba(30, 155, 255, 0.16);
  background: #0d1622;
  color: inherit;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.ws-market-cat.active {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: inset 0 0 0 1px rgba(30, 155, 255, 0.25);
}
.ws-market-cat span { display: block; font-size: 0.72rem; color: #9eb4cc; }
.ws-market-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 12px;
}
.ws-market-post { padding: 8px 0; border-bottom: 1px solid rgba(30,155,255,0.08); }
.ws-settings-error { color: #ff8a8a; }

@media (max-width: 900px) {
  .ws-market-split,
  .ws-kyr-current { grid-template-columns: 1fr; }
  .ws-kyr-btn { font-size: 0.64rem; padding: 0 8px; }
}
