/* Galaxy invitation center. The signed-out surface keeps its incumbent identity. */
@font-face {
  font-family: "Galaxy Display";
  src: url("./galaxy-display.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.app-container:not(.river-theme) .main-content { width: 100%; max-width: 1080px; box-sizing: border-box; min-width: 0; }
.app-container:not(.river-theme) .header-inner { width: 100%; box-sizing: border-box; min-width: 0; }
.app-container:not(.river-theme) .brand-title-wrap { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.app-container:not(.river-theme) .brand-title { font-weight: 700; }
.app-container:not(.river-theme) .brand-divider { color: var(--text-muted); font-size: 13px; }
.app-container:not(.river-theme) .brand-sub { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.app-container:not(.river-theme) .nav-link-home { color: var(--jade-primary); background: var(--jade-light); border-color: var(--jade-border); font-weight: 600; }
.app-container:not(.river-theme) .paper-card { box-shadow: none; }
.app-container:not(.river-theme) .explore-section { padding: 16px 18px; background: var(--bg-surface-raised); border-color: var(--border-subtle); box-shadow: none; }
.app-container:not(.river-theme) .explore-section .card-heading { font-size: 14px; color: var(--text-muted); }
.app-container:not(.river-theme) .explore-card { box-shadow: none; padding: 12px 14px; }
.app-container:not(.river-theme) .explore-card:hover { box-shadow: none; transform: none; border-color: var(--border-active); }
.app-container:not(.river-theme) .explore-feature-list { display: none; }
.app-container:not(.river-theme) :is(.btn, .nav-link-pill, .code-field):focus-visible { outline: 2px solid var(--jade-dark); outline-offset: 2px; }
@media (max-width: 768px) {
  .app-container:not(.river-theme) :is(.btn, .nav-link-pill) { min-height: 44px; box-sizing: border-box; }
  .app-container:not(.river-theme) .explore-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-container:not(.river-theme) .main-content { padding: 16px 14px 40px; }
  .app-container:not(.river-theme) :is(.header-inner, .header-user-status) { flex-wrap: wrap; gap: 10px; }
  .app-container:not(.river-theme) .header-nav-links { flex-wrap: wrap; gap: 6px; }
  .app-container:not(.river-theme) .brand-title { overflow-wrap: anywhere; }
  .app-container:not(.river-theme) .paper-card { padding: 16px; margin-bottom: 14px; }
  .app-container:not(.river-theme) .toast-container { inset-inline: 12px; bottom: 12px; }
  .app-container:not(.river-theme) .toast { min-width: 0; }
}

/* Midnight, mineral blue, starlight and muted brass. All effects belong to the scene. */
.galaxy-theme {
  --bg-page: #080f1e;
  --bg-surface: #0d1728;
  --bg-surface-raised: #131f32;
  --text-main: #eff1f5;
  --text-body: #c5cedb;
  --text-muted: #9eafc6;
  --text-dim: #9eafc6;
  --border-subtle: #263248;
  --border-medium: #3a4b64;
  --border-active: #b9c9df;
  --jade-primary: #d6e2f2;
  --jade-dark: #c4d5ed;
  --jade-light: #192b40;
  --jade-border: #384e68;
  --font-mono: "SFMono-Regular", Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 20px;
  background-color: var(--bg-page);
  background-image: url("./galaxy-atmosphere-desktop.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--text-main);
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.galaxy-theme *, .galaxy-theme *::before, .galaxy-theme *::after { box-sizing: border-box; }
.galaxy-theme .main-content { width: 100%; max-width: 1280px; min-width: 0; margin: auto; padding: 0 42px 48px; }
.galaxy-theme .main-content > div { min-width: 0; }
.galaxy-theme .top-header { position: relative; background: #080f1e91; border-bottom: 1px solid #344258; box-shadow: none; backdrop-filter: none; }
.galaxy-theme .header-inner { width: 100%; max-width: 1365px; margin: auto; padding: 18px 42px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.galaxy-theme .brand-badge { gap: 12px; min-width: 0; }
.galaxy-theme .brand-logo-slot { width: 35px; height: 35px; border: 1px solid #8495ae; background: transparent; color: #e5ebf4; border-radius: 50%; box-shadow: none; font-family: "Galaxy Display", serif; font-size: 22px; font-weight: 400; }
.galaxy-theme .brand-title-wrap { display: inline-flex; align-items: baseline; gap: 9px; min-width: 0; white-space: nowrap; }
.galaxy-theme .brand-title { color: var(--text-main); font-size: 17px; font-weight: 550; letter-spacing: .06em; }
.galaxy-theme .brand-divider { color: #627793; font-size: 12px; }
.galaxy-theme .brand-sub { font-size: 12px; color: var(--text-muted); }
.galaxy-theme .header-user-status, .galaxy-theme .header-nav-links { display: flex; align-items: center; gap: 8px; min-width: 0; }
.galaxy-theme .header-nav-links { margin-right: 18px; }
.galaxy-theme .nav-link-pill { display: inline-flex; align-items: center; justify-content: center; color: #b7c4d6; background: transparent; border: 0; border-radius: 6px; padding: 8px 11px; min-height: 44px; font-size: 12px; text-decoration: none; }
.galaxy-theme .nav-link-pill:hover { color: #fff; background: #172235; }
.galaxy-theme .user-profile-badge { color: #d5deeb; border: 0; background: transparent; font-size: 12px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 8px; }
.galaxy-theme .btn { min-height: 44px; padding: 11px 19px; font-size: 13px; font-weight: 550; border-radius: 6px; box-shadow: none; transition: background-color .18s ease, color .18s ease, border-color .18s ease; text-decoration: none; }
.galaxy-theme .btn-primary { color: #142239; background: #e1e9f4; border: 1px solid transparent; }
.galaxy-theme .btn-primary:hover:not(:disabled) { background: #fff; transform: none; box-shadow: none; }
.galaxy-theme .btn-secondary { color: #d7e2f1; background: transparent; border: 1px solid #465975; }
.galaxy-theme .btn-secondary:hover:not(:disabled) { background: #1b2b41; border-color: #899db8; box-shadow: none; transform: none; }
.galaxy-theme .btn:disabled { opacity: .48; cursor: not-allowed; }
.galaxy-theme .btn-header { font-size: 12px; padding: 8px 12px; border-color: transparent; }
.galaxy-theme .btn-header:last-child { color: var(--text-muted); }

/* The relationship is the first viewport, not a diagram trapped in a card. */
.galaxy-theme .hero-dossier-card { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.72fr); column-gap: 24px; padding: 38px 0 0; margin: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.galaxy-theme .hero-header-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; gap: 27px; padding: 20px 0 32px; }
.galaxy-theme .hero-title-group { display: block; margin: 0; }
.galaxy-theme .hero-title { font-family: "Galaxy Display", "Songti SC", serif; font-size: clamp(34px, 3.5vw, 46px); font-weight: 400; color: #f2f2ee; line-height: 1.5; letter-spacing: .02em; margin: 0 0 18px; }
.galaxy-theme .hero-subtitle { color: #aabbd0; font-size: 14px; line-height: 1.95; max-width: 320px; margin: 0; }
.galaxy-theme .hero-rates-compact { display: flex; align-items: flex-start; gap: 40px; padding: 0; margin: 0; border: 0; background: none; }
.galaxy-theme .rate-pill { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; border: 0; padding: 0; background: transparent; border-radius: 0; }
.galaxy-theme .rate-label { font-size: 12px; color: #aabbd0; font-weight: 400; }
.galaxy-theme .rate-value { font-size: 30px; line-height: 1.15; font-family: "Segoe UI", sans-serif; font-weight: 350; font-variant-numeric: tabular-nums; color: #e4c598; letter-spacing: -.025em; }
.galaxy-theme .indirect .rate-value { color: #c8d8ec; }
.galaxy-theme .hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.galaxy-theme .hero-actions .btn { gap: 22px; }
.galaxy-theme .hero-text-link { display: inline-flex; align-items: center; min-height: 44px; color: #afc0d7; font-size: 12px; text-decoration: none; border-bottom: 1px solid #566781; }
.galaxy-theme .hero-text-link:hover { color: #fff; border-color: #dbe5f4; }
.galaxy-relationship { margin: 0; min-width: 0; position: relative; }
.galaxy-figure-heading { position: absolute; z-index: 2; top: 7px; left: 18px; right: 0; display: flex; justify-content: space-between; align-items: center; }
.galaxy-figure-heading h2 { font-family: "Galaxy Display", serif; font-size: 18px; font-weight: 400; letter-spacing: .08em; color: #c5d2e4; margin: 0; }
.scene-motion-toggle { color: #a9bad0; background: transparent; border: 0; padding: 10px 8px; min-height: 44px; font: inherit; font-size: 11px; cursor: pointer; }
.scene-motion-toggle:hover { color: #fff; }
.constellation { position: relative; width: 100%; aspect-ratio: 19 / 11; isolation: isolate; }
.galaxy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 0; }
.galaxy-canvas:not([data-galaxy-state="ready"]) { opacity: 0; }
.galaxy-fallback { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.galaxy-canvas[data-galaxy-state="ready"] + .galaxy-fallback { visibility: hidden; }
.fallback-planet { position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 25% 25%, #b8cbdf, #577698 30%, #16283f 65%, #080e1c 85%); }
.fallback-planet.self { left: 43%; top: 49%; height: 41%; }
.fallback-planet.direct { left: 76%; top: 25%; height: 18%; background: radial-gradient(circle at 25% 25%, #ede0c6, #aa8e63 30%, #463a31 64%, #101525 85%); }
.fallback-planet.indirect { left: 84%; top: 68%; height: 12%; }
.fallback-orbit { position: absolute; left: 20%; top: 27%; width: 72%; height: 35%; border: 1px solid #506077; border-radius: 50%; transform: rotate(-23deg); }
.orbit-label { position: absolute; z-index: 1; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 7px 8px; min-height: 44px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: #d4deec; background: transparent; font: inherit; cursor: pointer; white-space: nowrap; }
.orbit-label strong { font-size: 13px; font-weight: 500; line-height: 1.5; }
.orbit-label span { color: #9dafc8; font-size: 11px; line-height: 1.65; }
.orbit-label:hover, .orbit-label[aria-pressed="true"] { border-bottom-color: #9cb1ce; color: #fff; }
.orbit-self { left: 43%; top: 72%; }
.orbit-direct { left: 76%; top: 37%; }
.orbit-direct strong { color: #e4c598; }
.orbit-indirect { left: 84%; top: 77%; }
.galaxy-caption { display: flex; align-items: flex-start; justify-content: center; gap: 9px; padding: 6px 8px 0; min-height: 43px; color: #a2b3c9; }
.galaxy-caption p { margin: 0; font-size: 11px; line-height: 1.8; }
.orbit-caption-dot { width: 5px; height: 5px; border-radius: 50%; background: #a0b5d2; margin-top: 7px; flex-shrink: 0; }
.galaxy-theme .rules-disclosure { grid-column: 1 / -1; margin: 6px 0 0; padding: 0; background: transparent; border: 0; }
.galaxy-theme .rules-disclosure-trigger { display: list-item; width: fit-content; color: #aabbd0; font-size: 12px; cursor: pointer; padding: 12px 0; min-height: 44px; }
.galaxy-theme .rules-disclosure-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; padding: 20px 24px; border: 1px solid #34445d; border-radius: 12px; margin: 4px 0 20px; }
.galaxy-theme .rule-item { display: block; }
.galaxy-theme .rule-dot { display: none; }
.galaxy-theme .rule-text { color: #b6c5d9; font-size: 13px; line-height: 1.9; }
.galaxy-theme .rule-text strong { color: #e0e8f4; font-weight: 550; }

/* Freshness stays adjacent to the amounts; stale and failure are not atmospheric. */
.galaxy-theme .referral-overview-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0 16px; margin: 0; border: 0; border-top: 1px solid #253247; background: transparent; box-shadow: none; border-radius: 0; }
.status-text-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 16px; min-width: 0; }
.status-main-line { display: flex; align-items: center; gap: 8px; }
.galaxy-theme .status-label { color: #b9c9de; font-size: 11px; margin: 0; line-height: 1.6; }
.status-indicator-dot { width: 5px; height: 5px; background: #92bca8; border-radius: 50%; flex: none; }
.status-indicator-dot.error { background: #f7a9aa; }
.status-indicator-dot.stale { background: #dec392; }
.galaxy-theme .status-timestamp { font-size: 11px; margin: 0; color: #a5b5cc; }
.galaxy-theme .btn-retry { min-height: 44px; padding: 8px 0 8px 14px; font-size: 11px; flex: none; border-color: transparent; color: #a8bdd9; }
.galaxy-theme .referral-overview-status.is-alert { padding: 14px 18px; background: #281f25; border: 1px solid #ad7e72; border-radius: 12px; margin: 12px 0 18px; }
.galaxy-theme .is-alert .status-label { color: #f4d4c5; font-size: 13px; }

/* One lunar account panel beside an open invitation workbench. */
.galaxy-theme .workspace-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.25fr); gap: 52px; align-items: start; margin: 0 0 44px; scroll-margin-top: 24px; }
.galaxy-theme .metrics-ledger-wrapper { --text-main: #21324b; --text-body: #3d526d; --text-muted: #52627a; --jade-dark: #243e60; min-width: 0; border-radius: 12px; padding: 26px 28px 20px; color: #21324b; background: #e4eaf1; }
.galaxy-theme .metrics-ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.galaxy-theme .ledger-slot { min-width: 0; margin: 0; background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.galaxy-theme .ledger-slot-primary { grid-column: 1 / -1; border-bottom: 1px solid #bdc9d8; padding-bottom: 22px; }
.galaxy-theme .ledger-slot-title { color: #465a73; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.galaxy-theme .ledger-slot-value-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.galaxy-theme .ledger-slot-number { font-family: "Segoe UI", sans-serif; font-size: 25px; line-height: 1.2; color: #20344f; font-weight: 450; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.galaxy-theme .ledger-slot-primary .ledger-slot-number { font-size: 43px; font-weight: 400; }
.galaxy-theme .ledger-slot-unit { font-size: 11px; color: #51657e; overflow-wrap: anywhere; }
.galaxy-theme .ledger-slot-subtext { color: #4d6079; font-size: 11px; margin: 8px 0 0; min-height: 0; line-height: 1.75; }
.galaxy-theme .ledger-transfer-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 18px; padding: 0; background: none; border: 0; }
.galaxy-theme .transfer-min-limit { font-size: 11px; margin: 0; flex: 1 1 160px; }
.galaxy-theme .btn-transfer { background: #253e60; color: #f3f6fb; border: 0; font-size: 12px; min-height: 44px; padding: 11px 15px; }
.galaxy-theme .btn-transfer:hover:not(:disabled) { background: #365576; color: #fff; }
.galaxy-theme .transfer-tip { flex-basis: 100%; font-size: 12px; margin: 5px 0 0; }
.referral-secondary { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.metric-definition { color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.metric-definition summary { cursor: pointer; padding-block: 8px; width: fit-content; min-height: 32px; }
.metric-definition p { margin: 4px 0 0; }
.galaxy-theme .ledger-slot-unavailable { background: #101d31; border: 1px solid #425775; color: #d2deef; padding: 28px; border-radius: 12px; line-height: 1.7; margin: 0; }
.galaxy-theme .invite-workspace { padding: 6px 0 0; min-width: 0; scroll-margin-top: 24px; }
.galaxy-theme .referral-action-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 0; }
.galaxy-theme .referral-action-section .paper-card { background: transparent; border: 0; padding: 0; margin: 0; border-radius: 0; box-shadow: none; }
.galaxy-theme .card-heading { font-size: 15px; font-weight: 500; color: #e6edf7; margin: 0 0 20px; gap: 9px; }
.galaxy-theme .card-heading svg { color: #a3b9d5 !important; stroke-width: 1.5; }
.galaxy-theme .referral-action-section .paper-card:first-child .card-heading { font-size: 18px; margin-bottom: 24px; }
.galaxy-theme .referral-action-section .paper-card:first-child .card-heading svg { display: none; }
.galaxy-theme .form-label { color: #aebfd5; font-size: 12px; margin: 0 0 8px; }
.galaxy-theme .form-label svg { display: none; }
.galaxy-theme .input-copy-group { display: flex; align-items: stretch; gap: 9px; min-width: 0; margin: 0; }
.galaxy-theme .code-field { min-width: 0; width: 0; flex: 1 1 auto; background: #111e32; border: 1px solid #3a4c67; color: #d9e4f3; border-radius: 6px; font-size: 12px; line-height: 1.4; min-height: 44px; padding: 12px 13px; box-shadow: none; }
.galaxy-theme .code-field::placeholder { color: #a8b8cf; }
.galaxy-theme .code-field:focus { background: #18283f; border-color: #9bb6d9; color: #edf4ff; }
.galaxy-theme .input-copy-group .btn { flex: none; gap: 8px; font-size: 12px; min-width: 106px; padding-inline: 14px; }
.galaxy-theme .referral-action-section > .paper-card:last-child { position: relative; padding-top: 18px; border-top: 1px solid #26354c; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; }
.galaxy-theme .referral-action-section > .paper-card:last-child .card-heading { font-size: 12px; margin: 0; gap: 7px; }
.galaxy-theme .referral-action-section > .paper-card:last-child > p { grid-column: 1; font-size: 12px !important; margin: 0 !important; line-height: 1.7; }
.galaxy-theme .referral-action-section > .paper-card:last-child > div:last-child:not(.card-heading) { grid-column: 2; grid-row: 1 / 3; min-height: 44px !important; justify-content: flex-end !important; }
.galaxy-theme .qr-box-container { background: transparent; border: 0; padding: 0; }
.galaxy-theme .qr-canvas-wrapper { display: inline-flex; background: #fff; padding: 8px; border-radius: 8px; border: 0; box-shadow: none; }
.galaxy-theme .qr-canvas-wrapper canvas { width: 170px; height: 170px; }
.galaxy-theme .qr-caption { font-size: 10px; color: #adbed5; margin-top: 8px; }

/* The lower half is an account ledger: full-width lines instead of nested cards. */
.galaxy-theme .paper-card { color: var(--text-main); background: transparent; border: 0; border-radius: 0; padding: 28px 0; margin: 0; box-shadow: none; min-width: 0; }
.galaxy-theme .binding-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 26px; border: 1px solid #2d3d56; border-radius: 12px; margin-bottom: 30px; }
.galaxy-theme .binding-card .card-heading { margin: 0; font-size: 13px; align-items: flex-start; padding-top: 2px; }
.galaxy-theme .binding-status-bound { display: flex; align-items: flex-start; gap: 12px; background: transparent; border: 0; padding: 0; }
.galaxy-theme .status-icon-box { display: none; }
.galaxy-theme .status-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 7px; }
.galaxy-theme .status-title { color: #c9d9ec; font-size: 13px; font-weight: 500; }
.galaxy-theme .status-tag-locked { background: #19283d; border: 1px solid #40536e; color: #bacce3; font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.galaxy-theme .status-desc, .galaxy-theme .status-alert-note { font-size: 12px; line-height: 1.8; color: #a9bbd2; margin: 0; }
.galaxy-theme .status-desc strong { color: #e0e9f5; font-weight: 500; }
.galaxy-theme .transfer-history-card, .galaxy-theme .rewards-history-card { border-top: 1px solid #29384e; padding: 28px 0 32px; }
.galaxy-theme .transfer-history-card .card-heading, .galaxy-theme .rewards-history-card .card-heading { font-size: 18px; margin-bottom: 12px; }
.galaxy-theme .transfer-history-card > .referral-secondary, .galaxy-theme .rewards-history-card > .referral-secondary { font-size: 12px; margin: 0 0 12px; max-width: 80ch; }
.galaxy-theme .transfer-history-item { padding: 14px 16px !important; border: 0 !important; background: #101d2e !important; border-radius: 6px !important; }
.galaxy-theme .transfer-history-item strong { font-family: inherit !important; font-weight: 550; font-variant-numeric: tabular-nums; }
.galaxy-theme .table-responsive-wrapper { width: 100%; max-width: 100%; overflow-x: auto; border: 0; border-radius: 0; margin: 20px 0 12px; scrollbar-color: #577090 #111c2d; }
.galaxy-theme .rewards-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.galaxy-theme .rewards-table th { text-align: left; background: #101c2d; color: #aec1da; font-weight: 400; font-size: 12px; padding: 14px 15px; white-space: nowrap; border-bottom: 1px solid #34465f; }
.galaxy-theme .rewards-table td { padding: 18px 15px; color: #c5d4e7; border-bottom: 1px solid #233149; white-space: nowrap; font-variant-numeric: tabular-nums; }
.galaxy-theme .rewards-table tr:hover td { background: #132137; }
.galaxy-theme .rewards-table td:nth-child(4) { color: #dcc296; }
.table-scroll-hint { display: none; }
.galaxy-theme .explore-section { border-top: 1px solid #29384e; margin-top: 12px; padding: 32px 0 0; }
.galaxy-theme .explore-section .card-heading { font-size: 15px; }
.galaxy-theme .explore-section > p { font-size: 12px !important; }
.galaxy-theme .explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.galaxy-theme .explore-card { color: #c8d5e7; border: 0; border-radius: 0; padding: 14px 0; background: transparent; box-shadow: none; text-decoration: none; }
.galaxy-theme .explore-card:hover { transform: none; box-shadow: none; background: transparent; }
.galaxy-theme .explore-card-top { margin-bottom: 10px; }
.galaxy-theme .explore-icon-box { background: #19283d; color: #bdd0e9; border: 0; }
.galaxy-theme .explore-card-title { font-size: 14px; color: #d7e3f2; font-weight: 500; }
.galaxy-theme .explore-card-tag { border: 1px solid #3d506c; background: transparent; color: #b0c4df; font-size: 10px; }
.galaxy-theme .explore-card-desc, .galaxy-theme .explore-feature-item { color: #a4b7cf; font-size: 12px; line-height: 1.8; }
.galaxy-theme .explore-feature-list { list-style: none; padding: 0; margin: 12px 0; }
.galaxy-theme .explore-feature-item svg { color: #91a9c9 !important; }
.galaxy-theme .explore-card-action { color: #c6d8f0; font-size: 12px; }
.galaxy-theme .explore-card-action:hover { color: #fff; }
.galaxy-theme .banner-alert { color: #ead5b5; background: #28251f; border: 1px solid #786744; border-radius: 8px; line-height: 1.7; }
.galaxy-theme .banner-alert.error { color: #f2c5c9; background: #31202a; border-color: #975e6c; }
.galaxy-theme .toast { background: #1d2e44; color: #e1ebf8; border-color: #536d8e; box-shadow: 0 12px 32px #0005; }
.galaxy-theme .toast-container { max-width: calc(100vw - 32px); }
.galaxy-theme :is(a, button, summary, input, .table-responsive-wrapper):focus-visible { outline: 2px solid #adc7e9; outline-offset: 4px; }
.galaxy-theme .metrics-ledger-wrapper :focus-visible { outline-color: #244361; }
body:has(.galaxy-theme) .radix-modal-overlay { background: #030914bd; backdrop-filter: none; }
body:has(.galaxy-theme) .radix-modal-content { background: #eef2f7; color: #20334d; border: 0; border-radius: 14px; box-shadow: 0 24px 80px #0007; max-width: min(480px, calc(100vw - 32px)); }
body:has(.galaxy-theme) .modal-title { color: #20334d; }
body:has(.galaxy-theme) .modal-body { color: #40516a; font-size: 14px; line-height: 1.8; }
body:has(.galaxy-theme) .modal-actions .btn { min-height: 44px; border-radius: 6px; }
body:has(.galaxy-theme) .modal-actions .btn-primary { background: #253e60; color: #fff; border-color: transparent; }
body:has(.galaxy-theme) .modal-actions .btn-secondary { background: transparent; color: #30455f; border-color: #8c9db3; }

@media (min-width: 1500px) { .galaxy-theme .main-content { max-width: 1360px; } }
@media (max-width: 1100px) {
  .galaxy-theme .main-content { padding-inline: 30px; }
  .galaxy-theme .header-inner { padding-inline: 30px; gap: 15px; }
  .galaxy-theme .header-nav-links { margin-right: 0; gap: 0; }
  .galaxy-theme .brand-sub, .galaxy-theme .brand-divider { display: none; }
  .galaxy-theme .hero-dossier-card { column-gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
  .galaxy-theme .hero-header-row { gap: 23px; }
  .galaxy-theme .hero-title { font-size: 37px; }
  .galaxy-theme .hero-actions { gap: 12px; }
  .galaxy-theme .hero-actions .btn { padding-inline: 15px; gap: 12px; }
  .galaxy-theme .workspace-grid { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .galaxy-theme .metrics-ledger-wrapper { padding: 24px 22px 18px; }
  .galaxy-theme .referral-action-section > .paper-card:last-child { display: flex !important; align-items: flex-start; gap: 9px; }
  .galaxy-theme .referral-action-section > .paper-card:last-child > div:last-child:not(.card-heading) { justify-content: flex-start !important; }
}
@media (max-width: 800px) {
  .galaxy-theme .header-inner { padding: 12px 22px; }
  .galaxy-theme .header-nav-links .nav-link-pill:not(.nav-link-home) { display: none; }
  .galaxy-theme .hero-dossier-card { padding-top: 26px; }
  .galaxy-theme .hero-header-row { gap: 20px; }
  .galaxy-theme .hero-title { font-size: 31px; margin-bottom: 14px; }
  .galaxy-theme .hero-subtitle { font-size: 12px; }
  .galaxy-theme .hero-rates-compact { gap: 28px; }
  .galaxy-theme .rate-value { font-size: 25px; }
  .galaxy-theme .galaxy-relationship { align-self: center; }
  .galaxy-figure-heading { left: 8px; top: -15px; }
  .galaxy-figure-heading h2 { font-size: 16px; }
  .orbit-label strong { font-size: 11px; }
  .orbit-label span { font-size: 10px; }
  .galaxy-caption { margin-top: 16px; min-height: 55px; }
  .galaxy-theme .workspace-grid { gap: 24px; }
  .galaxy-theme .metrics-ledger-wrapper { padding: 22px 18px 16px; }
  .galaxy-theme .ledger-slot-primary .ledger-slot-number { font-size: 36px; }
  .galaxy-theme .ledger-slot-secondary .ledger-slot-number { font-size: 23px; }
  .galaxy-theme .input-copy-group { flex-wrap: wrap; }
  .galaxy-theme .input-copy-group .btn { min-width: 100px; padding-inline: 9px; }
  .galaxy-theme .binding-card { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 22px; }
  .metric-definition summary { min-height: 44px; padding-block: 12px; }
  .table-scroll-hint { display: block; }
}
@media (max-width: 600px) {
  .galaxy-theme { background-image: url("./galaxy-atmosphere-mobile.webp"); }
  .galaxy-theme .main-content { padding: 0 22px 32px; }
  .galaxy-theme .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 8px; padding: 10px 22px 7px; }
  .galaxy-theme .brand-badge { grid-column: 1 / 3; }
  .galaxy-theme .brand-title { font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
  .galaxy-theme .brand-logo-slot { width: 30px; height: 30px; font-size: 18px; flex: none; }
  .galaxy-theme .brand-sub, .galaxy-theme .brand-divider { display: inline; }
  .galaxy-theme .brand-title-wrap { gap: 6px; }
  .galaxy-theme .brand-sub { font-size: 10px; }
  .galaxy-theme .header-user-status { display: contents; }
  .galaxy-theme .user-profile-badge { grid-column: 3; grid-row: 1; max-width: 68px; padding: 4px 0; font-size: 10px; }
  .galaxy-theme .header-nav-links { grid-column: 1; grid-row: 2; }
  .galaxy-theme .nav-link-pill { justify-content: flex-start; padding-left: 0; font-size: 11px; }
  .galaxy-theme .btn-header { grid-row: 2; font-size: 11px; padding-inline: 6px; }
  .galaxy-theme .hero-dossier-card { grid-template-columns: minmax(0, 1fr); padding: 24px 0 0; gap: 0; }
  .galaxy-theme .hero-header-row { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 12px; }
  .galaxy-theme .hero-title-group { grid-column: 1 / -1; }
  .galaxy-theme .hero-title { font-size: 35px; line-height: 1.35; margin-bottom: 10px; }
  .galaxy-theme .hero-subtitle { max-width: 330px; font-size: 12px; line-height: 1.9; }
  .galaxy-theme .hero-rates-compact { gap: 27px; }
  .galaxy-theme .rate-pill { gap: 4px; }
  .galaxy-theme .rate-label { font-size: 10px; }
  .galaxy-theme .rate-value { font-size: 25px; }
  .galaxy-theme .hero-actions { gap: 0; justify-content: flex-end; }
  .galaxy-theme .hero-actions .btn { font-size: 12px; padding: 9px 12px; gap: 9px; }
  .galaxy-theme .hero-text-link { display: none; }
  .galaxy-theme .galaxy-relationship { margin-top: 24px; }
  .galaxy-figure-heading { top: 0; left: 0; }
  .galaxy-figure-heading h2 { font-size: 15px; }
  .scene-motion-toggle { font-size: 10px; padding-right: 0; }
  .constellation { aspect-ratio: 1.5; }
  .orbit-label { padding: 5px 4px; }
  .orbit-label strong { font-size: 11px; }
  .orbit-label span { font-size: 10px; }
  .galaxy-caption { justify-content: flex-start; margin: 8px 0 0; padding-inline: 0; min-height: 43px; }
  .galaxy-caption p { font-size: 10px; }
  .galaxy-theme .rules-disclosure { margin-top: 4px; }
  .galaxy-theme .rules-disclosure-content { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .galaxy-theme .rules-disclosure-trigger { font-size: 11px; }
  .galaxy-theme .referral-overview-status { align-items: flex-start; gap: 14px; padding-top: 12px; }
  .status-text-cluster { flex-direction: column; align-items: flex-start; gap: 6px; }
  .galaxy-theme .status-timestamp { font-size: 11px; line-height: 1.7; }
  .galaxy-theme .btn-retry { font-size: 10px; padding: 0; }
  .galaxy-theme .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-bottom: 30px; }
  .galaxy-theme .invite-workspace { grid-row: 1; padding-top: 8px; }
  .galaxy-theme .referral-action-section { gap: 18px; }
  .galaxy-theme .referral-action-section .paper-card:first-child .card-heading { font-size: 16px; margin-bottom: 20px; }
  .galaxy-theme .input-copy-group { flex-wrap: nowrap; }
  .galaxy-theme .input-copy-group .btn { min-width: 100px; }
  .galaxy-theme .referral-action-section > .paper-card:last-child { display: grid !important; grid-template-columns: 1fr; }
  .galaxy-theme .referral-action-section > .paper-card:last-child > div:last-child:not(.card-heading) { grid-column: 1; grid-row: auto; justify-content: flex-start !important; }
  .galaxy-theme .metrics-ledger-wrapper { padding: 24px 22px 16px; }
  .galaxy-theme .ledger-slot-primary .ledger-slot-number { font-size: 39px; }
  .galaxy-theme .ledger-slot-secondary .ledger-slot-number { font-size: 23px; }
  .galaxy-theme .binding-card { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 20px; margin-bottom: 28px; }
  .galaxy-theme .status-desc > span { display: block; margin-left: 0 !important; }
  .galaxy-theme .transfer-history-item { gap: 10px !important; }
  .galaxy-theme .rewards-history-card .card-heading { font-size: 17px; }
  .galaxy-theme .explore-grid { grid-template-columns: 1fr; gap: 10px; }
  .galaxy-theme .explore-card { border-bottom: 1px solid #29384e; padding-block: 18px; }
  .galaxy-theme .toast-container { inset-inline: 16px; bottom: 16px; }
  .galaxy-theme .toast { min-width: 0; }
}
@media (max-width: 360px) {
  .galaxy-theme .main-content { padding-inline: 16px; }
  .galaxy-theme .header-inner { padding-inline: 16px; }
  .galaxy-theme .brand-sub, .galaxy-theme .brand-divider { display: none; }
  .galaxy-theme .hero-title { font-size: 32px; }
  .galaxy-theme .hero-rates-compact { gap: 20px; }
  .galaxy-theme .metrics-ledger-wrapper { padding-inline: 18px; }
  .galaxy-theme .ledger-slot-secondary .ledger-slot-title { font-size: 11px; }
  .galaxy-theme .ledger-slot-secondary .ledger-slot-number { font-size: 21px; }
  .orbit-label strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .galaxy-theme *, .galaxy-theme *::before, .galaxy-theme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Preserve the currently deployed member transparency tools inside the approved theme. */
.galaxy-theme .members-card { border-top: 1px solid #29384e; padding: 28px 0 32px; }
.galaxy-theme .members-card > .referral-secondary { font-size: 12px; line-height: 1.8; max-width: 95ch; }
.galaxy-theme .members-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; }
.galaxy-theme .filter-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid #465975; border-radius: 6px; color: #c9d8ec; background: #142137; font: inherit; font-size: 12px; cursor: pointer; }
.galaxy-theme .filter-pill.active { color: #142239; background: #e1e9f4; border-color: transparent; }
.galaxy-theme .filter-pill:hover:not(.active) { background: #23364e; }
.galaxy-theme .filter-pill:disabled { opacity: .55; cursor: not-allowed; }
.galaxy-theme .member-identity-col, .galaxy-theme .members-table th.member-identity-col, .galaxy-theme .members-table td.member-identity-col { white-space: normal; max-width: 220px; min-width: 140px; word-break: break-all; overflow-wrap: anywhere; }
.galaxy-theme .members-card .table-responsive-wrapper { margin-block: 16px; }
.galaxy-theme .badge, .galaxy-theme .badge-legacy { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 500; color: #bcd0e8; background: #192b40; border: 1px solid #40536e; }
.galaxy-theme .badge-inactive { color: #b6c4d7; background: #222c3c; }
.galaxy-theme .badge-unavailable { color: #ead5b5; background: #28251f; border-color: #786744; }
.galaxy-theme .member-details-dropdown { font-size: 12px; margin-top: 4px; max-width: 260px; }
.galaxy-theme .member-details-summary { display: inline-flex; align-items: center; min-height: 44px; color: #b6cbe7; cursor: pointer; padding: 4px 0; }
.galaxy-theme .member-details-body { background: #142137; border: 1px solid #34465f; padding: 10px 12px; border-radius: 6px; margin-top: 5px; font-size: 12px; }
.galaxy-theme .detail-row { display: flex; justify-content: space-between; gap: 12px; line-height: 1.8; }
.galaxy-theme .detail-label { color: #adbed5; }
.galaxy-theme .detail-value { color: #dfebfa; font-variant-numeric: tabular-nums; }
.galaxy-theme .text-warning { color: #e8c98f; }
.galaxy-theme .text-danger { color: #f2b0b9; }
.galaxy-theme .active-filter-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; margin-block: 16px; border: 1px solid #40536e; border-radius: 8px; background: #142137; }
.galaxy-theme .active-filter-bar .filter-info { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.galaxy-theme .active-filter-bar .filter-info svg { color: #b6cbe7 !important; flex: none; }
.galaxy-theme .btn-sm { min-height: 44px; padding: 7px 12px; font-size: 12px; }
.galaxy-theme .members-table td { overflow-wrap: anywhere; }
