/* Zodiac Sign — editorial reading UI (article, not dashboard) */

:root {
  --zs-bg: #ffffff;
  --zs-ink: #101828;
  --zs-muted: #475467;
  --zs-line: rgba(16, 24, 40, 0.12);
  --zs-soft: #f5f7fb;
  --zs-radius: 14px;
  /* Be Vietnam Pro: clear Vietnamese diacritics; Noto Serif for titles */
  --zs-font: "Be Vietnam Pro", "Noto Sans", sans-serif;
  --zs-display: "Noto Serif", "Be Vietnam Pro", Georgia, serif;
  --zs-body-size: 1.0625rem;
  --zs-body-leading: 1.7;

  --zs-career: #2f6fed;
  --zs-love: #e86b6b;
  --zs-finance: #1f9d6a;
  --zs-health: #e08a2e;
  --zs-study: #7a5af8;
  --zs-family: #8b5e3c;

  --zs-up: #1f9d6a;
  --zs-down: #d14343;
  --zs-flat: #7a8499;
}

html[data-theme="dark"] {
  --zs-bg: #0f1219;
  --zs-ink: #f2f4f8;
  --zs-muted: #b0b8c9;
  --zs-line: rgba(255, 255, 255, 0.12);
  --zs-soft: #171c28;
}

body.zs-page {
  margin: 0;
  min-height: 100vh;
  color: var(--zs-ink);
  font-family: var(--zs-font);
  font-size: var(--zs-body-size);
  line-height: var(--zs-body-leading);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(720px 360px at 0% 0%, rgba(47, 111, 237, 0.06), transparent 55%),
    radial-gradient(560px 320px at 100% 0%, rgba(232, 107, 107, 0.05), transparent 50%),
    var(--zs-bg);
  background-attachment: fixed;
}

.zs-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 12px 36px;
}

/* Top chrome: back to modes + config */
.zs-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  min-height: 36px;
}

.zs-chrome[hidden] { display: none !important; }

.zs-chrome__spacer { flex: 1 1 auto; }

.zs-gate__title {
  margin: 8px 0 4px;
  font-family: var(--zs-display);
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--zs-ink);
}

.zs-gate__hint {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--zs-muted);
}

.zs-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.zs-mode-card {
  --card-accent: var(--zs-career);
  --card-tint: color-mix(in srgb, var(--card-accent) 14%, var(--zs-bg));
  --card-tint-2: color-mix(in srgb, var(--card-accent) 6%, var(--zs-soft));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
  min-height: 148px;
  overflow: hidden;
  text-align: left;
  padding: 16px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, var(--zs-line));
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--card-tint), transparent 58%),
    linear-gradient(165deg, var(--card-tint-2), var(--zs-bg) 55%);
  color: var(--zs-ink);
  font-family: var(--zs-font);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition:
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background 0.22s ease;
  animation: zs-rise 0.45s ease both;
  isolation: isolate;
}

.zs-mode-card--map { --card-accent: #2f6fed; }
.zs-mode-card--daily { --card-accent: #e08a2e; }
.zs-mode-card--personal { --card-accent: #3d6b8c; }
.zs-mode-card--compat { --card-accent: #e86b6b; }

.zs-mode-card:nth-child(2) { animation-delay: 0.04s; }
.zs-mode-card:nth-child(3) { animation-delay: 0.08s; }
.zs-mode-card:nth-child(4) { animation-delay: 0.12s; }

.zs-mode-card__art {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 108px;
  height: 108px;
  color: var(--card-accent);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.zs-mode-card__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.zs-mode-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: calc(100% - 28px);
  padding-top: 36px;
}

.zs-mode-card__title {
  font-family: var(--zs-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--zs-ink);
}

.zs-mode-card__desc {
  font-family: var(--zs-font);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--zs-muted);
  line-height: 1.4;
}

.zs-mode-card:hover,
.zs-mode-card:focus-visible {
  border-color: color-mix(in srgb, var(--card-accent) 55%, var(--zs-line));
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--card-accent) 18%, transparent),
    0 2px 6px rgba(16, 24, 40, 0.06);
  transform: translateY(-3px);
  outline: none;
  background:
    radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--card-accent) 22%, var(--zs-bg)), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--card-accent) 10%, var(--zs-soft)), var(--zs-bg) 58%);
}

.zs-mode-card:hover .zs-mode-card__art,
.zs-mode-card:focus-visible .zs-mode-card__art {
  transform: translate3d(-4px, 4px, 0) scale(1.08);
  opacity: 1;
}

.zs-mode-card:hover .zs-mode-card__title,
.zs-mode-card:focus-visible .zs-mode-card__title {
  color: color-mix(in srgb, var(--card-accent) 35%, var(--zs-ink));
}

.zs-mode-card:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

@media (max-width: 520px) {
  .zs-mode-card {
    min-height: 132px;
  }
  .zs-mode-card__art {
    width: 96px;
    height: 96px;
  }
}

.zs-home-actions--gate {
  margin-top: 4px;
}

.zs-brand--compact {
  align-items: center;
  margin-bottom: 8px;
}

.zs-brand__title--sm {
  font-size: clamp(1.4rem, 3.5vw, 1.7rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.zs-dialog__panel--config .zs-lang-bar,
.zs-dialog__panel--config .zs-birth-bar {
  margin: 0 0 14px;
}

.zs-dialog__panel--config .zs-birth-bar {
  border-top: 0;
  padding-top: 0;
}

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

/* Legacy mode tabs (kept for any residual markup) */
.zs-mode-nav {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 12px;
  background: var(--zs-soft);
  animation: zs-rise 0.45s ease both;
}

.zs-mode-nav__btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--zs-muted);
  font-family: var(--zs-font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.zs-mode-nav__btn.is-active {
  background: var(--zs-bg);
  color: var(--zs-ink);
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.08);
}

html[data-theme="dark"] .zs-mode-nav__btn.is-active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Compatibility form */
.zs-compat-form {
  display: grid;
  gap: 18px;
  margin: 8px 0 12px;
}

.zs-compat-person {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--zs-line);
  padding-top: 14px;
}

