/*
 * ConCourse Atlas
 * Final visual contract loaded after every historical stylesheet.
 * One artwork per destination, one active indicator per navigation level,
 * and one spacing system across Day, Night, desktop, and compact windows.
 */

:root {
  --atlas-navy-1000: #031426;
  --atlas-navy-950: #061a30;
  --atlas-navy-900: #0a2742;
  --atlas-navy-800: #123b5f;
  --atlas-paper: #f8f5ee;
  --atlas-paper-cool: #eef7fc;
  --atlas-cyan: #7fd8ff;
  --atlas-cobalt: #2f6df6;
  --atlas-gold: #efbd4c;
  --atlas-gold-soft: #f8d98b;
  --atlas-gutter: clamp(20px, 3.2vw, 48px);
  --atlas-section-gap: clamp(42px, 6vw, 84px);
  --atlas-radius-sm: 16px;
  --atlas-radius-md: 26px;
  --atlas-radius-lg: 40px;
  --atlas-focus: 0 0 0 4px rgba(127, 216, 255, .24);
}

html,
body,
button,
input,
select,
textarea {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    "PingFang SC",
    "PingFang HK",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
}

body {
  overflow-x: clip;
}

:where(h1, h2, h3, h4, .brand-name, .panel-heading) {
  text-wrap: balance;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(127, 216, 255, .86);
  outline-offset: 3px;
}

/* -----------------------------------------------------------------------
   Appearance control
   -------------------------------------------------------------------- */

.theme-control {
  --theme-control-width: 154px;
  --theme-control-height: 44px;
  width: var(--theme-control-width) !important;
  height: var(--theme-control-height) !important;
  padding: 4px !important;
  overflow: hidden;
  color: rgba(229, 240, 249, .76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid rgba(184, 215, 239, .24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 12px 28px rgba(0, 0, 0, .12);
}

.theme-control::before {
  top: 4px !important;
  bottom: 4px !important;
  left: 4px !important;
  width: calc(50% - 4px) !important;
  background: linear-gradient(145deg, #f8dc9a, #edb944) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .64),
    0 6px 16px rgba(0, 0, 0, .2) !important;
}

html[data-theme="day"] .theme-control {
  color: #35536d;
  background: rgba(210, 232, 246, .76);
  border-color: rgba(16, 64, 101, .24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 12px 28px rgba(25, 78, 113, .1);
}

html[data-theme="day"] .theme-control::before {
  background: linear-gradient(145deg, #ffffff, #e3f4ff) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 5px 14px rgba(25, 78, 113, .13) !important;
}

.theme-option {
  min-height: 36px !important;
  gap: 7px;
  padding-inline: 9px !important;
  font-size: 12px !important;
  font-weight: 780;
}

.theme-symbol {
  width: 16px !important;
  height: 16px !important;
}

.theme-symbol-day {
  width: 8px !important;
  height: 8px !important;
  margin: 4px;
  background: currentColor;
  border: 0 !important;
  border-radius: 50%;
  box-shadow: none !important;
  transform: none !important;
}

.theme-symbol-day::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -4deg,
    currentColor 0 8deg,
    transparent 8deg 45deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 6px, #000 6.5px 8px, transparent 8.5px);
  mask: radial-gradient(circle, transparent 0 6px, #000 6.5px 8px, transparent 8.5px);
}

.theme-symbol-day::after {
  content: none !important;
}

.theme-symbol-night {
  width: 14px !important;
  height: 14px !important;
  margin-left: 1px;
  background: transparent !important;
  border-radius: 50%;
  box-shadow: -4px 3px 0 -1px currentColor;
}

.theme-symbol-night::after {
  content: none !important;
}

/* -----------------------------------------------------------------------
   Planner and timetable artwork fields
   -------------------------------------------------------------------- */

#appWrap,
#schedulePage {
  position: relative;
  isolation: isolate;
}

#appWrap::before,
#schedulePage::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: clamp(86px, 10vh, 130px);
  right: clamp(-250px, -11vw, -90px);
  width: min(70vw, 1060px);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 46% 12% 42% 18%;
  opacity: .15;
  filter: saturate(.92) contrast(1.02);
  transform: translate3d(0, 0, 0);
  animation: atlas-background-drift 18s ease-in-out infinite alternate;
}

#appWrap::before {
  background-image:
    linear-gradient(115deg, rgba(3, 20, 38, .82), rgba(3, 20, 38, .08) 68%),
    url("concourse-art-planner.jpg");
}

#schedulePage::before {
  top: clamp(100px, 13vh, 170px);
  right: clamp(-180px, -7vw, -58px);
  width: min(68vw, 1040px);
  background-image:
    linear-gradient(115deg, rgba(3, 20, 38, .88), rgba(3, 20, 38, .08) 68%),
    url("concourse-art-timetable.jpg");
}

#appWrap > *,
#schedulePage > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body.app-active:not(.schedule-active):not(.hub-active) .wrap {
  width: min(1560px, calc(100% - 2 * var(--atlas-gutter)));
  column-gap: clamp(34px, 4.5vw, 74px);
}

body.app-active:not(.schedule-active):not(.hub-active) .configurator-intro {
  max-width: 690px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

body.app-active:not(.schedule-active):not(.hub-active) .configurator-intro h1,
body.schedule-active .schedule-page-header h1 {
  letter-spacing: -.055em;
  line-height: .97;
}

body.app-active:not(.schedule-active):not(.hub-active) .configurator-column .panel,
body.app-active:not(.schedule-active):not(.hub-active) #wishlistPanel,
body.schedule-active #schedulePage #timetablePanel {
  border: 1px solid rgba(139, 216, 255, .15) !important;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

body.app-active:not(.schedule-active):not(.hub-active) .configurator-column .panel,
body.app-active:not(.schedule-active):not(.hub-active) #wishlistPanel {
  border-radius: clamp(24px, 2.4vw, 38px) !important;
}

body.schedule-active #schedulePage {
  width: min(1720px, 100%);
  margin-inline: auto;
  padding-inline: var(--atlas-gutter);
}

body.schedule-active #schedulePage #timetablePanel {
  overflow: clip;
  border-radius: clamp(26px, 3vw, 44px) !important;
}

body.schedule-active #schedulePage .calendar-scroll {
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(127, 216, 255, .72) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
}

body.schedule-active #schedulePage .calendar-scroll::-webkit-scrollbar {
  height: 10px;
}

body.schedule-active #schedulePage .calendar-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
}

body.schedule-active #schedulePage .calendar-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--atlas-cobalt), var(--atlas-cyan));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

html[data-theme="day"] #appWrap::before,
html[data-theme="day"] #schedulePage::before {
  opacity: .115;
  filter: saturate(.72) contrast(.94);
}

html[data-theme="day"] #appWrap::before {
  background-image:
    linear-gradient(115deg, rgba(225, 242, 252, .2), rgba(225, 242, 252, .92) 78%),
    url("concourse-art-planner.jpg");
}

html[data-theme="day"] #schedulePage::before {
  background-image:
    linear-gradient(115deg, rgba(225, 242, 252, .2), rgba(225, 242, 252, .92) 78%),
    url("concourse-art-timetable.jpg");
}

html[data-theme="day"] body.app-active:not(.schedule-active):not(.hub-active) .configurator-column .panel,
html[data-theme="day"] body.app-active:not(.schedule-active):not(.hub-active) #wishlistPanel,
html[data-theme="day"] body.schedule-active #schedulePage #timetablePanel {
  background-color: rgba(248, 252, 255, .9) !important;
  border-color: rgba(6, 43, 72, .16) !important;
  box-shadow:
    0 28px 70px rgba(22, 75, 112, .12),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

/* -----------------------------------------------------------------------
   Authentication artwork
   -------------------------------------------------------------------- */

.auth-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(570px, calc(100vw - 28px));
  border-radius: clamp(26px, 4vw, 42px) !important;
}

.auth-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -28px;
  right: -128px;
  width: 450px;
  aspect-ratio: 3 / 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 25, 45, 1), rgba(5, 25, 45, .08)),
    url("concourse-art-auth.jpg") center / cover no-repeat;
  border-radius: 50%;
  opacity: .42;
  filter: saturate(.9);
}

.auth-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 13%;
  left: 13%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--atlas-cyan), var(--atlas-gold), transparent);
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

html[data-theme="day"] .auth-card::before {
  background:
    linear-gradient(90deg, rgba(248, 252, 255, 1) 0 18%, rgba(248, 252, 255, .08) 78%),
    url("concourse-art-auth.jpg") center / cover no-repeat;
  opacity: .34;
}

/* -----------------------------------------------------------------------
   Student Hub: one transparent stage and one artwork
   -------------------------------------------------------------------- */

.member-hub {
  --hub-content-gutter: var(--atlas-gutter);
  overflow-x: clip;
}

.member-hub .hub-main {
  min-width: 0;
}

.member-hub .hub-sidebar {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: inset 0 -1px 0 rgba(139, 216, 255, .16) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.member-hub .hub-navigation {
  min-width: 0;
  column-gap: clamp(18px, 3vw, 48px);
}

.member-hub .hub-nav-button {
  position: relative;
  flex: 0 0 auto !important;
  width: max-content !important;
  min-height: 48px;
  padding: 10px 2px 13px !important;
  color: rgba(222, 236, 248, .66);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.member-hub .hub-nav-button:hover {
  color: rgba(255, 255, 255, .92);
  background: transparent !important;
}

.member-hub .hub-nav-button::after {
  content: "";
  position: absolute;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--atlas-cobalt), var(--atlas-cyan) 48%, var(--atlas-gold)) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(80, 171, 255, .28);
  transform: scaleX(0) !important;
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.member-hub .hub-nav-button.active,
.member-hub .hub-nav-button[aria-current="page"] {
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
}

.member-hub .hub-nav-button.active::after,
.member-hub .hub-nav-button[aria-current="page"]::after {
  transform: scaleX(1) !important;
}

.member-hub .hub-page-header,
.member-hub[data-active-view] .hub-page-header {
  position: relative;
  width: min(1360px, calc(100% - 2 * var(--hub-content-gutter)));
  min-height: clamp(300px, 34vw, 470px) !important;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
  gap: clamp(34px, 5vw, 82px) !important;
  align-items: center;
  margin: 0 auto clamp(34px, 4vw, 54px) !important;
  padding: clamp(26px, 3.4vw, 48px) 0 !important;
  overflow: visible !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  isolation: isolate;
}

.member-hub .hub-page-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7%;
  left: 38%;
  width: clamp(110px, 15vw, 230px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 38% 38%, rgba(239, 189, 76, .24), rgba(127, 216, 255, .08) 52%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.member-hub .hub-page-header::after {
  content: none !important;
}

.member-hub .hub-page-header-copy,
.member-hub .hub-hero-art {
  min-width: 0;
}

.member-hub .hub-page-header-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-left: clamp(0px, 1vw, 14px) !important;
}

.member-hub .hub-page-header .hub-kicker {
  margin: 0 0 15px !important;
  color: var(--atlas-cyan) !important;
  font-size: 11px !important;
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: .17em;
  text-shadow: none !important;
  text-transform: uppercase;
}

.member-hub .hub-page-header h1,
.member-hub[data-active-view="marketplace"] .hub-page-header h1 {
  max-width: 12ch !important;
  margin: 0;
  padding: 0;
  color: #fff !important;
  font-size: clamp(42px, 4.8vw, 68px) !important;
  font-weight: 740;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
  text-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
}

.member-hub .hub-page-header-copy > p:not(.hub-kicker) {
  display: block !important;
  max-width: 50ch;
  margin: 22px 0 0 !important;
  color: rgba(222, 236, 248, .72) !important;
  font-size: clamp(14px, 1.15vw, 16px) !important;
  line-height: 1.68;
  text-shadow: none !important;
}

/* The user deliberately removed editorial captions in an earlier pass.
   Keep that decision consistent across all six destinations instead of
   allowing older view-specific rules to make some captions reappear. */
.member-hub[data-active-view] .hub-page-header .hub-kicker,
.member-hub[data-active-view] .hub-page-header .hub-page-header-copy > p:not(.hub-kicker) {
  display: none !important;
}

.member-hub .hub-hero-art,
.member-hub[data-active-view="marketplace"] .hub-hero-art {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  height: clamp(260px, 31vw, 430px) !important;
  margin: 0;
  overflow: hidden !important;
  background: var(--atlas-navy-900) !important;
  border: 1px solid rgba(151, 211, 245, .16) !important;
  border-radius:
    clamp(28px, 3vw, 46px)
    clamp(82px, 10vw, 150px)
    clamp(38px, 4vw, 64px)
    clamp(72px, 9vw, 132px) !important;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .27),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  transform: none !important;
  animation: none !important;
  isolation: isolate;
}

