:root {
  --bg: #090a1a;
  --bg-2: #12132b;
  --card: rgba(24, 25, 54, 0.72);
  --card-border: rgba(180, 170, 255, 0.14);
  --text: #ecebf7;
  --muted: #a3a2c2;
  --gold: #e9c47a;
  --violet: #a78bfa;
  --good: #7ddba3;
  --warn: #f2a07b;
  --fire: #ff8a65;
  --earth: #9ccc65;
  --air: #8fd3ff;
  --water: #9b8cff;
  --radius: 18px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(233, 196, 122, 0.10), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(60, 120, 255, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stars i { position: absolute; background: #fff; border-radius: 50%; animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) { .stars i { animation: none; } }

.site-header, main, .site-footer { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--gold); text-decoration: none; letter-spacing: 0.02em; }
.site-footer { color: var(--muted); font-size: 12px; text-align: center; padding-top: 40px; padding-bottom: 32px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 38px); color: var(--gold); }
h3 { font-size: 22px; margin-bottom: 12px; }
h4 { font-size: 18px; margin-bottom: 6px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; font-weight: 600; color: var(--violet); margin-bottom: 8px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.mt { margin-top: 20px; }
.small-p { font-size: 14px; color: var(--muted); }

/* ---------- buttons ---------- */
button { font: inherit; cursor: pointer; }
.primary {
  width: 100%; padding: 14px 20px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #d7a24c); color: #1a1430;
  font-weight: 600; font-size: 16px; transition: transform .15s, box-shadow .15s;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(233, 196, 122, 0.3); }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--card-border); border-radius: 10px; padding: 8px 14px; }
.ghost:hover { border-color: var(--violet); }
.ghost.small { font-size: 13px; }
.ghost.icon { width: 42px; height: 42px; padding: 0; font-size: 22px; border-radius: 50%; flex-shrink: 0; }
.link { background: none; border: 0; color: var(--violet); padding: 0; font-size: 12.5px; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------- intake ---------- */
.intake { text-align: center; padding: 48px 0 0; }
.lede { max-width: 560px; margin: 18px auto 32px; color: var(--muted); font-size: 16px; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.form-card { max-width: 460px; margin: 0 auto; text-align: left; display: grid; gap: 14px; }
.form-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.form-card em { color: var(--muted); font-style: normal; font-weight: 400; }
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select {
  font: inherit; color: var(--text); background: rgba(8, 9, 26, 0.7);
  border: 1px solid var(--card-border); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0;
}
input:focus, select:focus { border-color: var(--violet); outline: none; }
.form-card .hint { margin: -4px 0 4px; }

/* ---------- results ---------- */
#results { display: grid; gap: 18px; padding-top: 16px; }
.profile { display: flex; gap: 22px; align-items: center; }
.profile-glyph {
  font-size: 64px; line-height: 1; width: 112px; height: 112px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; color: var(--gold);
  background: radial-gradient(circle, rgba(233, 196, 122, 0.18), transparent 70%);
  border: 1px solid rgba(233, 196, 122, 0.35);
}
.profile h1 { font-size: clamp(28px, 5vw, 42px); }
.profile-sub { color: var(--muted); margin-top: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(167, 139, 250, 0.12); border: 1px solid rgba(167, 139, 250, 0.25); }
.badge.good { background: rgba(125, 219, 163, 0.1); border-color: rgba(125, 219, 163, 0.35); }
.badge.warn { background: rgba(242, 160, 123, 0.1); border-color: rgba(242, 160, 123, 0.35); }
.badge.el-fire { color: var(--fire); } .badge.el-earth { color: var(--earth); }
.badge.el-air { color: var(--air); } .badge.el-water { color: var(--water); }
.note { font-size: 13px; color: var(--gold); margin-top: 10px; }

.tabs { display: flex; gap: 6px; padding: 5px; background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; overflow-x: auto; }
.tabs button { flex: 1; white-space: nowrap; padding: 10px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 500; }
.tabs button.active { background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(233, 196, 122, 0.22)); color: var(--text); }

#panel { display: grid; gap: 18px; }
.period-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.period-label { text-align: center; display: grid; }
.period-label span { font-family: var(--display); font-size: 22px; font-weight: 600; }
.period-label small { color: var(--muted); font-size: 12px; }

.hero-reading { background: linear-gradient(160deg, rgba(60, 45, 130, 0.55), rgba(24, 25, 54, 0.72)); }
.overview { font-size: 16.5px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(8, 9, 26, 0.5); border: 1px solid var(--card-border); }

.alert { border-color: rgba(242, 160, 123, 0.4); background: rgba(70, 35, 30, 0.45); }
.alert p { margin-top: 6px; font-size: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2.inner { margin-top: 18px; gap: 18px 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-chart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }

ul { list-style: none; margin: 0; padding: 0; }
.todo li { border-bottom: 1px solid var(--card-border); }
.todo li:last-child { border-bottom: 0; }
.todo label { display: flex; gap: 12px; padding: 10px 0; cursor: pointer; align-items: flex-start; }
.todo input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); padding: 0; }
.todo li.done span { text-decoration: line-through; color: var(--muted); }
.avoid li { padding: 8px 0 8px 22px; position: relative; }
.avoid li::before { content: "✕"; position: absolute; left: 0; color: var(--warn); font-size: 12px; top: 11px; }

