/* ============================================================
   ASTRO-RECHNER — Cosmic Theme
   ============================================================ */
:root {
  --bg: #0d1124;
  --bg-deep: #070914;
  --card: rgba(23, 28, 50, 0.78);
  --card-border: rgba(212, 177, 116, 0.2);
  --card-border-strong: rgba(212, 177, 116, 0.38);
  --ink: #faf6ea;
  --ink-soft: #e1dcc8;
  --muted: #b0a993;
  --gold: #e0bd82;
  --gold-soft: #b89460;
  --gold-glow: rgba(224, 189, 130, 0.28);
  --accent: #c8a772;
  --line: rgba(224, 189, 130, 0.14);
  --line-strong: rgba(224, 189, 130, 0.32);

  --feuer: #ff8566;
  --luft: #8dd8f3;
  --erde: #e6b06a;
  --wasser: #8fabff;

  --err: #ff7777;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 72, 168, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(60, 90, 180, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 80%, rgba(120, 60, 140, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* Starfield — zwei Ebenen fuer Parallax-Optik + sanftes Flackern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 60px 120px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 140px 60px, rgba(255, 240, 200, 0.9), transparent),
    radial-gradient(1px 1px at 200px 180px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 280px 90px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 350px 220px, rgba(255, 250, 220, 0.8), transparent),
    radial-gradient(1px 1px at 420px 40px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 500px 160px, rgba(255, 255, 255, 0.55), transparent);
  background-repeat: repeat;
  background-size: 550px 280px;
  opacity: 0.75;
  z-index: 0;
  animation: twinkle 8s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 80px 250px, rgba(224, 189, 130, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 320px 50px, rgba(255, 240, 200, 0.7), transparent),
    radial-gradient(2px 2px at 600px 320px, rgba(224, 189, 130, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 780px 140px, rgba(255, 255, 255, 0.6), transparent);
  background-repeat: repeat;
  background-size: 900px 500px;
  opacity: 0.55;
  z-index: 0;
  animation: twinkle 11s ease-in-out -3s infinite alternate;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* --- Cards mit Eck-Ornamenten --- */
.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 10px 40px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(224, 189, 130, 0.04);
}
/* goldene Eck-Striche */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}
.card::before {
  top: 10px; left: 10px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 8px;
}
.card::after {
  bottom: 10px; right: 10px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 8px;
}

/* --- Header --- */
header {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
header::before, header::after {
  content: '✦';
  position: absolute;
  bottom: 14px;
  color: var(--gold);
  font-size: 14px;
  opacity: 0.7;
}
header::before { left: 42%; }
header::after  { right: 42%; }

h1 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 0 30px var(--gold-glow);
  line-height: 1.15;
}
h1::before, h1::after {
  content: '☽';
  color: var(--gold);
  font-size: 0.55em;
  vertical-align: middle;
  margin: 0 0.3em;
  opacity: 0.7;
}
h1::after { content: '☉'; }

.sub {
  margin: 0;
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(16px, 2.2vw, 19px);
  letter-spacing: 0.01em;
  font-weight: 500;
}

h2 {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.01em;
}

h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 16px;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 14px;
}
h3::before, h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-strong) 50%, transparent 100%);
}
h3.first { margin-top: 0; }

/* Ornamentaler Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: var(--gold);
  opacity: 0.55;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}
.divider .sym {
  font-size: 14px;
  letter-spacing: 0.3em;
}

.hidden { display: none; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tab {
  background: transparent;
  color: var(--ink-soft);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  margin-bottom: -1px;
  transition: all 0.2s;
  opacity: 0.6;
}
.tab:hover { color: var(--ink); opacity: 0.9; transform: none; }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); opacity: 1; }
.hint {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.85;
}

/* --- Birth Grid --- */
.birth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.birth-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.birth-grid label.full { grid-column: 1 / -1; }

input[type="date"], input[type="time"], input[type="text"],
select, input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(7, 9, 20, 0.5);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: all 0.15s;
  min-height: 44px;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
select option { background: var(--bg); color: var(--ink); }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(80%) sepia(30%) saturate(400%) hue-rotate(5deg);
  cursor: pointer;
}

/* --- Manuelle Eingabe Tabelle --- */
.input-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table.input { width: 100%; border-collapse: collapse; min-width: 460px; }
table.input th, table.input td {
  padding: 11px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}