.zs-compat-person legend {
  padding: 0;
  font-family: var(--zs-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--zs-ink);
}

.zs-compat-hint {
  margin: 6px 0 12px;
  font-size: 0.9rem;
  color: var(--zs-muted);
}

.zs-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--zs-muted);
}

.zs-field input,
.zs-field select {
  font-family: var(--zs-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--zs-ink);
  background: var(--zs-soft);
  border: 1px solid var(--zs-line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.zs-field input:focus,
.zs-field select:focus {
  outline: 2px solid color-mix(in srgb, var(--zs-love) 45%, transparent);
  outline-offset: 1px;
}

#zs-compat-result {
  margin-top: 20px;
  animation: zs-rise 0.5s ease both;
}

#zs-compat-result .zs-ov-row {
  cursor: default;
  pointer-events: none;
}

#zs-compat-article {
  margin-top: 8px;
}

/* Brand */
.zs-brand {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: center;
  margin-bottom: 16px;
  animation: zs-rise 0.5s ease both;
}

.zs-brand__mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--zs-soft);
  overflow: hidden;
}

.zs-brand__mark.has-sign {
  background: color-mix(in srgb, var(--zs-career) 10%, transparent);
}

.zs-brand__logo,
.zs-brand__sign {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.zs-brand__sign {
  width: 48px;
  height: 48px;
}

.zs-brand__eyebrow {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zs-muted);
}

.zs-brand__eyebrow[hidden] { display: none !important; }

.zs-brand__title {
  margin: 0;
  font-family: var(--zs-display);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.zs-brand__sub {
  margin: 4px 0 0;
  color: var(--zs-muted);
  font-size: 0.92rem;
}

.zs-brand__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 6px 6px;
  max-width: 240px;
}

.zs-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zs-soft);
  color: var(--zs-career);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
}

.zs-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-user__name {
  margin: 0;
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.zs-user__sub {
  margin: 1px 0 0;
  color: var(--zs-muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Controls */
.zs-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--zs-soft);
  gap: 2px;
}

.zs-seg__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--zs-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.zs-seg__btn.is-active {
  background: var(--zs-ink);
  color: #fff;
}

html[data-theme="dark"] .zs-seg__btn.is-active {
  background: #fff;
  color: #152033;
}

.zs-btn {
  appearance: none;
  border: 0;
  background: var(--zs-soft);
  color: var(--zs-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s, background 0.15s;
}

.zs-btn:hover { transform: translateY(-1px); }

.zs-btn--primary {
  background: var(--zs-career);
  color: #fff;
}

.zs-btn--soft {
  background: color-mix(in srgb, var(--zs-career) 12%, transparent);
  color: var(--zs-career);
}

.zs-btn--ghost { background: transparent; color: var(--zs-muted); }

.zs-status {
  margin: 0 0 18px;
  color: var(--zs-muted);
  font-size: 0.82rem;
  min-height: 1.2em;
}

.zs-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zs-muted);
}

.zs-ed-title {
  margin: 0;
  font-family: var(--zs-display);
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--zs-ink);
}

.zs-section__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.zs-section__hint {
  margin: 0;
  color: var(--zs-muted);
  font-size: 0.84rem;
}

.zs-section__hint--flush {
  margin: -2px 0 12px;
}

.zs-muted { color: var(--zs-muted); }

.zs-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  align-items: center;
}

.zs-home-actions[hidden] { display: none !important; }

.zs-lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--zs-line);
  border-radius: 12px;
  background: var(--zs-soft);
  animation: zs-rise 0.4s ease both;
}

.zs-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.zs-lang__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--zs-bg);
  color: var(--zs-career);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.06);
}

.zs-lang__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zs-muted);
  white-space: nowrap;
}

.zs-lang__select {
  border: 0;
  background: var(--zs-bg);
  color: var(--zs-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px;
  min-width: 10.5rem;
  max-width: min(100%, 16rem);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--zs-line);
}

.zs-lang__select:focus {
  outline: 2px solid rgba(47, 111, 237, 0.35);
  outline-offset: 2px;
}

.zs-lang-bar__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--zs-muted);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .zs-lang-bar {
    align-items: stretch;
  }
  .zs-lang {
    flex-wrap: wrap;
  }
  .zs-lang__select {
    flex: 1 1 100%;
    max-width: none;
  }
  .zs-lang-bar__hint {
    white-space: normal;
  }
}

.zs-birth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 0;
  border-top: 1px solid var(--zs-line);
  border-bottom: 1px solid var(--zs-line);
}

.zs-birth-bar__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zs-muted);
}

.zs-birth-bar__input {
  font-family: var(--zs-font);
  font-size: 0.95rem;
  color: var(--zs-ink);
  background: var(--zs-soft);
  border: 1px solid var(--zs-line);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 10.5rem;
}

.zs-birth-bar__meta {
  font-size: 0.88rem;
  color: var(--zs-muted);
  flex: 1 1 auto;
}

.zs-ov-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 4px 0 8px;
  padding: 4px 0 2px;
  border-top: 1px solid var(--zs-line);
}

/* Reading: circular domain scores — one row */
.zs-ring-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 4px;
  padding: 8px 0 4px;
  border-top: 1px solid var(--zs-line);
}