.member-hub .hub-hero-art::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 42%),
    linear-gradient(0deg, rgba(2, 15, 28, .18), transparent 38%);
}

.member-hub .hub-hero-art::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: clamp(22px, 4vw, 54px);
  bottom: clamp(18px, 3vw, 42px);
  width: clamp(42px, 6vw, 82px);
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--atlas-gold), var(--atlas-cyan));
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(127, 216, 255, .2);
}

.member-hub .hub-hero-art img {
  width: 100% !important;
  height: 100% !important;
  display: none;
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.015);
  transform-origin: center;
  transition: opacity .35s ease;
}

.member-hub[data-active-view="community"] .hub-hero-art img[data-hub-hero="community"],
.member-hub[data-active-view="marketplace"] .hub-hero-art img[data-hub-hero="marketplace"],
.member-hub[data-active-view="messages"] .hub-hero-art img[data-hub-hero="messages"],
.member-hub[data-active-view="overview"] .hub-hero-art img[data-hub-hero="overview"],
.member-hub[data-active-view="academic-tools"] .hub-hero-art img[data-hub-hero="academic-tools"],
.member-hub[data-active-view="profile"] .hub-hero-art img[data-hub-hero="profile"] {
  display: block !important;
  animation: atlas-art-breathe 14s ease-in-out infinite alternate;
}

.member-hub[data-active-view="community"] .hub-hero-art img { object-position: 52% 48%; }
.member-hub[data-active-view="marketplace"] .hub-hero-art img { object-position: 50% 50%; }
.member-hub[data-active-view="messages"] .hub-hero-art img { object-position: 50% 48%; }
.member-hub[data-active-view="overview"] .hub-hero-art img { object-position: 54% 48%; }
.member-hub[data-active-view="academic-tools"] .hub-hero-art img { object-position: 52% 50%; }
.member-hub[data-active-view="profile"] .hub-hero-art img { object-position: 54% 48%; }

.member-hub .hub-live-badge {
  display: none !important;
}

.member-hub .hub-view {
  width: min(1360px, calc(100% - 2 * var(--hub-content-gutter))) !important;
  margin-inline: auto;
}

.member-hub .hub-section-heading {
  margin-bottom: clamp(28px, 4vw, 46px);
}

.member-hub .hub-section-heading h2,
.member-hub .hub-card-heading h2,
.member-hub .market-results-heading h2,
.member-hub .hub-profile-panel h2 {
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.06;
}

html[data-theme="day"] .member-hub .hub-page-header {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="day"] .member-hub .hub-page-header h1 {
  color: #061a30 !important;
  text-shadow: none !important;
}

html[data-theme="day"] .member-hub .hub-page-header .hub-kicker {
  color: #12618c !important;
}

html[data-theme="day"] .member-hub .hub-page-header-copy > p:not(.hub-kicker) {
  color: #35536d !important;
}

html[data-theme="day"] .member-hub .hub-hero-art {
  border-color: rgba(6, 43, 72, .16) !important;
  box-shadow:
    0 34px 78px rgba(26, 76, 111, .17),
    inset 0 1px 0 rgba(255, 255, 255, .7) !important;
}

