.bgGlow {
  position: fixed;
  inset: -30vh -30vw;
  background:
    radial-gradient(900px 600px at 20% 20%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0)),
    radial-gradient(800px 500px at 80% 25%, rgba(170, 90, 255, 0.13), rgba(0, 0, 0, 0)),
    radial-gradient(700px 550px at 50% 85%, rgba(60, 200, 255, 0.12), rgba(0, 0, 0, 0));
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

* {
  box-sizing: border-box;
}

/* Header palette for *this* app (keep consistent with cards/buttons below). */
:root {
  --header-glass-bg: rgba(0, 0, 0, 0.28);
  --header-glass-border: rgba(255, 255, 255, 0.11);
  --header-text: rgba(255, 255, 255, 0.92);
  --header-muted: rgba(255, 255, 255, 0.62);
  --header-eyebrow: rgba(72, 224, 188, 0.92); /* matches linkBtn / pillBuy accent */
  --header-link: rgba(72, 224, 188, 0.92);
  --header-link-hover: rgba(255, 210, 120, 0.92);
  --header-site-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --header-display: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --header-dur: 0.4s;
  --header-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
  height: 100%;
}

/* Base gradient on html so fixed bg layers (z-index 0) aren’t hidden under body’s own background */
html {
  min-height: 100%;
  background: radial-gradient(1200px 900px at 50% 0%, #0c1020, #070812 55%, #05050b 100%);
}

body {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  background: none;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  letter-spacing: 0.2px;
}

/* Galaxy background image layer (behind glass cards) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("./green_stars.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.34;
  filter: saturate(1.10) contrast(1.10) brightness(0.82);
  pointer-events: none;
  z-index: 0;
}

/* Index (non-stock): lifted greens / stars, but calmer than the first pass */
body:not(.page-stock)::before {
  opacity: 0.42;
  filter: saturate(1.22) contrast(1.1) brightness(0.95);
  box-shadow: inset 0 0 120px rgba(40, 200, 150, 0.12);
}

/* Index: softer ambient glow (shared .bgGlow base stays for stock) */
body:not(.page-stock) .bgGlow {
  inset: -32vh -32vw;
  background:
    radial-gradient(1000px 700px at 18% 18%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0)),
    radial-gradient(950px 640px at 78% 22%, rgba(90, 255, 200, 0.13), rgba(0, 0, 0, 0)),
    radial-gradient(800px 600px at 50% 88%, rgba(30, 220, 170, 0.14), rgba(0, 0, 0, 0)),
    radial-gradient(1200px 800px at 50% 50%, rgba(20, 160, 120, 0.045), rgba(0, 0, 0, 0));
  filter: blur(10px);
}

/* Page content above galaxy + glow (fixed z-index 0 layers) */
main.wrap {
  position: relative;
  z-index: 1;
}

/* Stock page: original galaxy image + slow CSS motion (transform + opacity) */
body.page-stock::before {
  background-image: url("./galaxy_alt_color.png");
  background-position: center;
  filter: saturate(1.1) contrast(1.1) brightness(0.82);
  animation: stockGalaxyBreath 18s ease-in-out infinite;
}

body.page-stock .bgGlow {
  animation: stockAuroraDrift 22s ease-in-out infinite;
}

@keyframes stockAuroraDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(8%, -5%, 0) scale(1.08);
  }
  66% {
    transform: translate3d(-6%, 7%, 0) scale(1.05);
  }
}

@keyframes stockGalaxyBreath {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.46;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-stock .bgGlow,
  body.page-stock::before {
    animation: none;
  }

  body.page-stock::before {
    opacity: 0.34;
  }
}

code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
}

.wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 18px 52px;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

/* Fixed glass strip: full width, same family as KCR + Shopify-style hide on scroll (see header-banner.js). */
.headerBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px max(18px, env(safe-area-inset-left, 0px)) 10px
    max(18px, env(safe-area-inset-right, 0px));
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  font-family: var(--header-site-font);
  font-size: 13px;
  line-height: 1.55;
  color: var(--header-text);
  background: var(--header-glass-bg);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  border-bottom: 1px solid var(--header-glass-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  transition:
    transform var(--header-dur) var(--header-ease),
    opacity 0.32s ease,
    visibility 0.32s ease;
  will-change: transform;
}