.zs-ring {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 6px 2px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border-radius: 12px;
  min-width: 0;
  transition: background 0.15s, transform 0.15s;
}

.zs-ring:hover {
  background: color-mix(in srgb, var(--dom-color, var(--zs-career)) 8%, transparent);
}

.zs-ring.is-active {
  background: color-mix(in srgb, var(--dom-color, var(--zs-career)) 12%, transparent);
}

.zs-ring.is-active .zs-ring__name {
  color: var(--dom-color, var(--zs-ink));
}

.zs-ring__chart {
  width: 52px;
  height: 52px;
  display: block;
}

.zs-ring__track {
  fill: none;
  stroke: rgba(21, 32, 51, 0.1);
  stroke-width: 5;
}

html[data-theme="dark"] .zs-ring__track {
  stroke: rgba(255, 255, 255, 0.12);
}

.zs-ring__value {
  fill: none;
  stroke: var(--dom-color, var(--zs-career));
  stroke-width: 5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.4s ease;
}

.zs-ring__score {
  font-family: var(--zs-display);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  fill: var(--zs-ink);
}

.zs-ring__name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--zs-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.zs-article.is-focus {
  outline: 2px solid color-mix(in srgb, var(--dom-color, var(--zs-career)) 45%, transparent);
  outline-offset: 6px;
  border-radius: 8px;
}

.zs-ov-cell {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 10px 4px 8px;
  display: grid;
  justify-items: center;
  gap: 2px;
  border-radius: 10px;
  min-width: 0;
  transition: background 0.15s;
}

.zs-ov-cell:hover {
  background: color-mix(in srgb, var(--dom-color, var(--zs-career)) 8%, transparent);
}

.zs-ov-cell__name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--zs-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.zs-ov-cell__score {
  font-family: var(--zs-display);
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--dom-color, var(--zs-ink));
}

.zs-ov-cell__trend {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.zs-seg--chart {
  margin: 14px 0 6px;
  width: 100%;
  max-width: 360px;
}

.zs-probe-birth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}

.zs-probe-birth[hidden] { display: none !important; }

.zs-probe-birth__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zs-muted);
}

.zs-probe-birth__input {
  font-family: var(--zs-font);
  font-size: 0.95rem;
  color: var(--zs-ink);
  background: var(--zs-soft);
  border: 1px solid var(--zs-line);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 10.5rem;
}

.zs-chart-mode-hint {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: var(--zs-muted);
  max-width: 38em;
}

.zs-home-cta {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* Editorial block */
.zs-ed-block {
  margin: 8px 0 28px;
  padding-bottom: 8px;
  animation: zs-rise 0.55s ease both;
}

.zs-rule {
  border: 0;
  border-top: 1px solid var(--zs-line);
  margin: 28px 0;
}

/* Score hero — Apple Health style */
.zs-score-hero {
  display: grid;
  gap: 6px;
  margin: 18px 0 22px;
  padding: 18px 0;
  border-top: 1px solid var(--zs-line);
  border-bottom: 1px solid var(--zs-line);
  justify-items: start;
}

.zs-score-hero[hidden] { display: none !important; }

.zs-score-hero--inline {
  margin-top: 16px;
}

.zs-score-hero__n {
  font-family: var(--zs-display);
  font-size: clamp(2.8rem, 8vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--zs-ink);
}

.zs-score-hero__stars {
  color: #c9a227;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}

.zs-score-hero__band {
  font-weight: 600;
  font-size: 1rem;
  color: var(--zs-muted);
}

.zs-score-hero__bar {
  display: block;
  width: min(100%, 280px);
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(21, 32, 51, 0.08);
  overflow: hidden;
}

html[data-theme="dark"] .zs-score-hero__bar {
  background: rgba(255, 255, 255, 0.1);
}

.zs-score-hero__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--zs-career);
  transition: width 0.45s ease;
}

/* Overview rows — text, not cards */
.zs-ov-list {
  display: grid;
  gap: 0;
}

.zs-ov-row {
  appearance: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--zs-line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas:
    "icon name score trend"
    "icon bar bar bar";
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  transition: background 0.15s;
  border-radius: 0;
}

.zs-ov-row:hover {
  background: color-mix(in srgb, var(--dom-color, var(--zs-career)) 5%, transparent);
}

.zs-ov-row.is-active {
  background: color-mix(in srgb, var(--dom-color, var(--zs-career)) 8%, transparent);
}

.zs-ov-row.is-active .zs-ov-row__name {
  color: var(--dom-color);
}

.zs-ov-row__icon {
  grid-area: icon;
  font-size: 1.15rem;
  line-height: 1;
  width: 1.4em;
  text-align: center;
}

.zs-ov-row__name {
  grid-area: name;
  font-weight: 650;
  font-size: 1rem;
  color: var(--zs-ink);
}

.zs-ov-row__score {
  grid-area: score;
  font-family: var(--zs-display);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--dom-color, var(--zs-ink));
}

.zs-ov-row__trend {
  grid-area: trend;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 1.2em;
  text-align: center;
}

.zs-ov-row__bar {
  grid-area: bar;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(21, 32, 51, 0.08);
  overflow: hidden;
}

html[data-theme="dark"] .zs-ov-row__bar {
  background: rgba(255, 255, 255, 0.1);
}

.zs-ov-row__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dom-color, var(--zs-career));
  transition: width 0.45s ease;
}

.zs-trend-arrow.up { color: var(--zs-up); }
.zs-trend-arrow.down { color: var(--zs-down); }
.zs-trend-arrow.flat { color: var(--zs-flat); }

