/* AstroCEO - Today page: sign header, business energy rings, yes and no for the day, Moon card (used by today.js) */
.td-head { text-align: center; padding: 22px 16px 24px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(120% 90% at 50% 120%, rgba(224, 177, 90, .30), rgba(224, 177, 90, .06) 55%, transparent 75%), linear-gradient(180deg, rgba(22, 29, 62, .92), rgba(14, 19, 42, .92)); overflow: hidden }
.td-sign { width: 132px; height: 132px; margin: 0 auto 4px; display: block; direction: ltr; overflow: visible }
.td-sign path { fill: none; stroke: #F4D58A; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: td-draw 1.8s ease forwards; filter: drop-shadow(0 0 5px rgba(244, 213, 138, .55)) }
.td-sign circle { fill: #F4D58A; opacity: 0; animation: td-dot .5s ease forwards, td-tw 3.2s ease-in-out 2.2s infinite }
.td-head h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 6px 0 10px }
.td-trio { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .95rem; color: var(--fg) }
.td-trio span { display: inline-flex; align-items: center; gap: 6px }
.td-trio i { font-style: normal; color: #E0B15A; font-size: 1.05rem }
.td-trio i.asc { font-size: .62rem; font-weight: 700; letter-spacing: .06em; border: 1px solid #E0B15A; border-radius: 6px; padding: 1px 4px }
.td-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 12px 34px; border-radius: 999px; border: 1px solid rgba(224, 177, 90, .75); color: var(--fg); text-decoration: none; font-weight: 600; background: rgba(224, 177, 90, .08); transition: background .2s, transform .2s }
.td-btn:hover { background: rgba(224, 177, 90, .18); transform: translateY(-1px) }
.td-btn svg { width: 22px; height: 22px }
.td-block { display: grid; gap: 14px }
#app .view > .td-head { order: -3 }
#app .view > .td-block { order: -2 }
#app .view > .td-head ~ .two { order: -1 }
.td-biz { margin-bottom: 16px }
.td-hid .lbl { color: var(--muted) }
.td-hid .meter i { background: rgba(255, 255, 255, .22); filter: blur(3px) }
.td-hid .val { font-size: .95rem }
.td-lockpill { background: rgba(224, 177, 90, .16); color: #F4D58A }
.td-more { margin-top: 16px; display: flex; justify-content: center }
.td-more .btn { min-width: 200px; text-align: center }
.td-nlock { display: block; text-decoration: none; color: inherit }
.td-nlock h3 .pill { margin-inline-start: auto; font-family: var(--body, inherit); font-size: .72rem }
.td-nlock li { align-items: center }
.td-ph { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .2); filter: blur(3px); max-width: 70% }
.td-biz h2 { font-family: var(--display); font-weight: 400 }
#app .view > .panel.hero.td-chartonly { display: block; padding-block: 0 }
#app .view > .panel.hero.td-chartonly:not(.has-mini) { display: none }
.td-chartonly .mini-chart { border: 0; padding: 0; max-width: 320px; margin: 0 auto }
.td-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: linear-gradient(180deg, rgba(22, 29, 62, .92), rgba(14, 19, 42, .92)); min-width: 0 }
.td-card h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 0 }
.td-card .sub { color: var(--muted); font-size: .84rem; margin: 4px 0 0 }
.td-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px }
.td-ring { text-align: center; min-width: 0 }
.td-ring .r { position: relative; width: 100%; max-width: 86px; aspect-ratio: 1; margin: 0 auto }
.td-ring svg { width: 100%; height: 100%; transform: rotate(-90deg) }
.td-ring circle.v { transition: stroke-dashoffset 1.5s cubic-bezier(.2, .8, .2, 1) }
.td-ring b { position: absolute; inset: 0; display: grid; place-content: center; font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums }
.td-ring span { display: block; margin-top: 8px; font-size: .78rem; line-height: 1.25; color: var(--fg) }
.td-yn h3 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; margin: 0 0 10px; display: flex; align-items: center; gap: 10px }
.td-yn h3 i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-content: center; font-size: .8rem; font-weight: 700; color: #0D1228; flex: none }
.td-yn .y h3 i { background: var(--great) }
.td-yn .n h3 i { background: var(--bad) }
.td-yn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px }
.td-yn li { display: flex; gap: 10px; align-items: baseline; font-size: .98rem }
.td-yn li::before { font-weight: 700; flex: none; width: 16px; text-align: center }
.td-yn .y li::before { content: "✓"; color: var(--great) }
.td-yn .n li::before { content: "✕"; color: var(--bad) }
.td-yn li em { font-style: normal; margin-inline-start: auto; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums }
.td-yn .n { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px }
.td-moon { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(224, 177, 90, .08); border: 1px solid rgba(224, 177, 90, .25) }
.td-moon svg { width: 54px; height: 54px; flex: none; direction: ltr }
.td-moon b { display: block; font-size: 1.05rem }
.td-moon span { color: var(--muted); font-size: .9rem }
.td-void { display: inline-block; margin-top: 12px; font-size: .84rem; font-weight: 600; border-radius: 10px; padding: 6px 10px }
.td-void.g { background: var(--great-bg); color: var(--great) }
.td-void.b { background: var(--bad-bg); color: var(--bad) }
@keyframes td-draw { to { stroke-dashoffset: 0 } }
@keyframes td-dot { to { opacity: 1 } }
@keyframes td-tw { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@media (min-width: 761px) { .td-block { grid-template-columns: 1.2fr 1fr 1fr; align-items: start } .td-rings { gap: 14px } }
@media (prefers-reduced-motion: reduce) { .td-sign path { animation: none; stroke-dashoffset: 0 } .td-sign circle { animation: none; opacity: 1 } .td-ring circle.v { transition: none } }

/* Birth chart button and the Business / Career switch, side by side and the same height. */
.td-acts { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 16px }
.td-acts .td-btn { margin-top: 0; padding: 0 18px; height: 44px; gap: 8px; font-size: .9rem }
.td-acts .td-btn svg { width: 18px; height: 18px }
.td-mode { display: flex; align-items: center; height: 44px; box-sizing: border-box; padding: 3px; border-radius: 999px; border: 1px solid rgba(233, 230, 242, .18); background: rgba(11, 14, 26, .45); gap: 2px }
.td-mode button { appearance: none; border: 0; background: transparent; color: var(--muted, #9AA0B8); font-family: inherit; font-weight: 600; font-size: .86rem; line-height: 1; height: 100%; padding: 0 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap }
.td-mode button.on { background: rgba(224, 177, 90, .9); color: #151A2C }
.td-mode button:not(.on):hover { color: var(--fg, #F2EEE6) }
@media (max-width: 380px) { .td-acts .td-btn { padding: 0 14px } .td-mode button { padding: 0 11px } }

/* Compact header on phones and tablets: sign on the side, name and Sun / Moon / rising next to it, actions below. Wide desktop keeps the tall centred card beside the chart (desk.css). */
@media (max-width: 1099px) {
  .td-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; text-align: start; padding: 16px 18px 18px }
  .td-head .td-sign { grid-row: 1 / 3; width: 84px; height: 84px; margin: 0 }
  .td-head h2 { grid-column: 2; align-self: end; font-size: 1.7rem; margin: 0 0 6px; overflow-wrap: anywhere }
  .td-head .td-trio { grid-column: 2; align-self: start; justify-content: flex-start; gap: 4px 12px; font-size: .88rem }
  .td-head .td-acts { grid-column: 1 / -1; margin-top: 16px }
  main#app .view > .td-head { padding-top: 16px; padding-bottom: 22px }
}
@media (min-width: 761px) and (max-width: 1099px) { .td-head .td-sign { width: 100px; height: 100px } .td-head h2 { font-size: 2rem } .td-head { padding: 18px 24px 20px } }
@media (max-width: 380px) { .td-head { column-gap: 12px } .td-head .td-sign { width: 70px; height: 70px } .td-head h2 { font-size: 1.45rem } .td-head .td-trio { font-size: .82rem; gap: 3px 10px } }