.headerBanner h1,
.headerBanner .eyebrow,
.headerBanner .sub,
.headerBanner .headerBannerAttribution,
.headerBanner .site-byline,
.headerBanner .site-nav {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.headerBanner.is-retracted {
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Reserves vertical space in document flow (height synced in JS; animates to 0 when bar hides). */
.headerBannerSpacer {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  transition: height var(--header-dur) var(--header-ease);
  pointer-events: none;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .headerBanner,
  .headerBannerSpacer {
    transition-duration: 0.01ms;
  }
}

.headerBanner .eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--header-eyebrow);
  margin: 0 0 6px;
}

.headerBanner h1.site-title {
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--header-display);
  font-weight: 760;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.15;
  color: var(--header-text);
}

.headerBanner .sub {
  margin: 0;
  color: var(--header-muted);
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.55;
}

.headerBanner .site-byline {
  margin: 6px 0 0;
  max-width: 66ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--header-muted);
}

.headerBanner .site-nav {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  flex-wrap: wrap;
}

.headerBanner .site-nav a {
  color: var(--header-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 224, 188, 0.35);
}

.headerBanner .site-nav a:hover {
  color: var(--header-link-hover);
  border-bottom-color: rgba(255, 210, 120, 0.55);
}

.headerBanner .site-nav a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.9em;
  opacity: 0.75;
}

.headerBanner .site-byline a {
  color: var(--header-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 224, 188, 0.35);
}

.headerBanner .site-byline a:hover {
  color: var(--header-link-hover);
  border-bottom-color: rgba(255, 210, 120, 0.55);
}

.headerBanner .site-byline a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.9em;
  opacity: 0.75;
}

.headerBanner .site-nav > span {
  color: var(--header-muted);
  user-select: none;
}

/* Paywall (left) + small attribution (right) on the chart page. */
.headerBannerBottomRow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.headerBanner .headerBannerAttribution {
  margin: 0;
  max-width: min(100%, 46ch);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--header-muted);
  text-align: right;
}

.headerPaywall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-top: 0;
}

/* Standalone paywall (e.g. index) still gets top margin; chart page uses .headerBannerBottomRow. */
body:not(.page-stock) .headerPaywall {
  margin-top: 8px;
}

.paywallPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 200, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(230, 244, 255, 0.92);
  font-size: 12px;
  line-height: 1;
}

.paywallBtn {
  appearance: none;
  border: 1px solid rgba(72, 224, 188, 0.28);
  background: rgba(72, 224, 188, 0.10);
  color: var(--header-text);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.16s ease, border-color 0.16s ease;
}

.paywallBtn:hover {
  border-color: rgba(255, 210, 120, 0.35);
  background: rgba(255, 210, 120, 0.10);
}

.paywallBtn:active {
  transform: translateY(1px);
}

.paywallLink {
  font-size: 12px;
  color: var(--header-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 224, 188, 0.35);
}

.paywallLink:hover {
  color: var(--header-link-hover);
  border-bottom-color: rgba(255, 210, 120, 0.55);
}

.paywallDev {
  margin: 0;
  font-size: 11px;
  color: rgba(230, 244, 255, 0.72);
}

.paywallDev > summary {
  cursor: pointer;
  opacity: 0.75;
}