/* Reading sign header */
.zs-read-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.zs-article-sign {
  margin-bottom: 18px;
  animation: zs-rise 0.5s ease both;
}

.zs-article-sign__mark {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

.zs-article-sign__mark svg {
  width: 72px;
  height: 72px;
}

.zs-article-sign__title {
  margin: 0;
  font-family: var(--zs-display);
  font-size: clamp(2.1rem, 5.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--zs-ink);
}

.zs-article-sign__sub {
  margin: 8px 0 0;
  color: var(--zs-muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Day navigator — light strip, no card */
.zs-daynav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  margin: 8px 0 18px;
  padding: 4px 0;
}

.zs-daynav[hidden] { display: none !important; }

.zs-daynav__arrow {
  appearance: none;
  border: 0;
  background: var(--zs-soft);
  border-radius: 12px;
  width: 36px;
  height: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  color: inherit;
}

.zs-daynav__strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
}

.zs-day {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 6px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  flex: 0 0 52px;
  scroll-snap-align: center;
  transition: background 0.15s;
}

.zs-day:hover { background: var(--zs-soft); }

.zs-day.is-active {
  background: color-mix(in srgb, var(--zs-career) 12%, transparent);
}

.zs-day__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--zs-muted);
  text-transform: uppercase;
}

.zs-day__score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

/* Domain article */
.zs-article {
  margin: 8px 0 36px;
  animation: zs-rise 0.55s ease both;
}

.zs-article[hidden] { display: none !important; }

.zs-article__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.zs-article__hero {
  padding: 8px 0 4px;
  --dom-color: var(--zs-career);
}

.zs-article__icon {
  margin: 0 0 8px;
  font-size: 2.4rem;
  line-height: 1;
}

.zs-article__title {
  margin: 0;
  font-family: var(--zs-display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--dom-color);
}

.zs-article__meta {
  margin: 8px 0 0;
  color: var(--zs-muted);
  font-size: 1rem;
  font-weight: 500;
}

.zs-article__hero .zs-score-hero {
  margin-top: 20px;
}

.zs-article__hero .zs-score-hero__bar i {
  background: var(--dom-color);
}

.zs-article__lede {
  margin: 16px 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--zs-ink);
  max-width: 38em;
}

/* Prose sections — blog-like */
.zs-prose {
  margin: 0;
  padding: 28px 0 4px;
  border-top: 1px solid var(--zs-line);
}

.zs-prose:first-of-type {
  margin-top: 8px;
}

.zs-prose h3 {
  margin: 0 0 14px;
  font-family: var(--zs-display);
  font-size: clamp(1.35rem, 2.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--zs-ink);
}

.zs-prose h3.zs-prose__label {
  font-family: var(--zs-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zs-muted);
}

.zs-prose p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--zs-ink);
  max-width: 40em;
}

.zs-prose ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.zs-prose li {
  position: relative;
  padding-left: 1.15em;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--zs-ink);
  max-width: 40em;
}

.zs-prose li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--dom-color, var(--zs-muted));
  font-weight: 700;
}

.zs-bullet-text { display: block; }

.zs-cite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.zs-cite {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 2px 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--dom-color, #6b8cae) 12%, var(--zs-soft));
  color: var(--zs-muted);
  max-width: 100%;
  word-break: break-word;
}

.zs-cite::before {
  content: "Dẫn chứng · ";
  opacity: 0.75;
  font-weight: 600;
}

/* Insight card — the ONLY card in the reading */
.zs-insight {
  margin: 28px 0 8px;
  padding: 18px 20px;
  border-radius: var(--zs-radius);
  background: var(--zs-soft);
  border-left: 3px solid var(--dom-color, var(--zs-career));
}

.zs-insight__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dom-color, var(--zs-career));
}

.zs-insight p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* More / charts — secondary, no cards */
.zs-more {
  margin: 36px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--zs-line);
  animation: zs-rise 0.6s ease both;
}

.zs-more__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 16px;
}

.zs-more__h {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--zs-muted);
}

.zs-chart-caption {
  margin: 8px 0 0;
  color: var(--zs-muted);
  font-size: 0.78rem;
}

.zs-trend {
  height: 140px;
}

.zs-trend svg {
  width: 100%;
  height: 100%;
  display: block;
}

.zs-radar-wrap {
  display: grid;
  place-items: center;
}

#zs-radar {
  width: min(100%, 280px);
  height: auto;
}

/* Sign atlas — interactive tiles OK */
.zs-atlas {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--zs-line);
}

.zs-atlas--only {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 0;
}

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

.zs-card {
  appearance: none;
  width: 100%;
  border: 1px solid var(--zs-line);
  border-radius: var(--zs-radius);
  background: var(--zs-bg);
  padding: 16px 10px 14px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
  color: inherit;
  font: inherit;
}

.zs-card:hover {
  transform: translateY(-2px);
  background: var(--zs-soft);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.07);
}

.zs-card.is-user {
  border-color: color-mix(in srgb, var(--zs-career) 55%, transparent);
  background: color-mix(in srgb, var(--zs-career) 6%, transparent);
}

.zs-card__art {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  display: block;
}

.zs-card__name {
  margin: 0;
  font-family: var(--zs-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--zs-ink);
}

.zs-card__en {
  margin: 3px 0 0;
  color: var(--zs-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.zs-card__dates {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: var(--zs-muted);
}

.zs-card__badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zs-career);
}

