/* Final scoped refinements for the requested Hub examples, academic artwork,
   and the persistent destination rail. */

/* Campus Market --------------------------------------------------------- */

html[data-theme="night"]
  .member-hub[data-active-view="marketplace"]
  #marketplaceSearch {
  caret-color: #fff !important;
}

/* Keep the Hub destinations readable above every long feature page. The
   background is deliberately opaque: content must never show through it. */
.member-hub .hub-shell {
  display: block !important;
}

body.hub-active .member-hub {
  overflow: visible !important;
}

html:has(> body.hub-active) {
  overflow-x: clip !important;
  overflow-y: auto !important;
}

body.hub-active {
  --app-bar-offset: 84px;
  overflow: visible !important;
}

@media (max-height: 840px) and (max-width: 1050px) {
  body.app-active.hub-active #landingScreen {
    position: sticky !important;
    top: 0 !important;
  }
}

.member-hub .hub-sidebar {
  position: sticky !important;
  top: var(--app-bar-offset, 76px) !important;
  z-index: 80 !important;
  background: #06182a !important;
  border-inline: 0 !important;
  border-radius: 0 !important;
  box-shadow:
    inset 0 -1px 0 rgba(139, 216, 255, .22),
    0 14px 34px rgba(0, 9, 20, .22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.member-hub .hub-main {
  margin-top: 18px;
}

html[data-theme="day"] .member-hub .hub-sidebar {
  color: #071d32 !important;
  background: #ddecf7 !important;
  box-shadow:
    inset 0 -1px 0 rgba(23, 77, 191, .18),
    0 14px 30px rgba(29, 73, 106, .12) !important;
}

/* Academic artwork motion ---------------------------------------------- */

.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: none !important;
  animation: none !important;
  object-position: center center !important;
}

/* Academic Tools uses one physical index wheel that is part of the artwork.
   A pixel-matched circular crop rotates over the same wheel, so there are no
   detached strings, pins, or decorative objects pasted above the image. */
.member-hub[data-active-view="academic-tools"] .hub-hero-art {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 1;
}

.member-hub[data-active-view="academic-tools"]
  .hub-hero-art img[data-hub-hero="academic-tools"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.member-hub[data-active-view="academic-tools"] .hub-art-fragment-primary {
  inset: 46.5% auto auto 72.33% !important;
  z-index: 3 !important;
  display: block !important;
  width: 28.65% !important;
  height: auto !important;
  aspect-ratio: 1;
  overflow: hidden;
  opacity: 1 !important;
  background: url("concourse-art-citations-wheel.jpg") center / 100% 100% no-repeat !important;
  border-radius: 50%;
  filter: none !important;
  clip-path: circle(49.5% at 50% 50%) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  pointer-events: none;
  transform: none !important;
  translate: -50% -50% !important;
  rotate: -1.2deg;
  transform-origin: 50% 50% !important;
  will-change: transform;
  animation: academic-index-wheel 12s cubic-bezier(.45, 0, .2, 1) infinite !important;
}

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

@keyframes academic-index-wheel {
  0%, 18% { rotate: -1.2deg; }
  48%, 66% { rotate: 1.2deg; }
  100% { rotate: -1.2deg; }
}

/* Academic Insights uses a true square rotor over a stable 3:1 artwork. This
   keeps every ring circular and moves only the gold indicator. */
.member-hub[data-active-view="overview"] .hub-hero-art {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 1;
}

.member-hub[data-active-view="overview"]
  .hub-hero-art img[data-hub-hero="overview"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.member-hub[data-active-view="overview"] .hub-art-fragment-primary {
  inset: auto !important;
  top: 34.4% !important;
  left: 74.3% !important;
  z-index: 3 !important;
  display: block !important;
  width: 13.5% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  opacity: 1 !important;
  background:
    conic-gradient(from -90deg, #eef1ec 0 42%, #aebfd0 42% 67%, #163556 67% 100%) !important;
  border: 2px solid #a77b30;
  border-radius: 50% !important;
  box-shadow:
    0 0 0 6px rgba(233, 237, 231, .9),
    0 0 0 8px rgba(179, 137, 56, .68),
    0 10px 24px rgba(1, 14, 27, .24);
  filter: none !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  transform: translate(-50%, -50%) !important;
  animation: none !important;
  pointer-events: none;
}

.member-hub[data-active-view="overview"] .hub-art-fragment-primary::before,
.member-hub[data-active-view="overview"] .hub-art-fragment-primary::after {
  position: absolute;
  content: "";
  display: block;
}

.member-hub[data-active-view="overview"] .hub-art-fragment-primary::before {
  top: calc(50% - 1.5px);
  left: 50%;
  width: 37%;
  height: 3px;
  background: #d4ad60;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(5, 18, 31, .35);
  transform: rotate(-36deg);
  transform-origin: 0 50%;
  animation: academic-insight-needle 10.5s cubic-bezier(.42, 0, .2, 1) infinite;
  will-change: transform;
}

.member-hub[data-active-view="overview"] .hub-art-fragment-primary::after {
  top: 50%;
  left: 50%;
  width: 12%;
  aspect-ratio: 1 / 1;
  background: #b18339;
  border: 1px solid #ecd9aa;
  border-radius: 50%;
  box-shadow: 0 3px 7px rgba(1, 14, 27, .3);
  transform: translate(-50%, -50%);
}

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

@keyframes academic-insight-needle {
  0%, 18% { transform: rotate(-40deg); }
  48%, 66% { transform: rotate(-28deg); }
  100% { transform: rotate(-40deg); }
}

/* Academic Tools example ------------------------------------------------ */

.citation-example-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: center;
  margin: 0 0 30px;
  padding: 22px 24px;
  overflow: hidden;
  color: #f6fbff;
  background:
    radial-gradient(circle at 7% 12%, rgba(139, 216, 255, .18), transparent 38%),
    rgba(2, 18, 32, .56);
  border: 1px solid rgba(139, 216, 255, .22);
  border-radius:
    26px 58px 28px 46px /
    24px 40px 36px 52px;
}

.citation-example-copy {
  min-width: 0;
  padding-top: 4px;
}

.citation-example-copy > span {
  display: block;
  margin-bottom: 6px;
  color: #8bd8ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.citation-example-copy h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.citation-example-copy p {
  margin: 8px 0 0;
  color: rgba(229, 241, 250, .8);
  font-size: 12.5px;
  line-height: 1.5;
}

.citation-example-copy small {
  display: block;
  margin-top: 7px;
  color: rgba(229, 241, 250, .58);
  font-size: 10.5px;
  line-height: 1.4;
}

.citation-example-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
  justify-content: flex-end;
}

.citation-example-actions button {
  min-height: 35px;
  padding: 7px 13px;
  color: #eaf7ff;
  background: rgba(139, 216, 255, .08);
  border: 1px solid rgba(139, 216, 255, .25);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.citation-example-actions button:is(:hover, :focus-visible) {
  color: #071a2e;
  background: #8bd8ff;
  border-color: #8bd8ff;
  transform: translateY(-1px);
}

html[data-theme="day"] .citation-example-strip {
  color: #071a2e;
  background:
    radial-gradient(circle at 7% 12%, rgba(79, 178, 235, .2), transparent 40%),
    rgba(244, 250, 254, .92);
  border-color: rgba(23, 77, 191, .2);
}

html[data-theme="day"] .citation-example-copy > span {
  color: #12628d;
}

html[data-theme="day"] .citation-example-copy p {
  color: #3e5970;
}

html[data-theme="day"] .citation-example-copy small {
  color: #62798d;
}

html[data-theme="day"] .citation-example-actions button {
  color: #174dbf;
  background: rgba(23, 77, 191, .07);
  border-color: rgba(23, 77, 191, .22);
}

html[data-theme="day"] .citation-example-actions button:is(:hover, :focus-visible) {
  color: #fff;
  background: #174dbf;
  border-color: #174dbf;
}

/* Academic Insights example -------------------------------------------- */

.member-hub[data-active-view="overview"] .hub-chart-empty--interactive {
  display: grid;
  max-width: 720px !important;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 24px) !important;
  color: #0a2137;
  text-align: left;
  background: linear-gradient(145deg, rgba(246, 251, 255, .96), rgba(228, 242, 251, .94));
  border: 1px solid rgba(45, 94, 130, .17);
  border-radius:
    28px 64px 32px 52px /
    24px 42px 40px 60px;
  box-shadow: 0 18px 44px rgba(7, 38, 63, .1);
}

.hub-insight-example-copy {
  min-width: 0;
}

.hub-insight-example-copy > span,
.hub-insight-example-head-copy > span {
  display: block;
  margin-bottom: 6px;
  color: #14628d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.member-hub[data-active-view="overview"] .hub-insight-example-copy > b {
  display: block;
  max-width: 28ch;
  margin: 0;
  color: #071d32;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.14;
  letter-spacing: -.026em;
}

.member-hub[data-active-view="overview"] .hub-insight-example-copy > p {
  margin: 8px 0 14px;
  color: #587087;
  font-size: 12px;
  line-height: 1.5;
}

.hub-insight-example-button,
.hub-insight-example-tabs button {
  min-height: 36px;
  padding: 8px 14px;
  color: #fff;
  background: #174dbf;
  border: 1px solid #174dbf;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.hub-insight-example-button:is(:hover, :focus-visible),
.hub-insight-example-tabs button:is(:hover, :focus-visible),
.hub-insight-example-tabs button.active {
  color: #071d32;
  background: #efc35c;
  border-color: #efc35c;
}

.hub-insight-example-head {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  color: #071d32;
  background: linear-gradient(145deg, rgba(246, 251, 255, .96), rgba(228, 242, 251, .9));
  border: 1px solid rgba(45, 94, 130, .15);
  border-radius:
    24px 54px 26px 42px /
    22px 36px 34px 50px;
}

.hub-insight-example-head-copy b {
  display: block;
  color: inherit;
  font-size: 15px;
  line-height: 1.25;
}

.hub-insight-example-head-copy p {
  margin: 5px 0 10px;
  color: #587087;
  font-size: 11px;
  line-height: 1.4;
}

.hub-insight-example-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hub-insight-example-tabs button {
  min-height: 31px;
  padding: 6px 11px;
  color: #174dbf;
  background: transparent;
  border-color: rgba(23, 77, 191, .28);
}

.hub-insight-example-tabs button[data-insight-example-action="close"] {
  color: #526b80;
  border-color: rgba(82, 107, 128, .22);
}

html[data-theme="night"] .member-hub[data-active-view="overview"] :is(
  .hub-chart-empty--interactive,
  .hub-insight-example-head
) {
  color: #f5faff;
  background: linear-gradient(145deg, rgba(11, 43, 69, .96), rgba(5, 27, 47, .94));
  border-color: rgba(139, 216, 255, .22);
}

html[data-theme="night"] .member-hub[data-active-view="overview"] :is(
  .hub-insight-example-copy > b,
  .hub-insight-example-head-copy b
) {
  color: #f5faff;
}

html[data-theme="night"] .member-hub[data-active-view="overview"] :is(
  .hub-insight-example-copy > p,
  .hub-insight-example-head-copy p
) {
  color: rgba(226, 240, 250, .74);
}

html[data-theme="night"] .member-hub[data-active-view="overview"] :is(
  .hub-insight-example-copy > span,
  .hub-insight-example-head-copy > span
) {
  color: #8bd8ff;
}

html[data-theme="night"] .member-hub[data-active-view="overview"]
  .hub-insight-example-tabs button {
  color: #b8e8fb;
  border-color: rgba(139, 216, 255, .28);
}

html[data-theme="night"] .member-hub[data-active-view="overview"]
  .hub-insight-example-tabs button[data-insight-example-action="close"] {
  color: rgba(226, 240, 250, .7);
  border-color: rgba(226, 240, 250, .2);
}

/* Rich, client-only Course Choice Intelligence example ----------------- */

.member-hub[data-active-view="overview"] .hub-chart:has(.hub-insight-demo-dashboard) {
  display: block;
  min-height: 0;
  align-content: initial;
}

.member-hub[data-active-view="overview"] .hub-chart-empty--interactive {
  grid-template-columns: 112px minmax(0, 1fr);
}

.hub-insight-example-mark {
  width: 112px;
  height: 112px;
  display: flex;
  gap: 9px;
  align-items: flex-end;
  justify-content: center;
  padding: 22px 20px;
  background:
    radial-gradient(circle at 74% 22%, rgba(239, 195, 92, .72) 0 5px, transparent 6px),
    linear-gradient(150deg, #0b3152, #061a2d);
  border-radius: 50% 50% 44% 56% / 48% 56% 44% 52%;
  box-shadow: 0 14px 30px rgba(4, 29, 49, .18);
}

.hub-insight-example-mark span {
  width: 14px;
  height: var(--insight-example-value);
  background: linear-gradient(180deg, #8bd8ff, #2f6df6);
  border-radius: 999px 999px 5px 5px;
}

.hub-insight-example-mark span:nth-child(2) {
  background: linear-gradient(180deg, #f4d98e, #d5a943);
}

.hub-insight-example-head {
  display: block;
  margin-bottom: 22px;
  padding: 18px 20px;
}

.hub-insight-example-head-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: center;
}

.hub-insight-example-head-copy > span,
.hub-insight-example-head-copy > b,
.hub-insight-example-head-copy > p {
  grid-column: 1;
}

.hub-insight-example-head-copy > p {
  margin-bottom: 0;
}

.hub-insight-example-tabs {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-content: flex-end;
}

.hub-insight-demo-dashboard {
  --insight-demo-line: rgba(32, 79, 114, .17);
  --insight-demo-muted: #5c7488;
  --insight-demo-paper: rgba(241, 249, 253, .88);
  display: grid;
  gap: 24px;
  color: #071d32;
}

.hub-insight-demo-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hub-insight-demo-kpi {
  min-width: 0;
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  background: var(--insight-demo-paper);
  border: 1px solid var(--insight-demo-line);
  border-radius:
    22px 38px 24px 32px /
    20px 28px 30px 40px;
}

.hub-insight-demo-kpi:nth-child(even) {
  border-radius:
    34px 22px 38px 24px /
    28px 20px 38px 30px;
}

.hub-insight-demo-kpi b {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.05em;
}

.hub-insight-demo-kpi span {
  margin-top: 9px;
  color: var(--insight-demo-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-insight-demo-primary,
.hub-insight-demo-secondary {
  display: grid;
  gap: 22px;
}

.hub-insight-demo-secondary {
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, .85fr);
  align-items: start;
}

.hub-insight-demo-section {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--insight-demo-line);
}

.hub-insight-demo-section h3 {
  margin: 0 0 15px;
  color: inherit;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.hub-insight-demo-bar-list {
  display: grid;
  gap: 13px;
}

.hub-insight-demo-bar-row {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(120px, 1.3fr) 46px;
  gap: 14px;
  align-items: center;
}

.hub-insight-demo-bar-label {
  min-width: 0;
}

.hub-insight-demo-bar-label :is(b, span) {
  display: block;
}

.hub-insight-demo-bar-label b {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-insight-demo-bar-label span {
  margin-top: 3px;
  color: var(--insight-demo-muted);
  font-size: 9.5px;
}

.hub-insight-demo-bar-row > strong {
  color: inherit;
  font-size: 11px;
  text-align: right;
}

.hub-insight-demo-progress,
.hub-insight-demo-demand-track,
.hub-insight-demo-professor-track,
.hub-insight-demo-pattern-track {
  height: 8px;
  overflow: hidden;
  background: rgba(67, 105, 132, .14);
  border-radius: 999px;
}

:is(
  .hub-insight-demo-progress-fill,
  .hub-insight-demo-demand-track-fill,
  .hub-insight-demo-professor-track-fill,
  .hub-insight-demo-pattern-track-fill
) {
  display: block;
  width: var(--insight-progress);
  height: 100%;
  background: linear-gradient(90deg, #174dbf, #65c8ee 76%, #efc35c);
  border-radius: inherit;
  animation: insight-demo-grow .7s ease both;
}

@keyframes insight-demo-grow {
  from { transform: scaleX(0); transform-origin: left; }
}

.hub-insight-demo-table-wrap {
  overflow-x: auto;
}

.hub-insight-demo-table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  font-size: 10.5px;
}

.hub-insight-demo-table :is(th, td) {
  padding: 11px 10px;
  border-bottom: 1px solid var(--insight-demo-line);
  text-align: left;
}

.hub-insight-demo-table thead th {
  color: var(--insight-demo-muted);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-insight-demo-table tbody th {
  color: inherit;
  font-weight: 800;
}

.hub-insight-demo-demand {
  min-width: 132px;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.hub-insight-demo-professor-list {
  display: grid;
  gap: 13px;
}

.hub-insight-demo-professor {
  display: grid;
  grid-template-columns: minmax(120px, .9fr) minmax(80px, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.hub-insight-demo-professor-copy :is(b, span) {
  display: block;
}

.hub-insight-demo-professor-copy b {
  color: inherit;
  font-size: 11px;
}

.hub-insight-demo-professor-copy span,
.hub-insight-demo-professor > strong {
  color: var(--insight-demo-muted);
  font-size: 9px;
}

.hub-insight-demo-professor > strong {
  white-space: nowrap;
}

.hub-insight-demo-credits {
  grid-column: 2;
}

.hub-insight-demo-distribution {
  height: 140px;
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 9px;
  align-items: end;
}

.hub-insight-demo-distribution-item {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(70px, 1fr) auto;
  gap: 5px;
  align-items: end;
  text-align: center;
}

.hub-insight-demo-distribution-item > b {
  color: inherit;
  font-size: 10px;
}

.hub-insight-demo-distribution-item > span {
  color: var(--insight-demo-muted);
  font-size: 9px;
}

.hub-insight-demo-distribution-column {
  width: min(34px, 70%);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-self: center;
  overflow: hidden;
  background: rgba(67, 105, 132, .12);
  border-radius: 999px 999px 8px 8px;
}

.hub-insight-demo-distribution-fill {
  width: 100%;
  height: var(--insight-distribution);
  background: linear-gradient(180deg, #7dd0f1, #174dbf);
  border-radius: inherit;
}

.hub-insight-demo-timetable {
  grid-column: 1 / -1;
}

.hub-insight-demo-pattern-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hub-insight-demo-pattern-group {
  display: grid;
  gap: 10px;
}

.hub-insight-demo-pattern-group h4 {
  margin: 0 0 2px;
  color: var(--insight-demo-muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-insight-demo-pattern-row {
  display: grid;
  grid-template-columns: minmax(92px, .8fr) minmax(80px, 1.2fr) 36px;
  gap: 10px;
  align-items: center;
  font-size: 9.5px;
}

.hub-insight-demo-pattern-row > strong {
  text-align: right;
}

html[data-theme="night"] .hub-insight-demo-dashboard {
  --insight-demo-line: rgba(139, 216, 255, .17);
  --insight-demo-muted: rgba(222, 238, 249, .68);
  --insight-demo-paper: rgba(12, 47, 73, .86);
  color: #f5faff;
}

html[data-theme="night"] .hub-insight-demo-kpi {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* Community starter feed and Messages ---------------------------------- */

.hub-community-example {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  margin-top: 10px;
}

.hub-message-example-label {
  color: var(--community-accent, #8bd8ff);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.member-hub[data-active-view="community"] .hub-post-card--seed {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  color: #f4f9fd;
  background:
    radial-gradient(circle at 88% 8%, rgba(91, 169, 216, .14), transparent 30%),
    #0a2943;
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius:
    30px 72px 34px 56px /
    28px 44px 48px 66px;
  box-shadow: 0 24px 56px rgba(0, 8, 20, .22);
}

html[data-theme="day"]
  .member-hub[data-active-view="community"]
  .hub-post-card--seed {
  color: #071d32;
  background:
    radial-gradient(circle at 88% 8%, rgba(52, 143, 200, .1), transparent 32%),
    #f8fcff;
  border-color: rgba(24, 89, 136, .18);
  box-shadow: 0 22px 48px rgba(31, 79, 114, .12);
}

.hub-community-seed-media {
  width: 100%;
  overflow: hidden;
  margin: 16px 0 14px;
  background: #071d32;
  border-radius:
    22px 54px 24px 42px /
    20px 34px 38px 52px;
}

.hub-community-seed-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.hub-post-card--seed .hub-post-body {
  margin-top: 0;
}

.hub-community-example-avatar,
.hub-message-demo-avatar {
  display: grid;
  place-items: center;
  color: #071d32;
  background: linear-gradient(145deg, #f4d98e, #8bd8ff);
  font-size: 12px;
  font-weight: 900;
}

.hub-post-author > .hub-community-example-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border: 1px solid rgba(139, 216, 255, .34);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(4, 24, 43, .16);
}

.hub-community-example-avatar-image,
.hub-message-demo-photo {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hub-community-example-poll {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 16px;
  background: color-mix(in srgb, var(--community-paper-soft, #edf6fb) 80%, transparent);
  border-radius:
    20px 38px 22px 32px /
    18px 28px 30px 42px;
}

.hub-community-example-poll h3 {
  margin: 0 0 4px;
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
}

.hub-community-example-option {
  position: relative;
  min-height: 46px;
  overflow: hidden;
  padding: 9px 12px;
  color: inherit;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 14px 24px 15px 20px;
  cursor: pointer;
  text-align: left;
}

.hub-community-example-option > span {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.hub-community-example-option > span :is(b, small) {
  color: inherit;
}

.hub-community-example-option > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--community-example-share);
  background: linear-gradient(90deg, rgba(47, 109, 246, .16), rgba(139, 216, 255, .18));
  pointer-events: none;
}

.hub-community-example-option.selected {
  border-color: #5ebee8;
  box-shadow: 0 0 0 3px rgba(94, 190, 232, .11);
}

.hub-community-example-comments {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.hub-community-example-comment-list {
  display: grid;
  gap: 9px;
  max-height: 286px;
  padding: 1px 7px 1px 1px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--community-accent, #14628d) 45%, transparent) transparent;
  scrollbar-width: thin;
}

.hub-community-example-comment-list::-webkit-scrollbar {
  width: 6px;
}

.hub-community-example-comment-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--community-accent, #14628d) 45%, transparent);
  border-radius: 999px;
}

.hub-community-example-comment {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--community-paper-soft, #edf6fb) 75%, transparent);
  border-radius: 13px 22px 14px 18px;
  font-size: 11px;
}

.hub-community-example-comment-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #071d32;
  background: linear-gradient(145deg, #f4d98e, #8bd8ff);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.hub-community-example-comment > div {
  min-width: 0;
}

.hub-community-example-comment p {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 3px;
}

.hub-community-example-comment :is(b, time, span) {
  color: inherit;
}

.hub-community-example-comment time {
  flex: none;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 9px;
}

.hub-community-example-comment > div > span {
  display: block;
  line-height: 1.48;
}

.hub-community-example-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hub-community-example-comment-form input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 14px;
  color: inherit;
  background: color-mix(in srgb, var(--community-paper, #fff) 88%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 16px 28px 17px 22px;
}

.hub-community-example-comment-form button {
  min-height: 42px;
  padding: 9px 15px;
  color: #071d32;
  background: #8bd8ff;
  border: 0;
  border-radius: 18px 28px 20px 24px;
  cursor: pointer;
  font-weight: 800;
}

.hub-community-example-status {
  color: var(--community-accent, #14628d);
  font-weight: 750;
}

.hub-message-demo-launcher {
  margin-top: 8px;
}

.member-hub .hub-conversation-button .hub-message-demo-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border: 2px solid rgba(139, 216, 255, .52);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(244, 191, 71, .12),
    0 8px 20px rgba(0, 9, 20, .26);
}

.hub-message-demo-photo {
  object-position: 78% 32%;
}

.member-hub[data-active-view="marketplace"] .marketplace-card-action.danger {
  color: #ffb9c1;
  border-color: rgba(255, 143, 157, .32);
}

.member-hub[data-active-view="marketplace"] .marketplace-card-action.danger:hover,
.member-hub[data-active-view="marketplace"] .marketplace-card-action.danger:focus-visible {
  color: #fff;
  background: rgba(201, 52, 66, .72);
  border-color: rgba(255, 185, 193, .55);
}

html[data-theme="day"] .member-hub[data-active-view="marketplace"] .marketplace-card-action.danger {
  color: #a72431;
  border-color: rgba(167, 36, 49, .24);
}


.hub-message-example-label {
  width: fit-content;
  margin: 8px auto 4px;
  padding: 6px 10px;
  color: #14628d;
  background: rgba(139, 216, 255, .14);
  border-radius: 999px;
}

html[data-theme="night"] .hub-message-example-label {
  color: #9ce3ff;
}

html[data-theme="night"] .member-hub .hub-message:not(.mine) {
  color: #071d32 !important;
  -webkit-text-fill-color: #071d32 !important;
  background: #edf2f6 !important;
}

#messageExampleClose {
  white-space: nowrap;
}

.hub-insight-control-actions {
  display: grid;
  gap: 8px;
}

.member-hub .hub-view[data-hub-view="overview"] #previewCourseInsights {
  width: 100%;
  min-height: 46px;
  color: #dff4ff;
  background: rgba(139, 216, 255, .08);
  border-color: rgba(139, 216, 255, .3);
  border-radius: 15px 15px 24px 15px;
}

.member-hub .hub-view[data-hub-view="overview"] #previewCourseInsights:is(:hover, :focus-visible) {
  color: #fff;
  background: rgba(139, 216, 255, .16);
  border-color: rgba(139, 216, 255, .68);
}

.market-results-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.marketplace-example-trigger {
  min-height: 36px;
  padding: 7px 13px;
  color: #dff4ff;
  background: rgba(139, 216, 255, .08);
  border-color: rgba(139, 216, 255, .3);
  border-radius: 999px;
  white-space: nowrap;
}

.marketplace-example-trigger:is(:hover, :focus-visible) {
  color: #fff;
  background: rgba(139, 216, 255, .17);
  border-color: rgba(139, 216, 255, .72);
}

html[data-theme="day"] .marketplace-example-trigger {
  color: #0b3657;
  background: rgba(25, 91, 137, .07);
  border-color: rgba(25, 91, 137, .26);
}

html[data-theme="day"] .marketplace-example-trigger:is(:hover, :focus-visible) {
  color: #061d32;
  background: rgba(25, 91, 137, .14);
  border-color: rgba(25, 91, 137, .5);
}

@media (max-width: 760px) {
  body.hub-active {
    --app-bar-offset: 130px;
  }

  .member-hub[data-active-view="academic-tools"] .hub-art-fragment-primary {
    top: 46.5% !important;
    left: 72.33% !important;
    width: 28.65% !important;
  }

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

  .citation-example-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px 16px;
    padding: 18px;
  }

  .citation-example-actions {
    grid-column: 1;
    grid-row: auto;
    gap: 6px;
    justify-content: flex-start;
  }

  .citation-example-actions button {
    min-height: 32px;
    padding: 6px 10px;
  }

  .member-hub[data-active-view="overview"] .hub-chart-empty--interactive,
  .hub-insight-example-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-insight-example-head-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-insight-example-tabs {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .hub-insight-demo-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-insight-demo-secondary {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-insight-demo-credits,
  .hub-insight-demo-timetable {
    grid-column: 1;
  }

  .hub-insight-demo-pattern-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-insight-demo-bar-row {
    grid-template-columns: minmax(120px, 1fr) 46px;
  }

  .hub-insight-demo-bar-label {
    grid-column: 1 / -1;
  }

  .market-results-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .citation-example-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .citation-example-actions {
    grid-column: 1;
  }

  .hub-insight-example-mark {
    width: 92px;
    height: 92px;
  }

  .hub-insight-demo-summary {
    gap: 7px;
  }

  .hub-insight-demo-kpi {
    min-height: 84px;
    padding: 13px;
  }

  .hub-insight-demo-professor {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hub-insight-demo-professor-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-hub[data-active-view="academic-tools"] .hub-art-fragment-primary {
    animation: none !important;
    transform: none !important;
    translate: -50% -50% !important;
    rotate: 0deg !important;
  }

  .member-hub[data-active-view="overview"] .hub-art-fragment-primary::before,
  :is(
    .hub-insight-demo-progress-fill,
    .hub-insight-demo-demand-track-fill,
    .hub-insight-demo-professor-track-fill,
    .hub-insight-demo-pattern-track-fill
  ) {
    animation: none !important;
  }

  .citation-example-actions button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .member-hub[data-active-view="academic-tools"] .hub-art-fragment-primary {
    display: none !important;
  }

  .citation-example-strip,
  .member-hub[data-active-view="overview"] :is(
    .hub-chart-empty--interactive,
    .hub-insight-example-head
  ) {
    color: CanvasText !important;
    background: Canvas !important;
    border: 1px solid CanvasText !important;
  }
}

/* Full-bleed Hub landscape --------------------------------------------- */

/* The destination artwork and the functional paper are one continuous
   viewport-wide scene. Controls retain the same centered working measure. */
body.hub-active .member-hub {
  padding-inline: 0 !important;
}

.member-hub .hub-shell,
.member-hub .hub-main {
  width: 100% !important;
  max-width: none !important;
}

.member-hub .hub-sidebar {
  --hub-rail-inner-pad: clamp(12px, 1.6vw, 22px);
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: max(
    calc(var(--atlas-gutter) + var(--hub-rail-inner-pad)),
    calc((100% - 1440px) / 2 + var(--hub-rail-inner-pad))
  ) !important;
  box-sizing: border-box;
}

/* Reset the short legacy connector so the current first-to-last transaction
   path remains continuous at every responsive breakpoint. */
.member-hub[data-active-view="marketplace"]
  .market-protection-steps > li:not(:last-child)::after {
  display: block !important;
  height: auto !important;
}

.member-hub[data-active-view="marketplace"]
  .market-protection-steps > li:last-child::after {
  display: none !important;
  content: none !important;
}

.member-hub .hub-page-header,
.member-hub[data-active-view] .hub-page-header,
.member-hub[data-active-view="marketplace"] .hub-page-header {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.member-hub .hub-page-header .hub-hero-art,
.member-hub[data-active-view] .hub-page-header .hub-hero-art,
.member-hub[data-active-view="marketplace"] .hub-page-header .hub-hero-art {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.member-hub .hub-page-header-copy,
.member-hub[data-active-view="marketplace"] .hub-page-header-copy {
  z-index: 5 !important;
  padding-inline-start:
    max(
      var(--atlas-gutter),
      calc((100% - 1440px) / 2 + var(--atlas-gutter))
    ) !important;
}

.member-hub .hub-view {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-inline:
    max(
      var(--atlas-gutter),
      calc((100% - 1440px) / 2 + var(--atlas-gutter))
    ) !important;
  border-right: 0 !important;
  border-left: 0 !important;
  border-radius:
    48% 52% 0 0 /
    clamp(62px, 8vw, 112px) clamp(76px, 9vw, 132px) 0 0 !important;
}

/* Academic Insights only: keep the controls compact, readable, and visually
   distinct without turning each field into another nested card. */
.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-layout {
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr) !important;
  gap: clamp(34px, 4vw, 64px) !important;
  align-items: start;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  width: min(100%, 420px);
  min-height: 316px;
  padding: clamp(34px, 3.5vw, 46px) clamp(32px, 3.4vw, 44px) !important;
  overflow: hidden;
  color: #f5faff;
  background:
    radial-gradient(circle at 68% 24%, rgba(52, 126, 186, .52), transparent 34%),
    radial-gradient(circle at 30% 82%, rgba(3, 18, 34, .54), transparent 42%),
    #0a3558 !important;
  border: 1px solid rgba(127, 216, 255, .2) !important;
  border-radius: 52px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -24px 56px rgba(2, 16, 29, .22),
    0 28px 64px rgba(0, 10, 23, .24) !important;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30px auto 30px 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a82ff, #8bd8ff 54%, #efbb45);
  pointer-events: none;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row label {
  min-width: 0;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row label > span {
  margin: 0 0 2px !important;
  color: rgba(226, 242, 252, .68) !important;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row :is(#courseInsightScope, #courseInsightYear) {
  width: 100%;
  min-height: 44px !important;
  padding: 4px 34px 4px 0 !important;
  appearance: none;
  -webkit-appearance: none;
  color: #f7fbff !important;
  background-color: transparent !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #8bd8ff 50%),
    linear-gradient(135deg, #8bd8ff 50%, transparent 50%) !important;
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 6px) 50% !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: clamp(14px, 1.15vw, 16px) !important;
  font-weight: 760 !important;
  text-overflow: clip;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row :is(#courseInsightScope, #courseInsightYear):focus-visible {
  outline: 2px solid #8bd8ff;
  outline-offset: 5px;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row :is(#courseInsightScope, #courseInsightYear):disabled {
  color: rgba(225, 240, 250, .58) !important;
  background-color: transparent !important;
  opacity: .78;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls #loadCourseInsights {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  color: #071d32;
  background: #efbb45 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

.member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls #previewCourseInsights {
  min-height: 34px;
  color: #9bddff;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
}

html[data-theme="day"]
  .member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls {
  color: #08233c;
  background:
    radial-gradient(circle at 68% 24%, rgba(88, 178, 226, .42), transparent 36%),
    radial-gradient(circle at 28% 82%, rgba(77, 144, 186, .18), transparent 44%),
    #b8ddf3 !important;
  border-color: rgba(16, 75, 118, .18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    inset 0 -22px 52px rgba(58, 125, 165, .12),
    0 26px 56px rgba(34, 91, 126, .16) !important;
}

html[data-theme="day"]
  .member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row label > span {
  color: rgba(8, 35, 60, .64) !important;
}

html[data-theme="day"]
  .member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row :is(#courseInsightScope, #courseInsightYear) {
  color: #08233c !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #155f8d 50%),
    linear-gradient(135deg, #155f8d 50%, transparent 50%) !important;
}

html[data-theme="day"]
  .member-hub
  .hub-view[data-hub-view="overview"]
  .hub-insight-controls .hub-filter-row :is(#courseInsightScope, #courseInsightYear):disabled {
  color: rgba(8, 35, 60, .52) !important;
}

@media (max-width: 860px) {
  .member-hub
    .hub-view[data-hub-view="overview"]
    .hub-insight-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .member-hub
    .hub-view[data-hub-view="overview"]
    .hub-insight-controls {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .member-hub
    .hub-view[data-hub-view="overview"]
    .hub-insight-controls {
    min-height: 286px;
    padding: 30px 22px !important;
    border-radius: 40px !important;
  }

  .member-hub
    .hub-view[data-hub-view="overview"]
    .hub-insight-controls .hub-filter-row :is(#courseInsightScope, #courseInsightYear) {
    padding-inline-end: 30px !important;
    font-size: 13px !important;
  }
}

/* The sticky destination rail and the active page's right column use the same
   measured geometry. This makes the two surfaces meet exactly when scrolling,
   without the navigation covering either panel. */
.member-hub {
  --hub-destination-rail-height: 0px;
  --hub-sticky-content-top:
    calc(var(--app-bar-offset, 76px) + var(--hub-destination-rail-height));
}

@media (min-width: 1081px) {
  .member-hub[data-active-view="academic-tools"] .citation-preview {
    top: var(--hub-sticky-content-top) !important;
    max-height:
      calc(
        100dvh
        - var(--app-bar-offset, 76px)
        - var(--hub-destination-rail-height)
      ) !important;
    scroll-margin-top: var(--hub-sticky-content-top) !important;
  }
}

@media (min-width: 1181px) {
  .member-hub[data-active-view="community"] .hub-community-rail {
    top: var(--hub-sticky-content-top) !important;
    max-height:
      calc(
        100dvh
        - var(--app-bar-offset, 76px)
        - var(--hub-destination-rail-height)
      ) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* The two labels identified in Community need a deliberate trailing gutter
   instead of touching the viewport edge. */
.member-hub[data-active-view="community"] .hub-compose-heading,
.member-hub[data-active-view="community"] .hub-feed-toolbar {
  padding-inline-end: clamp(14px, 1.6vw, 22px);
}

.member-hub[data-active-view="community"] .hub-feed-toolbar #refreshCommunityFeed {
  padding-inline: 10px;
}

@media (max-width: 760px) {
  .member-hub .hub-page-header-copy,
  .member-hub[data-active-view="marketplace"] .hub-page-header-copy {
    width: 100% !important;
    padding-inline:
      max(22px, env(safe-area-inset-left))
      max(22px, env(safe-area-inset-right)) !important;
  }

  .member-hub .hub-view {
    padding-inline:
      max(16px, env(safe-area-inset-left))
      max(16px, env(safe-area-inset-right)) !important;
  }
}