.paywallDevBtn {
  margin-left: 8px;
  margin-top: 6px;
  appearance: none;
  border: 1px solid rgba(120, 200, 255, 0.22);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(230, 244, 255, 0.86);
  border-radius: 10px;
  padding: 6px 9px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.paywallDevBtn:hover {
  border-color: rgba(255, 110, 199, 0.35);
}

.brand {
  display: flex;
  gap: 14px 20px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.headerBanner .brand {
  align-items: flex-start;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    radial-gradient(14px 14px at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(170, 90, 255, 0.95), rgba(60, 200, 255, 0.85));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.logoImg {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  /* Transparent PNG/SVG: no fill behind the mark (you supply clear alpha) */
  object-fit: contain;
  background: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.10);
  flex: 0 0 auto;
}

.title {
  font-size: 18px;
  font-weight: 760;
  line-height: 1.1;
}

.brandText {
  flex: 1;
  min-width: 0;
}

/* Stock page: JS overwrites the chart title; keep a readable default before data loads. */
.page-stock .headerBanner h1.site-title {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.premiumCard {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 200, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.premiumCardTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.premiumTitle {
  font-weight: 650;
  color: rgba(230, 244, 255, 0.92);
}

.premiumBadge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 110, 199, 0.26);
  color: rgba(255, 190, 230, 0.92);
  background: rgba(80, 20, 70, 0.18);
}

.premiumBadge.premiumBadgeOn {
  border-color: rgba(94, 224, 255, 0.3);
  color: rgba(190, 255, 245, 0.92);
  background: rgba(20, 70, 60, 0.18);
}

.electionalRow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.disclaimer {
  max-width: 640px;
  font-size: 12px;
  line-height: 1.35;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

.disclaimer__text {
  margin: 0;
  font-style: italic;
}

.card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 215, 130, 0.06),
    0 0 38px rgba(255, 190, 90, 0.06);
  backdrop-filter: blur(12px);
}

.label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.searchRow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input {
  width: 100%;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.input:focus {
  border-color: rgba(180, 130, 255, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(180, 130, 255, 0.12);
}

.btn {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 90ms ease, background 120ms ease, border-color 120ms ease;
}

.primaryBtn {
  background: linear-gradient(135deg, rgba(170, 90, 255, 0.35), rgba(60, 200, 255, 0.22));
  border-color: rgba(180, 130, 255, 0.35);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(1px);
}

.btnSm {
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.actionsRow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.starBtn {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.starBtn:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
}

.starOn {
  border-color: rgba(72, 224, 188, 0.35);
  background: rgba(72, 224, 188, 0.10);
}

.dangerBtn {
  border-color: rgba(255, 92, 140, 0.28);
  background: rgba(255, 92, 140, 0.10);
}

.dangerBtn:hover {
  border-color: rgba(255, 92, 140, 0.38);
  background: rgba(255, 92, 140, 0.14);
}

.metaRow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
}

.metaRow--stack {
  align-items: flex-start;
}

.healthTopRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.healthTopRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.healthSnowflakeSvg {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.tileSnowflake {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tileSnowflakeSvg {
  width: 120px;
  height: 94px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.tileSnowflakeMeta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.3;
}

.tileSnowflakeMeta .muted {
  color: rgba(255, 255, 255, 0.45);
}

.userBackupHint {
  margin-top: 10px;
  max-width: 64rem;
}

.metaPill {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
}

.metaHint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.metaSep {
  opacity: 0.4;
  user-select: none;
}

.folderBar {
  margin-top: 12px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.folderBarTitle {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 215, 130, 0.55);
  margin-bottom: 8px;
}

.folderBarGrid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folderBarRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.folderBarLbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  min-width: 3.4rem;
}

.folderViewSelect {
  min-width: 0;
  flex: 1 1 160px;
  max-width: 100%;
}

.inputSm {
  font-size: 12px;
  padding: 6px 9px;
  min-width: 0;
  flex: 1 1 140px;
}

.folderBarHint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin: 2px 0 0;
  line-height: 1.4;
}

/* Homepage: planning calendar + folder column (full width of .wrap, same as other cards) */
.planningRowWrap {
  margin-top: 16px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.planningRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .planningRow {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: 24px;
  }
}

.planningRowCol--cal {
  min-width: 0;
}

@media (min-width: 960px) {
  .planningRowCol--folders {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
  }
}

@media (max-width: 959px) {
  .planningRowCol--folders {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
  }
}

.folderOrgHeading {
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 0 6px;
  color: rgba(255, 240, 220, 0.95);
  letter-spacing: 0.02em;
}

.folderOrgSub {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  max-width: 52ch;
}

.folderBar--side {
  margin-top: 0;
}

.folderOrgListWrap {
  margin-top: 12px;
}

.folderOrgListHint {
  margin: 0 0 8px;
  font-size: 11px;
  max-width: none;
}

.folderOrgList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(42vh, 360px);
  overflow-y: auto;
  padding-right: 4px;
}

.folderGroup {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 10px 10px;
}

.folderGroupHead {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 215, 130, 0.55);
  margin-bottom: 6px;
}

.folderGroupList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.folderGroupEmpty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.folderGroupLink {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 240, 220, 0.92);
  text-decoration: none;
}

.folderGroupLink:hover {
  border-color: rgba(180, 130, 255, 0.4);
  color: #fff;
}

.planningCalHeading {
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 0 6px;
  color: rgba(255, 240, 220, 0.95);
  letter-spacing: 0.02em;
}

.planningCalSub {
  margin: 0 0 12px;
  max-width: 48ch;
}

.calToolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.calMonthLabel {
  font-size: 14px;
  font-weight: 650;
  min-width: 10rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}

.calRoot {
  user-select: none;
}