.zs-footer-note {
  margin-top: 28px;
  color: var(--zs-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.zs-footer-note a { color: var(--zs-career); }

.zs-tech {
  margin: 10px auto 0;
  max-width: 28rem;
  color: var(--zs-muted);
  font-size: 0.72rem;
  text-align: center;
}

.zs-tech summary {
  cursor: pointer;
  list-style: none;
  opacity: 0.7;
}

.zs-tech summary::-webkit-details-marker { display: none; }

.zs-tech p {
  margin: 6px 0 0;
  opacity: 0.75;
}

.zs-sky-block {
  margin-bottom: 8px;
}

.zs-sky-planets {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 12px;
}

.zs-sky-map {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}

.zs-sky-map .zs-sky-planets {
  margin: 0;
}

.zs-sky-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.zs-sky-layer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--zs-muted);
  cursor: pointer;
}

.zs-sky-layer input {
  accent-color: var(--zs-career);
}

.zs-celestial-wrap {
  width: 100%;
  animation: zs-rise 0.55s ease both;
}

.zs-celestial {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.zs-celestial__star { fill: #f2f6ff; }

.zs-celestial__grid {
  stroke: rgba(210, 220, 240, 0.08);
  stroke-width: 1;
}

.zs-celestial__grid--h {
  stroke: rgba(210, 220, 240, 0.06);
  stroke-dasharray: 2 4;
}

.zs-celestial__ecliptic {
  stroke: rgba(232, 201, 122, 0.8);
  stroke-width: 1.35;
  stroke-dasharray: 5 4;
}

.zs-celestial__tick {
  stroke: rgba(232, 201, 122, 0.35);
  stroke-width: 1;
}

.zs-celestial__deg {
  fill: rgba(210, 220, 240, 0.5);
  font-size: 8px;
  font-family: var(--zs-font);
}

.zs-celestial__sign {
  fill: rgba(232, 201, 122, 0.92);
  font-size: 13px;
  font-family: var(--zs-display);
}

.zs-celestial__sign-name {
  fill: rgba(210, 220, 240, 0.42);
  font-size: 7px;
  font-family: var(--zs-font);
}

.zs-celestial__aspect {
  fill: none;
  stroke-width: 1.35;
  stroke-opacity: 0.85;
}

.zs-celestial__aspect.is-conjunction {
  stroke: #f0d090;
  stroke-dasharray: none;
  stroke-width: 1.8;
}

.zs-celestial__aspect.is-sextile {
  stroke: #7ec8a3;
  stroke-dasharray: 4 3;
}

.zs-celestial__aspect.is-trine {
  stroke: #7ec8a3;
  stroke-dasharray: 1.5 3.5;
}

.zs-celestial__aspect.is-square {
  stroke: #e86b6b;
  stroke-dasharray: 5 2;
}

.zs-celestial__aspect.is-opposition {
  stroke: #e86b6b;
  stroke-dasharray: none;
  stroke-width: 2;
}

.zs-celestial__aspect-label {
  font-size: 8px;
  font-family: var(--zs-font);
  font-weight: 700;
  fill: rgba(245, 247, 251, 0.75);
}

.zs-celestial__aspect-label.is-square,
.zs-celestial__aspect-label.is-opposition { fill: #ffb0a8; }

.zs-celestial__aspect-label.is-trine,
.zs-celestial__aspect-label.is-sextile { fill: #a8e0c4; }

.zs-celestial__aspect-label.is-conjunction { fill: #f0d090; }

.zs-celestial__planet {
  cursor: pointer;
}

.zs-celestial__planet.is-active .zs-celestial__body {
  stroke: #fff;
  stroke-width: 1.5;
}

.zs-celestial__rx-ring {
  fill: none;
  stroke: #ff6b5a;
  stroke-width: 1.6;
  opacity: 0.9;
}

.zs-celestial__rx-badge {
  fill: #ff6b5a;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--zs-font);
}

.zs-celestial__glyph {
  fill: #f5f7fb;
  font-size: 12px;
  font-family: var(--zs-display);
  paint-order: stroke;
  stroke: rgba(7, 16, 31, 0.85);
  stroke-width: 2.5px;
  pointer-events: none;
}

.zs-celestial__glyph.is-rx { fill: #ffb4a8; }

.zs-celestial__plabel,
.zs-celestial__pdeg {
  fill: rgba(245, 247, 251, 0.78);
  font-family: var(--zs-font);
  pointer-events: none;
}

.zs-celestial__plabel { font-size: 8.5px; font-weight: 700; }
.zs-celestial__pdeg { font-size: 7.5px; fill: rgba(210, 220, 240, 0.55); }

.zs-celestial__caption {
  fill: rgba(210, 220, 240, 0.55);
  font-size: 9px;
  font-family: var(--zs-font);
}

.zs-sky-map__side {
  display: grid;
  gap: 10px;
}

.zs-sky-detail {
  min-height: 72px;
}

.zs-sky-detail__hint {
  margin: 0;
  color: var(--zs-muted);
  font-size: 0.88rem;
}

.zs-sky-detail__card {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--zs-soft) 88%, #0c1a33 12%);
  border: 1px solid var(--zs-line);
}

.zs-sky-detail__title {
  margin: 0 0 8px;
  font-family: var(--zs-display);
  font-size: 1.05rem;
}

.zs-sky-detail__rx {
  color: #d14343;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--zs-font);
}

.zs-sky-detail__dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 0;
}

.zs-sky-detail__dl dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--zs-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zs-sky-detail__dl dd {
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.zs-sky-detail__asp {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--zs-muted);
}

.zs-sky-planet {
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.zs-sky-planet.is-active,
.zs-sky-planet:hover {
  background: color-mix(in srgb, var(--zs-soft) 80%, var(--zs-love) 8%);
}

.zs-sky-read__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--zs-ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.zs-sky-read__list li { margin: 0.2rem 0; }

/* Single column: map full-width, then detail + planet list — easier to scan */

.zs-sky-planet {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.zs-sky-planet__glyph {
  font-size: 1.05rem;
  opacity: 0.85;
}

.zs-sky-planet__name {
  font-weight: 600;
}

.zs-sky-planet__sign {
  color: var(--zs-muted);
  width: 100%;
  padding-left: 1.4em;
  font-size: 0.86rem;
}

.zs-kicker--sub {
  margin-top: 12px;
}

.zs-ver-badge {
  appearance: none;
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.12em 0.45em;
  font-size: 0.42em;
  font-weight: 700;
  font-family: var(--zs-font);
  letter-spacing: 0.04em;
  line-height: 1;
  vertical-align: middle;
  color: var(--zs-career);
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--zs-career) 40%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--zs-career) 10%, transparent);
  transition: background 0.15s ease, transform 0.15s ease;
}

.zs-ver-badge:hover,
.zs-ver-badge:focus-visible {
  background: color-mix(in srgb, var(--zs-career) 18%, transparent);
  outline: none;
}

.zs-ver-badge:active { transform: translateY(1px); }

.zs-v2-list {
  margin: 10px 0 12px;
  padding: 0 0 0 1.15rem;
  color: var(--zs-ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.zs-v2-list li { margin: 0.35em 0; }

.zs-doc-links {
  margin: 0;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.zs-doc-links a {
  color: var(--zs-career);
  font-weight: 600;
  text-decoration: none;
}

.zs-doc-links a:hover { text-decoration: underline; }

/* V2 what's-new dialog */
.zs-dialog[hidden] { display: none !important; }

.zs-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.zs-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 28, 0.48);
  backdrop-filter: blur(2px);
}

.zs-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  background: var(--zs-bg);
  color: var(--zs-ink);
  border: 1px solid var(--zs-line);
  border-radius: calc(var(--zs-radius) + 4px);
  box-shadow: 0 18px 48px rgba(12, 16, 28, 0.22);
  padding: 1.15rem 1.25rem 1.35rem;
  animation: zs-rise 0.22s ease;
}

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

.zs-dialog__head .zs-ed-title {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
}

.zs-dialog__close {
  appearance: none;
  border: 0;
  background: var(--zs-soft);
  color: var(--zs-muted);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.zs-dialog__close:hover,
.zs-dialog__close:focus-visible {
  color: var(--zs-ink);
  outline: none;
}

.zs-dialog__body .zs-section__hint {
  margin-top: 0.25rem;
}

body.zs-dialog-open {
  overflow: hidden;
}

.zs-home-natal {
  margin: 14px 0 4px;
}

.zs-natal-block {
  margin-bottom: 20px;
}

.zs-natal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 16px 20px;
  align-items: start;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .zs-natal-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .zs-natal-table-wrap { width: 100%; }
}

.zs-natal-wheel-wrap {
  display: flex;
  justify-content: center;
}

.zs-natal-wheel {
  max-width: 100%;
  height: auto;
}

.zs-wheel__ring {
  fill: none;
  stroke: var(--zs-line);
  stroke-width: 1.25;
}

.zs-wheel__ring--inner {
  stroke-opacity: 0.7;
}

.zs-wheel__house {
  fill: color-mix(in srgb, var(--zs-soft) 80%, transparent);
  stroke: var(--zs-line);
  stroke-width: 0.6;
}

.zs-wheel__house--alt {
  fill: color-mix(in srgb, var(--zs-career) 6%, var(--zs-soft));
}

.zs-wheel__label {
  font-size: 8px;
  fill: var(--zs-muted);
  font-family: var(--zs-font);
}

.zs-wheel__angle {
  font-size: 11px;
  font-weight: 700;
  fill: var(--zs-ink);
  font-family: var(--zs-font);
}

.zs-wheel__planet {
  font-size: 14px;
  fill: var(--zs-ink);
  font-weight: 600;
}

.zs-wheel__planet.is-rx {
  fill: var(--zs-down);
}

.zs-natal-table-wrap {
  overflow-x: auto;
}

.zs-natal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.zs-natal-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zs-muted);
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid var(--zs-line);
}

.zs-natal-td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--zs-line);
  vertical-align: baseline;
}