table.input th {
  color: var(--gold);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
table.input td.planet {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
table.input td.planet .glyph {
  display: inline-block;
  width: 22px;
  color: var(--gold);
  font-size: 17px;
  text-align: center;
  margin-right: 4px;
}

.acmc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.acmc label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* --- Buttons --- */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}
button {
  cursor: pointer;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #17152a;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(224, 189, 130, 0.22);
  min-height: 44px;
}
button.ghost {
  background: transparent;
  color: var(--gold);
  box-shadow: none;
}
button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 177, 116, 0.3);
}
button.ghost:hover {
  background: rgba(212, 177, 116, 0.08);
  box-shadow: none;
}
button:disabled { opacity: 0.5; cursor: wait; transform: none; }

.error {
  color: var(--err);
  margin-top: 14px;
  font-size: 14px;
  font-style: italic;
}

/* --- Ergebnis --- */
#result-body { display: flex; flex-direction: column; gap: 10px; }

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.result-head h2 { margin: 0; }

.chart-info {
  background: linear-gradient(180deg, rgba(224, 189, 130, 0.07) 0%, rgba(224, 189, 130, 0.02) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.7;
}
.chart-info strong {
  color: var(--gold);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-right: 8px;
  display: inline-block;
}
.chart-info .planets-line { font-size: 14px; line-height: 2; color: var(--ink-soft); }
.chart-info .planets-line .glyph {
  color: var(--gold);
  font-size: 16px;
  margin-right: 3px;
}

/* --- Hero: Horoskop-Rad + Legende --- */
.hero {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 36px;
  align-items: center;
  padding: 14px 4px 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.hero-wheel {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
}
.hero-wheel::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 189, 130, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-wheel svg.wheel { display: block; width: 100%; height: 100%; }

.hero-donut {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}
.hero-donut::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 189, 130, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.hero-donut svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-donut .center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.hero-donut .center .big {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-donut .center .small {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 8px;
  font-weight: 600;
  opacity: 0.85;
}

.legend { display: grid; gap: 16px; }
.legend-item {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
}
.legend-item .swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}
.legend-item .label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.legend-item .cnt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 18px;
  min-width: 36px;
  text-align: right;
  color: var(--ink);
}
.legend-item .pct {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 14px;
  min-width: 62px;
  text-align: right;
  font-weight: 500;
}

/* --- Split (Psychisch / Körperlich) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 24px 0;
}
.split .mini {
  position: relative;
  text-align: center;
  background: rgba(7, 9, 20, 0.35);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 18px 22px;
}
.split .mini::before {
  content: '✦';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 10px;
  color: var(--gold);
  font-size: 12px;
  opacity: 0.75;
}
.split .mini h4 {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.split .mini .donut-small {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}
.split .mini .donut-small svg { width: 100%; height: 100%; }
.split .mini .donut-small .center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  color: var(--gold);
  font-weight: 600;
}
.split .mini .mini-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 240px;
  margin: 0 auto;
  text-align: left;
}
.split .mini .mini-legend .row {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  font-size: 14px;
  color: var(--ink);
}
.split .mini .mini-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.split .mini .mini-legend .name { font-weight: 500; }
.split .mini .mini-legend .cnt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  min-width: 22px;
  text-align: right;
}
.split .mini .mini-legend .pct {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 12px;
  min-width: 52px;
  text-align: right;
  font-weight: 500;
}

/* Element colors */
.swatch.Feuer, .dot.Feuer { background: var(--feuer); color: var(--feuer); }
.swatch.Luft,  .dot.Luft  { background: var(--luft);  color: var(--luft); }
.swatch.Erde,  .dot.Erde  { background: var(--erde);  color: var(--erde); }
.swatch.Wasser, .dot.Wasser { background: var(--wasser); color: var(--wasser); }
.el-Feuer { color: var(--feuer); }
.el-Luft  { color: var(--luft); }
.el-Erde  { color: var(--erde); }
.el-Wasser { color: var(--wasser); }

/* --- Planetentabelle --- */
table.res {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}
table.res th, table.res td {
  padding: 11px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
table.res th:first-child, table.res td:first-child { text-align: left; }
table.res th {
  font-weight: 500;
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  border-bottom: 1px solid var(--line-strong);
}
table.res tbody tr { transition: background 0.12s; }
table.res tbody tr:hover { background: rgba(212, 177, 116, 0.04); }
table.res .planet-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}
table.res .planet-cell .glyph {
  color: var(--gold);
  font-size: 18px;
  width: 22px;
  text-align: center;
  text-shadow: 0 0 8px var(--gold-glow);
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge.Feuer  { background: rgba(255, 115, 85, 0.14); color: var(--feuer); border: 1px solid rgba(255, 115, 85, 0.3); }
.badge.Luft   { background: rgba(127, 209, 240, 0.14); color: var(--luft); border: 1px solid rgba(127, 209, 240, 0.3); }
.badge.Erde   { background: rgba(217, 160, 91, 0.14); color: var(--erde); border: 1px solid rgba(217, 160, 91, 0.3); }
.badge.Wasser { background: rgba(122, 156, 255, 0.14); color: var(--wasser); border: 1px solid rgba(122, 156, 255, 0.3); }

.sign-glyph, .glyph, table.res .planet-cell .glyph, table.input td.planet .glyph, .chart-info .glyph {
  font-family: 'Noto Sans Symbols 2', 'Segoe UI Symbol', 'Apple Symbols', 'DejaVu Sans', serif;
  font-variant-emoji: text;
}
.sign-glyph { color: var(--gold); margin-right: 4px; font-size: 15px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  main { padding: 36px 20px 60px; }
  .hero { gap: 28px; }
  .hero-donut { width: 260px; height: 260px; }
}

@media (max-width: 720px) {
  main { padding: 28px 14px 60px; }
  header { margin-bottom: 26px; padding-bottom: 22px; }
  header::before, header::after { bottom: 10px; }
  .card { padding: 22px 18px; margin-bottom: 16px; border-radius: 14px; }
  .tabs { margin-bottom: 20px; }
  .tab { padding: 12px 14px; font-size: 12px; flex: 1; text-align: center; }
  .birth-grid { grid-template-columns: 1fr; gap: 14px; }
  .acmc { grid-template-columns: 1fr; gap: 14px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    padding: 10px 0 26px;
  }
  .hero-wheel { max-width: min(92vw, 380px); margin: 0 auto; }
  .hero-donut { width: min(280px, 80vw); height: min(280px, 80vw); margin: 0 auto; }
  .hero-donut .center .big { font-size: 42px; }
  .legend { gap: 14px; }
  .legend-item {
    grid-template-columns: 14px 1fr auto auto;
    gap: 12px;
    text-align: left;
  }
  .legend-item .label { font-size: 22px; }
  .legend-item .cnt { font-size: 16px; }
  .split { grid-template-columns: 1fr; gap: 16px; }
  .split .mini { padding: 20px 16px; }
  .actions { gap: 8px; }
  .actions button { flex: 1 1 auto; min-width: 0; padding: 12px 16px; font-size: 12px; }
  .chart-info { padding: 14px 16px; font-size: 14px; }
  .chart-info .planets-line { font-size: 13px; line-height: 1.85; }
  h3 { font-size: 11px; margin: 22px 0 10px; }
}

@media (max-width: 420px) {
  main { padding: 22px 12px 50px; }
  .card { padding: 18px 14px; }
  h1::before, h1::after { display: none; }
  .hero-donut { width: 90vw; height: 90vw; max-width: 280px; max-height: 280px; }
  .legend-item { grid-template-columns: 12px 1fr auto; }
  .legend-item .pct { display: none; }
  .split .mini .donut-small { width: 140px; height: 140px; }
  .tab { letter-spacing: 0.06em; }
}

/* --- Print --- */
@page { size: A4 portrait; margin: 14mm; }
@media print {
  html, body {
    background: white !important;
    color: #222;
  }
  body::before { display: none; }
  main { padding: 0; max-width: none; }
  header { border-color: #ccc; }
  header::before, header::after { color: #888; }
  h1 { color: #2a2650; text-shadow: none; }
  h1::before, h1::after { color: #888; }
  .sub { color: #555; }
  h2 { color: #5d4a8f; }
  h3 { color: #7a6840; }
  .card {
    background: white !important;
    border: 1px solid #ddd;
    box-shadow: none;
    backdrop-filter: none;
    break-inside: avoid;
    margin-bottom: 14px;
    padding: 18px;
    color: #222;
  }
  .chart-info { background: #faf7ed; color: #333; }
  .chart-info strong { color: #7a6840; }
  .actions, .hint, .input-card, .error, .tabs, #loadSabineBtn,
  #resetBtn, #calcBtn, #birthCalcBtn, #birthResetBtn, #pdfBtn { display: none !important; }
  button { display: none; }
  .hero { page-break-inside: avoid; border-color: #ddd; }
  .split { page-break-inside: avoid; }
  .split .mini { background: #fafafa; border-color: #e0e0e0; }
  .split .mini h4 { color: #5d4a8f; }
  .split .mini .donut-small .center { color: #2a2650; }
  .hero-donut .center .big { color: #2a2650; }
  .legend-item .label, .legend-item .cnt { color: #222; }
  table.res tbody tr:hover { background: transparent; }
  table.res { color: #222; }
  table.res th { color: #7a6840; }
  table.res .planet-cell .glyph { color: #5d4a8f; text-shadow: none; }
  .badge { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