html[data-theme="day"] .member-hub .hub-nav-button {
  color: #49657d !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="day"] .member-hub .hub-nav-button:hover,
html[data-theme="day"] .member-hub .hub-nav-button.active,
html[data-theme="day"] .member-hub .hub-nav-button[aria-current="page"] {
  color: #174dbf !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* -----------------------------------------------------------------------
   Marketplace navigation and protection path
   -------------------------------------------------------------------- */

.member-hub[data-active-view="marketplace"] .market-mode-tabs {
  display: flex !important;
  align-items: center;
  gap: clamp(22px, 4vw, 54px) !important;
  width: 100%;
  margin: 0 0 clamp(22px, 3vw, 34px) !important;
  padding: 0 !important;
  overflow-x: auto;
  color: rgba(222, 236, 248, .68);
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(139, 216, 255, .16) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.member-hub[data-active-view="marketplace"] .market-mode-tabs > button,
.member-hub[data-active-view="marketplace"] .market-scope-button {
  position: relative;
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: 0 !important;
  min-height: 48px;
  padding: 12px 2px 14px !important;
  color: rgba(222, 236, 248, .68) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  scroll-snap-align: start;
}

.member-hub[data-active-view="marketplace"] .market-mode-tabs > button::after,
.member-hub[data-active-view="marketplace"] .market-scope-button::after {
  content: "";
  position: absolute;
  right: 0 !important;
  bottom: -1px !important;
  left: 0 !important;
  width: auto !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--atlas-cobalt), var(--atlas-cyan), var(--atlas-gold)) !important;
  border-radius: 999px !important;
  transform: scaleX(0) !important;
  transition: transform .24s ease;
}

.member-hub[data-active-view="marketplace"] .market-mode-tabs > button:is(
  :hover,
  .active,
  [aria-selected="true"]
),
.member-hub[data-active-view="marketplace"] .market-scope-button:is(
  :hover,
  .active,
  [aria-pressed="true"]
) {
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
}

.member-hub[data-active-view="marketplace"] .market-mode-tabs > button:is(
  .active,
  [aria-selected="true"]
)::after,
.member-hub[data-active-view="marketplace"] .market-scope-button:is(
  .active,
  [aria-pressed="true"]
)::after {
  transform: scaleX(1) !important;
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"]
  :is(.market-mode-tabs > button, .market-scope-button) {
  color: #49657d !important;
  background: transparent !important;
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"]
  :is(.market-mode-tabs > button, .market-scope-button):is(
    :hover,
    .active,
    [aria-selected="true"],
    [aria-pressed="true"]
  ) {
  color: #174dbf !important;
  background: transparent !important;
  box-shadow: none !important;
}

.member-hub[data-active-view="marketplace"] .market-layout {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px) !important;
  gap: clamp(32px, 4vw, 62px) !important;
}

.member-hub[data-active-view="marketplace"] .market-catalogue {
  padding-inline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.member-hub[data-active-view="marketplace"] .market-results-heading {
  padding: 0 0 clamp(18px, 2.4vw, 28px) !important;
  border-bottom: 1px solid rgba(139, 216, 255, .16);
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"] .market-results-heading {
  border-bottom-color: rgba(6, 43, 72, .14);
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"] .market-catalogue,
html[data-theme="day"] .member-hub[data-active-view="marketplace"] .market-catalogue[data-empty="true"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.member-hub[data-active-view="marketplace"] .market-rail {
  padding-left: clamp(24px, 3vw, 42px) !important;
  background:
    linear-gradient(180deg, rgba(127, 216, 255, .035), transparent 74%) !important;
  border-left: 1px solid rgba(139, 216, 255, .16) !important;
}

.member-hub[data-active-view="marketplace"] .market-protection-steps {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin: 0;
  padding: 0;
  counter-reset: atlas-trade;
}

.member-hub[data-active-view="marketplace"] .market-protection-steps > li {
  position: relative;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  column-gap: 16px !important;
  row-gap: 5px;
  align-items: start;
  min-height: 102px;
  padding: 4px 0 24px !important;
  counter-increment: atlas-trade;
}

.member-hub[data-active-view="marketplace"] .market-protection-steps > li::before {
  content: counter(atlas-trade) !important;
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 38px !important;
  height: 38px !important;
  display: grid;
  place-items: center;
  color: var(--atlas-gold) !important;
  background: rgba(239, 189, 76, .08) !important;
  border: 1px solid rgba(239, 189, 76, .54) !important;
  border-radius: 50% !important;
  font-size: 12px !important;
  font-weight: 850;
}

.member-hub[data-active-view="marketplace"] .market-protection-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 42px;
  bottom: 0;
  left: 18px;
  width: 1px;
  background: linear-gradient(var(--atlas-gold), rgba(127, 216, 255, .34));
}

.member-hub[data-active-view="marketplace"] .market-protection-steps > li b {
  grid-column: 2;
  margin-top: 1px;
  color: #f7fbff !important;
  font-size: 15px !important;
  font-weight: 780;
  line-height: 1.25;
}

.member-hub[data-active-view="marketplace"] .market-protection-steps > li span {
  grid-column: 2;
  color: rgba(211, 228, 242, .72) !important;
  font-size: 13px !important;
  line-height: 1.58 !important;
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"] .market-rail {
  background:
    linear-gradient(180deg, rgba(182, 220, 244, .24), rgba(244, 250, 254, .18) 74%) !important;
  border-left-color: rgba(6, 43, 72, .14) !important;
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"]
  .market-protection-steps > li b {
  color: #061a30 !important;
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"]
  .market-protection-steps > li span {
  color: #35536d !important;
}

/* -----------------------------------------------------------------------
   Dialog reachability and delicate close controls
   -------------------------------------------------------------------- */

.hub-profile-modal {
  place-items: start center !important;
  padding:
    max(12px, env(safe-area-inset-top))
    12px
    max(12px, env(safe-area-inset-bottom)) !important;
}

.hub-profile-preview,
.hub-action-dialog {
  margin-block: auto;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}

.hub-profile-preview-close {
  top: 20px !important;
  right: 20px !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  color: #0a2742 !important;
  background: rgba(236, 247, 253, .88) !important;
  border: 1px solid rgba(10, 39, 66, .16) !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 22px rgba(6, 26, 48, .08) !important;
}

.hub-profile-preview-close svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
}

/* -----------------------------------------------------------------------
   Responsive alignment
   -------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
    gap: clamp(26px, 4vw, 48px) !important;
  }

  .member-hub[data-active-view="marketplace"] .market-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .member-hub[data-active-view="marketplace"] .market-rail {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr) !important;
    gap: clamp(28px, 4vw, 52px) !important;
    padding: clamp(30px, 4vw, 44px) 0 0 !important;
    background: transparent !important;
    border-top: 1px solid rgba(139, 216, 255, .16) !important;
    border-left: 0 !important;
  }
}

@media (max-width: 1120px) {
  body.app-active:not(.schedule-active):not(.hub-active) .wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "wishlist"
      "config" !important;
    width: min(820px, calc(100% - 2 * var(--atlas-gutter)));
  }

  #appWrap::before,
  #schedulePage::before {
    right: -240px;
    width: min(92vw, 980px);
  }
}

@media (max-width: 900px) {
  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
    padding-block: 28px !important;
  }

  .member-hub .hub-page-header-copy {
    max-width: 720px;
    padding-inline: 0 !important;
  }

  .member-hub .hub-page-header h1 {
    max-width: 15ch !important;
  }

  .member-hub .hub-hero-art,
  .member-hub[data-active-view="marketplace"] .hub-hero-art {
    height: clamp(260px, 56vw, 430px) !important;
  }

  .member-hub[data-active-view="marketplace"] .market-rail {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .member-hub .hub-sidebar {
    position: static !important;
    top: auto !important;
    margin-bottom: 0 !important;
  }

  .member-hub .hub-navigation {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    overflow-x: auto !important;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .member-hub .hub-navigation::-webkit-scrollbar {
    display: none;
  }

  .member-hub .hub-nav-button {
    flex: 0 0 auto !important;
    width: max-content !important;
    scroll-snap-align: start;
  }

  .member-hub .hub-nav-button:last-child:nth-child(odd) {
    grid-column: auto !important;
    width: max-content !important;
  }

  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header,
  .member-hub .hub-view {
    width: min(100% - 32px, 680px) !important;
  }

  .member-hub .hub-page-header {
    margin-bottom: clamp(36px, 10vw, 56px) !important;
  }

  .member-hub .hub-page-header h1 {
    font-size: clamp(38px, 11vw, 58px) !important;
  }

  .member-hub .hub-hero-art {
    border-radius: 28px 82px 34px 68px !important;
  }

  .member-hub[data-active-view="marketplace"] .market-mode-tabs {
    gap: 28px !important;
  }

  .member-hub[data-active-view="marketplace"] .market-rail {
    display: block !important;
  }

  .member-hub[data-active-view="marketplace"] .market-rail-card + .market-rail-card {
    margin-top: 30px;
  }

  #appWrap::before,
  #schedulePage::before {
    position: absolute;
    top: 42px;
    right: -300px;
    width: 900px;
    opacity: .09;
  }
}

@media (max-width: 520px) {
  .theme-control {
    --theme-control-width: 86px;
    --theme-control-height: 44px;
  }

  .theme-option {
    min-width: 0 !important;
    padding: 0 !important;
  }

  .theme-option-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }

  .auth-card::before {
    right: -255px;
    opacity: .22;
  }

  .hub-profile-preview {
    padding: 72px 20px 24px !important;
  }

  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header,
  .member-hub .hub-view {
    width: min(100% - 24px, 680px) !important;
  }

  .member-hub .hub-hero-art,
  .member-hub[data-active-view="marketplace"] .hub-hero-art {
    height: clamp(220px, 66vw, 330px) !important;
    border-radius: 24px 64px 28px 52px !important;
  }

  .member-hub .hub-page-header h1 {
    font-size: clamp(36px, 12vw, 50px) !important;
    letter-spacing: -.045em !important;
  }
}

@media (max-width: 360px) {
  body.app-active #landingScreen .brand > div {
    display: none;
  }

  .member-hub[data-active-view="marketplace"] .market-mode-tabs {
    gap: 24px !important;
  }
}

html[lang^="zh"] .member-hub .hub-page-header h1 {
  line-height: 1.06 !important;
  letter-spacing: -.025em !important;
}

/* -----------------------------------------------------------------------
   Motion, accessibility, and print
   -------------------------------------------------------------------- */

@keyframes atlas-art-breathe {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-.35%, -.25%, 0); }
}

@keyframes atlas-background-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-14px, 9px, 0) scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  #appWrap::before,
  #schedulePage::before,
  .member-hub .hub-hero-art img {
    animation: none !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .member-hub .hub-nav-button::after,
  .member-hub .market-mode-tabs > button::after,
  .member-hub .market-scope-button::after {
    background: Highlight !important;
  }

  .member-hub .hub-hero-art {
    border: 1px solid CanvasText !important;
  }
}

@media print {
  #appWrap::before,
  #schedulePage::before,
  .auth-card::before,
  .member-hub .hub-page-header::before {
    display: none !important;
  }
}

/* -----------------------------------------------------------------------
   Multilingual functional masthead
   Keep all six destinations on one shared geometry. The artwork now acts as
   the functional page banner instead of occupying a second oversized column.
   -------------------------------------------------------------------- */

.member-hub {
  --hub-feature-accent: var(--atlas-cyan);
  --hub-art-position: 52% 48%;
  --hub-art-opacity: 1;
  --hub-art-scale-from: 1.08;
  --hub-art-scale-mid: 1.12;
  --hub-art-scale-to: 1.09;
  --hub-art-x-from: -.58%;
  --hub-art-x-mid: .12%;
  --hub-art-x-to: .65%;
  --hub-art-y-from: .36%;
  --hub-art-y-mid: -.18%;
  --hub-art-y-to: -.44%;
  --hub-art-duration: 13.5s;
}

.member-hub[data-active-view="community"] {
  --hub-feature-accent: #7fd8ff;
  --hub-art-position: 54% 48%;
}

.member-hub[data-active-view="marketplace"] {
  --hub-feature-accent: #efbd4c;
  --hub-art-position: 50% 50%;
}

.member-hub[data-active-view="messages"] {
  --hub-feature-accent: #9db9ff;
  --hub-art-position: 50% 46%;
}

.member-hub[data-active-view="academic-tools"] {
  --hub-feature-accent: #79d5ff;
  --hub-art-position: 52% 52%;
}

.member-hub[data-active-view="overview"] {
  --hub-feature-accent: #efc76d;
  --hub-art-position: 55% 48%;
}

.member-hub[data-active-view="profile"] {
  --hub-feature-accent: #9ee6ff;
  --hub-art-position: 58% 45%;
}

@media (min-width: 901px) {
  .member-hub .hub-sidebar {
    grid-template-columns: minmax(200px, 252px) minmax(0, 1fr) !important;
  }

  .member-hub .hub-navigation {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  .member-hub .hub-nav-button {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: clamp(6px, .8vw, 14px) !important;
  }
}

.member-hub .hub-nav-button b {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(11px, .83vw, 13px) !important;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-hub .hub-page-header,
.member-hub[data-active-view] .hub-page-header,
.member-hub[data-active-view="marketplace"] .hub-page-header {
  position: relative !important;
  z-index: 0;
  width: min(1360px, calc(100% - 2 * var(--hub-content-gutter))) !important;
  min-height: clamp(168px, 16vw, 208px) !important;
  height: auto !important;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  margin: 0 auto clamp(18px, 2.4vw, 30px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #071c31 !important;
  border: 1px solid rgba(127, 216, 255, .22) !important;
  border-radius:
    clamp(26px, 3vw, 42px)
    clamp(54px, 7vw, 96px)
    clamp(30px, 3.4vw, 48px)
    clamp(46px, 6vw, 82px) !important;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  isolation: isolate;
}

.member-hub .hub-page-header::before {
  content: none !important;
}

.member-hub .hub-page-header::after {
  content: "" !important;
  position: absolute;
  z-index: 4;
  top: 29%;
  right: 13%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: var(--hub-feature-accent);
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--hub-feature-accent) 16%, transparent),
    0 0 26px color-mix(in srgb, var(--hub-feature-accent) 62%, transparent);
  animation: atlas-masthead-spark 8s ease-in-out infinite alternate;
}

.member-hub .hub-page-header-copy,
.member-hub[data-active-view="marketplace"] .hub-page-header-copy {
  position: relative !important;
  z-index: 5 !important;
  width: min(62%, 720px) !important;
  max-width: none !important;
  min-height: 0;
  display: grid !important;
  align-content: center;
  align-items: flex-start !important;
  padding:
    clamp(24px, 3.2vw, 42px)
    clamp(28px, 4.5vw, 68px) !important;
}

.member-hub .hub-page-header-copy::after {
  width: 52px !important;
  height: 3px !important;
  margin-top: 12px !important;
  background: linear-gradient(90deg, var(--hub-feature-accent), var(--atlas-gold)) !important;
}

.member-hub .hub-page-header h1,
.member-hub[data-active-view="community"] .hub-page-header h1,
.member-hub[data-active-view="marketplace"] .hub-page-header h1 {
  order: 2;
  max-width: none !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(30px, 3.2vw, 44px) !important;
  font-weight: 750 !important;
  line-height: 1.06 !important;
  letter-spacing: -.035em !important;
  text-shadow:
    0 3px 3px rgba(0, 0, 0, .42),
    0 14px 34px rgba(0, 0, 0, .38) !important;
}

.member-hub .hub-hero-art,
.member-hub[data-active-view="marketplace"] .hub-hero-art {
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
  opacity: 1 !important;
  background: #071c31 !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  contain: paint;
}

.member-hub .hub-hero-art::before {
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(3, 17, 31, .96) 0%,
      rgba(3, 17, 31, .84) 30%,
      rgba(3, 17, 31, .36) 59%,
      rgba(3, 17, 31, .08) 78%,
      transparent 100%
    ),
    linear-gradient(0deg, rgba(2, 13, 24, .24), transparent 58%) !important;
}

.member-hub .hub-hero-art::after {
  content: "" !important;
  position: absolute;
  z-index: 3;
  top: 18%;
  right: 9%;
  bottom: auto;
  width: clamp(70px, 9vw, 124px);
  height: auto;
  aspect-ratio: 1;
  pointer-events: none;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--hub-feature-accent) 62%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px color-mix(in srgb, var(--hub-feature-accent) 9%, transparent),
    0 0 0 48px rgba(239, 189, 76, .055);
  animation: atlas-masthead-orbit 14s ease-in-out infinite alternate;
}

.member-hub .hub-hero-art img {
  object-position: var(--hub-art-position) !important;
  opacity: 1 !important;
  filter: saturate(1.02) contrast(1.04) !important;
  transform: translate3d(0, 0, 0) scale(var(--hub-art-scale-from));
  transform-origin: var(--hub-art-position) !important;
  backface-visibility: hidden;
  will-change: auto;
  animation: none !important;
}

.member-hub[data-active-view="community"]
  .hub-hero-art img[data-hub-hero="community"],
.member-hub[data-active-view="marketplace"]
  .hub-hero-art img[data-hub-hero="marketplace"],
.member-hub[data-active-view="messages"]
  .hub-hero-art img[data-hub-hero="messages"],
.member-hub[data-active-view="overview"]
  .hub-hero-art img[data-hub-hero="overview"],
.member-hub[data-active-view="academic-tools"]
  .hub-hero-art img[data-hub-hero="academic-tools"],
.member-hub[data-active-view="profile"]
  .hub-hero-art img[data-hub-hero="profile"] {
  will-change: transform;
  animation:
    atlas-art-cinematic-glide
    var(--hub-art-duration)
    cubic-bezier(.45, 0, .25, 1)
    infinite
    alternate
    both !important;
}

.member-hub .hub-view {
  position: relative;
  z-index: 1;
}

html[data-theme="day"] .member-hub {
  --hub-art-opacity: 1;
}

html[data-theme="day"] .member-hub .hub-hero-art::before {
  background:
    linear-gradient(
      90deg,
      rgba(4, 25, 44, .95) 0%,
      rgba(4, 25, 44, .82) 30%,
      rgba(4, 25, 44, .34) 59%,
      rgba(4, 25, 44, .07) 78%,
      transparent 100%
    ),
    linear-gradient(0deg, rgba(4, 25, 44, .18), transparent 58%) !important;
}

html[data-theme="day"] .member-hub .hub-page-header h1 {
  color: #fff !important;
  text-shadow:
    0 3px 3px rgba(0, 0, 0, .42),
    0 14px 34px rgba(0, 0, 0, .38) !important;
}

html[data-theme="day"] .member-hub .hub-hero-art img {
  filter: saturate(1.02) contrast(1.04) !important;
}

html[lang^="zh"] .member-hub .hub-nav-button b {
  font-weight: 720;
  letter-spacing: .01em;
}

html[lang^="zh"] .member-hub .hub-page-header h1 {
  max-width: none !important;
  font-size: clamp(30px, 3.2vw, 44px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.035em !important;
  word-break: keep-all;
}

/* The Hub header already names Academic tools. Keep the studio title as a
   compact working label so the citation controls begin inside the artwork's
   dissolve instead of repeating a second oversized hero. */
.member-hub[data-active-view="academic-tools"] .academic-tools-view {
  padding-top: 8px !important;
}

.member-hub[data-active-view="academic-tools"] .academic-tools-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: start;
  gap: clamp(22px, 3vw, 42px);
  margin-bottom: clamp(22px, 2.5vw, 32px);
  padding: 10px 0 18px;
}

.member-hub[data-active-view="academic-tools"] .academic-tools-intro h2.academic-tools-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.member-hub[data-active-view="academic-tools"] .academic-tools-local-note {
  max-width: 76ch;
  margin-top: 0;
}

.member-hub[data-active-view="academic-tools"] .academic-tools-intro > p {
  max-width: 50ch;
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.65;
}

.member-hub[data-active-view="marketplace"] .market-discovery-bar {
  position: sticky !important;
  top: calc(var(--app-bar-offset) + 8px) !important;
}

@media (max-width: 900px) {
  .member-hub .hub-navigation {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    overflow-x: auto !important;
  }

  .member-hub .hub-nav-button {
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    padding-inline: 10px !important;
  }

  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header,
  .member-hub[data-active-view="marketplace"] .hub-page-header {
    min-height: 154px !important;
    height: auto !important;
    padding: 0 !important;
  }

  .member-hub .hub-page-header-copy,
  .member-hub[data-active-view="marketplace"] .hub-page-header-copy {
    width: min(68%, 560px) !important;
    padding:
      clamp(22px, 3vw, 32px)
      clamp(24px, 4vw, 42px) !important;
  }

  .member-hub .hub-page-header h1,
  .member-hub[data-active-view="marketplace"] .hub-page-header h1 {
    max-width: none !important;
    font-size: clamp(29px, 5vw, 39px) !important;
  }

  .member-hub .hub-hero-art,
  .member-hub[data-active-view="marketplace"] .hub-hero-art {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  .member-hub[data-active-view="marketplace"] .market-discovery-bar {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 560px) {
  .member-hub .hub-nav-button {
    flex-basis: 132px !important;
    width: 132px !important;
    min-width: 132px !important;
  }

  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header,
  .member-hub[data-active-view="marketplace"] .hub-page-header {
    min-height: 126px !important;
    height: auto !important;
    margin-bottom: 14px !important;
    padding: 0 !important;
    border-radius: 22px 46px 26px 38px !important;
  }

  .member-hub .hub-page-header-copy,
  .member-hub[data-active-view="marketplace"] .hub-page-header-copy {
    width: 100% !important;
    padding: 22px 24px !important;
  }

  .member-hub .hub-page-header h1,
  .member-hub[data-active-view="marketplace"] .hub-page-header h1,
  html[lang^="zh"] .member-hub .hub-page-header h1 {
    max-width: none !important;
    font-size: clamp(28px, 8.5vw, 34px) !important;
  }

  .member-hub .hub-hero-art,
  .member-hub[data-active-view="marketplace"] .hub-hero-art {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .member-hub .hub-hero-art::before {
    background:
      linear-gradient(90deg, rgba(3, 17, 31, .92), rgba(3, 17, 31, .58) 66%, rgba(3, 17, 31, .2)),
      linear-gradient(0deg, rgba(2, 13, 24, .18), transparent 62%) !important;
  }

  .member-hub[data-active-view="academic-tools"] .academic-tools-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    }

  .member-hub[data-active-view="academic-tools"] .academic-tools-intro > p {
    max-width: 70ch;
  }
}

@keyframes atlas-masthead-orbit {
  from { transform: translate3d(-8px, 6px, 0) rotate(-8deg); }
  to { transform: translate3d(10px, -8px, 0) rotate(8deg); }
}

@keyframes atlas-masthead-spark {
  from { transform: translate3d(-7px, 5px, 0); }
  to { transform: translate3d(9px, -11px, 0); }
}

@keyframes atlas-art-cinematic-glide {
  0% {
    transform:
      translate3d(var(--hub-art-x-from), var(--hub-art-y-from), 0)
      scale(var(--hub-art-scale-from));
  }

  48% {
    transform:
      translate3d(var(--hub-art-x-mid), var(--hub-art-y-mid), 0)
      scale(var(--hub-art-scale-mid));
  }

  100% {
    transform:
      translate3d(var(--hub-art-x-to), var(--hub-art-y-to), 0)
      scale(var(--hub-art-scale-to));
  }
}

@media (max-width: 900px) {
  .member-hub {
    --hub-art-x-from: 0%;
    --hub-art-x-mid: 0%;
    --hub-art-x-to: 0%;
    --hub-art-y-from: .28%;
    --hub-art-y-mid: -.12%;
    --hub-art-y-to: -.34%;
    --hub-art-duration: 15s;
  }
}

@media (max-width: 560px) {
  .member-hub {
    --hub-art-scale-from: 1.07;
    --hub-art-scale-mid: 1.12;
    --hub-art-scale-to: 1.08;
    --hub-art-y-from: 0%;
    --hub-art-y-mid: 0%;
    --hub-art-y-to: 0%;
    --hub-art-duration: 16s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-hub .hub-page-header::after,
  .member-hub .hub-hero-art::after,
  .member-hub .hub-hero-art img {
    animation: none !important;
    transform: translate3d(0, 0, 0) scale(1.04) !important;
    will-change: auto !important;
  }
}

/* -----------------------------------------------------------------------
   High-contrast transaction progress
   -------------------------------------------------------------------- */

.member-hub[data-active-view="marketplace"] .market-protection-steps > li {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  column-gap: 17px !important;
  min-height: 106px;
  padding: 4px 0 27px !important;
}

.member-hub[data-active-view="marketplace"]
  .market-protection-steps > li::before {
  width: 42px !important;
  height: 42px !important;
  box-sizing: border-box;
  color: #07192b !important;
  background: linear-gradient(145deg, #ffe3a0, #efbd4c) !important;
  border: 1px solid rgba(255, 241, 205, .84) !important;
  font-size: 13px !important;
  font-weight: 880;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .76),
    0 0 0 5px rgba(239, 189, 76, .12),
    0 12px 26px rgba(0, 0, 0, .26) !important;
}

.member-hub[data-active-view="marketplace"]
  .market-protection-steps > li:not(:last-child)::after {
  top: 47px;
  bottom: -2px;
  left: 20px;
  width: 2px;
  background:
    linear-gradient(
      180deg,
      rgba(239, 189, 76, .98),
      rgba(127, 216, 255, .58)
    ) !important;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(127, 216, 255, .18);
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"]
  .market-protection-steps > li::before {
  color: #fff !important;
  background: linear-gradient(145deg, #3678ff, #174dbf) !important;
  border-color: rgba(6, 48, 82, .24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 0 0 5px rgba(47, 109, 246, .11),
    0 10px 24px rgba(23, 77, 191, .22) !important;
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"]
  .market-protection-steps > li:not(:last-child)::after {
  background:
    linear-gradient(
      180deg,
      rgba(23, 77, 191, .9),
      rgba(11, 100, 148, .5)
    ) !important;
  box-shadow: none;
}

@media (max-width: 700px) {
  .member-hub[data-active-view="marketplace"] .market-protection-steps > li {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 13px !important;
    min-height: 94px;
    padding-bottom: 23px !important;
  }

  .member-hub[data-active-view="marketplace"]
    .market-protection-steps > li::before {
    width: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
  }

  .member-hub[data-active-view="marketplace"]
    .market-protection-steps > li:not(:last-child)::after {
    top: 41px;
    bottom: -2px;
    left: 17px;
  }
}

/* -----------------------------------------------------------------------
   Night marketplace legibility and purposeful single-result composition
   -------------------------------------------------------------------- */

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .market-results-heading h2 {
  color: #f7fbff !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] #marketplaceStatus {
  color: rgba(211, 228, 242, .76) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-title,
html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-title:hover {
  color: #f7fbff !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-price {
  color: #f8d98b !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-category-chip {
  color: #ffe4a6 !important;
  background: rgba(239, 189, 76, .12) !important;
  border: 1px solid rgba(239, 189, 76, .34) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-meta {
  color: rgba(211, 228, 242, .72) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-seller-button {
  color: #dcecf8 !important;
  background: rgba(127, 216, 255, .075) !important;
  border: 1px solid rgba(127, 216, 255, .16) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-seller-button:hover {
  color: #fff !important;
  background: rgba(127, 216, 255, .13) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"]
  :is(.marketplace-global-seller, .marketplace-university-copy strong) {
  color: #e6f2fb !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-actions {
  border-top-color: rgba(139, 216, 255, .16) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-action {
  color: #d9e9f6 !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-action:hover,
html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-action.active,
html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-action[aria-pressed="true"] {
  color: #8bd8ff !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-media-empty {
  color: rgba(235, 246, 255, .9) !important;
}

.member-hub[data-active-view="marketplace"] .market-grid.is-single-result {
  grid-template-columns: minmax(0, min(100%, 780px)) !important;
}

.member-hub[data-active-view="marketplace"]
  .market-grid.is-single-result .marketplace-card {
  display: grid;
  grid-template-columns: minmax(250px, .92fr) minmax(280px, 1.08fr);
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, .055),
    rgba(127, 216, 255, .025)
  );
  border: 1px solid rgba(139, 216, 255, .16);
  border-radius: 26px 52px 30px 42px;
}

.member-hub[data-active-view="marketplace"]
  .market-grid.is-single-result .marketplace-card-media-button {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  aspect-ratio: auto;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.member-hub[data-active-view="marketplace"]
  .market-grid.is-single-result .marketplace-card-body {
  padding: clamp(22px, 3vw, 34px);
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"]
  .market-grid.is-single-result .marketplace-card {
  background: linear-gradient(145deg, rgba(248, 252, 255, .98), rgba(225, 240, 250, .94));
  border-color: rgba(6, 43, 72, .16);
  box-shadow: 0 22px 52px rgba(6, 48, 82, .11);
}

@media (max-width: 700px) {
  .member-hub[data-active-view="marketplace"]
    .market-grid.is-single-result .marketplace-card {
    display: flex;
  }

  .member-hub[data-active-view="marketplace"]
    .market-grid.is-single-result .marketplace-card-media-button {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   Selected direction B — Ribbon Concourse
   The Hub is a continuous artwork-and-paper landscape. Every animated layer
   below is a crop of the active destination artwork; no unrelated orbit,
   sparkle, or decorative dot is introduced.
   ========================================================================== */

.member-hub {
  --ribbon-night: #061a2e;
  --ribbon-night-soft: #0b2947;
  --ribbon-paper: #fffdf8;
  --ribbon-paper-blue: #edf8ff;
  --ribbon-line: rgba(130, 174, 204, .24);
  --ribbon-gold: #efbd4c;
  --ribbon-cyan: #79d5ff;
  --hub-art-image: url("concourse-art-community.jpg");
  --hub-fragment-primary-position: 82% 44%;
  --hub-fragment-secondary-position: 18% 58%;
}

.member-hub[data-active-view="community"] {
  --hub-art-image: url("concourse-art-community.jpg");
  --hub-fragment-primary-position: 78% 46%;
  --hub-fragment-secondary-position: 22% 60%;
}

.member-hub[data-active-view="marketplace"] {
  --hub-art-image: url("concourse-art-market.jpg");
  --hub-fragment-primary-position: 84% 48%;
  --hub-fragment-secondary-position: 16% 57%;
}

.member-hub[data-active-view="messages"] {
  --hub-art-image: url("concourse-art-messages.jpg");
  --hub-fragment-primary-position: 80% 40%;
  --hub-fragment-secondary-position: 20% 62%;
}

.member-hub[data-active-view="academic-tools"] {
  --hub-art-image: url("concourse-art-citations.jpg");
  --hub-fragment-primary-position: 82% 58%;
  --hub-fragment-secondary-position: 18% 44%;
}

.member-hub[data-active-view="overview"] {
  --hub-art-image: url("concourse-art-insights.jpg");
  --hub-fragment-primary-position: 78% 48%;
  --hub-fragment-secondary-position: 20% 58%;
}

.member-hub[data-active-view="profile"] {
  --hub-art-image: url("concourse-art-profile.jpg");
  --hub-fragment-primary-position: 82% 42%;
  --hub-fragment-secondary-position: 18% 62%;
}

/* The navigation belongs to the page field, with a fine active trace instead
   of an enclosing navigation box. */
.member-hub .hub-sidebar {
  padding-bottom: 12px !important;
  box-shadow: inset 0 -1px 0 rgba(127, 216, 255, .2) !important;
}

.member-hub .hub-nav-button {
  position: relative;
  min-height: 54px !important;
  padding-block: 13px !important;
}

.member-hub .hub-nav-button::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 3px;
  background: linear-gradient(90deg, var(--ribbon-gold), var(--ribbon-cyan));
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
}

.member-hub .hub-nav-button:is(.active, [aria-current="page"])::after {
  opacity: 1;
  transform: scaleX(1);
}

/* A larger product-style artwork field. Its asymmetrical radius supplies the
   silhouette; the two moving spans reproduce selected strips of the original
   image and make the artwork itself appear to articulate. */
.member-hub .hub-page-header,
.member-hub[data-active-view] .hub-page-header,
.member-hub[data-active-view="marketplace"] .hub-page-header {
  width: min(1440px, calc(100% - 2 * var(--hub-content-gutter))) !important;
  min-height: clamp(320px, 31vw, 448px) !important;
  margin-bottom: -64px !important;
  overflow: hidden !important;
  background: var(--ribbon-night) !important;
  border: 1px solid rgba(127, 216, 255, .22) !important;
  border-radius:
    clamp(42px, 5vw, 74px)
    clamp(130px, 15vw, 220px)
    clamp(52px, 7vw, 96px)
    clamp(96px, 12vw, 180px) /
    clamp(38px, 5vw, 72px)
    clamp(84px, 10vw, 150px)
    clamp(48px, 6vw, 88px)
    clamp(70px, 9vw, 128px) !important;
  box-shadow:
    0 34px 84px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .1) !important;
}

.member-hub .hub-page-header::after {
  display: none !important;
  content: none !important;
}

.member-hub .hub-page-header-copy,
.member-hub[data-active-view="marketplace"] .hub-page-header-copy {
  width: min(59%, 760px) !important;
  padding:
    clamp(42px, 5vw, 72px)
    clamp(34px, 4.6vw, 70px) !important;
}

.member-hub .hub-page-header .hub-kicker,
.member-hub[data-active-view="marketplace"] .hub-page-header .hub-kicker {
  display: block !important;
  margin-bottom: 13px !important;
  color: #f6ce72 !important;
}

.member-hub .hub-page-header h1,
.member-hub[data-active-view="community"] .hub-page-header h1,
.member-hub[data-active-view="marketplace"] .hub-page-header h1 {
  max-width: 12.5ch !important;
  font-size: clamp(43px, 4.7vw, 68px) !important;
  font-weight: 760 !important;
  line-height: .94 !important;
  letter-spacing: -.062em !important;
  text-wrap: balance;
}

.member-hub .hub-page-header-copy > p:not(.hub-kicker),
.member-hub[data-active-view="marketplace"]
  .hub-page-header-copy > p:not(.hub-kicker) {
  display: block !important;
  max-width: 46ch !important;
  margin-top: 18px !important;
  color: rgba(229, 241, 250, .78) !important;
  font-size: clamp(13px, 1.15vw, 16px) !important;
  line-height: 1.55 !important;
}

.member-hub .hub-page-header-copy::after {
  width: 74px !important;
  margin-top: 20px !important;
}

.member-hub .hub-live-badge {
  display: none !important;
}

.member-hub .hub-hero-art,
.member-hub[data-active-view="marketplace"] .hub-hero-art {
  overflow: hidden !important;
  border-radius: inherit !important;
  contain: paint;
  isolation: isolate !important;
}

.member-hub .hub-hero-art::before {
  z-index: 4 !important;
  background:
    linear-gradient(
      90deg,
      rgba(3, 17, 31, .98) 0%,
      rgba(3, 17, 31, .91) 25%,
      rgba(3, 17, 31, .62) 43%,
      rgba(3, 17, 31, .17) 66%,
      transparent 86%
    ),
    linear-gradient(0deg, rgba(2, 13, 24, .3), transparent 62%) !important;
}

.member-hub .hub-hero-art::after {
  display: none !important;
  content: none !important;
}

.member-hub .hub-hero-art img {
  z-index: 0 !important;
  object-position: var(--hub-art-position) !important;
  animation: ribbon-art-base-drift 18s cubic-bezier(.42, 0, .24, 1) infinite alternate !important;
}

.member-hub .hub-art-fragment {
  position: absolute;
  z-index: 2;
  display: block;
  pointer-events: none;
  background-image: var(--hub-art-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--hub-art-position);
  filter: saturate(1.06) contrast(1.035);
  opacity: .92;
  will-change: transform, background-position;
  backface-visibility: hidden;
}

.member-hub .hub-art-fragment-primary {
  inset: 0;
  clip-path: none;
  -webkit-mask-image:
    linear-gradient(
      108deg,
      transparent 0 55%,
      rgba(0, 0, 0, .16) 61%,
      #000 71% 100%
    );
  mask-image:
    linear-gradient(
      108deg,
      transparent 0 55%,
      rgba(0, 0, 0, .16) 61%,
      #000 71% 100%
    );
  animation: ribbon-art-primary 12s cubic-bezier(.45, 0, .22, 1) infinite alternate;
}

.member-hub .hub-art-fragment-secondary {
  inset: 0;
  clip-path: none;
  -webkit-mask-image:
    linear-gradient(
      72deg,
      #000 0 34%,
      rgba(0, 0, 0, .14) 45%,
      transparent 55% 100%
    );
  mask-image:
    linear-gradient(
      72deg,
      #000 0 34%,
      rgba(0, 0, 0, .14) 45%,
      transparent 55% 100%
    );
  opacity: .96;
  animation: ribbon-art-secondary 15s cubic-bezier(.4, 0, .22, 1) infinite alternate;
}

@keyframes ribbon-art-base-drift {
  from { transform: translate3d(-.8%, .2%, 0) scale(1.075); }
  to { transform: translate3d(.9%, -.35%, 0) scale(1.115); }
}

@keyframes ribbon-art-primary {
  from {
    transform: translate3d(-.28%, .18%, 0) scale(1.074);
  }
  to {
    transform: translate3d(.72%, -.36%, 0) scale(1.105);
  }
}

@keyframes ribbon-art-secondary {
  from {
    transform: translate3d(-.48%, -.18%, 0) scale(1.076);
  }
  to {
    transform: translate3d(.58%, .32%, 0) scale(1.108);
  }
}

/* The functional area rises as a broad paper ribbon. It gives controls a
   shared visual ground without enclosing every feature in a rectangle. */
.member-hub .hub-view {
  width: min(1440px, calc(100% - 2 * var(--hub-content-gutter)));
  max-width: none !important;
  margin: 0 auto !important;
  padding:
    clamp(102px, 10vw, 146px)
    clamp(24px, 4.2vw, 64px)
    clamp(56px, 6vw, 88px) !important;
  overflow: visible;
  background:
    radial-gradient(ellipse at 22% 6%, rgba(255, 255, 255, .99), transparent 54%),
    linear-gradient(135deg, var(--ribbon-paper) 0 58%, var(--ribbon-paper-blue) 100%) !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius:
    48% 52% 44px 56px /
    clamp(62px, 8vw, 112px) clamp(76px, 9vw, 132px) 44px 56px !important;
  box-shadow:
    0 -24px 68px rgba(4, 22, 40, .14),
    0 34px 80px rgba(4, 22, 40, .12),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

html[data-theme="night"] .member-hub .hub-view {
  color: #e9f3fb;
  background:
    radial-gradient(ellipse at 24% 4%, rgba(29, 72, 108, .42), transparent 48%),
    linear-gradient(135deg, rgba(7, 30, 52, .985), rgba(9, 39, 67, .985) 62%, rgba(5, 25, 44, .99)) !important;
  border-color: rgba(127, 216, 255, .13) !important;
  box-shadow:
    0 -24px 68px rgba(0, 0, 0, .28),
    0 34px 82px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

/* Marketplace search: one complete capsule with generous leading space.
   Explicit clipping and box sizing prevent a corner from disappearing. */
.member-hub[data-active-view="marketplace"] .market-discovery-bar {
  position: sticky !important;
  z-index: 24;
  top: calc(var(--app-bar-offset) + 8px) !important;
  box-sizing: border-box;
  gap: 10px;
  margin: 0 0 26px !important;
  padding: 9px !important;
  overflow: visible !important;
  clip-path: none !important;
  background: rgba(255, 253, 248, .94) !important;
  border: 2px solid rgba(75, 112, 142, .22) !important;
  border-radius: 999px !important;
  box-shadow:
    0 18px 42px rgba(6, 43, 72, .12),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

.member-hub[data-active-view="marketplace"] .market-search {
  box-sizing: border-box;
  min-height: 58px;
  padding: 7px 14px 7px 24px !important;
  overflow: hidden !important;
  clip-path: none !important;
  background: rgba(238, 247, 252, .9) !important;
  border: 1px solid rgba(75, 112, 142, .2) !important;
  border-radius: 999px !important;
}

.member-hub[data-active-view="marketplace"] .market-search > span {
  width: 25px !important;
  color: #3c5f7d !important;
  font-size: 25px !important;
}

.member-hub[data-active-view="marketplace"] .market-search > input {
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 16px 8px 10px !important;
  color: #0a2138 !important;
}

.member-hub[data-active-view="marketplace"] .market-search > input::placeholder {
  color: #5e7285 !important;
  opacity: 1;
}

.member-hub[data-active-view="marketplace"] .market-filter-select > select,
.member-hub[data-active-view="marketplace"] .market-sell-button {
  min-height: 54px !important;
  border-radius: 999px !important;
}

.member-hub[data-active-view="marketplace"] .market-filter-select > select {
  padding-inline: 19px 38px !important;
  background-color: #edf6fb !important;
  border: 1px solid rgba(75, 112, 142, .15) !important;
}

.member-hub[data-active-view="marketplace"] .market-sell-button {
  min-width: 104px;
  color: #fff !important;
  background: linear-gradient(145deg, #245dcc, #092b4c) !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(23, 77, 191, .22) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .market-discovery-bar {
  background: rgba(6, 28, 49, .93) !important;
  border-color: rgba(127, 216, 255, .24) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .market-search {
  background: rgba(12, 47, 78, .9) !important;
  border-color: rgba(127, 216, 255, .2) !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .market-search > input {
  color: #f4f9fd !important;
  -webkit-text-fill-color: #f4f9fd !important;
  opacity: 1 !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .market-search > input::placeholder {
  color: #b9d6e9 !important;
  -webkit-text-fill-color: #b9d6e9 !important;
  opacity: .94 !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .market-search > span {
  color: #a9dfff !important;
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .market-filter-select > select {
  color: #eaf4fb !important;
  background-color: rgba(12, 47, 78, .92) !important;
  border-color: rgba(127, 216, 255, .16) !important;
}

/* Listings become a photograph and a separate organic information ribbon. */
.member-hub[data-active-view="marketplace"] .market-grid {
  gap: clamp(26px, 3vw, 44px) !important;
}

.member-hub[data-active-view="marketplace"] .marketplace-card {
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.member-hub[data-active-view="marketplace"] .marketplace-card-media-button {
  overflow: hidden !important;
  border: 1px solid rgba(127, 216, 255, .16) !important;
  border-radius:
    44% 56% 42% 58% /
    36% 45% 55% 64% !important;
  box-shadow: 0 22px 50px rgba(4, 22, 40, .18);
}

.member-hub[data-active-view="marketplace"] .marketplace-card-body {
  position: relative;
  z-index: 2;
  margin-top: -16px;
  padding: clamp(22px, 2.7vw, 34px) !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, .98), rgba(236, 247, 253, .97)) !important;
  border: 1px solid rgba(87, 126, 155, .16);
  border-radius:
    34px 84px 38px 64px /
    30px 58px 36px 50px !important;
  box-shadow: 0 20px 46px rgba(6, 43, 72, .11);
}

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"] .marketplace-card-body {
  background: linear-gradient(145deg, rgba(10, 42, 71, .98), rgba(5, 29, 51, .98)) !important;
  border-color: rgba(127, 216, 255, .15);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .25);
}

.member-hub[data-active-view="marketplace"]
  .market-grid.is-single-result .marketplace-card {
  grid-template-columns: minmax(250px, .82fr) minmax(300px, 1.18fr) !important;
  align-items: center;
}

.member-hub[data-active-view="marketplace"]
  .market-grid.is-single-result .marketplace-card-media-button {
  min-height: 330px;
}

.member-hub[data-active-view="marketplace"]
  .market-grid.is-single-result .marketplace-card-body {
  margin: 20px 0 20px -34px;
  padding-left: clamp(38px, 4vw, 58px) !important;
}

/* Empty inventory uses the marketplace artwork itself. */
.member-hub[data-active-view="marketplace"] .marketplace-empty-visual {
  overflow: hidden;
  background:
    url("concourse-art-market.jpg")
    var(--hub-fragment-secondary-position) / 175% auto no-repeat !important;
  border: 1px solid rgba(127, 216, 255, .22);
  border-radius: 42% 58% 46% 54% / 56% 42% 58% 44%;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .24));
  animation: ribbon-empty-art 13s ease-in-out infinite alternate;
}

.member-hub[data-active-view="marketplace"] .marketplace-empty-visual::before {
  inset: -12%;
  background:
    url("concourse-art-market.jpg")
    var(--hub-fragment-primary-position) / 188% auto no-repeat;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  clip-path: polygon(0 12%, 100% 0, 88% 46%, 100% 100%, 18% 82%);
  animation: ribbon-empty-fragment 9s ease-in-out infinite alternate;
}

.member-hub[data-active-view="marketplace"] .marketplace-empty-visual::after,
.member-hub[data-active-view="marketplace"] .marketplace-empty-orbit {
  display: none !important;
  content: none !important;
}

@keyframes ribbon-empty-art {
  from { background-position: 14% 58%; transform: translate3d(-3px, 2px, 0) rotate(-1deg); }
  to { background-position: 24% 50%; transform: translate3d(4px, -3px, 0) rotate(1deg); }
}

@keyframes ribbon-empty-fragment {
  from { transform: translate3d(-5%, 2%, 0) scale(1.02); }
  to { transform: translate3d(5%, -2%, 0) scale(1.08); }
}

/* The transaction sequence remains unboxed and gains clear organic markers. */
.member-hub[data-active-view="marketplace"] .market-rail {
  background: transparent !important;
  border-radius: 0 !important;
}

.member-hub[data-active-view="marketplace"] .market-protection-steps > li {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  column-gap: 18px !important;
  min-height: 104px;
}

.member-hub[data-active-view="marketplace"]
  .market-protection-steps > li::before {
  width: 42px !important;
  height: 42px !important;
  color: #07213a !important;
  background: linear-gradient(145deg, #ffe9ad, #efbd4c) !important;
  border: 2px solid rgba(255, 250, 232, .82) !important;
  border-radius: 58% 42% 56% 44% / 45% 60% 40% 55% !important;
  box-shadow:
    0 0 0 5px rgba(239, 189, 76, .12),
    0 13px 28px rgba(4, 22, 40, .18) !important;
}

.member-hub[data-active-view="marketplace"]
  .market-protection-steps > li:not(:last-child)::after {
  left: 20px !important;
  width: 2px !important;
  background: linear-gradient(180deg, #efbd4c, #79d5ff) !important;
}

/* Supporting information adopts varied curves while posts and form rows stay
   editorial and readable. */
.member-hub .hub-view[data-hub-view="overview"] :is(.hub-metric-card, .hub-card),
.member-hub .hub-view[data-hub-view="profile"] > .hub-profile-grid > .hub-card,
.member-hub .hub-view[data-hub-view="messages"] .hub-chat-card {
  border-radius:
    34px 78px 38px 62px /
    30px 56px 36px 48px !important;
}

.member-hub .hub-view[data-hub-view="overview"] .hub-metric-card:nth-child(even),
.member-hub .hub-view[data-hub-view="profile"] > .hub-profile-grid > .hub-card:nth-child(even) {
  border-radius:
    74px 34px 64px 40px /
    52px 30px 48px 36px !important;
}

/* Day mode keeps the selected light-blue contrast, while the navy artwork
   remains strong enough to carry white hero text. */
html[data-theme="day"] .member-hub .hub-page-header {
  background: #08243f !important;
  border-color: rgba(16, 75, 116, .24) !important;
  box-shadow:
    0 30px 72px rgba(16, 75, 116, .18),
    inset 0 1px 0 rgba(255, 255, 255, .1) !important;
}

html[data-theme="day"] .member-hub .hub-view {
  color: #071a2e;
  background:
    radial-gradient(ellipse at 22% 6%, #fff, transparent 54%),
    linear-gradient(135deg, #fffdf8 0 58%, #e5f5ff 100%) !important;
  border-color: rgba(255, 255, 255, .86) !important;
}

html[data-theme="day"] .member-hub .hub-page-header .hub-kicker {
  color: #f8d788 !important;
}

html[lang^="zh"] .member-hub .hub-page-header h1 {
  max-width: 9ch !important;
  font-size: clamp(38px, 4.4vw, 62px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
}

@media (max-width: 1100px) {
  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header {
    min-height: clamp(292px, 39vw, 380px) !important;
    margin-bottom: -50px !important;
  }

  .member-hub .hub-page-header-copy,
  .member-hub[data-active-view="marketplace"] .hub-page-header-copy {
    width: min(62%, 620px) !important;
  }

  .member-hub .hub-view {
    padding-top: clamp(82px, 10vw, 112px) !important;
  }
}

@media (max-width: 900px) {
  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header,
  .member-hub[data-active-view="marketplace"] .hub-page-header {
    min-height: 300px !important;
    border-radius:
      38px 92px 46px 74px /
      34px 64px 42px 58px !important;
  }

  .member-hub .hub-page-header-copy,
  .member-hub[data-active-view="marketplace"] .hub-page-header-copy {
    width: min(72%, 600px) !important;
    padding: 34px 38px !important;
  }

  .member-hub .hub-page-header h1,
  .member-hub[data-active-view="marketplace"] .hub-page-header h1 {
    font-size: clamp(36px, 6.5vw, 56px) !important;
  }

  .member-hub .hub-art-fragment-primary {
    inset: 0 !important;
  }

  .member-hub .hub-art-fragment-secondary {
    inset: 0 !important;
  }

  .member-hub .hub-view {
    width: min(100%, calc(100% - 2 * var(--hub-content-gutter)));
    padding-inline: clamp(18px, 4vw, 38px) !important;
    border-radius:
      48% 52% 34px 38px /
      62px 76px 34px 38px !important;
  }

  .member-hub[data-active-view="marketplace"] .market-discovery-bar {
    position: static !important;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .34fr) auto !important;
    border-radius: 34px !important;
  }

  .member-hub[data-active-view="marketplace"] .market-search {
    grid-column: 1 / -1;
  }

  .member-hub[data-active-view="marketplace"]
    .market-grid.is-single-result .marketplace-card-body {
    margin-left: -22px;
    padding-left: 38px !important;
  }
}

@media (max-width: 700px) {
  .member-hub .hub-page-header,
  .member-hub[data-active-view] .hub-page-header,
  .member-hub[data-active-view="marketplace"] .hub-page-header {
    min-height: 276px !important;
    margin-bottom: -38px !important;
    border-radius:
      28px 62px 34px 48px /
      26px 48px 32px 42px !important;
  }

  .member-hub .hub-page-header-copy,
  .member-hub[data-active-view="marketplace"] .hub-page-header-copy {
    width: 100% !important;
    padding: 30px 26px !important;
  }

  .member-hub .hub-page-header h1,
  .member-hub[data-active-view="marketplace"] .hub-page-header h1,
  html[lang^="zh"] .member-hub .hub-page-header h1 {
    max-width: 12ch !important;
    font-size: clamp(32px, 9.5vw, 44px) !important;
  }

  .member-hub .hub-page-header-copy > p:not(.hub-kicker) {
    max-width: 34ch !important;
    font-size: 12.5px !important;
  }

  .member-hub .hub-hero-art::before {
    background:
      linear-gradient(90deg, rgba(3, 17, 31, .96), rgba(3, 17, 31, .78) 58%, rgba(3, 17, 31, .34)),
      linear-gradient(0deg, rgba(2, 13, 24, .26), transparent 60%) !important;
  }

  .member-hub .hub-art-fragment-primary {
    inset: 0 !important;
    opacity: .7;
  }

  .member-hub .hub-art-fragment-secondary {
    inset: 0 !important;
    opacity: .42;
  }

  .member-hub .hub-view {
    padding:
      68px 16px 46px !important;
    border-radius:
      46% 54% 24px 28px /
      44px 58px 24px 28px !important;
  }

  .member-hub[data-active-view="marketplace"] .market-discovery-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px;
    padding: 8px !important;
    border-radius: 28px !important;
  }

  .member-hub[data-active-view="marketplace"] .market-search {
    min-height: 54px;
    padding-left: 20px !important;
  }

  .member-hub[data-active-view="marketplace"] .market-filter-select {
    min-width: 0;
  }

  .member-hub[data-active-view="marketplace"] .market-sell-button {
    width: 100%;
  }

  .member-hub[data-active-view="marketplace"]
    .market-grid.is-single-result .marketplace-card {
    display: flex !important;
  }

  .member-hub[data-active-view="marketplace"]
    .market-grid.is-single-result .marketplace-card-media-button {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .member-hub[data-active-view="marketplace"]
    .market-grid.is-single-result .marketplace-card-body {
    margin: -18px 0 0;
    padding: 30px 22px 24px !important;
  }
}

@media (max-width: 480px) {
  .member-hub .hub-page-header {
    min-height: 252px !important;
  }

  .member-hub .hub-page-header-copy > p:not(.hub-kicker) {
    display: none !important;
  }

  .member-hub[data-active-view="marketplace"] .market-discovery-bar {
    grid-template-columns: minmax(0, 1fr) !important;
    border-radius: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-hub .hub-hero-art img,
  .member-hub .hub-art-fragment,
  .member-hub[data-active-view="marketplace"] .marketplace-empty-visual,
  .member-hub[data-active-view="marketplace"] .marketplace-empty-visual::before {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}

@media (forced-colors: active) {
  .member-hub .hub-art-fragment {
    display: none !important;
  }

  .member-hub .hub-view,
  .member-hub[data-active-view="marketplace"] .market-discovery-bar,
  .member-hub[data-active-view="marketplace"] .marketplace-card-body {
    color: CanvasText !important;
    background: Canvas !important;
    border: 1px solid CanvasText !important;
  }
}

/* ==========================================================================
   Hub polish — calm learning motion, organic social spaces and night contrast
   ========================================================================== */

/* The source-search action is a clear blue call to action in both themes. */
#citationLookupWebsite {
  color: #fff !important;
  background: linear-gradient(135deg, #1f58cb 0%, #2d82de 58%, #58bde9 100%) !important;
  border: 1px solid rgba(23, 77, 191, .36) !important;
  box-shadow:
    0 14px 30px rgba(23, 77, 191, .22),
    inset 0 1px 0 rgba(255, 255, 255, .3) !important;
}

#citationLookupWebsite:is(:hover, :focus-visible) {
  color: #fff !important;
  background: linear-gradient(135deg, #174ab4 0%, #2878d0 56%, #50b5e2 100%) !important;
  border-color: rgba(23, 77, 191, .62) !important;
  box-shadow:
    0 18px 38px rgba(23, 77, 191, .28),
    inset 0 1px 0 rgba(255, 255, 255, .34) !important;
}

html[data-theme="night"] #citationLookupWebsite {
  color: #041a2d !important;
  background: linear-gradient(135deg, #a9e8ff 0%, #72d0f6 48%, #efc65f 100%) !important;
  border-color: rgba(169, 232, 255, .62) !important;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(127, 216, 255, .12) !important;
}

html[data-theme="night"] #citationLookupWebsite:is(:hover, :focus-visible) {
  color: #031728 !important;
  background: linear-gradient(135deg, #c1efff 0%, #87dafa 48%, #f4d37e 100%) !important;
}

/* The requested explanatory copy is gone; retain only its accessible heading
   without leaving an empty visual band above the citation workspace. */
.member-hub[data-active-view="academic-tools"] .academic-tools-intro {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.member-hub[data-active-view="academic-tools"] .academic-tools-intro::before,
.member-hub[data-active-view="academic-tools"] .academic-tools-intro::after {
  display: none !important;
  content: none !important;
}

/* Academic imagery uses a constant-scale horizontal pan. There is no zoom,
   vertical drift or competing fragment motion to trigger visual discomfort. */
.member-hub[data-active-view="academic-tools"]
  .hub-hero-art img[data-hub-hero="academic-tools"],
.member-hub[data-active-view="overview"]
  .hub-hero-art img[data-hub-hero="overview"] {
  transform-origin: center center !important;
  animation: ribbon-art-calm-pan 38s ease-in-out infinite alternate both !important;
}

.member-hub[data-active-view="academic-tools"] .hub-art-fragment,
.member-hub[data-active-view="overview"] .hub-art-fragment {
  display: none !important;
  animation: none !important;
}

@keyframes ribbon-art-calm-pan {
  from { transform: translate3d(-.3%, 0, 0) scale(1.045); }
  to { transform: translate3d(.3%, 0, 0) scale(1.045); }
}

/* Community becomes two softly sculpted paper fields instead of square
   dashboard frames. Individual posts remain editorial and easy to scan. */
.member-hub[data-active-view="community"] .hub-community-layout {
  max-width: 1280px;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  gap: clamp(18px, 2.6vw, 36px);
}

.member-hub[data-active-view="community"] .hub-community-stream {
  padding: clamp(28px, 4vw, 54px) clamp(22px, 4vw, 56px) !important;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 14% 5%, rgba(255, 255, 255, .96), transparent 48%),
    linear-gradient(145deg, rgba(255, 253, 248, .96), rgba(229, 244, 253, .92)) !important;
  border: 1px solid rgba(90, 132, 161, .14) !important;
  border-radius:
    58px 126px 64px 92px /
    54px 88px 72px 110px !important;
  box-shadow:
    0 26px 64px rgba(6, 43, 72, .1),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

.member-hub[data-active-view="community"] .hub-community-rail {
  padding: clamp(24px, 3vw, 38px) !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(88, 190, 239, .16), transparent 17rem),
    linear-gradient(155deg, rgba(239, 249, 255, .96), rgba(255, 253, 248, .94)) !important;
  border: 1px solid rgba(90, 132, 161, .14) !important;
  border-radius:
    82px 42px 72px 48px /
    56px 38px 76px 62px !important;
  box-shadow:
    0 24px 58px rgba(6, 43, 72, .09),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

.member-hub[data-active-view="community"] .hub-community-discovery {
  padding-bottom: clamp(18px, 2vw, 26px) !important;
  background: transparent !important;
}

.member-hub[data-active-view="community"] .hub-community-search {
  border-radius: 999px !important;
}

.member-hub[data-active-view="community"] .hub-compose-card {
  padding: clamp(22px, 3vw, 34px) !important;
  background:
    radial-gradient(circle at 90% 5%, rgba(91, 192, 239, .12), transparent 17rem),
    linear-gradient(145deg, rgba(255, 253, 248, .98), rgba(235, 247, 254, .96)) !important;
  border: 1px solid rgba(78, 120, 151, .15) !important;
  border-radius:
    62px 28px 76px 38px /
    42px 68px 48px 60px !important;
  box-shadow:
    0 22px 52px rgba(6, 43, 72, .1),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

/* Messages are split into an organic conversation pool and a separate chat
   canvas. The interface no longer reads as one large rectangular window. */
.member-hub[data-active-view="messages"] .hub-view[data-hub-view="messages"] {
  background:
    radial-gradient(ellipse at 85% 8%, rgba(92, 194, 239, .12), transparent 30rem),
    linear-gradient(145deg, rgba(255, 253, 248, .98), rgba(234, 247, 254, .94)) !important;
  border: 1px solid rgba(78, 120, 151, .12) !important;
  border-radius:
    132px 58px 116px 84px /
    76px 118px 92px 108px !important;
  box-shadow:
    0 26px 72px rgba(6, 43, 72, .09),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

.member-hub[data-active-view="messages"] .hub-chat-card {
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.member-hub[data-active-view="messages"] .hub-chat-start {
  width: min(920px, 100%);
  max-width: none;
  margin: 0 auto clamp(22px, 3vw, 34px);
  padding: 8px !important;
  background: linear-gradient(145deg, rgba(234, 246, 253, .96), rgba(255, 253, 248, .98)) !important;
  border: 1px solid rgba(79, 118, 148, .18);
  border-radius: 999px;
  box-shadow:
    0 18px 42px rgba(6, 43, 72, .1),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.member-hub[data-active-view="messages"] .hub-chat-start input {
  min-height: 54px;
  padding-inline: 22px;
  color: #08223a;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(69, 108, 138, .18);
  border-radius: 999px;
}

.member-hub[data-active-view="messages"] .hub-chat-start .btn-primary {
  min-width: 132px;
  border-radius: 999px;
}

.member-hub[data-active-view="messages"] .hub-chat-layout {
  height: min(660px, calc(100svh - 210px));
  min-height: 560px;
  grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.member-hub[data-active-view="messages"] .hub-conversation-list {
  padding: clamp(20px, 2.4vw, 30px) clamp(14px, 1.8vw, 22px) !important;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 8%, rgba(82, 181, 234, .15), transparent 15rem),
    linear-gradient(150deg, rgba(232, 246, 254, .98), rgba(248, 252, 255, .96)) !important;
  border: 1px solid rgba(77, 119, 151, .16) !important;
  border-radius:
    66px 34px 72px 42px /
    48px 36px 82px 58px !important;
  box-shadow:
    0 22px 54px rgba(6, 43, 72, .09),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.member-hub[data-active-view="messages"] .hub-message-pane {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 6%, rgba(87, 187, 239, .11), transparent 20rem),
    linear-gradient(145deg, rgba(255, 253, 248, .99), rgba(238, 248, 254, .98)) !important;
  border: 1px solid rgba(77, 119, 151, .16);
  border-radius:
    38px 98px 54px 82px /
    40px 68px 76px 58px;
  box-shadow:
    0 26px 66px rgba(6, 43, 72, .11),
    inset 0 1px 0 rgba(255, 255, 255, .94);
}

.member-hub[data-active-view="messages"] :is(
  .hub-message-heading,
  .hub-message-list,
  .hub-message-compose
) {
  background: transparent !important;
}

.member-hub[data-active-view="messages"] .hub-message-heading {
  margin-inline: clamp(18px, 3vw, 34px);
  padding-inline: 0 !important;
  border-bottom-color: rgba(77, 119, 151, .15);
}

.member-hub[data-active-view="messages"] .hub-message-compose {
  margin: 0 clamp(18px, 3vw, 32px) 18px;
  padding: 12px !important;
  background: rgba(235, 246, 253, .88) !important;
  border: 1px solid rgba(77, 119, 151, .15);
  border-radius: 999px;
}

.member-hub[data-active-view="messages"] .hub-message-compose input,
.member-hub[data-active-view="messages"] .hub-message-compose button {
  border-radius: 999px;
}

/* Strong night variables repair the inherited dark-on-dark text in Messages,
   Academic Insights and Profile. */
html[data-theme="night"] .member-hub:is(
  [data-active-view="messages"],
  [data-active-view="overview"],
  [data-active-view="profile"]
) {
  --hub-editorial-ink: #f3f8fc;
  --hub-editorial-muted: #adc3d3;
  --hub-editorial-line: rgba(166, 207, 235, .22);
  --hub-ink: #f3f8fc;
  --hub-ink-soft: #c8dbe8;
  --hub-line: rgba(166, 207, 235, .22);
  --muted: #adc3d3;
  --muted-2: #8ea9bc;
  color-scheme: dark;
}

html[data-theme="night"] .member-hub :is(
  .hub-view[data-hub-view="messages"],
  .hub-view[data-hub-view="overview"],
  .hub-view[data-hub-view="profile"]
) {
  --hub-ink: #f4f9fd;
  --muted: #afc6d8;
  --hub-line: rgba(137, 204, 241, .22);
  --hub-blue: #82d8ff;
  --hub-blue-deep: #bcecff;
  color: #eaf4fb !important;
}

html[data-theme="night"] .member-hub :is(
  .hub-view[data-hub-view="messages"],
  .hub-view[data-hub-view="overview"],
  .hub-view[data-hub-view="profile"]
) :is(
  .hub-section-heading h2,
  .hub-card-heading h2,
  .hub-message-heading b,
  .hub-chart-empty b,
  .hub-final-course b,
  .hub-final-stat b,
  .hub-avatar-editor-copy > b,
  .hub-provider-copy b,
  .hub-wechat-row > label > span,
  .hub-toggle-label span
) {
  color: #f7fbff !important;
}

html[data-theme="night"] .member-hub :is(
  .hub-view[data-hub-view="messages"],
  .hub-view[data-hub-view="overview"],
  .hub-view[data-hub-view="profile"]
) :is(
  .hub-section-heading > p,
  .hub-card-heading p,
  .hub-inline-status,
  .hub-message-heading span,
  .hub-message-empty,
  .hub-chart-empty,
  .hub-final-course small,
  .hub-final-stat span,
  .hub-form-grid label > span,
  .hub-social-list label > span,
  .hub-avatar-editor-copy > small,
  .hub-provider-copy > span,
  .hub-provider-copy small,
  .hub-provider-disclosure,
  .hub-social-list small,
  .hub-wechat-row small
) {
  color: #afc6d8 !important;
}

html[data-theme="night"] .member-hub[data-active-view="messages"]
  .hub-view[data-hub-view="messages"] {
  background:
    radial-gradient(ellipse at 86% 8%, rgba(87, 197, 247, .1), transparent 31rem),
    linear-gradient(145deg, rgba(8, 37, 63, .98), rgba(5, 26, 46, .97)) !important;
  border-color: rgba(127, 216, 255, .16) !important;
  box-shadow:
    0 28px 76px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html[data-theme="night"] .member-hub[data-active-view="messages"] .hub-chat-start {
  background: linear-gradient(145deg, rgba(9, 39, 66, .98), rgba(12, 54, 88, .96)) !important;
  border-color: rgba(127, 216, 255, .25);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

html[data-theme="night"] .member-hub[data-active-view="messages"] .hub-chat-start input {
  color: #f5faff !important;
  -webkit-text-fill-color: #f5faff !important;
  background: rgba(15, 61, 96, .94) !important;
  border-color: rgba(127, 216, 255, .26) !important;
}

html[data-theme="night"] .member-hub[data-active-view="messages"] .hub-chat-start input::placeholder {
  color: #bed4e4 !important;
  -webkit-text-fill-color: #bed4e4 !important;
  opacity: .94;
}

html[data-theme="night"] .member-hub[data-active-view="messages"] .hub-conversation-list {
  color: #edf7fd;
  background:
    radial-gradient(circle at 16% 8%, rgba(87, 197, 247, .13), transparent 15rem),
    linear-gradient(155deg, rgba(8, 37, 63, .98), rgba(10, 48, 79, .96)) !important;
  border-color: rgba(127, 216, 255, .2) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .23);
}

html[data-theme="night"] .member-hub[data-active-view="messages"] .hub-message-pane {
  color: #edf7fd;
  background:
    radial-gradient(circle at 90% 7%, rgba(87, 197, 247, .1), transparent 20rem),
    linear-gradient(145deg, rgba(7, 32, 55, .99), rgba(11, 49, 79, .97)) !important;
  border-color: rgba(127, 216, 255, .2);
  box-shadow: 0 26px 66px rgba(0, 0, 0, .25);
}

html[data-theme="night"] .member-hub[data-active-view="messages"] .hub-message-compose {
  background: rgba(14, 56, 90, .92) !important;
  border-color: rgba(127, 216, 255, .2);
}

html[data-theme="night"] .member-hub[data-active-view="messages"] .hub-message-compose input {
  color: #f5faff !important;
  -webkit-text-fill-color: #f5faff !important;
  background: rgba(5, 29, 50, .92) !important;
  border-color: rgba(127, 216, 255, .18) !important;
}

html[data-theme="night"] .member-hub[data-active-view="messages"] .hub-message-compose input::placeholder {
  color: #a9c5d8 !important;
  -webkit-text-fill-color: #a9c5d8 !important;
  opacity: 1;
}

html[data-theme="night"] .member-hub[data-active-view="messages"] :is(
  .hub-conversation-button b,
  .hub-message-empty,
  .hub-feed-empty
) {
  color: #f4f9fd !important;
  -webkit-text-fill-color: #f4f9fd !important;
}

html[data-theme="night"] .member-hub[data-active-view="messages"] :is(
  .hub-conversation-button span,
  #chatSubheading
) {
  color: #afc6d8 !important;
  -webkit-text-fill-color: #afc6d8 !important;
}

html[data-theme="night"] .member-hub[data-active-view="messages"]
  .hub-message-safety .btn-ghost {
  color: #dcecf6 !important;
  background: rgba(255, 255, 255, .045) !important;
  border-color: rgba(166, 207, 235, .24) !important;
}

html[data-theme="night"] .member-hub[data-active-view="messages"]
  .hub-message-safety .btn-ghost:disabled {
  color: #91aabd !important;
  border-color: rgba(166, 207, 235, .13) !important;
  opacity: .76 !important;
}

html[data-theme="night"] .member-hub[data-active-view="messages"]
  #sendChatMessage:disabled {
  color: #bed0dc !important;
  background: #28506e !important;
  border-color: rgba(166, 207, 235, .14) !important;
  opacity: .78 !important;
}

html[data-theme="night"] .member-hub[data-active-view="overview"] .hub-metric-card {
  color: #eef8fe;
  background: linear-gradient(145deg, rgba(12, 52, 84, .9), rgba(6, 31, 54, .92)) !important;
  border-color: rgba(127, 216, 255, .18) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .2) !important;
}

html[data-theme="night"] .member-hub[data-active-view="overview"] .hub-metric-card > b {
  color: #f7fbff !important;
  -webkit-text-fill-color: #f7fbff !important;
}

html[data-theme="night"] .member-hub[data-active-view="overview"]
  .hub-metric-card > :is(span, small) {
  color: #afc6d8 !important;
  -webkit-text-fill-color: #afc6d8 !important;
}

html[data-theme="night"] .member-hub[data-active-view="overview"] :is(
  .hub-filter-row,
  .hub-final-stat,
  .hub-final-course-panel
) {
  color: #eef8fe;
  background: rgba(13, 55, 88, .78) !important;
  border-color: rgba(127, 216, 255, .18) !important;
}

html[data-theme="night"] .member-hub[data-active-view="overview"] :is(
  .hub-filter-row select,
  .hub-filter-row input
) {
  color: #f5faff !important;
  color-scheme: dark;
  background: rgba(5, 29, 50, .94) !important;
  border-color: rgba(127, 216, 255, .24) !important;
}

html[data-theme="night"] .member-hub[data-active-view="overview"]
  .hub-filter-row select option,
html[data-theme="night"] .member-hub[data-active-view="profile"] select option {
  color: #071a2e !important;
  -webkit-text-fill-color: #071a2e !important;
  background: #fff !important;
}

html[data-theme="night"] .member-hub[data-active-view="overview"] .hub-chart-track {
  background: rgba(189, 224, 245, .18);
}

html[data-theme="night"] .member-hub[data-active-view="profile"] .hub-card {
  color: #edf7fd;
  background: linear-gradient(145deg, rgba(11, 47, 78, .78), rgba(6, 30, 52, .76)) !important;
  border: 1px solid rgba(127, 216, 255, .14) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .18) !important;
}

html[data-theme="night"] .member-hub[data-active-view="profile"] :is(
  input,
  select,
  textarea
) {
  color: #f5faff !important;
  -webkit-text-fill-color: #f5faff !important;
  color-scheme: dark;
  background: rgba(5, 29, 50, .9) !important;
  border-color: rgba(127, 216, 255, .22) !important;
}

html[data-theme="night"] .member-hub[data-active-view="profile"] :is(
  input,
  textarea
)::placeholder {
  color: #a9c5d8 !important;
  -webkit-text-fill-color: #a9c5d8 !important;
  opacity: 1;
}

html[data-theme="night"] .member-hub[data-active-view="profile"] :is(
  .hub-connect-button:disabled,
  .hub-avatar-actions .btn-ghost,
  .hub-profile-save .btn-ghost
) {
  color: #c9dce8 !important;
  background: rgba(255, 255, 255, .045) !important;
  border-color: rgba(166, 207, 235, .2) !important;
  opacity: .82 !important;
}

html[data-theme="night"] .member-hub:is(
  [data-active-view="messages"],
  [data-active-view="overview"],
  [data-active-view="profile"]
) .hub-inline-status {
  color: #adc3d3;
}

html[data-theme="night"] .member-hub:is(
  [data-active-view="messages"],
  [data-active-view="overview"],
  [data-active-view="profile"]
) .hub-inline-status.success {
  color: #69e0b4;
}

html[data-theme="night"] .member-hub:is(
  [data-active-view="messages"],
  [data-active-view="overview"],
  [data-active-view="profile"]
) .hub-inline-status.error {
  color: #ff9eac;
}

html[data-theme="night"] .member-hub[data-active-view="profile"] :is(
  .hub-connection-tab,
  .hub-social-list label,
  .hub-wechat-row,
  .hub-provider-connection
) {
  color: #eaf4fb;
  background: rgba(11, 48, 79, .7) !important;
  border-color: rgba(127, 216, 255, .15) !important;
}

html[data-theme="night"] .member-hub[data-active-view="profile"] .hub-connection-tab:is(
  .active,
  [aria-selected="true"]
) {
  color: #fff !important;
  background: rgba(36, 101, 151, .76) !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"] .hub-community-stream,
html[data-theme="night"] .member-hub[data-active-view="community"] .hub-community-rail,
html[data-theme="night"] .member-hub[data-active-view="community"] .hub-compose-card {
  --hub-editorial-ink: #f2f8fc;
  --hub-editorial-line: rgba(127, 216, 255, .18);
  color: #edf7fd !important;
  background:
    radial-gradient(circle at 16% 7%, rgba(87, 197, 247, .1), transparent 18rem),
    linear-gradient(150deg, rgba(8, 37, 63, .98), rgba(10, 48, 79, .96)) !important;
  border-color: rgba(127, 216, 255, .18) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .22) !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"] :is(
  .hub-feed-toolbar b,
  .hub-rail-card b,
  .hub-rail-heading h3,
  .hub-rail-link b
) {
  color: #f4f9fd !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"] :is(
  .hub-topic-chip,
  .hub-rail-card span,
  .hub-rail-card small,
  .hub-rail-link,
  .hub-conversation-preview-empty
) {
  color: #adc6d8 !important;
}

@media (max-width: 960px) {
  .member-hub[data-active-view="community"] .hub-community-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-hub[data-active-view="community"] .hub-community-rail {
    position: static;
  }

  .member-hub[data-active-view="messages"] .hub-chat-layout {
    grid-template-columns: minmax(210px, .32fr) minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .member-hub[data-active-view="community"] .hub-community-stream,
  .member-hub[data-active-view="community"] .hub-community-rail {
    border-radius:
      36px 66px 42px 54px /
      34px 48px 52px 64px !important;
  }

  .member-hub[data-active-view="messages"] .hub-chat-start {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 30px;
  }

  .member-hub[data-active-view="messages"] .hub-view[data-hub-view="messages"] {
    border-radius:
      44px 28px 52px 34px /
      36px 48px 40px 56px !important;
  }

  .member-hub[data-active-view="messages"] .hub-chat-start .btn-primary {
    width: 100%;
  }

  .member-hub[data-active-view="messages"] .hub-chat-layout {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(160px, 230px) minmax(500px, 1fr);
  }

  .member-hub[data-active-view="messages"] .hub-conversation-list,
  .member-hub[data-active-view="messages"] .hub-message-pane {
    border-radius:
      34px 58px 40px 50px /
      32px 46px 52px 60px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-hub[data-active-view="academic-tools"] .hub-hero-art img,
  .member-hub[data-active-view="overview"] .hub-hero-art img {
    animation: none !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  #citationLookupWebsite,
  .member-hub[data-active-view="community"] :is(.hub-community-stream, .hub-community-rail, .hub-compose-card),
  .member-hub[data-active-view="messages"] .hub-view[data-hub-view="messages"],
  .member-hub[data-active-view="messages"] :is(.hub-chat-start, .hub-conversation-list, .hub-message-pane) {
    color: ButtonText !important;
    background: Canvas !important;
    border: 1px solid CanvasText !important;
    box-shadow: none !important;
  }
}

/* Targeted box correction: final record and night community composer only. */
.member-hub[data-active-view="overview"] .hub-final-overview {
  overflow: hidden;
  border-radius:
    54px 28px 84px 38px /
    42px 64px 52px 76px;
}

html[data-theme="night"] .member-hub[data-active-view="overview"] :is(
  .hub-final-stat,
  .hub-final-course-panel
) {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="night"] .member-hub[data-active-view="overview"] .hub-final-course-panel {
  border: 0 !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"] .hub-compose-card {
  --hub-ink: #f4f9fd;
  --muted: #afc6d8;
  --hub-blue: #82d8ff;
  --hub-line: rgba(127, 216, 255, .2);
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  .hub-compose-card #communityPostBody {
  color: #f4f9fd !important;
  -webkit-text-fill-color: #f4f9fd !important;
  caret-color: #82d8ff;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(127, 216, 255, .28) !important;
  border-radius: 0 0 58px 0 !important;
  box-shadow: none !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  .hub-compose-card #communityPostBody:is(:hover, :focus) {
  background: rgba(127, 216, 255, .035) !important;
  border-bottom-color: #82d8ff !important;
  box-shadow: none !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  .hub-compose-card #communityPostBody::placeholder,
html[data-theme="night"] .member-hub[data-active-view="community"]
  .hub-compose-card #communityPostTags::placeholder {
  color: #a9c5d8 !important;
  -webkit-text-fill-color: #a9c5d8 !important;
  opacity: 1;
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  .hub-compose-card #communityPostTags {
  color: #f4f9fd !important;
  -webkit-text-fill-color: #f4f9fd !important;
  caret-color: #82d8ff;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(127, 216, 255, .22) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  .hub-compose-card #communityPostTags:is(:hover, :focus) {
  background: transparent !important;
  border-bottom-color: #82d8ff !important;
  box-shadow: none !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  .community-listing-picker > label {
  color: #b5cddd !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  #communityListingSelect {
  color: #f4f9fd !important;
  -webkit-text-fill-color: #f4f9fd !important;
  color-scheme: dark;
  background-color: transparent !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #82d8ff 50%),
    linear-gradient(135deg, #82d8ff 50%, transparent 50%),
    linear-gradient(to right, rgba(127, 216, 255, .18), rgba(127, 216, 255, .18)) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(127, 216, 255, .26) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  #communityListingSelect:is(:hover, :focus) {
  background-color: rgba(127, 216, 255, .035) !important;
  border-bottom-color: #82d8ff !important;
  box-shadow: none !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"]
  #communityListingSelect option {
  color: #071a2e !important;
  -webkit-text-fill-color: #071a2e !important;
  background: #fff !important;
}

html[data-theme="night"] .member-hub[data-active-view="community"] :is(
  .hub-compose-meta span,
  .hub-cross-campus-toggle
) {
  color: #b5cddd !important;
}