.lucky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lucky div { background: rgba(8, 9, 26, 0.5); border-radius: 12px; padding: 10px; text-align: center; }
.lucky small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.lucky strong { font-family: var(--display); font-size: 20px; color: var(--gold); }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.area { padding: 18px; }
.area p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.area-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.area-head h4 { margin: 0; flex: 1; }
.area-icon { color: var(--gold); }
.area-love .area-icon { color: #ff8fb1; }
.rating { display: inline-flex; gap: 3px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.dot.on { background: var(--gold); }
.dot.half { background: linear-gradient(90deg, var(--gold) 50%, rgba(255, 255, 255, 0.12) 50%); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(8, 9, 26, 0.45); border: 1px solid transparent; display: grid; gap: 4px; justify-items: center; }
.day small { color: var(--muted); font-size: 11px; }
.day b { font-size: 16px; }
.day-glyph { font-size: 18px; color: var(--violet); }
.day em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.day.best { border-color: rgba(233, 196, 122, 0.55); }
.day.best em { color: var(--gold); }
.day.tough em { color: var(--warn); }
.day.today { box-shadow: inset 0 0 0 1px var(--violet); }
.meter { width: 8px; height: 46px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); display: flex; align-items: flex-end; overflow: hidden; }
.meter i { width: 100%; background: linear-gradient(0deg, var(--violet), var(--gold)); border-radius: 4px; }

.cal-head, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { text-align: center; font-size: 11px; color: var(--muted); }
.cal { margin-top: 6px; }
.cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: 13px; background: rgba(167, 139, 250, 0.08); }
.cell.empty { background: none; }
.cell.lvl-1 { background: rgba(167, 139, 250, 0.16); }
.cell.lvl-2 { background: rgba(167, 139, 250, 0.28); }
.cell.lvl-3 { background: rgba(167, 139, 250, 0.42); }
.cell.lvl-4 { background: rgba(167, 139, 250, 0.58); }
.cell.power { box-shadow: inset 0 0 0 2px var(--gold); font-weight: 600; }
.cell.tough { box-shadow: inset 0 0 0 2px var(--warn); }
.cell.today { outline: 2px solid var(--text); outline-offset: 1px; }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; }
.key.power { box-shadow: inset 0 0 0 2px var(--gold); }
.key.tough { box-shadow: inset 0 0 0 2px var(--warn); }

.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--gold); font-size: 13px; font-weight: 500; padding-top: 1px; }
.timeline p { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }

