/* Page components. Global colors and typography come from site-theme.css. */
:where(.mw-page-content) .starcoreastro-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 16px 64px;
  min-width: 0;
}
:where(.mw-page-content) .starcore-manifestation {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 104px) 0 88px;
}
:where(.mw-page-content) .starcore-manifestation-heading { max-width: 650px; margin: 0 auto 40px; text-align: center; }
:where(.mw-page-content) .starcore-manifestation-eyebrow { margin: 0 0 8px; color: #b48c39; font: 700 13px/1 "Cinzel", Georgia, serif; letter-spacing: .11em; text-transform: uppercase; }
:where(.mw-page-content) .starcore-manifestation-heading h1 { margin: 0; color: var(--foreground); font-size: clamp(32px, 5vw, 52px); line-height: 1.12; }
:where(.mw-page-content) .starcore-manifestation-heading > p:last-child { margin: 16px 0 0; color: var(--muted-foreground); font-size: 17px; }
:where(.mw-page-content) .starcore-manifestation-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr); gap: 20px; align-items: stretch; }
:where(.mw-page-content) .starcore-manifestation-card { padding: 28px; border: 1px solid var(--border); border-radius: 20px; color: var(--card-foreground); background: var(--card); box-shadow: var(--shadow-sm); }
:where(.mw-page-content) .starcore-manifestation-card label, :where(.mw-page-content) .starcore-manifestation-progress > p { display: block; margin: 0 0 12px; color: var(--muted-foreground); font-size: 14px; font-weight: 650; }
:where(.mw-page-content) .starcore-manifestation-card textarea { display: block; width: 100%; min-height: 128px; resize: vertical; padding: 14px 15px; border: 1px solid var(--border); border-radius: 12px; color: var(--foreground); background: var(--background); font: inherit; line-height: 1.6; outline: none; }
:where(.mw-page-content) .starcore-manifestation-card textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
:where(.mw-page-content) .starcore-manifestation-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
:where(.mw-page-content) .starcore-manifestation-save, :where(.mw-page-content) .starcore-manifestation-checkin { border: 0; border-radius: 10px; padding: 11px 16px; color: #fff; background: var(--primary); box-shadow: var(--shadow-primary); font: inherit; font-weight: 650; cursor: pointer; }
:where(.mw-page-content) .starcore-manifestation-save:hover, :where(.mw-page-content) .starcore-manifestation-checkin:hover { background: var(--primary-hover); }
:where(.mw-page-content) .starcore-manifestation-status { color: var(--muted-foreground); font-size: 13px; }
:where(.mw-page-content) .starcore-manifestation-progress { display: flex; flex-direction: column; }
:where(.mw-page-content) .starcore-manifestation-progress strong { margin-bottom: 18px; color: var(--foreground); font-size: 30px; line-height: 1.1; }
:where(.mw-page-content) .starcore-manifestation-meter { height: 8px; overflow: hidden; margin-bottom: 28px; border-radius: 999px; background: var(--secondary); }
:where(.mw-page-content) .starcore-manifestation-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7f22fe, #b48c39); transition: width .25s ease; }
:where(.mw-page-content) .starcore-manifestation-checkin { width: 100%; }
:where(.mw-page-content) .starcore-manifestation-checkin.is-complete, :where(.mw-page-content) .starcore-manifestation-checkin:disabled { color: var(--foreground); background: var(--secondary); box-shadow: none; cursor: default; }
:where(.mw-page-content) .starcore-manifestation-card-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 24px; color: var(--primary); font-weight: 650; text-decoration: none; }
:where(.mw-page-content) .starcore-manifestation-card-link:hover { text-decoration: underline; }
html.dark :where(.mw-page-content) .starcore-manifestation-card textarea { background: var(--surface); }
@media (max-width: 720px) { :where(.mw-page-content) .starcore-manifestation { width: min(100% - 24px, 980px); padding-top: 48px; } :where(.mw-page-content) .starcore-manifestation-grid { grid-template-columns: 1fr; } :where(.mw-page-content) .starcore-manifestation-card { padding: 22px; } }

:where(.mw-page-content) .starcoreastro-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted-foreground);
}

:where(.mw-page-content) .starcoreastro-breadcrumb a {
  color: var(--muted-foreground);
  text-decoration: none;
}

:where(.mw-page-content) .starcoreastro-breadcrumb a:hover { color: var(--primary); }

:where(.mw-page-content) .starcoreastro-breadcrumb-sep { opacity: 0.45; }

:where(.mw-page-content) .starcoreastro-page-head {
  text-align: center;
  margin-bottom: 28px;
}

:where(.mw-page-content) .starcoreastro-page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

:where(.mw-page-content) .starcoreastro-page-head .muted,
:where(.mw-page-content) .muted {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin: 0;
}

:where(.mw-page-content) .starcoreastro-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

:where(.mw-page-content) .starcoreastro-panel-wide { max-width: 960px; }
:where(.mw-page-content) .spread-form,
:where(.mw-page-content) #elara-form,
:where(.mw-page-content) #reader-chat-form,
:where(.mw-page-content) #demo-auth-form {
  display: grid;
  gap: 12px;
}

:where(.mw-page-content) .demo-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

:where(.mw-page-content) .demo-auth-divider::before,
:where(.mw-page-content) .demo-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

:where(.mw-page-content) .demo-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

:where(.mw-page-content) .demo-google-login:hover {
  border-color: #b8b8c1;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

:where(.mw-page-content) .demo-google-login svg { width: 20px; height: 20px; flex: 0 0 auto; }

:where(.mw-page-content) .demo-auth-notice {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #f5b8c2;
  border-radius: var(--radius);
  background: #fff5f6;
  color: #a32035;
  font-size: 14px;
  line-height: 1.55;
}
:where(.mw-page-content) .starcore-auth {
  width: min(100%, 448px);
  margin: clamp(24px, 7vh, 72px) auto;
}

:where(.mw-page-content) .starcore-auth-card {
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 20px 55px rgba(32, 22, 65, .08);
}

:where(.mw-page-content) .starcore-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f3f1f6;
}

:where(.mw-page-content) .starcore-auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #625e70;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