.calWeekdayRow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.calWeekday {
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.calGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calCell {
  position: relative;
  min-height: 52px;
  padding: 4px 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.calCell:hover {
  border-color: rgba(255, 215, 130, 0.22);
  background: rgba(0, 0, 0, 0.28);
}

.calCell--outside {
  opacity: 0.38;
}

.calCell--marked {
  border-color: rgba(72, 224, 188, 0.22);
  background: rgba(72, 224, 188, 0.06);
}

.calCellNum {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.calDots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 2px;
  align-items: center;
}

.calDot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.calDot--inline {
  width: 6px;
  height: 6px;
  vertical-align: middle;
  margin: 0 2px;
}

.calDotsMore {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 1px;
}

.calDot--positive {
  background: rgba(72, 224, 188, 0.9);
  box-shadow: 0 0 6px rgba(72, 224, 188, 0.35);
}
.calDot--neutral {
  background: rgba(200, 190, 255, 0.75);
}
.calDot--negative {
  background: rgba(255, 92, 140, 0.9);
  box-shadow: 0 0 6px rgba(255, 92, 140, 0.25);
}
.calDot--buy {
  background: rgba(72, 224, 188, 0.65);
  border: 1px solid rgba(72, 224, 188, 0.9);
  box-sizing: border-box;
}
.calDot--sell {
  background: rgba(255, 98, 98, 0.65);
  border: 1px solid rgba(255, 98, 98, 0.95);
  box-sizing: border-box;
}

.calEmpty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 8px;
}

.calDetail {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calDetailTitle {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(255, 215, 130, 0.75);
}

.calDetailList {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.5;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.calLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  justify-content: center;
}

.calLeg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.results {
  margin-top: 16px;
}

.resultsGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.leftCol {
  grid-column: span 12;
}

.rightCol {
  grid-column: span 12;
}

@media (min-width: 1040px) {
  .leftCol {
    grid-column: span 8;
  }
  .rightCol {
    grid-column: span 4;
  }
}

.panelSection {
  margin-top: 12px;
}

.chartRulerRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.86);
}

.chartRulerLabel {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  white-space: nowrap;
}