.zs-natal-td--glyph {
  width: 1.5rem;
  opacity: 0.85;
}

.zs-natal-td--num {
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 2.5rem;
}

.zs-natal-aspects {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}

.zs-natal-aspect__type {
  color: var(--zs-career);
  font-weight: 600;
}

.zs-sky-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.zs-sky-chip {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--zs-career, #3d6b8c);
  background: none;
  border: none;
  border-radius: 0;
}

.zs-sky-chip--alert {
  color: var(--zs-health, #b85c38);
  background: none;
  border: none;
}

.zs-sky-chip--soft {
  color: var(--zs-finance, #2f8f5b);
  background: none;
  border: none;
}

.zs-cond-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zs-muted);
  border: 1px solid var(--zs-line);
  border-radius: 3px;
  vertical-align: middle;
  opacity: 0.85;
}

.zs-prose li .zs-cond-tag {
  margin-top: 2px;
}

.zs-basis {
  margin: 28px 0 8px;
  padding: 14px 0 0;
  border-top: 1px solid var(--zs-line);
}

.zs-basis summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zs-muted);
  list-style: none;
}

.zs-basis summary::-webkit-details-marker { display: none; }

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

.zs-basis__item {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--zs-muted);
  padding-left: 1.1em;
  position: relative;
}

.zs-basis__item::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--dom-color, var(--zs-muted));
  font-weight: 700;
}