:where(.mw-page-content) .starcore-auth-tabs button.is-active {
  background: #fff;
  color: #17121f;
  box-shadow: 0 1px 3px rgba(20, 13, 35, .14);
}

:where(.mw-page-content) .starcore-auth-tabs button:focus-visible,
:where(.mw-page-content) .starcore-auth-card input:focus-visible,
:where(.mw-page-content) .starcore-auth-card a:focus-visible,
:where(.mw-page-content) .starcore-auth-card button:focus-visible {
  outline: 3px solid rgba(127, 34, 254, .26);
  outline-offset: 2px;
}

:where(.mw-page-content) .starcore-auth-heading { margin: 28px 0 20px; }
:where(.mw-page-content) .starcore-auth-kicker { margin: 0 0 6px; color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .14em; }
:where(.mw-page-content) .starcore-auth-heading h1 { margin: 0; color: #16111d; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; }
:where(.mw-page-content) .starcore-auth-heading p { margin: 8px 0 0; color: #706b79; font-size: 14px; line-height: 1.6; }

:where(.mw-page-content) .starcore-auth .starcore-google-login { min-height: 46px; border-radius: 10px; font-weight: 600; }
:where(.mw-page-content) .starcore-auth .demo-auth-divider { margin: 20px 0 16px; font-size: 11px; letter-spacing: .08em; }

:where(.mw-page-content) .starcore-auth #demo-auth-form { gap: 8px; }
:where(.mw-page-content) .starcore-auth #demo-auth-form > label:not(.starcore-auth-remember),
:where(.mw-page-content) .starcore-auth-password-label label,
:where(.mw-page-content) .starcore-auth-confirm label {
  color: #292432;
  font-size: 14px;
  font-weight: 650;
}

:where(.mw-page-content) .starcore-auth #demo-auth-form input:not([type="checkbox"]) {
  min-height: 46px;
  border-radius: 10px;
  color: #201a29;
}

:where(.mw-page-content) .starcore-auth-password-label { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
:where(.mw-page-content) .starcore-auth-password-label a,
:where(.mw-page-content) .starcore-auth-forgot { color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; }
:where(.mw-page-content) .starcore-auth-forgot { padding: 0; border: 0; background: transparent; cursor: pointer; }
:where(.mw-page-content) .starcore-auth-password-label a:hover, :where(.mw-page-content) .starcore-auth-forgot:hover, :where(.mw-page-content) .starcore-auth-switch button:hover { text-decoration: underline; }

:where(.mw-page-content) .starcore-password-field { position: relative; }
:where(.mw-page-content) .starcore-password-field input { padding-right: 50px !important; }
:where(.mw-page-content) .starcore-password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7b7583;
  cursor: pointer;
}
:where(.mw-page-content) .starcore-password-toggle:hover { color: var(--primary); background: rgba(127, 34, 254, .07); }
:where(.mw-page-content) .starcore-password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

:where(.mw-page-content) .starcore-auth-confirm { display: grid; gap: 8px; margin-top: 10px; }
:where(.mw-page-content) .starcore-auth-verification { display: grid; gap: 8px; margin-top: 10px; }
:where(.mw-page-content) .starcore-auth-verification > label { color: #292432; font-size: 14px; font-weight: 650; }
:where(.mw-page-content) .starcore-verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
:where(.mw-page-content) .starcore-email-code-send { min-width: 106px; min-height: 46px; border: 1px solid rgba(127, 34, 254, .28); border-radius: 10px; color: var(--primary); background: rgba(127, 34, 254, .06); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease; }
:where(.mw-page-content) .starcore-email-code-send:hover:not(:disabled) { border-color: var(--primary); background: rgba(127, 34, 254, .12); }
:where(.mw-page-content) .starcore-email-code-send:disabled { opacity: .55; cursor: not-allowed; }
:where(.mw-page-content) .starcore-auth-helper { margin: 0; color: #706b79; font-size: 12px; line-height: 1.5; }
:where(.mw-page-content) .starcore-auth-remember { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin: 4px 0 8px; color: #37313f; font-size: 14px; cursor: pointer; }
:where(.mw-page-content) .starcore-auth-remember input { width: 17px; height: 17px; accent-color: var(--primary); }
:where(.mw-page-content) .starcore-auth-submit { width: 100%; min-height: 46px; border-radius: 10px; }
:where(.mw-page-content) .starcore-auth-submit[aria-busy="true"] { opacity: .7; cursor: wait; }
:where(.mw-page-content) .starcore-auth-status { min-height: 20px; margin: 14px 0 0; color: #a32035; font-size: 13px; line-height: 1.5; }
:where(.mw-page-content) .starcore-auth-status.is-success { color: #177245; }
:where(.mw-page-content) .starcore-auth-field-error { margin: -2px 0 4px; color: #a32035; font-size: 13px; line-height: 1.45; }
:where(.mw-page-content) .starcore-auth-field-error[hidden] { display: none; }
/* Input error states are shared through input-controls.css. */
:where(.mw-page-content) .starcore-auth-switch { margin: 16px 0 0; color: #716b78; text-align: center; font-size: 14px; }
:where(.mw-page-content) .starcore-auth-switch button { border: 0; padding: 0; color: var(--primary); background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
:where(.mw-page-content) .starcore-auth + .demo-auth-notice { width: min(100%, 448px); margin: -52px auto 40px; }

html.dark :where(.mw-page-content) .starcore-auth-card { background: #16121f; border-color: #302a3b; box-shadow: 0 20px 55px rgba(0, 0, 0, .28); }
html.dark :where(.mw-page-content) .starcore-auth-tabs { background: #24202c; }
html.dark :where(.mw-page-content) .starcore-auth-tabs button { color: #c9c3d0; }
html.dark :where(.mw-page-content) .starcore-auth-tabs button.is-active { background: #312a3d; color: #fff; box-shadow: none; }
html.dark :where(.mw-page-content) .starcore-auth-heading h1, html.dark :where(.mw-page-content) .starcore-auth #demo-auth-form > label:not(.starcore-auth-remember), html.dark :where(.mw-page-content) .starcore-auth-password-label label, html.dark :where(.mw-page-content) .starcore-auth-confirm label, html.dark :where(.mw-page-content) .starcore-auth-verification > label, html.dark :where(.mw-page-content) .starcore-auth-remember { color: #f5eff9; }
html.dark :where(.mw-page-content) .starcore-auth-heading p, html.dark :where(.mw-page-content) .starcore-auth-switch, html.dark :where(.mw-page-content) .starcore-auth-helper { color: #bbb4c5; }
html.dark :where(.mw-page-content) .starcore-email-code-send { border-color: rgba(183, 132, 255, .45); color: #d3adff; background: rgba(183, 132, 255, .10); }
html.dark :where(.mw-page-content) .starcore-auth #demo-auth-form input:not([type="checkbox"]) { color: #f7f1fb; background: var(--surface); border-color: #42384e; }
html.dark :where(.mw-page-content) .starcore-auth .demo-google-login { background: var(--surface); border-color: #42384e; color: #f7f1fb; }
html.dark :where(.mw-page-content) .starcore-auth-field-error { color: #ff9bad; }

@media (max-width: 520px) {
  :where(.mw-page-content) .starcore-auth { width: 100%; margin: 20px auto 32px; }
  :where(.mw-page-content) .starcore-auth-card { padding: 20px 16px; border-radius: 14px; box-shadow: none; }
  :where(.mw-page-content) .starcore-auth-heading { margin-top: 24px; }
  :where(.mw-page-content) .starcore-verification-row { grid-template-columns: 1fr; }
  :where(.mw-page-content) .starcore-email-code-send { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :where(.mw-page-content) .starcore-auth * { transition-duration: .01ms !important; }
}

:where(.mw-page-content) .spread-form textarea,
:where(.mw-page-content) #spread-question,
:where(.mw-page-content) #elara-input,
:where(.mw-page-content) #reader-chat-input,
:where(.mw-page-content) #demo-auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--foreground);
  background: var(--background);
  transition: border-color 0.15s, box-shadow 0.15s;
}

:where(.mw-page-content) .spread-form textarea:focus,
:where(.mw-page-content) #spread-question:focus,
:where(.mw-page-content) #elara-input:focus,
:where(.mw-page-content) #reader-chat-input:focus,
:where(.mw-page-content) #demo-auth-form input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(166, 133, 255, 0.25);
}

:where(.mw-page-content) .spread-btn,
:where(.mw-page-content) .button,
:where(.mw-page-content) .primary,
:where(.mw-page-content) button.spread-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-primary);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

:where(.mw-page-content) .spread-btn:hover,
:where(.mw-page-content) .button:hover,
:where(.mw-page-content) .primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

:where(.mw-page-content) .spread-btn:disabled,
:where(.mw-page-content) .spread-btn[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

:where(.mw-page-content) .spread-btn-secondary {
  background: var(--secondary);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
:where(.mw-page-content) .rt-hero {
  position: relative;
  overflow: hidden;
  margin: 0 calc(-1 * max(16px, calc((100% - var(--content-width)) / 2))) 40px;
  padding: 40px 16px 52px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(88, 28, 135, 0.35), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(30, 10, 60, 0.8), transparent 60%),
    linear-gradient(180deg, #07050f 0%, #0b0818 45%, #050508 100%);
  text-align: center;
}

:where(.mw-page-content) .rt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255, 215, 120, 0.45), transparent),
    radial-gradient(1px 1px at 72% 42%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 88% 78%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 45% 88%, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0.75;
  pointer-events: none;
}

:where(.mw-page-content) .rt-hero-head {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

:where(.mw-page-content) .rt-hero-head h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f5e6c8;
  text-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}

:where(.mw-page-content) .rt-hero-lead {
  margin: 0 auto;
  max-width: 520px;
  color: rgba(245, 230, 200, 0.72);
  line-height: 1.75;
  font-size: 15px;
}

:where(.mw-page-content) #rt-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 8px 0 24px;
}

:where(.mw-page-content) .rt-card-tap {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: min(280px, 72vw);
  max-width: 280px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter:
    drop-shadow(0 0 22px rgba(124, 58, 237, 0.55))
    drop-shadow(0 0 48px rgba(139, 92, 246, 0.28));
}

:where(.mw-page-content) .rt-card-tap:hover {
  transform: translateY(-4px) scale(1.02);
  filter:
    drop-shadow(0 0 28px rgba(124, 58, 237, 0.7))
    drop-shadow(0 0 56px rgba(167, 139, 250, 0.35));
}

:where(.mw-page-content) .rt-card-back {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 350 / 600;
  border-radius: 14px;
  object-fit: cover;
}

:where(.mw-page-content) #rt-stage .spread-slot {
  max-width: min(280px, 72vw);
}

:where(.mw-page-content) .rt-hero .rt-card-slot {
  width: min(280px, 72vw);
  max-width: 280px;
  pointer-events: auto;
  filter:
    drop-shadow(0 0 22px rgba(124, 58, 237, 0.55))
    drop-shadow(0 0 48px rgba(139, 92, 246, 0.28));
}

:where(.mw-page-content) .rt-reveal-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  padding: 14px 32px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 48%, #6d28d9 100%);
  color: #fde68a;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 0 24px rgba(124, 58, 237, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

:where(.mw-page-content) .rt-reveal-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 0 32px rgba(124, 58, 237, 0.6),
    0 12px 28px rgba(0, 0, 0, 0.4);
}

:where(.mw-page-content) .rt-reveal-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

:where(.mw-page-content) .rt-hero #rt-result,
:where(.mw-page-content) .rt-hero #rt-ai {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 20px auto 0;
  padding: 20px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 16px;
  background: rgba(15, 10, 30, 0.72);
  color: rgba(245, 230, 200, 0.9);
  line-height: 1.75;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

:where(.mw-page-content) .rt-hero #rt-result h2 {
  color: #fde68a;
}

:where(.mw-page-content) .rt-hero #rt-result .spread-pos,
:where(.mw-page-content) .rt-hero #rt-result a {
  color: #c4b5fd;
}

:where(.mw-page-content) .rt-hero #rt-result a:hover {
  color: #fde68a;
}

:where(.mw-page-content) .rt-hero .card-detail-img {
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
}

:where(.mw-page-content) #rt-stage .spread-slot {
  max-width: 220px;
  border: 0;
  background: transparent;
  padding: 0;
}

:where(.mw-page-content) .spread-board {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}

:where(.mw-page-content) .spread-slot {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  width: 120px;
  max-width: 34vw;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s;
  pointer-events: none;
  opacity: 0.45;
  perspective: 900px;
}

:where(.mw-page-content) .spread-slot-active,
:where(.mw-page-content) .spread-slot.spread-active {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(127, 34, 254, 0.28));
}

:where(.mw-page-content) .spread-slot.spread-revealed {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

:where(.mw-page-content) .spread-slot.spread-revealed:hover,
:where(.mw-page-content) .spread-slot.spread-revealed:focus-visible,
:where(.mw-page-content) .spread-slot.spread-selected {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(127, 34, 254, 0.28));
  outline: 3px solid rgba(127, 34, 254, 0.55);
  outline-offset: 4px;
}

:where(.mw-page-content) .spread-flip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 350 / 600;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

:where(.mw-page-content) .spread-revealed .spread-flip-inner {
  transform: rotateY(180deg);
}

:where(.mw-page-content) .spread-num {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

:where(.mw-page-content) .spread-card-back,
:where(.mw-page-content) .spread-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  backface-visibility: hidden;
}

:where(.mw-page-content) .spread-card-face {
  transform: rotateY(180deg);
}

:where(.mw-page-content) .spread-card-face.reversed {
  transform: rotateY(180deg) rotateZ(180deg);
}

:where(.mw-page-content) .spread-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-foreground);
  line-height: 1.3;
  text-align: center;
}

:where(.mw-page-content) #spread-detail,
:where(.mw-page-content) #rt-result,
:where(.mw-page-content) #spread-ai,
:where(.mw-page-content) #rt-ai,
:where(.mw-page-content) #quiz-app,
:where(.mw-page-content) #elara-chat {
  max-width: 680px;
  width: min(680px, 100%);
  margin: 20px auto 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  line-height: 1.75;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

:where(.mw-page-content) #spread-ai,
:where(.mw-page-content) #rt-ai {
  white-space: pre-wrap;
  min-height: 80px;
}
:where(.mw-page-content) .bubble-tail,
:where(.mw-page-content) #reader-chat-bubble,
:where(.mw-page-content) #elara-bubble,
:where(.mw-page-content) .demo-summary,
:where(.mw-page-content) #spread-ai,
:where(.mw-page-content) #rt-ai,
:where(.mw-page-content) #celtic-ai-output {
  max-height: min(42vh, 22rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

:where(.mw-page-content) #spread-detail h3,
:where(.mw-page-content) #rt-result h2 {
  margin: 0 0 8px;
  color: var(--primary);
}
:where(.mw-page-content) .cards-group { margin: 28px 0; }

:where(.mw-page-content) .cards-group h2 {
  font-size: 22px;
  color: var(--foreground);
  margin: 0 0 12px;
}

:where(.mw-page-content) .cards-group h2 span {
  font-size: 14px;
  color: var(--muted-foreground);
  font-weight: 400;
  margin-left: 8px;
}

:where(.mw-page-content) .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

:where(.mw-page-content) .cards-item {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

:where(.mw-page-content) .cards-item img {
  width: 100%;
  aspect-ratio: 350 / 600;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

:where(.mw-page-content) .cards-item:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

:where(.mw-page-content) .cards-item span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-foreground);
}

:where(.mw-page-content) .quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

:where(.mw-page-content) .quiz-options button {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}

:where(.mw-page-content) .quiz-options button:hover {
  border-color: var(--ring);
  background: var(--primary-foreground);
}

:where(.mw-page-content) .quiz-progress {
  color: var(--primary);
  font-size: 14px;
}

:where(.mw-page-content) .card-detail-img {
  display: block;
  max-width: 260px;
  margin: 0 auto 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
:where(.mw-page-content) .spread-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

:where(.mw-page-content) .spread-card-link {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

:where(.mw-page-content) .spread-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 34, 254, 0.25);
  box-shadow: 0 12px 28px rgba(127, 34, 254, 0.1);
}

:where(.mw-page-content) .spread-card-link h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--primary);
}

:where(.mw-page-content) .spread-card-link p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

:where(.mw-page-content) .spread-hub-card {
  display: block;
  width: 88px;
  margin: 0 auto 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

:where(.mw-page-content) .starcoreastro-section {
  margin: 48px auto 0;
  max-width: var(--content-width);
}

:where(.mw-page-content) .starcoreastro-section-title {
  text-align: center;
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--foreground);
}

:where(.mw-page-content) #rt-result:empty,
:where(.mw-page-content) #rt-ai:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
:where(.mw-page-content) button.spread-btn,
:where(.mw-page-content) #love-spread-start {
  display: block;
  margin: 24px auto;
}
:where(.mw-page-content) .demo-cards { display: grid; gap: 16px; margin: 20px 0; }

:where(.mw-page-content) .demo-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

:where(.mw-page-content) .demo-card:hover,
:where(.mw-page-content) .demo-card:focus-visible { border-color: var(--primary); transform: translateY(-2px); outline: none; }

:where(.mw-page-content) .demo-pos { color: var(--primary); font-size: 13px; margin: 0 0 8px; }

:where(.mw-page-content) .demo-summary {
  white-space: pre-wrap;
  background: var(--secondary);
  padding: 16px;
  border-radius: var(--radius);
  line-height: 1.7;
}

:where(.mw-page-content) .demo-reading-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
:where(.mw-page-content) .demo-report-button { min-height: 44px; background: var(--secondary); color: var(--primary); box-shadow: none; }
:where(.mw-page-content) .demo-report-button:hover { background: color-mix(in srgb, var(--primary) 10%, var(--secondary)); }
:where(.mw-page-content) .celtic-link-btn#celtic-generate-report { min-height: 44px; border: 0; font: inherit; cursor: pointer; }
:where(.mw-page-content) .celtic-link-btn:disabled { cursor: wait; opacity: .65; }

:where(.mw-page-content) #spread-next-btn,
:where(.mw-page-content) #rt-flip-btn,
:where(.mw-page-content) #celtic-next-btn {
  display: block;
  margin: 0 auto 16px;
}