.chartRulerBody {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.chartRulerGlyph {
  font-size: 18px;
  line-height: 1;
}

.chartRulerName {
  font-weight: 650;
}

.panelLabel {
  font-size: 12px;
  letter-spacing: 0.35px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.panelLabelRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.panelLabelRow .panelLabel {
  margin-bottom: 0;
}

.transitDayScore {
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  min-width: 0;
}

.transitDayScoreInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
}

.transitDayScoreInner .pill {
  font-size: 11px;
  white-space: nowrap;
}

.transitDayWord {
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.transitDayMeta {
  font-size: 11px;
  letter-spacing: 0.02em;
  width: 100%;
  text-align: right;
}

@media (min-width: 480px) {
  .transitDayMeta {
    width: auto;
    text-align: left;
  }
}

.underWheel {
  margin-top: 12px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.underWheelTitle {
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.underWheelBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.underWheelChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.80);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.underWheelChip .muted {
  color: rgba(255, 255, 255, 0.55);
}

.underWheelGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 840px) {
  .underWheelGrid {
    grid-template-columns: 1fr;
  }
}

.underWheelCard {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 10px 8px;
}

.underWheelCounts {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(34px, 1fr));
  gap: 6px 10px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.underWheelCounts .hdr {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.underWheelCounts .rowLbl {
  color: rgba(255, 255, 255, 0.70);
  font-weight: 650;
}

.underWheelCounts .cell {
  text-align: center;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.underWheelKey {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aspectKeyItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.aspectKeySwatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}

/* Conjunction (and other aspect glyphs): swatch = same fill as aspect line color on the wheel */
.aspectKeySwatch--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--aspect-swatch, rgba(255, 255, 255, 0.2));
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}

.aspectKeySwatch--icon .aspectKeyIconImg {
  display: block;
  width: 12px;
  height: 12px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.linkBtn {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(72, 224, 188, 0.92);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.linkBtn:hover {
  color: rgba(255, 210, 120, 0.92);
}

.tabBar {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tabBtn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.75);
  padding: 7px 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tabBtn[aria-selected="true"] {
  background: rgba(72, 224, 188, 0.12);
  border-color: rgba(72, 224, 188, 0.30);
  color: rgba(255, 255, 255, 0.90);
}

.tabBtn:hover {
  border-color: rgba(255, 215, 130, 0.22);
}

.tabPanel {
  margin-top: 10px;
}

.pillBuy {
  background: rgba(72, 224, 188, 0.14);
  border-color: rgba(72, 224, 188, 0.32);
  color: rgba(230, 255, 247, 0.92);
}

.pillNatal {
  background: rgba(160, 190, 255, 0.1);
  border-color: rgba(180, 200, 255, 0.28);
  color: rgba(220, 228, 255, 0.9);
}

.pillSell {
  background: rgba(255, 98, 98, 0.14);
  border-color: rgba(255, 98, 98, 0.34);
  color: rgba(255, 235, 235, 0.92);
}

.miniWheelGrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 840px) {
  .miniWheelGrid {
    grid-template-columns: 1fr;
  }
}

.miniWheelCard {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.miniWheelTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.miniWheelTitle {
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.miniWheelSub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.miniWheel {
  width: 100%;
  height: auto;
  display: block;
}

textarea.fieldInput {
  resize: vertical;
  min-height: 110px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.listItem {
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  line-height: 1.25;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.pillRow {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.pillRow--eph {
  align-items: flex-start;
  width: 100%;
}

.pillRow--eph .ephHitBody {
  flex: 1 1 160px;
  min-width: 0;
}

.pill {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.pillBenefic {
  border-color: rgba(72, 224, 188, 0.35);
  background: rgba(72, 224, 188, 0.10);
}

.pillMalefic {
  border-color: rgba(255, 92, 140, 0.35);
  background: rgba(255, 92, 140, 0.10);
}

.pillVol {
  border-color: rgba(255, 170, 95, 0.40);
  background: rgba(255, 170, 95, 0.10);
  color: rgba(255, 240, 220, 0.90);
}
.tile {
  grid-column: span 12;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 215, 130, 0.06),
    0 0 46px rgba(255, 190, 90, 0.07);
  backdrop-filter: blur(10px);
  position: relative;
}

/* Panel glow when special periods are active */
.tileGlowBenefic {
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(72, 224, 188, 0.12),
    0 0 68px rgba(72, 224, 188, 0.14);
}

.progressedBanner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(72, 224, 188, 0.18);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  font-size: 12.5px;
  box-shadow: 0 0 44px rgba(72, 224, 188, 0.10);
  text-align: center;
}

.progressedRow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.progressedBannerIcon {
  width: 22px;
  height: 22px;
  opacity: 0.92;
  flex: 0 0 auto;
  filter:
    drop-shadow(0 0 10px rgba(72, 224, 188, 0.22))
    drop-shadow(0 0 18px rgba(72, 224, 188, 0.12));
}

/* Make progressed Sun callout stand out more during active window */
#wheelPanel.tileGlowBenefic .progressedBanner {
  background: rgba(0, 0, 0, 0.58);
  border-color: rgba(72, 224, 188, 0.34);
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(72, 224, 188, 0.14),
    0 0 70px rgba(72, 224, 188, 0.18);
}

.progressedIcon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  opacity: 0.0;
  transform: scale(0.92);
  transition: opacity 200ms ease, transform 200ms ease, filter 200ms ease;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(72, 224, 188, 0.22));
}

#wheelPanel.tileGlowBenefic .progressedIcon {
  opacity: 0.92;
  transform: scale(1);
  filter:
    drop-shadow(0 0 16px rgba(72, 224, 188, 0.30))
    drop-shadow(0 0 36px rgba(72, 224, 188, 0.18));
}

/* Subtle "backlit gold" rim highlight (z-index 0 so in-tile text can sit above) */
.card::after,
.tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 210, 120, 0.18),
    rgba(255, 210, 120, 0.03) 22%,
    rgba(255, 255, 255, 0.02) 55%,
    rgba(255, 210, 120, 0.06) 78%,
    rgba(255, 210, 120, 0.16)
  );
  opacity: 0.55;
  mix-blend-mode: screen;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card {
  position: relative;
}

@media (min-width: 760px) {
  .tile {
    grid-column: span 6;
  }
}

@media (min-width: 1040px) {
  .tile {
    grid-column: span 4;
  }
}

.tileTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tileTop > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}