/* ---------- chart ---------- */
.wheel { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.wheel .ring { fill: none; stroke: rgba(180, 170, 255, 0.28); stroke-width: 1; }
.wheel .ring.faint { stroke: rgba(180, 170, 255, 0.12); }
.wheel .sign-glyph { font-size: 17px; text-anchor: middle; dominant-baseline: central; }
.wheel .planet-glyph { font-size: 19px; fill: var(--gold); text-anchor: middle; dominant-baseline: central; }
.wheel .tick { stroke: var(--gold); stroke-width: 2; }
.wheel .anchor { fill: var(--gold); }
.wheel .asp { stroke-width: 1.2; opacity: 0.75; }
.wheel .asp.soft { stroke: var(--air); }
.wheel .asp.hard { stroke: var(--warn); }
.legend { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.legend i { display: inline-block; width: 14px; height: 2px; }
.legend i.soft { background: var(--air); } .legend i.hard { background: var(--warn); margin-left: 6px; }

.placements li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--card-border); }
.placements li:last-child { border-bottom: 0; }
.p-glyph { font-size: 24px; color: var(--gold); width: 30px; text-align: center; flex-shrink: 0; line-height: 1.2; }
.placements small { display: block; color: var(--violet); font-size: 12px; margin: 2px 0 4px; }
.placements p { font-size: 14px; color: var(--muted); margin: 0; }

.bar-row { display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.bar i.el-fire { background: var(--fire); } .bar i.el-earth { background: var(--earth); }
.bar i.el-air { background: var(--air); } .bar i.el-water { background: var(--water); }
.bar-row b { text-align: right; font-weight: 500; color: var(--muted); }
.big-num { font-family: var(--display); font-size: 48px; font-weight: 700; color: var(--gold); line-height: 1; margin: 4px 0 10px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .grid-chart, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .profile { flex-direction: column; text-align: center; }
  .profile .badges { justify-content: center; }
  .profile-glyph { width: 88px; height: 88px; font-size: 48px; }
  .form-card .row { grid-template-columns: 1fr; }
  .week { gap: 4px; }
  .day { padding: 8px 2px; }
  .day-glyph { font-size: 15px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .card { padding: 18px; }
  .intake { padding-top: 28px; }
}

/* ---------- birth city + rising ---------- */
.city-field { position: relative; display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.city-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin-top: -2px;
  background: #15163a; border: 1px solid var(--card-border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); overflow: hidden;
}
.city-list li { padding: 10px 12px; cursor: pointer; font-weight: 400; border-bottom: 1px solid var(--card-border); }
.city-list li:last-child { border-bottom: 0; }
.city-list li span { color: var(--muted); font-size: 12.5px; }
.city-list li:hover, .city-list li.active { background: rgba(167, 139, 250, 0.18); }
.place-info { font-size: 12.5px; color: var(--violet); font-weight: 400; margin: 0; min-height: 0; }
.place-info:empty { display: none; }
.place-info.error { color: var(--warn); }
.manual { font-size: 13px; }
.manual summary { cursor: pointer; color: var(--muted); }
.manual summary:hover { color: var(--text); }
.manual .row { margin-top: 10px; }
.manual .hint { margin-top: 6px; }
button:disabled { opacity: 0.7; cursor: wait; }

.wheel .house-num { font-size: 9.5px; fill: var(--muted); text-anchor: middle; dominant-baseline: central; opacity: 0.8; }
.wheel .axis { stroke: rgba(233, 196, 122, 0.45); stroke-width: 1; stroke-dasharray: 3 4; }
.wheel .axis-label { font-size: 10px; font-weight: 600; fill: var(--gold); text-anchor: middle; dominant-baseline: central; font-family: var(--body); }
.rising-row .p-glyph { font-family: var(--body); font-size: 14px; font-weight: 600; line-height: 1.9; }

.field-error { color: var(--warn); font-size: 12.5px; margin: -8px 0 0; }
.field-error:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--warn); }

