/* AUTO-GENERATED by extract_planetcore.py from index.html — do not edit by hand. */
  /* ── Card header ── */
  .hz-card-head {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .03em;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(43,34,244,.10);
    display: flex;
    align-items: flex-start;
    gap: 6px;
  }
  .hz-card-head > span {
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    color: #2B22F4;
  }
  .hz-card-head .hz-accent {
    width: 3px;
    min-height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* ── Card data rows ── */
  .hz-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2px 0;
    gap: 8px;
    min-width: 0;
  }
  .hz-card-row .hz-label {
    color: rgba(43,34,244,.45);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 48%;
  }
  .hz-card-row .hz-val {
    font-weight: 700;
    font-size: 10px;
    text-align: right;
    color: #2B22F4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
  }

  /* ── Card footer ── */
  .hz-card-footer {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid rgba(43,34,244,.10);
    font-size: 8.5px;
    color: rgba(43,34,244,.35);
    letter-spacing: .02em;
    white-space: normal;
    word-break: break-word;
  }


  html.planet-modal-open,
  body.planet-modal-open {
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: contain;
  }

  /* Planet-insight modal: remap the inline dark-theme colors in the popup
     content (rgba(255,255,255,X), near-white hex accents, light-mode
     backgrounds) to values readable on the light frosted-glass shell. */
  #planet-insight-popup [style*="rgba(255,255,255"],
  #planet-insight-popup [style*="rgba(255, 255, 255"] {
    color: rgba(43,34,244,.78) !important;
  }
  #planet-insight-popup [style*="color:#e8e4d8"],
  #planet-insight-popup [style*="color:#c8d0e8"],
  #planet-insight-popup [style*="color:#e8d0b0"],
  #planet-insight-popup [style*="color:#b0c8e8"],
  #planet-insight-popup [style*="color:#d8d0c8"] {
    color: rgba(43,34,244,.85) !important;
  }
  #planet-insight-popup [style*="background:rgba(255,255,255"],
  #planet-insight-popup [style*="background-color:rgba(255,255,255"] {
    background: rgba(43,34,244,.05) !important;
  }
  #planet-insight-popup [style*="border:1px solid rgba(255,255,255"],
  #planet-insight-popup [style*="border-top:1px solid rgba(255,255,255"],
  #planet-insight-popup [style*="border-bottom:1px solid rgba(255,255,255"] {
    border-color: rgba(43,34,244,.12) !important;
  }
  #planet-insight-popup hr,
  #planet-insight-popup [style*="border-top:1px solid rgba(255"] {
    border-color: rgba(43,34,244,.14) !important;
  }
  /* SVG text inside planet popup (internal structure labels) — fix contrast */
  #planet-insight-popup svg text {
    fill: rgba(43,34,244,.85) !important;
  }
  /* ...except on a sky panel. The two Moon diagrams are deliberately a photo of
     the night sky, so the light-theme sweep above (which recolours every white
     label to blue ink for contrast on the frosted shell) inverts the one place
     where white is already the high-contrast choice. A class beats the bare
     type selector, so these win without !important escalation. */
  #planet-insight-popup .bv-skypanel text {
    fill: rgba(255,255,255,.85) !important;
  }
  #planet-insight-popup .bv-skypanel [style*="rgba(255,255,255"] {
    color: rgba(255,255,255,.85) !important;
  }

  /* Space-widget insight content: the explanatory text reuses dark-theme inline
     hex colors for its legend swatches + status callouts. Darken the brightest
     ones so they stay legible on the light frosted-glass shell, preserving hue
     where the color carries meaning (legend matches the imagery). */
  #planet-insight-popup .k { color: #2B22F4; font-weight: 700; }
  #planet-insight-popup [style*="color:#fff"]   { color: rgba(43,34,244,.85) !important; }
  #planet-insight-popup [style*="color:#4f4"]   { color: #1f9d4f !important; }
  #planet-insight-popup [style*="color:#4ddc7b"],
  #planet-insight-popup [style*="color:#4f8"],
  #planet-insight-popup [style*="color:#4a9"]   { color: #159c5b !important; }
  #planet-insight-popup [style*="color:#2ecc71"]{ color: #1f9d57 !important; }
  #planet-insight-popup [style*="color:#f1c40f"]{ color: #b8860b !important; }
  #planet-insight-popup [style*="color:#cc0"]    { color: #9a8a00 !important; }
  #planet-insight-popup [style*="color:#dda"]   { color: #a07d00 !important; }
  #planet-insight-popup [style*="color:#87ceeb"]{ color: #3b82c4 !important; }
  #planet-insight-popup [style*="color:#4a9adf"]{ color: #2b6cb0 !important; }
  #planet-insight-popup [style*="color:#f4f"]   { color: #c026d3 !important; }
  #planet-insight-popup [style*="color:#ff69b4"]{ color: #db2777 !important; }

  /* Tab bar inside planet modal */
  #planet-insight-popup .planet-tab-bar {
    display: flex;
    gap: 2px;
    margin: 10px 0 14px;
    background: rgba(43,34,244,.05);
    border-radius: 10px;
    padding: 3px;
    position: sticky;
    top: 30px;
    z-index: 3;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(43,34,244,.08);
  }
  #planet-insight-popup .planet-tab {
    flex: 1;
    padding: 7px 8px;
    border: none;
    background: transparent;
    color: rgba(43,34,244,.52);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    border-radius: 7px;
    transition: all .18s;
    font-family: system-ui, sans-serif;
  }
  #planet-insight-popup .planet-tab:hover {
    color: rgba(43,34,244,.85);
    background: rgba(43,34,244,.04);
  }
  #planet-insight-popup .planet-tab.active {
    background: rgba(255,255,255,.7);
    color: #2B22F4;
    box-shadow: 0 1px 4px rgba(43,34,244,.10), inset 0 0 0 1px rgba(43,34,244,.08);
  }
  #planet-insight-popup .planet-tab-panel {
    display: none;
  }
  #planet-insight-popup .planet-tab-panel.active {
    display: block;
  }
  #planet-insight-popup .planet-hero {
    padding: 14px 6px 10px;
  }
  #planet-insight-popup .planet-hero-enhanced {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  #planet-insight-popup .planet-hero-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(43,34,244,.2), 0 0 0 1px rgba(43,34,244,.08);
    background-color: rgba(43,34,244,.04);
    background-size: 120% 120%;
    background-position: center center;
    background-repeat: no-repeat;
  }
  /* Procedural weather-icon hero (hourly popups): the inline .ic svg sits in
     a sky-tinted "porthole" — the circle clips the icon's 100x100 corners
     (star/glow spill) and the day/night background comes inline from the
     opener via heroBg. */
  #planet-insight-popup .planet-hero-img.planet-hero-wxic {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  #planet-insight-popup .planet-hero-wxic .ic {
    width: 72px;
    height: 72px;
  }
  /* Ringed-planet SVG hero: breaks out of the circular img box so rings aren't
     clipped, drops the circular box-shadow, and widens to accommodate the
     horizontal ring extent (Saturn) or the taller vertical ring set (Uranus). */
  #planet-insight-popup svg.planet-hero-img.planet-hero-ringed {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }
  #planet-insight-popup svg.planet-hero-img.planet-hero-ringed[aria-label="Saturn with rings"] {
    width: 132px;
    height: 88px;
  }
  #planet-insight-popup svg.planet-hero-img.planet-hero-ringed[aria-label="Uranus with rings"] {
    width: 90px;
    height: 110px;
  }
  #planet-insight-popup .planet-hero-text {
    min-width: 0;
    flex: 1;
  }
  #planet-insight-popup .planet-hero-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .02em;
    color: #2B22F4;
    line-height: 1.05;
    margin-bottom: 8px;
    /* Allow wrap rather than ellipsis so full name always visible */
    word-break: break-word;
  }
  #planet-insight-popup .planet-hero-type {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(43,34,244,.65);
    padding: 4px 11px;
    background: rgba(43,34,244,.08);
    border: 1px solid rgba(43,34,244,.12);
    border-radius: 14px;
  }
  /* Live position block in the hero (Altitude / Direction / Trend / Elongation) */
  #planet-insight-popup .planet-hero-live {
    flex-shrink: 0;
    align-self: center;
    min-width: 148px;
    max-width: 180px;
    padding: 9px 10px;
    background: rgba(43,34,244,.04);
    border: 1px solid rgba(43,34,244,.10);
    border-radius: 10px;
  }
  #planet-insight-popup .planet-hero-live > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    font-size: 9px;
    line-height: 1.3;
  }
  #planet-insight-popup .planet-hero-live > div + div {
    border-top: 1px solid rgba(43,34,244,.06);
  }
  #planet-insight-popup .planet-hero-live > div > span:first-child {
    color: rgba(43,34,244,.55);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 8.5px;
    white-space: nowrap;
  }
  #planet-insight-popup .planet-hero-live > div > span:last-child {
    color: #2B22F4;
    font-weight: 800;
    font-size: 10px;
    text-align: right;
  }
  /* Narrow phones: the hero's fixed pieces (88px image + 148-180px live
     stats + gaps) starved the title down to ~20px, so planet names rendered
     one letter per line (VENUS stacked vertically, user 2026-07-27). Wrap
     the live-stats card onto its own full-width row instead. */
  @media (max-width: 520px) {
    #planet-insight-popup .planet-hero-enhanced { flex-wrap: wrap; }
    #planet-insight-popup .planet-hero-live { flex: 1 1 100%; max-width: none; min-width: 0; }
  }
  /* The popup scroller sets overflow-y:auto inline, which makes overflow-x
     compute to auto too — any too-wide child (structure diagrams) let the
     whole popup pan sideways on touch. Lock it horizontally. */
  #planet-insight-popup {
    overflow-x: hidden !important;
    overscroll-behavior-x: contain;
  }


  @media (max-width: 900px) {
    #planet-insight-popup .planet-columns { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .bv-popup-x { width: 46px !important; height: 46px !important; font-size: 30px !important; background: rgba(127,127,127,.10); }
    .bv-popup-x:active { background: rgba(127,127,127,.22); }
    .bv-popup-closebar { padding: 40px 14px 0 !important; }
  }