:where(.mw-page-content) .celtic-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
}

:where(.mw-page-content) .celtic-link-btn.secondary {
  background: var(--secondary);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

:where(.mw-page-content) .celtic-detail-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

:where(.mw-page-content) .celtic-detail-card span {
  color: var(--primary);
  font-size: 13px;
}

:where(.mw-page-content) .celtic-detail-card p {
  margin: 10px 0 0;
  line-height: 1.7;
  color: var(--foreground);
}

:where(.mw-page-content) #celtic-ai-section h2 {
  text-align: center;
  color: var(--primary);
  margin: 0 0 12px;
}
:where(.mw-page-content) .starcore-member {
  width: min(100% - 32px, 1040px);
  margin: 42px auto 72px;
  color: var(--foreground);
}

:where(.mw-page-content) .starcore-member-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

:where(.mw-page-content) .starcore-member-kicker,
:where(.mw-page-content) .starcore-card-heading > p {
  margin: 0;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
}

:where(.mw-page-content) .starcore-member-head h1,
:where(.mw-page-content) .starcore-member-head p { margin: 0; }
:where(.mw-page-content) .starcore-member-head h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -.04em; }
:where(.mw-page-content) .starcore-member-head div > p { max-width: 560px; margin-top: 10px; color: var(--muted-foreground); line-height: 1.65; }