.zs-prose__trend {
  white-space: pre-wrap;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--zs-ink);
}

.zs-status--quiet:empty {
  display: none;
}

.zs-atlas--only ~ .zs-status,
.zs-screen[data-screen="home"] .zs-status--quiet {
  display: none;
}

.zs-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 14px;
  animation: zs-rise 0.4s ease both;
}

.zs-status-chip {
  border: 1px solid var(--zs-line);
  background: var(--zs-soft);
  color: var(--zs-muted);
  font-family: var(--zs-font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.zs-status-chip:hover {
  color: var(--zs-ink);
  border-color: color-mix(in srgb, var(--zs-love) 35%, var(--zs-line));
}

.zs-status-chip.is-active {
  background: color-mix(in srgb, var(--zs-love) 14%, var(--zs-bg));
  color: var(--zs-ink);
  border-color: color-mix(in srgb, var(--zs-love) 45%, transparent);
}

/* Soft reload: keep reading visible while refetching */
#zs-detail-panel.is-refreshing {
  opacity: 0.55;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.zs-status-focus {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--zs-love) 28%, var(--zs-line));
  background: color-mix(in srgb, var(--zs-love) 8%, var(--zs-bg));
  animation: zs-rise 0.35s ease both;
}

.zs-status-focus .zs-prose__label {
  margin: 0 0 8px;
  color: var(--zs-love, var(--dom-color));
}

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

.zs-status-focus__list li {
  line-height: 1.55;
  font-size: 0.95rem;
}

.zs-status-focus__list li::before {
  content: none;
}

.zs-advice-list li::before {
  content: "✓";
  color: var(--dom-color, var(--zs-career));
  font-size: 0.85em;
}

/* —— Rulership / dispositor / explain —— */
.zs-rule-block {
  margin-bottom: 20px;
}

.zs-rule-final {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--zs-line);
  border-bottom: 1px solid var(--zs-line);
}

.zs-rule-final__glyph {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--zs-ink);
}

.zs-rule-final__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zs-muted);
  font-family: var(--zs-font);
}

.zs-rule-final__name {
  margin: 2px 0 0;
  font-family: var(--zs-display, Fraunces, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--zs-ink);
}

.zs-rule-tips {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  color: var(--zs-ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.zs-rule-tips li + li { margin-top: 4px; }

.zs-rule-table-wrap { margin-top: 8px; }

.zs-rule-row--angular td {
  background: color-mix(in srgb, var(--zs-career) 7%, transparent);
}

.zs-rule-chains {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zs-rule-chain {
  font-size: 0.9rem;
  color: var(--zs-ink);
  line-height: 1.4;
}

.zs-rule-arrow {
  color: var(--zs-muted);
  margin: 0 2px;
}

.zs-rule-cite {
  margin-top: 12px;
  font-size: 0.78rem;
}

.zs-why {
  margin-top: 4px;
  font-size: 0.82rem;
}

.zs-why summary {
  cursor: pointer;
  color: var(--zs-muted);
  font-weight: 600;
  list-style: none;
}

.zs-why summary::-webkit-details-marker { display: none; }

.zs-why__body {
  margin-top: 4px;
  padding: 6px 0 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.zs-why__delta,
.zs-explain__delta {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 2.2rem;
}

.zs-why__delta.is-pos,
.zs-explain__delta.is-pos { color: #2a7a4b; }

.zs-why__delta.is-neg,
.zs-explain__delta.is-neg { color: #b04242; }

.zs-why__source,
.zs-explain__src {
  margin: 0;
  color: var(--zs-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.zs-explain {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--zs-line);
}

.zs-explain summary {
  cursor: pointer;
  font-family: var(--zs-display, Fraunces, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--zs-ink);
  list-style: none;
}

.zs-explain summary::-webkit-details-marker { display: none; }

.zs-explain__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zs-explain__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.zs-explain__label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--zs-ink);
  line-height: 1.35;
}

.zs-screen[hidden],
.zs-article[hidden],
.zs-daynav[hidden],
.zs-btn[hidden],
[hidden] { display: none !important; }

@keyframes zs-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .zs-more__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .zs-main { padding: 8px 10px 28px; }
  .zs-brand {
    grid-template-columns: auto 1fr;
  }
  .zs-brand__user {
    grid-column: 1 / -1;
    max-width: none;
    padding-left: 0;
  }
  .zs-grid { grid-template-columns: repeat(2, 1fr); }
  .zs-ov-strip { gap: 2px; }
  .zs-ov-cell { padding: 8px 2px; }
  .zs-ov-cell__score { font-size: 1.02rem; }
  .zs-ov-cell__name { font-size: 0.62rem; }
  .zs-birth-bar__meta { flex-basis: 100%; }
  .zs-ring-strip { gap: 2px; }
  .zs-ring__chart { width: 44px; height: 44px; }
  .zs-ring__score { font-size: 0.82rem; }
  .zs-ring__name { font-size: 0.6rem; }
  .zs-article__title { font-size: 2rem; }
}

/* —— Natal map tab —— */
.zs-map-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 8px 0 16px;
}

.zs-map-form .zs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--zs-muted);
}

.zs-map-form .zs-field input {
  font-family: var(--zs-font);
  font-size: 0.95rem;
  color: var(--zs-ink);
  border: 1px solid var(--zs-line);
  background: var(--zs-bg);
  padding: 8px 10px;
  border-radius: 8px;
}

.zs-map-form .zs-btn {
  height: 40px;
}

.zs-map-meta {
  margin: 4px 0 12px;
  font-size: 0.9rem;
  color: var(--zs-muted);
  line-height: 1.45;
}

.zs-map-meta p { margin: 0 0 2px; }
.zs-map-meta strong { color: var(--zs-ink); }

.zs-map-wheel-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 20px;
}