/* ---------- career, luck, places ---------- */
.mt-s { margin-top: 12px; }
.gold { color: var(--gold); }
.chip.gold { border-color: rgba(233, 196, 122, 0.55); color: var(--gold); }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hour { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(8, 9, 26, 0.45); border: 1px solid transparent; font-size: 13px; }
.hour small { display: block; color: var(--muted); font-size: 11.5px; }
.hour.night { background: rgba(8, 9, 26, 0.75); }
.hour.best { border-color: rgba(233, 196, 122, 0.6); box-shadow: 0 0 18px rgba(233, 196, 122, 0.12); }
.hour.weak { opacity: 0.55; }
.h-glyph { font-size: 20px; color: var(--gold); width: 22px; text-align: center; }
.hour-key { margin-top: 14px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.hour-key b { color: var(--text); font-weight: 500; }
.months li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--card-border); font-size: 13.5px; }
.months li:last-child { border-bottom: 0; }
.months li span { color: var(--muted); }
.months li.best strong, .months li.best span { color: var(--gold); }
.timeline li.now time { color: var(--text); }
.timeline li.now strong { color: var(--gold); }
.lucky.nums { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.num-result { display: flex; gap: 14px; align-items: center; margin: 4px 0 8px; }
.num-result .big-num { margin: 0; }
.num-result small { display: block; color: var(--violet); font-size: 12.5px; }
.match { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(8, 9, 26, 0.45); border-left: 3px solid var(--muted); margin-top: 8px; }
.match.great, .match.good { border-left-color: var(--good); }
.match.bad { border-left-color: var(--warn); }
.home-list li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--card-border); }
.home-list li:last-child { border-bottom: 0; }
.home-list b { display: inline-block; width: 22px; font-family: var(--display); font-size: 20px; }
.home-list small { color: var(--muted); margin-left: 6px; }
.place-list { padding-left: 20px; list-style: decimal; }
.place-list li { padding: 6px 0; }
.place-list li::marker { color: var(--gold); }
.place-list p { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }
.place-list.hard li::marker { color: var(--warn); }
@media (max-width: 640px) { .hours { grid-template-columns: 1fr 1fr; } }

/* ---------- profiles, new tabs, journal, report ---------- */
.header-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.small-select { width: auto; padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.link.center { display: block; margin: -4px auto 0; }
.tabs { scroll-snap-type: x proximity; }
.tabs button { flex: 0 0 auto; scroll-snap-align: start; }

.brief { background: linear-gradient(140deg, rgba(233, 196, 122, 0.14), rgba(24, 25, 54, 0.75)); border-color: rgba(233, 196, 122, 0.3); }
.brief-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.energy { color: var(--gold); font-size: 13px; letter-spacing: 0.1em; }
.brief-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.brief-grid div { background: rgba(8, 9, 26, 0.5); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.brief-grid small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.brief-grid strong { font-family: var(--display); font-size: 22px; color: var(--gold); line-height: 1.15; }
.brief-grid strong.txt { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--text); }
.brief-grid span { font-size: 12px; color: var(--muted); }

.row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-head h3 { margin: 0; }
.checks { margin-top: 6px; display: grid; gap: 3px; }
.checks li { font-size: 13px; color: var(--muted); padding-left: 20px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); }
.timeline h5 { margin: 8px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet); font-family: var(--body); }
.timeline.life li.past { opacity: 0.6; }
.timeline.life li.now time, .timeline.life li.now strong { color: var(--gold); }
.timeline.compact li { padding: 8px 0; }
.now-card { border-color: rgba(233, 196, 122, 0.45); }
details.past summary { cursor: pointer; color: var(--violet); font-size: 13px; margin-top: 10px; }

.placements.tight li { padding: 8px 0; }
.timing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.timing-col { background: rgba(8, 9, 26, 0.45); border-radius: 12px; padding: 12px; }
.timing-col h4 { font-size: 16px; color: var(--gold); }
.timing-col ol { padding-left: 18px; margin: 6px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.timing-col small { display: block; color: var(--muted); font-size: 12px; }

.match-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
textarea { font: inherit; color: var(--text); background: rgba(8, 9, 26, 0.7); border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; width: 100%; resize: vertical; }
textarea:focus { border-color: var(--violet); outline: none; }
#match-result:not(:empty) { margin-top: 18px; border-top: 1px solid var(--card-border); padding-top: 18px; }
.match-card { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.score-ring { --p: 50; width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); }
.score-ring span { width: 76px; height: 76px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--gold); }
.bar-row.wide { grid-template-columns: 170px 1fr 44px; }
.bar i.score { background: linear-gradient(90deg, var(--violet), var(--gold)); }