.folderSelect {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.ticker {
  font-weight: 820;
  letter-spacing: 0.8px;
}

.tickerLink {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.tickerLink:hover {
  text-decoration: underline;
  text-decoration-color: rgba(180, 130, 255, 0.85);
}

.tickerLink:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(180, 130, 255, 0.12);
  border-radius: 10px;
}

.name {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

.badgeRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge {
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
}

.badgeStrong {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.14);
}

.tileQuote {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.tileQuote .tileQuoteStatus {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.tileQuoteNA {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11.5px;
}

.tileQuoteInner {
  display: block;
  flex-wrap: wrap;
  word-break: break-word;
}

.tileQuotePart {
  display: inline;
  white-space: nowrap;
}

.tileQuoteK {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 0.2em;
}

.tileQuotePct {
  display: inline;
  font-weight: 600;
  margin-left: 0.1em;
}

.tileQuote .tileQuotePct--up {
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.22);
}

.tileQuote .tileQuotePct--down {
  color: #f87171;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.2);
}

.tileQuotePct--na {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.miniRow {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.miniText {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.25;
}

.miniBtn {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.miniBtn:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
}

.dialog {
  width: min(720px, calc(100vw - 28px));
  border: none;
  padding: 0;
  background: transparent;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
}

.dialogCard {
  padding: 16px;
  border-radius: 18px;
  background: rgba(20, 18, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
}

.dialogHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dialogTitle {
  font-weight: 820;
  letter-spacing: 0.2px;
}

.dialogSubtitle {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.iconBtn {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  line-height: 1;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 720px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.fieldLabel {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 8px;
}

.fieldInput {
  width: 100%;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.fieldInput:focus {
  border-color: rgba(180, 130, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(180, 130, 255, 0.10);
}

.fieldHint {
  margin-top: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

.fieldLocationWrap {
  position: relative;
}

.locationSuggestWrap {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  margin-top: 2px;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(18, 16, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.locationSuggestList {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.locationSuggestItem {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
}

.locationSuggestItem:hover,
.locationSuggestItem:focus-visible {
  background: rgba(120, 100, 200, 0.28);
  outline: none;
}

.clientChartsCard {
  margin-top: 0;
}

.homeChartsBlock {
  padding-bottom: 2px;
}

.homeSearchBlock {
  padding-top: 4px;
}

.homeSearchChartsDivider {
  height: 0;
  margin: 16px 0 14px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.clientChartsToolbar {
  margin-top: 10px;
}

.clientChartList {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clientChartRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.clientChartLink {
  font-weight: 650;
  color: rgba(200, 180, 255, 0.95);
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.clientChartLink:hover {
  text-decoration: underline;
}

.checkRow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.check input {
  transform: translateY(0.5px);
}

.dialogActions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}

.spacer {
  flex: 1 1 auto;
}

.dialogLegal {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.35;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.72);
}
.ipoDate {
  font-size: 13px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.80);
}

.source {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

.source a {
  color: rgba(180, 130, 255, 0.95);
  text-decoration: none;
}

.source a:hover {
  text-decoration: underline;
}

.emptyState {
  padding: 30px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  color: rgba(255, 255, 255, 0.70);
}

.emptyTitle {
  font-weight: 760;
}

.emptyBody {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
}

.browseSection--underCal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.browseSection--underCal .planningCalHeading {
  margin-top: 0;
}

.browseSection--underCal .browseList {
  max-height: min(36vh, 300px);
}

.browseSection--underCal .browseChip {
  max-width: 100%;
}

/* Delayed market reference (quotes.js) — entertainment only */
.marketSnapshotCard {
  margin-top: 16px;
}

.marketSnapshotHint {
  margin: 4px 0 10px;
}

.marketSnapshot {
  min-height: 1.5em;
}

.marketSnapshotRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

@media (max-width: 520px) {
  .marketSnapshotRow {
    grid-template-columns: 1fr;
  }
}

.marketSnapshotItem {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.marketSnapshotLabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.marketSnapshotVal {
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92);
}

.marketSnapshotVal--up {
  color: rgba(130, 220, 170, 0.95);
}

.marketSnapshotVal--down {
  color: rgba(255, 150, 150, 0.95);
}

.marketSnapshotVal--na {
  color: rgba(255, 255, 255, 0.45);
}

.marketSnapshotNote {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.quoteBanner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quoteBannerLine {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 240, 220, 0.92);
  font-variant-numeric: tabular-nums;
}

.quoteBannerNote {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
}

.browseToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 10px 0 12px;
}

.browseToolbar .fieldLabel {
  margin: 0;
}

.browseList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  max-height: min(42vh, 360px);
  overflow-y: auto;
  padding: 10px 2px 4px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
}

.browseChip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12px;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.browseChip:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(180, 130, 255, 0.28);
}

.browseChip:focus-visible {
  outline: 2px solid rgba(180, 130, 255, 0.5);
  outline-offset: 2px;
}

.browseChipTicker {
  font-weight: 760;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.browseChipName {
  color: rgba(255, 255, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.finePrint {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.50);
}

.logoLink {
  display: inline-flex;
  border-radius: 16px;
}

.logoLink:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(180, 130, 255, 0.12);
}

.scrubRow {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr repeat(3, auto);
  gap: 8px;
  align-items: center;
}

/* Narrow right column: wrap scrub controls so date + notables stay on one scroll area */
.transitScrubInPanel {
  margin-top: 0;
  margin-bottom: 2px;
}

.scrubRow--panel {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.scrubRow--today {
  justify-content: flex-end;
  margin-top: 8px;
}

.scrubRow--panel .miniBtn {
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.miniBtnTight {
  padding: 6px 10px;
}

.batch252Toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 10px;
}

.batch252Panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.10);
  padding: 10px 10px 8px;
}

.batch252Panel > summary.batch252Summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.35px;
  color: rgba(255, 255, 255, 0.82);
}

.batch252Panel > summary.batch252Summary::-webkit-details-marker {
  display: none;
}

.batch252Panel > summary.batch252Summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transform: translateY(-0.5px);
  opacity: 0.75;
}

.batch252Panel[open] > summary.batch252Summary::before {
  content: "▾";
}

.batch252SummaryHint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.batch252Body {
  margin-top: 8px;
}

.batch252Mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.batch252Mode .fieldInput {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
}

.forward20Panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
  padding: 10px 10px 8px;
  margin-top: 10px;
}

.forward20StatsRoot .forward20Stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .forward20StatsRoot .forward20Stats {
    grid-template-columns: 1fr;
  }
}

.forward20Col {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
}

.forward20Label {
  font-size: 11px;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.forward20Val {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

.forward20Val--up {
  color: rgba(130, 230, 170, 0.95);
}

.forward20Val--down {
  color: rgba(255, 140, 160, 0.95);
}

.batchCsvPicker input[type="file"] {
  max-width: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.priceOverlay {
  margin-top: 10px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.16);
}

.priceOverlayTop {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.priceOverlayControls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.priceOverlayControl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.priceOverlayControl .fieldInput {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
}

.priceOverlaySvg {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.priceOverlayActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.overlayDialog {
  width: min(1040px, calc(100vw - 28px));
  border: none;
  padding: 0;
  background: transparent;
}

.overlayDialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
}

.overlayDialogTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.overlayDialogTitle {
  font-weight: 820;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
}

.overlayDialogMeta,
.overlayDialogStats {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.overlayDialog {
  border-radius: 18px;
  background: rgba(20, 18, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
}

.overlayDialog {
  padding: 16px;
}

.priceOverlaySvg--lg {
  height: 320px;
  margin-top: 10px;
}

.chartWrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.tvWrap {
  margin-top: 12px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.tvChart {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mood halo behind the wheel (set via CSS vars in stock.js) */
.chartWrap::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background:
    /* Benefic glow (teal) */
    radial-gradient(closest-side, rgba(72, 224, 188, calc(var(--wheel-glow, 0) * 0.34)), rgba(0, 0, 0, 0) 62%),
    radial-gradient(closest-side, rgba(72, 224, 188, calc(var(--wheel-glow, 0) * 0.14)), rgba(0, 0, 0, 0) 78%),
    /* Neutral (yellow) */
    radial-gradient(closest-side, rgba(255, 235, 140, calc(var(--wheel-neutral, 0) * 0.22)), rgba(0, 0, 0, 0) 70%),
    /* Malefic glow (dark red) */
    radial-gradient(closest-side, rgba(140, 20, 48, calc(var(--wheel-malefic, 0) * 0.30)), rgba(0, 0, 0, 0) 66%),
    radial-gradient(closest-side, rgba(0, 0, 0, calc(var(--wheel-darken, 0) * 0.10)), rgba(0, 0, 0, 0) 65%);
  filter: blur(14px);
  transform: translateZ(0);
  transition: opacity 200ms ease, filter 200ms ease;
}

@media (min-width: 1040px) {
  /* Let the wheel breathe on wide layouts */
  #wheelPanel .chartWrap {
    margin-top: 16px;
  }
}

/* Natal vs transit-to-natal aspect line toggles (see stock.js) */
.wheelLineToggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.16);
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.wheelLineToggles__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 210, 230, 0.62);
  margin-right: 2px;
}

.wheelLineToggles__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: rgba(255, 255, 255, 0.88);
}

.wheelLineToggles__opt input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  accent-color: rgba(72, 224, 188, 0.85);
  cursor: pointer;
}

.wheel {
  /* Make the chart fill the panel */
  width: 100%;
  max-width: 980px;
  height: auto;
  border-radius: 18px;
  /* Slightly more opaque panel backdrop for readability */
  background: rgba(0, 0, 0, 0.216);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  z-index: 1;
}

.wheelPointTip {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  max-width: min(320px, calc(100vw - 20px));
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(16, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.tableWrap {
  margin-top: 12px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* Side panels: slightly denser typography so they feel "smaller" */
#natalPanel .listItem,
#transitPanel .listItem {
  font-size: 12.5px;
}

/* Make long "in-orb aspects" explanations more compact. */
#transitNotablesList .listItem {
  padding: 8px 10px;
  line-height: 1.2;
  font-size: 12px;
}

#transitNotablesList .pillRow {
  gap: 6px 8px;
}

#transitNotablesList .inOrbCalloutItem {
  padding: 0 0 2px 0;
  list-style: none;
}

.inOrbCallout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 130, 0.35);
  background: linear-gradient(145deg, rgba(40, 32, 18, 0.65), rgba(12, 14, 28, 0.85));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  margin-bottom: 6px;
}

.inOrbCallout__bang {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  color: rgba(20, 12, 8, 0.95);
  background: linear-gradient(160deg, rgba(255, 220, 140, 0.95), rgba(255, 170, 80, 0.92));
  border: 1px solid rgba(255, 200, 100, 0.55);
}

.inOrbCallout__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 235, 200, 0.95);
  margin-bottom: 4px;
}

.inOrbCallout__detail {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.inOrbCallout.inOrbCallout--moon,
.inOrbCallout.inOrbCallout--saturn,
.inOrbCallout.inOrbCallout--mars {
  border-color: rgba(255, 120, 150, 0.45);
  background: linear-gradient(145deg, rgba(50, 18, 28, 0.55), rgba(12, 12, 24, 0.88));
}

.inOrbCallout.inOrbCallout--progressed {
  border-color: rgba(120, 220, 180, 0.45);
  background: linear-gradient(145deg, rgba(12, 40, 32, 0.65), rgba(10, 12, 26, 0.9));
}

.inOrbCallout.inOrbCallout--cazimi {
  border-color: rgba(255, 200, 120, 0.5);
  background: linear-gradient(145deg, rgba(45, 32, 12, 0.7), rgba(8, 10, 22, 0.9));
}

.inOrbCallout.inOrbCallout--money {
  border-color: rgba(150, 190, 255, 0.4);
  background: linear-gradient(145deg, rgba(20, 24, 48, 0.75), rgba(8, 10, 22, 0.9));
}

#natalPanel .table,
#transitPanel .table {
  font-size: 12.5px;
}

.table th,
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.table th {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
}

.muted {
  color: rgba(255, 255, 255, 0.62);
}

.wheelRingNote {
  margin: 10px 4px 0;
  font-size: 11.5px;
  line-height: 1.4;
  max-width: 52ch;
}

.wheelRingNote .royalNote {
  color: rgba(220, 195, 130, 0.95);
  font-weight: 700;
}

.wheelRingNote .astNote {
  color: rgba(140, 200, 190, 0.95);
  font-weight: 700;
}

.wheelMoneyInline {
  color: rgba(200, 175, 110, 0.95);
}

/* Financial asteroid marker is now inline SVG (color via `currentColor`). */

.interpretDetails {
  margin: 10px 4px 0;
  max-width: 56ch;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.interpretDetails--right {
  margin: 12px 0 10px;
  max-width: 70ch;
}

.interpretDetails summary {
  cursor: pointer;
  color: rgba(180, 200, 255, 0.88);
  font-weight: 600;
  list-style-position: outside;
}

.interpretDetails .interpretBody {
  margin-top: 10px;
  padding-left: 2px;
}

.interpretDetails .interpretBody p {
  margin: 0 0 10px;
}

.interpretDetails .interpretBody p:last-child {
  margin-bottom: 0;
}

.tableSectionCell {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.badgeStack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* Natal quick view chips (ASC/MC/luminaries) — lives in tile header next to Notables badge */
.wheelNatalQuick {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: min(100%, 460px);
}

.wheelNatalQuick .underWheelTitle {
  margin: 0;
}