:where(.mw-page-content) .starcore-member-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
:where(.mw-page-content) .starcore-member-nav a,
:where(.mw-page-content) .starcore-filter-group button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted-foreground);
  background: var(--secondary);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

:where(.mw-page-content) .starcore-member-nav a:hover,
:where(.mw-page-content) .starcore-filter-group button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
:where(.mw-page-content) .starcore-member-nav a.is-active,
:where(.mw-page-content) .starcore-filter-group button.is-active { color: var(--primary-foreground); background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-primary); }

:where(.mw-page-content) .starcore-profile-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: 20px; margin-top: 28px; align-items: start; }
:where(.mw-page-content) .starcore-profile-side { display: grid; gap: 20px; }
:where(.mw-page-content) .starcore-member-card { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); }
:where(.mw-page-content) .starcore-card-heading { margin-bottom: 24px; }
:where(.mw-page-content) .starcore-card-heading h2 { margin: 8px 0 0; font-size: 21px; line-height: 1.32; letter-spacing: -.02em; }
:where(.mw-page-content) .starcore-member-card > label,
:where(.mw-page-content) .starcore-profile-two label { display: grid; gap: 8px; color: var(--foreground); font-size: 14px; font-weight: 650; }
:where(.mw-page-content) .starcore-member-card input:not([type="checkbox"]),
:where(.mw-page-content) .starcore-member-card select {
  width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--foreground); background: var(--background); font: inherit; font-size: 16px;
}
:where(.mw-page-content) .starcore-profile-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
:where(.mw-page-content) .starcore-member-save { width: 100%; min-height: 46px; margin-top: 24px; border-radius: 10px; }
:where(.mw-page-content) .starcore-member-status { min-height: 20px; margin: 10px 0 0; color: #177245; font-size: 13px; }

:where(.mw-page-content) .starcore-switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); cursor: pointer; }
:where(.mw-page-content) .starcore-switch-row:first-of-type { border-top: 0; }
:where(.mw-page-content) .starcore-switch-row strong { display: block; font-size: 15px; }
:where(.mw-page-content) .starcore-switch-row small { display: block; max-width: 310px; margin-top: 5px; color: var(--muted-foreground); font-size: 13px; font-weight: 400; line-height: 1.55; }
:where(.mw-page-content) .starcore-switch-row input { appearance: none; position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: #bbb4c5; cursor: pointer; transition: background-color .2s ease; }
:where(.mw-page-content) .starcore-switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
:where(.mw-page-content) .starcore-switch-row input:checked { background: var(--primary); }
:where(.mw-page-content) .starcore-switch-row input:checked::after { transform: translateX(20px); }
:where(.mw-page-content) .starcore-logout { min-height: 42px; margin-top: 24px; padding: 0 14px; border: 1px solid #e8b7bf; border-radius: 9px; color: #a32035; background: transparent; font: inherit; cursor: pointer; }

:where(.mw-page-content) .starcore-history-filters { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
:where(.mw-page-content) .starcore-filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
:where(.mw-page-content) .starcore-history-status { margin: 20px 0 4px; color: var(--muted-foreground); font-size: 14px; }
:where(.mw-page-content) .starcore-history-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
:where(.mw-page-content) .starcore-history-list li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
:where(.mw-page-content) .starcore-history-list h2 { margin: 0; font-size: 17px; line-height: 1.4; }
:where(.mw-page-content) .starcore-history-list p { margin: 6px 0 0; color: var(--muted-foreground); font-size: 13px; }
:where(.mw-page-content) .starcore-history-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
:where(.mw-page-content) .starcore-history-actions a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; color: var(--primary); background: var(--secondary); font-size: 14px; font-weight: 650; text-decoration: none; }
:where(.mw-page-content) .starcore-history-actions button { min-height: 40px; padding: 0 10px; border: 0; color: #a32035; background: transparent; font: inherit; cursor: pointer; }
:where(.mw-page-content) .starcore-history-empty { padding: 48px 0; color: var(--muted-foreground); text-align: center; }
:where(.mw-page-content) .starcore-history-cta { display: flex; width: fit-content; min-height: 46px; align-items: center; margin: 28px 0 0; border-radius: 10px; }

:where(.mw-page-content) .starcore-member :is(a, button, input, select):focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 42%, transparent); outline-offset: 3px; }
html.dark :where(.mw-page-content) .starcore-member-card { background: #17141d; border-color: #342f3d; }
html.dark :where(.mw-page-content) .starcore-member-card input:not([type="checkbox"]), html.dark :where(.mw-page-content) .starcore-member-card select { background: var(--surface); border-color: #42384e; }
html.dark :where(.mw-page-content) .starcore-filter-group button, html.dark :where(.mw-page-content) .starcore-member-nav a { background: var(--surface); color: #d9d2e1; }
html.dark :where(.mw-page-content) .starcore-filter-group button.is-active, html.dark :where(.mw-page-content) .starcore-member-nav a.is-active { color: #fff; background: var(--primary); }

@media (max-width: 760px) {
  :where(.mw-page-content) .starcore-member { width: min(100% - 28px, 600px); margin: 24px auto 48px; }
  :where(.mw-page-content) .starcore-member-head { grid-template-columns: 1fr; gap: 14px; padding-bottom: 20px; }
  :where(.mw-page-content) .starcore-member-nav { justify-content: flex-start; }
  :where(.mw-page-content) .starcore-profile-grid { grid-template-columns: 1fr; margin-top: 20px; }
  :where(.mw-page-content) .starcore-member-card { padding: 20px 16px; border-radius: 14px; }
  :where(.mw-page-content) .starcore-profile-two { grid-template-columns: 1fr; }
  :where(.mw-page-content) .starcore-history-filters { display: grid; gap: 12px; padding: 18px 0; }
  :where(.mw-page-content) .starcore-history-list li { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  :where(.mw-page-content) .starcore-member * { transition-duration: .01ms !important; }
}
:where(.mw-page-content) .starcore-history-workspace {
  width: min(100% - 32px, 730px);
  min-height: 540px;
  margin: 64px auto 88px;
}
:where(.mw-page-content) .starcore-history-workspace > h1 { margin: 0; color: var(--foreground); font-size: 29px; letter-spacing: -.035em; line-height: 1.2; }
:where(.mw-page-content) .starcore-history-frame { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px; margin-top: 28px; }
:where(.mw-page-content) .starcore-history-sidebar { min-width: 0; }
:where(.mw-page-content) .starcore-history-type-list { display: grid; gap: 4px; }
:where(.mw-page-content) .starcore-history-type-list button { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; color: var(--muted-foreground); background: transparent; font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
:where(.mw-page-content) .starcore-history-type-list button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
:where(.mw-page-content) .starcore-history-type-list button:hover { color: var(--foreground); background: var(--secondary); }
:where(.mw-page-content) .starcore-history-type-list button.is-active { color: var(--foreground); background: var(--secondary); font-weight: 650; }
:where(.mw-page-content) .starcore-history-type-list button.is-active svg { color: var(--primary); }
:where(.mw-page-content) .starcore-history-period { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
:where(.mw-page-content) .starcore-history-period button { min-width: 43px; min-height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-foreground); background: var(--card); font: inherit; font-size: 13px; cursor: pointer; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
:where(.mw-page-content) .starcore-history-period button:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 42%, var(--border)); }
:where(.mw-page-content) .starcore-history-period button.is-active { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: color-mix(in srgb, var(--primary) 8%, var(--card)); font-weight: 650; }
:where(.mw-page-content) .starcore-history-saved { display: inline-grid; width: 36px; height: 36px; margin-top: 10px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted-foreground); background: var(--card); cursor: pointer; }
:where(.mw-page-content) .starcore-history-saved:hover { color: var(--primary); border-color: var(--primary); }
:where(.mw-page-content) .starcore-history-saved svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
:where(.mw-page-content) .starcore-history-results { position: relative; display: flex; min-height: 320px; align-items: center; justify-content: center; text-align: center; }
:where(.mw-page-content) .starcore-history-results:not(.is-empty) .starcore-history-empty-icon { display: none; }
:where(.mw-page-content) .starcore-history-results:not(.is-empty) { display: block; text-align: left; }
:where(.mw-page-content) .starcore-history-empty-icon { display: grid; width: 60px; height: 60px; margin: 0 auto 14px; place-items: center; border-radius: 50%; color: var(--muted-foreground); background: var(--secondary); }
:where(.mw-page-content) .starcore-history-empty-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:where(.mw-page-content) .starcore-history-status { margin: 0; color: var(--foreground); font-size: 14px; font-weight: 650; }
:where(.mw-page-content) .starcore-history-list:not(:empty) + .starcore-history-cta { display: none; }
:where(.mw-page-content) .starcore-history-list { width: 100%; max-height: 470px; overflow: auto; padding: 0; margin: 0; list-style: none; }
:where(.mw-page-content) .starcore-history-list:empty { display: none; }
:where(.mw-page-content) .starcore-history-list:not(:empty) ~ .starcore-history-empty-icon { display: none; }
:where(.mw-page-content) .starcore-history-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--border); text-align: left; }
:where(.mw-page-content) .starcore-history-list li.starcore-history-empty { display: block; padding: 0; border: 0; color: transparent; font-size: 0; }
:where(.mw-page-content) .starcore-history-list li.starcore-history-empty::after { content: ""; display: none; }
:where(.mw-page-content) .starcore-history-list h2 { margin: 0; font-size: 15px; }
:where(.mw-page-content) .starcore-history-list p { margin: 5px 0 0; color: var(--muted-foreground); font-size: 12px; }
:where(.mw-page-content) .starcore-history-actions { display: flex; gap: 6px; flex: 0 0 auto; }
:where(.mw-page-content) .starcore-history-actions a, :where(.mw-page-content) .starcore-history-actions button { min-height: 36px; display: inline-flex; align-items: center; padding: 0 10px; border: 0; border-radius: 8px; color: var(--primary); background: var(--secondary); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
:where(.mw-page-content) .starcore-history-actions button { color: #a32035; background: transparent; }
:where(.mw-page-content) .starcore-history-cta { display: inline-flex; min-height: 38px; align-items: center; margin: 16px auto 0; padding: 0 18px; border-radius: 999px; font-size: 14px; }
:where(.mw-page-content) .starcore-history-workspace :is(button, a):focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 42%, transparent); outline-offset: 3px; }
html.dark :where(.mw-page-content) .starcore-history-period button, html.dark :where(.mw-page-content) .starcore-history-saved { background: var(--surface); border-color: #42384e; }
html.dark :where(.mw-page-content) .starcore-history-type-list button.is-active { background: var(--surface); }
html.dark :where(.mw-page-content) .starcore-history-empty-icon { background: var(--surface); }

@media (max-width: 700px) {
  :where(.mw-page-content) .starcore-history-workspace { width: min(100% - 28px, 520px); margin-top: 30px; }
  :where(.mw-page-content) .starcore-history-frame { grid-template-columns: 1fr; gap: 20px; }
  :where(.mw-page-content) .starcore-history-type-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.mw-page-content) .starcore-history-period { margin-top: 14px; padding-top: 14px; }
  :where(.mw-page-content) .starcore-history-results { min-height: 240px; }
}
:where(.mw-page-content) .starcore-auth #demo-auth-form .starcore-auth-remember {
  display: inline-flex !important;
  width: fit-content !important;
  min-height: 32px;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
  padding: 0;
  color: var(--foreground);
  line-height: 1;
}
:where(.mw-page-content) .starcore-auth #demo-auth-form .starcore-auth-remember input[type="checkbox"] {
  appearance: auto;
  box-sizing: border-box;
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px;
  height: 18px !important;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}
:where(.mw-page-content) .starcore-auth #demo-auth-form .starcore-auth-remember span { display: inline-block; white-space: nowrap; }
html.dark :where(.mw-page-content) .starcore-auth #demo-auth-form .starcore-auth-remember { color: #f5eff9; }
:where(.mw-page-content) .starcore-yes-no-form {
  width: min(100%, 760px);
  margin: 0 auto 28px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(124, 58, 237, .24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(255, 255, 255, .96) 48%);
  box-shadow: 0 14px 34px rgba(76, 29, 149, .09);
}
:where(.mw-page-content) .starcore-yes-no-form[hidden] { display: none !important; }
:where(.mw-page-content) .starcore-yes-no-form-head h2 { margin: 2px 0 7px; color: #181125; font-size: clamp(22px, 3.5vw, 30px); line-height: 1.2; }
:where(.mw-page-content) .starcore-yes-no-form-head > p:not(.starcore-yes-no-kicker) { margin: 0 0 20px; color: #5c5668; line-height: 1.6; }
:where(.mw-page-content) .starcore-yes-no-kicker { margin: 0; color: #7c3aed; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
:where(.mw-page-content) .starcore-yes-no-form > label { display: block; margin-bottom: 8px; color: #272135; font-size: 14px; font-weight: 700; }
:where(.mw-page-content) .starcore-yes-no-form textarea { box-sizing: border-box; display: block; width: 100%; min-height: 106px; resize: vertical; padding: 13px 14px; border: 1px solid #d9d2e7; border-radius: 12px; color: #201b2b; background: #fff; font: inherit; line-height: 1.55; }
:where(.mw-page-content) .starcore-yes-no-form textarea:focus { outline: 3px solid rgba(124, 58, 237, .18); border-color: #7c3aed; }
:where(.mw-page-content) .starcore-yes-no-status { min-height: 22px; margin: 10px 0 14px; color: #645c72; font-size: 14px; line-height: 1.5; }
:where(.mw-page-content) .starcore-yes-no-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
:where(.mw-page-content) .starcore-yes-no-start { min-height: 62px; padding: 10px 14px; border: 1px solid #d8cfe7; border-radius: 12px; color: #322a42; background: #fff; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
:where(.mw-page-content) .starcore-yes-no-start:hover:not(:disabled) { border-color: #8b5cf6; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(109, 40, 217, .12); }
:where(.mw-page-content) .starcore-yes-no-start:focus-visible, :where(.mw-page-content) .starcore-yes-no-login:focus-visible { outline: 3px solid rgba(124, 58, 237, .3); outline-offset: 2px; }
:where(.mw-page-content) .starcore-yes-no-start.is-selected { border-color: #7c3aed; color: #fff; background: #7c3aed; }
:where(.mw-page-content) .starcore-yes-no-start > span, :where(.mw-page-content) .starcore-yes-no-start > small { display: block; }
:where(.mw-page-content) .starcore-yes-no-start > span { font-weight: 750; }
:where(.mw-page-content) .starcore-yes-no-start > small { margin-top: 4px; opacity: .78; font-size: 12px; }
:where(.mw-page-content) .starcore-yes-no-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
:where(.mw-page-content) .starcore-yes-no-links a, :where(.mw-page-content) .starcore-yes-no-login { color: #6d28d9; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; }
:where(.mw-page-content) .starcore-yes-no-links a:hover, :where(.mw-page-content) .starcore-yes-no-login:hover { text-decoration: underline; }
:where(.mw-page-content) .starcore-yes-no-login { padding: 0; border: 0; background: transparent; cursor: pointer; }
html.dark :where(.mw-page-content) .starcore-yes-no-form { border-color: rgba(167, 139, 250, .42); background: linear-gradient(135deg, rgba(91, 33, 182, .34), #1c1826 55%); }
html.dark :where(.mw-page-content) .starcore-yes-no-form-head h2, html.dark :where(.mw-page-content) .starcore-yes-no-form > label { color: #faf5ff; }
html.dark :where(.mw-page-content) .starcore-yes-no-form-head > p:not(.starcore-yes-no-kicker), html.dark :where(.mw-page-content) .starcore-yes-no-status { color: #d4c9df; }
html.dark :where(.mw-page-content) .starcore-yes-no-form textarea, html.dark :where(.mw-page-content) .starcore-yes-no-start { border-color: #4b3c63; color: #f8f5fc; background: #27202f; }
html.dark :where(.mw-page-content) .starcore-yes-no-start.is-selected { border-color: #a78bfa; background: #7c3aed; }
@media (max-width: 560px) { :where(.mw-page-content) .starcore-yes-no-form { border-radius: 15px; } :where(.mw-page-content) .starcore-yes-no-actions { grid-template-columns: 1fr; } }
:where(.mw-page-content) .starcore-love-form {
  width: min(100%, 760px);
  margin: 0 auto 30px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #f5cddd;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff5f8, rgba(255, 255, 255, .98) 52%);
  box-shadow: 0 14px 34px rgba(190, 24, 93, .09);
}
:where(.mw-page-content) .starcore-love-form[hidden] { display: none !important; }
:where(.mw-page-content) .starcore-love-form-head h2 { margin: 2px 0 7px; color: #3d1225; font-size: clamp(22px, 3.5vw, 30px); line-height: 1.2; }
:where(.mw-page-content) .starcore-love-kicker { margin: 0; color: #be185d; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
:where(.mw-page-content) .starcore-love-theme { min-height: 24px; margin: 0 0 20px; color: #795264; line-height: 1.6; }
:where(.mw-page-content) .starcore-love-form > label { display: block; margin-bottom: 8px; color: #4b1f33; font-size: 14px; font-weight: 700; }
:where(.mw-page-content) .starcore-love-form textarea { box-sizing: border-box; display: block; width: 100%; min-height: 106px; resize: vertical; padding: 13px 14px; border: 1px solid #edc7d6; border-radius: 12px; color: #341525; background: #fff; font: inherit; line-height: 1.55; }
:where(.mw-page-content) .starcore-love-form textarea:focus { outline: 3px solid rgba(190, 24, 93, .16); border-color: #be185d; }
:where(.mw-page-content) .starcore-love-status { min-height: 22px; margin: 10px 0 14px; color: #795264; font-size: 14px; line-height: 1.5; }
:where(.mw-page-content) .starcore-love-start { display: block; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid #be185d; border-radius: 12px; color: #fff; background: #be185d; font: inherit; font-weight: 750; cursor: pointer; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
:where(.mw-page-content) .starcore-love-start:hover:not(:disabled) { background: #9d174d; box-shadow: 0 9px 20px rgba(190, 24, 93, .21); transform: translateY(-1px); }
:where(.mw-page-content) .starcore-love-start:disabled { cursor: wait; opacity: .64; }
:where(.mw-page-content) .starcore-love-start:focus-visible, :where(.mw-page-content) .starcore-love-login:focus-visible { outline: 3px solid rgba(190, 24, 93, .3); outline-offset: 2px; }
:where(.mw-page-content) .starcore-love-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
:where(.mw-page-content) .starcore-love-links a, :where(.mw-page-content) .starcore-love-login { color: #a21caf; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; }
:where(.mw-page-content) .starcore-love-links a:hover, :where(.mw-page-content) .starcore-love-login:hover { text-decoration: underline; }
:where(.mw-page-content) .starcore-love-login { padding: 0; border: 0; background: transparent; cursor: pointer; }
:where(.mw-page-content) [data-slot="card"].is-local-selected { border-color: #be185d !important; box-shadow: 0 0 0 3px rgba(190, 24, 93, .14), 0 12px 24px rgba(190, 24, 93, .12) !important; }
:where(.mw-page-content) [data-slot="card"][role="button"]:focus-visible { outline: 3px solid rgba(190, 24, 93, .42); outline-offset: 3px; }
html.dark :where(.mw-page-content) .starcore-love-form { border-color: rgba(244, 114, 182, .42); background: linear-gradient(135deg, rgba(116, 25, 70, .34), #241821 55%); }
html.dark :where(.mw-page-content) .starcore-love-form-head h2, html.dark :where(.mw-page-content) .starcore-love-form > label { color: #fff1f6; }
html.dark :where(.mw-page-content) .starcore-love-theme, html.dark :where(.mw-page-content) .starcore-love-status { color: #e7bfce; }
html.dark :where(.mw-page-content) .starcore-love-form textarea { border-color: #6b3a51; color: #fff4f8; background: #2d1e27; }
html.dark :where(.mw-page-content) .starcore-love-start { border-color: #ec4899; background: #be185d; }
@media (prefers-reduced-motion: reduce) { :where(.mw-page-content) .starcore-love-start { transition: none; } }
:where(.mw-page-content) .spread-btn:disabled,:where(.mw-page-content) .spread-btn[disabled]{opacity:1;background:#eeeef2;color:#62626b;cursor:not-allowed}
html.dark :where(.mw-page-content) .spread-btn:disabled,html.dark :where(.mw-page-content) .spread-btn[disabled]{background:#29292f;color:#b8b8c4}
:where(.mw-page-content) input::placeholder,:where(.mw-page-content) textarea::placeholder{color:#62626b;opacity:1}
html.dark :where(.mw-page-content) input::placeholder,html.dark :where(.mw-page-content) textarea::placeholder{color:#b1b1bd;opacity:1}
:where(.mw-page-content) .starcore-password-toggle{display:grid;place-items:center;padding:0;color:#62626b}
html.dark :where(.mw-page-content) .starcore-password-toggle{color:#b1b1bd}
:where(.mw-page-content) .starcore-password-toggle svg{flex-shrink:0}

.mw-page-content .starcoreastro-main{max-width:none;margin:0;padding:0}
.mw-fortune-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}.mw-fortune-directory>a{display:block;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.mw-fortune-directory h2{font-size:20px;margin:0 0 12px}.mw-fortune-directory p{color:var(--muted-ink);margin:0}.mw-fortune-directory>a:hover{border-color:var(--primary-ink);background:var(--soft)}

/* Studio completion tools follow the shared theme and remain usable on phones. */
.mw-studio-approach{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-block:16px}
.mw-studio-approach select{font:inherit;color:inherit;background:var(--surface,#fff);border:1px solid var(--border,#aaa);border-radius:10px;min-height:44px;padding:8px 12px}
.mw-studio-closing{padding-block:16px;margin-block-end:20px;border-bottom:1px solid var(--border,#aaa)}
.mw-studio-closing h2{margin-block:0 12px}
.mw-studio-closing button{white-space:normal;max-width:100%;min-height:44px}
.mw-studio-output [data-studio-stream]{overflow-wrap:anywhere}
.mw-studio .mw-attachment{display:inline-flex;max-width:140px;position:relative;margin:6px}
.mw-studio .mw-attachment img{max-width:100%;max-height:100px;object-fit:contain}
.mw-studio .mw-attachment button{min-width:36px;min-height:36px}