.stack { display: grid; gap: 4px; }
.range-row { display: flex; gap: 12px; align-items: center; }
.range-row input { accent-color: var(--gold); padding: 0; border: 0; background: none; }
.saved-msg { color: var(--good); font-size: 13px; margin: 4px 0 0; min-height: 1em; }
.moods { display: flex; gap: 8px; margin-bottom: 8px; }
.moods label { cursor: pointer; }
.moods input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.moods span { font-size: 28px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(8, 9, 26, 0.5); border: 1px solid var(--card-border); filter: grayscale(0.7); transition: transform .1s; }
.moods input:checked + span { border-color: var(--gold); filter: none; transform: scale(1.06); }
.moods input:focus-visible + span { outline: 2px solid var(--violet); }
.entries li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.entries li:last-child { border-bottom: 0; }
.entries .mood { font-size: 24px; }
.entries small { color: var(--violet); font-size: 12px; }
.entries p { color: var(--muted); font-size: 14px; margin: 2px 0 0; white-space: pre-wrap; }
.past-goals li { font-size: 13.5px; padding: 5px 0; border-bottom: 1px solid var(--card-border); }

.report { display: none; }
@media print {
  @page { margin: 16mm; }
  body { background: #fff !important; color: #111; font-size: 11pt; }
  .stars, .site-header, main, .site-footer { display: none !important; }
  .report { display: block; color: #111; }
  .report h1 { font-size: 26pt; color: #2a1d6b; }
  .report h2 { font-size: 15pt; color: #2a1d6b; margin: 16px 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 3px; }
  .report p, .report li, .report td { font-size: 10.5pt; line-height: 1.45; color: #222; }
  .report ul { list-style: disc; padding-left: 18px; }
  .report table { border-collapse: collapse; width: 100%; }
  .report td { border-bottom: 1px solid #eee; padding: 4px 6px; vertical-align: top; }
  .report td:first-child { font-weight: 600; white-space: nowrap; }
  .r-head p:first-child { color: #9a6f1f; font-weight: 600; }
  .r-sec { break-inside: avoid-page; }
  .r-foot { margin-top: 18px; color: #777 !important; font-size: 9pt !important; }
}

@media (max-width: 860px) {
  .timing { grid-template-columns: 1fr 1fr; }
  .brief-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .timing, .match-form .row3 { grid-template-columns: 1fr; }
  .bar-row.wide { grid-template-columns: 110px 1fr 40px; }
  .site-header { flex-wrap: wrap; gap: 8px; }
}
.timeline .checks li { display: block; border: 0; padding: 1px 0 1px 20px; }
.timeline .checks { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 16px; }
.months.two-col { columns: 2; column-gap: 28px; } .months.two-col li { break-inside: avoid; } @media (max-width: 640px) { .months.two-col { columns: 1; } }

/* ---------- account sync ---------- */
.site-header { gap: 8px; }
.brand { margin-right: auto; }
.account-btn { white-space: nowrap; }
.account-btn.signed-in { border-color: rgba(125, 219, 163, 0.45); color: var(--good); }
.dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.dialog::backdrop { background: rgba(4, 4, 14, 0.7); backdrop-filter: blur(3px); }
.dialog .close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; font-size: 20px; }
.dialog h3 { margin-right: 36px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ghost.danger { color: var(--warn); border-color: rgba(242, 160, 123, 0.4); }
.warn-text, .saved-msg.error { color: var(--warn); }
.lang-btn { font-weight: 600; letter-spacing: 0.06em; min-width: 42px; }

/* ---------- share page (monthly horoscope cards) ---------- */
.btn-link { text-decoration: none; display: inline-flex; align-items: center; }
.share-page { display: grid; gap: 18px; padding-top: 8px; }
.share-intro { padding-top: 24px; }
.share-intro h1 { font-size: clamp(30px, 5vw, 48px); }
.share-intro .lede { margin-bottom: 4px; }
.share-settings .row3 { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 12px; }
.share-actions .btn-row { align-items: center; margin: 0 0 10px; }
.share-actions .primary { width: auto; }
.share-actions textarea { font-size: 13.5px; margin-bottom: 8px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; justify-items: center; }
.thumb { all: unset; cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.thumb:disabled { cursor: wait; opacity: 0.7; }
.thumb:focus-visible .thumb-inner { outline: 2px solid var(--violet); outline-offset: 3px; }
.thumb-inner { width: 270px; height: 337.5px; overflow: hidden; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); transition: transform .15s; }
.thumb:hover .thumb-inner { transform: translateY(-3px); }
.thumb-inner > .hcard { transform: scale(0.25); transform-origin: 0 0; }
.thumb-label { font-size: 13px; color: var(--muted); }
#stage { position: fixed; left: -20000px; top: 0; width: 1080px; height: 1350px; pointer-events: none; }
@media (max-width: 640px) { .share-settings .row3 { grid-template-columns: 1fr; } }

/* the 1080×1350 card itself (fixed pixel sizes: it is exported as an image) */
.hcard { --accent: #e9c47a; position: relative; width: 1080px; height: 1350px; overflow: hidden; box-sizing: border-box; padding: 60px 70px 52px;
  display: flex; flex-direction: column; gap: 22px; color: #ecebf7; font-family: "Inter", system-ui, sans-serif; text-align: left;
  background: linear-gradient(165deg, #2a1f66 0%, #141538 45%, #090a1a 100%); }
.hcard * { box-sizing: border-box; }
.hc-stars { position: absolute; inset: 0; pointer-events: none; }
.hc-stars b { position: absolute; background: #fff; border-radius: 50%; }
.hcard > *:not(.hc-stars) { position: relative; }
.hc-top { display: flex; justify-content: space-between; font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase; color: #a78bfa; font-weight: 600; }
.hc-sign { display: flex; gap: 32px; align-items: center; }
.hc-glyph { width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 92px; color: var(--accent);
  border: 3px solid var(--accent); background: rgba(255, 255, 255, 0.04); flex-shrink: 0; line-height: 1; }
.hc-sign h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 104px; font-weight: 700; line-height: 1; margin: 0; color: #fff; }
.hc-sign p { font-size: 28px; color: #c9c7e6; margin: 10px 0 0; }
.hc-headline { font-family: "Cormorant Garamond", Georgia, serif; font-size: 58px; font-weight: 700; color: #e9c47a; margin: 4px 0 0; line-height: 1.05; }
.hc-summary { font-size: 27px; line-height: 1.45; color: #e4e2f5; margin: 0; }
.hc-areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hc-areas div { background: rgba(8, 9, 26, 0.55); border: 1px solid rgba(180, 170, 255, 0.18); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.hc-areas span { font-size: 23px; font-weight: 600; }
.hc-dots { display: flex; gap: 7px; }
.hc-dots i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: block; }
.hc-dots i.on { background: #e9c47a; }
.hc-dots i.half { background: linear-gradient(90deg, #e9c47a 50%, rgba(255, 255, 255, 0.14) 50%); }
.hc-cols { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; flex: 1; min-height: 0; }
.hc-cols h4 { font-size: 21px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; font-family: "Inter", sans-serif; font-weight: 600; }
.hc-cols p, .hc-cols li { font-size: 24px; line-height: 1.35; margin: 0 0 16px; color: #e4e2f5; }
.hc-days { font-weight: 600; color: #fff !important; }
.hc-days.soft { color: #f2a07b !important; }
.hc-moon { font-size: 22px !important; margin-bottom: 8px !important; }
.hc-cols ul { list-style: none; padding: 0; margin: 0 0 8px; }
.hc-cols li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.hc-cols li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
.hc-avoid { color: #f2c3ad !important; }
.hc-retro { font-size: 21px !important; color: #c9c7e6 !important; }
.hc-lucky { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hc-lucky div { background: rgba(233, 196, 122, 0.1); border: 1px solid rgba(233, 196, 122, 0.35); border-radius: 16px; padding: 12px 14px; text-align: center; }
.hc-lucky small { display: block; font-size: 17px; text-transform: uppercase; letter-spacing: 0.1em; color: #c9c7e6; }
.hc-lucky b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; color: #e9c47a; }
.hc-footer { display: flex; align-items: center; gap: 24px; padding-top: 20px; border-top: 1px solid rgba(180, 170, 255, 0.22); }
.hc-qr { background: #fff; border-radius: 12px; padding: 6px; display: block; }
.hc-cta { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hc-cta strong { font-size: 27px; color: #fff; }
.hc-cta span { font-size: 23px; color: #c9c7e6; }
.hc-fb { color: #8fb6ff !important; font-weight: 600; }
.hc-brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 700; color: #e9c47a; text-align: right; max-width: 260px; }
.hc-cover { gap: 18px; }
.hc-eyebrow { font-size: 30px; letter-spacing: 0.18em; text-transform: uppercase; color: #a78bfa; margin: 40px 0 0; text-align: center; font-weight: 600; }
.hc-cover h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 124px; font-weight: 700; color: #e9c47a; text-align: center; margin: 0; line-height: 1; }
.hc-sub { font-size: 29px; text-align: center; color: #e4e2f5; margin: 0 40px; line-height: 1.4; }
.hc-wheel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; flex: 1; align-content: center; }
.hc-wheel div { background: rgba(8, 9, 26, 0.5); border: 1px solid rgba(180, 170, 255, 0.2); border-radius: 18px; padding: 14px 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.hc-wheel span { font-size: 54px; color: var(--c); line-height: 1.1; }
.hc-wheel b { font-size: 24px; color: #fff; }
.hc-wheel small { font-size: 17px; color: #c9c7e6; }
.hc-swipe { text-align: center; font-size: 28px; color: #e9c47a; font-weight: 600; margin: 0; }
.hcard { gap: 18px; }
.hc-cols { overflow: hidden; }
.hc-cols p, .hc-cols li { font-size: 23px; margin-bottom: 12px; }
.hc-cols li { margin-bottom: 8px; }
.hc-summary { font-size: 26px; }
.hc-cols p, .hc-cols li { font-size: var(--cols-fs, 23px); }
.hc-moon, .hc-retro { font-size: calc(var(--cols-fs, 23px) - 2px) !important; }
.hc-summary { font-size: var(--sum-fs, 26px); }

/* ---------- share page: daily cards ---------- */
.mode-switch { display: flex; gap: 6px; padding: 5px; background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; width: fit-content; margin: 0 auto; }
.mode-switch button { padding: 9px 22px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; }
.mode-switch button.active { background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(233, 196, 122, 0.22)); color: var(--text); }
.hc-daily { gap: 16px; }
.hc-daily .hc-glyph { width: 124px; height: 124px; font-size: 76px; }
.hc-daily .hc-sign h2 { font-size: 92px; }
.hc-daily .hc-sign p { font-size: 26px; margin-top: 8px; }
.hc-daily .hc-headline { font-size: 54px; margin-top: 0; }
.hc-daily .hc-summary { font-size: var(--sum-fs, 25px); line-height: 1.42; }
.hc-moonrow { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-moonrow span { font-size: 21px; padding: 7px 16px; border-radius: 999px; background: rgba(8, 9, 26, 0.55); border: 1px solid rgba(180, 170, 255, 0.22); color: #e4e2f5; }
.hc-fit { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.hc-fit .hc-cols { flex: none; overflow: visible; gap: 28px; grid-template-columns: 1fr 1fr; }
.hc-areas2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-areas2 > div { background: rgba(8, 9, 26, 0.55); border: 1px solid rgba(180, 170, 255, 0.18); border-radius: 16px; padding: 12px 16px; }
.hc-arow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hc-arow span { font-size: 23px; font-weight: 600; }
.hc-arow .hc-dots i { width: 18px; height: 18px; }
.hc-areas2 p { font-size: var(--area-fs, 21px); line-height: 1.35; margin: 0; color: #d9d7ee; }
.hc-x li::before { content: "✕" !important; color: #f2a07b !important; }
.hc-lucky.three { grid-template-columns: repeat(3, 1fr); }
.hc-daycover h1 { font-size: 132px; }
.hc-date { font-size: 36px !important; margin-top: -6px !important; color: #fff !important; }
.hc-sky { text-align: center; font-size: 27px; color: #c9c7e6; margin: 0; }
.hc-daycover .hc-wheel div.top { border-color: #e9c47a; background: rgba(233, 196, 122, 0.14); }
.hc-stars5 { color: #e9c47a !important; letter-spacing: 2px; font-size: 19px !important; }
.hc-daily { padding: 52px 64px 44px; gap: 14px; }
.hc-daily .hc-glyph { width: 104px; height: 104px; font-size: 64px; }
.hc-daily .hc-sign { gap: 26px; }
.hc-daily .hc-sign h2 { font-size: 80px; }
.hc-daily .hc-sign p { font-size: 24px; margin-top: 6px; }
.hc-daily .hc-headline { font-size: 50px; }
.hc-moonrow { gap: 8px; }
.hc-moonrow span { font-size: 20px; padding: 6px 14px; }
.hc-moonrow span.gold { color: #e9c47a; border-color: rgba(233, 196, 122, 0.45); background: rgba(233, 196, 122, 0.1); }
.hc-daily .hc-footer { gap: 20px; padding-top: 16px; }
.hc-daily .hc-qr { width: 122px; height: 122px; }
.hc-daily .hc-cta strong { font-size: 25px; }
.hc-daily .hc-cta span { font-size: 21px; }
.hc-daily .hc-brand { font-size: 30px; }
.hc-daycover { gap: 14px; }
.hc-daycover .hc-eyebrow { margin-top: 18px; font-size: 27px; }
.hc-daycover h1 { font-size: 112px; }
.hc-daycover .hc-date { font-size: 32px !important; }
.hc-daycover .hc-sky { font-size: 25px; }
.hc-daycover .hc-wheel { gap: 12px; margin-top: 6px; }
.hc-daycover .hc-wheel div { padding: 10px 6px; }
.hc-daycover .hc-wheel span { font-size: 46px; }
.hc-daycover .hc-wheel b { font-size: 22px; }
.hc-daycover .hc-swipe { font-size: 25px; line-height: 1.35; }
.hc-swipe2 { font-size: 22px; color: #c9c7e6; font-weight: 500; }
.share-settings .row2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; } @media (max-width: 640px) { .share-settings .row2 { grid-template-columns: 1fr; } }
/* cards without footer: let text and the cover grid use the full height */
.hcard .hc-cols p, .hcard .hc-cols li { line-height: 1.38; }
.hc-cols h4 { font-size: calc(var(--cols-fs, 23px) - 1px); }
.hc-moon, .hc-retro { font-size: calc(var(--cols-fs, 23px) - 3px) !important; }
.hc-cover .hc-wheel { flex: 1; align-content: stretch; grid-auto-rows: 1fr; margin-bottom: 8px; }
.hc-cover .hc-wheel div { justify-content: center; gap: 8px; }
.hc-cover .hc-wheel span { font-size: 66px; }
.hc-cover .hc-wheel b { font-size: 27px; }
.hc-cover .hc-wheel small { font-size: 19px; }
.hc-daycover .hc-wheel span { font-size: 62px; }
.hc-daycover .hc-wheel b { font-size: 26px; }
.hc-daycover .hc-stars5 { font-size: 24px !important; }
.hc-daily .hc-moonrow span { font-size: 22px; }
.hc-arow span { font-size: 25px; }