.zs-map-wheel {
  max-width: min(100%, 520px);
  height: auto;
}

.zs-map-wheel__ring {
  fill: none;
  stroke: var(--zs-line);
  stroke-width: 1.2;
}

.zs-map-wheel__ring--soft { stroke-opacity: 0.65; }

.zs-map-wheel__sign {
  fill: color-mix(in srgb, var(--zs-soft) 70%, transparent);
  stroke: var(--zs-line);
  stroke-width: 0.5;
}

.zs-map-wheel__sign.is-alt {
  fill: color-mix(in srgb, var(--zs-career) 5%, var(--zs-soft));
}

.zs-map-wheel__sign-glyph {
  font-size: 14px;
  fill: var(--zs-ink);
}

.zs-map-wheel__house {
  fill: color-mix(in srgb, var(--zs-bg) 80%, transparent);
  stroke: var(--zs-line);
  stroke-width: 0.45;
}

.zs-map-wheel__house.is-alt {
  fill: color-mix(in srgb, var(--zs-study) 6%, var(--zs-bg));
}

.zs-map-wheel__house-n {
  font-size: 11px;
  fill: #1e7a46;
  font-family: var(--zs-font);
  font-weight: 600;
}

.zs-map-wheel__asp {
  stroke-width: 1.1;
  stroke-opacity: 0.75;
}

.zs-map-wheel__asp.is-hard { stroke-opacity: 0.85; }
.zs-map-wheel__asp.is-soft { stroke-opacity: 0.7; }

.zs-map-wheel__planet {
  font-size: 16px;
  fill: var(--zs-ink);
  font-weight: 600;
}

.zs-map-wheel__planet.is-rx { fill: #b04242; }

.zs-map-wheel__angle {
  font-size: 11px;
  fill: var(--zs-muted);
  font-family: var(--zs-font);
  font-weight: 700;
}

.zs-map-panels {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.15fr) minmax(220px, 0.9fr);
  gap: 28px 32px;
  align-items: start;
  margin-bottom: 32px;
}

@media (max-width: 1100px) {
  .zs-map-panels {
    grid-template-columns: 1fr 1fr;
  }
  .zs-map-panel:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .zs-map-panels { grid-template-columns: 1fr; }
  .zs-map-panel:last-child { max-width: none; }
}

.zs-map-panel {
  min-width: 0;
  overflow: hidden;
}

.zs-map-plist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.zs-map-plist__item {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--zs-line) 70%, transparent);
}

.zs-map-plist__glyph {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--zs-ink);
}

.zs-map-plist__main {
  min-width: 0;
}

.zs-map-plist__name {
  margin: 0;
  font-weight: 600;
  color: var(--zs-ink);
  font-size: 0.92rem;
  line-height: 1.3;
}

.zs-map-plist__meta {
  margin: 3px 0 0;
  color: var(--zs-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.zs-map-rx {
  margin-left: 4px;
  color: #b04242;
  font-weight: 700;
  font-size: 0.75rem;
}

.zs-map-dig {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--zs-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.zs-map-dig--domicile,
.zs-map-dig--exaltation { color: #1e7a46; }
.zs-map-dig--fall,
.zs-map-dig--detriment { color: #b04242; }

.zs-map-grid-scroll {
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.zs-map-grid {
  border-collapse: collapse;
  font-size: 0.78rem;
  margin: 0;
}

.zs-map-grid th,
.zs-map-grid td {
  width: 1.7rem;
  height: 1.7rem;
  min-width: 1.7rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid color-mix(in srgb, var(--zs-line) 80%, transparent);
  padding: 0;
}

.zs-map-grid th {
  background: var(--zs-soft);
  color: var(--zs-ink);
  font-weight: 600;
}

.zs-map-grid__diag { background: color-mix(in srgb, var(--zs-line) 35%, transparent); }
.zs-map-grid__empty { background: transparent; border-color: transparent; }
.zs-map-grid__cell { font-size: 0.95rem; font-weight: 700; }

.zs-map-legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--zs-ink);
}

.zs-map-legend li {
  white-space: nowrap;
}

.zs-map-balance {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.82rem;
  table-layout: fixed;
}

.zs-map-balance th,
.zs-map-balance td {
  border: 1px solid var(--zs-line);
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
}

.zs-map-balance th {
  background: var(--zs-soft);
  font-weight: 600;
  color: var(--zs-ink);
}

.zs-map-balance td {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--zs-ink);
  line-height: 1.45;
  word-break: break-word;
}

.zs-map-form select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--zs-line);
  border-radius: 10px;
  background: var(--zs-bg);
  color: var(--zs-ink);
  font: inherit;
}

.zs-map-form .zs-field--wide {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .zs-map-form .zs-field--wide {
    grid-column: span 2;
  }
}

.zs-map-reading {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zs-line);
}

.zs-map-reading__head {
  margin-bottom: 1.25rem;
}

.zs-map-reading__title {
  font-family: var(--zs-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0.2rem 0 0.4rem;
  color: var(--zs-ink);
}

.zs-map-reading__meta {
  margin: 0;
  color: var(--zs-muted);
  font-size: 0.9rem;
}

.zs-map-reading__sec {
  margin: 0 0 1.4rem;
}

.zs-map-reading__sec-title {
  font-family: var(--zs-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--zs-ink);
}

.zs-map-reading__p {
  margin: 0 0 0.45rem;
  line-height: 1.65;
  color: var(--zs-ink);
  font-size: 1.02rem;
}

.zs-map-reading__cite {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--zs-muted);
}
