.numerology-main { width: min(100% - 2rem, 76rem); margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) 0 3rem; }
.numerology-hero { max-width: 52rem; padding: 1rem 0 2.5rem; }
.numerology-hero h1 { margin: .35rem 0 1rem; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .98; letter-spacing: -.065em; }
.numerology-hero h1 span { color: var(--lilac); }
.numerology-lede { max-width: 39rem; color: var(--muted-strong); font-size: clamp(1rem, 2.5vw, 1.2rem); }
.numerology-form-panel, .numerology-results { padding: clamp(1.1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel); backdrop-filter: blur(18px); }
.numerology-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.numerology-section-title h2 { margin: .1rem 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.numerology-section-title > span:not(.numerology-period) { color: var(--gold); font-size: 2rem; }
#numerology-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: .85rem; }
#numerology-form label { display: grid; gap: .4rem; color: var(--muted-strong); font-size: .88rem; }
#numerology-form input { width: 100%; min-height: 3rem; padding: .7rem .85rem; color: var(--paper); border: 1px solid var(--line); border-radius: .7rem; background: #090a13b8; color-scheme: dark; font: inherit; }
#numerology-form button { min-height: 3rem; padding: .7rem 1.1rem; color: #161321; border: 0; border-radius: .7rem; background: linear-gradient(120deg, #e4d5b8, #c7b5ff); font: inherit; font-weight: 650; cursor: pointer; }
#numerology-form button:disabled { opacity: .65; cursor: wait; }
.numerology-privacy, #numerology-status, .numerology-method, .numerology-note { color: var(--muted); font-size: .86rem; }
.numerology-results { margin-top: 1.2rem; scroll-margin-top: 1rem; }
.numerology-period { color: var(--gold); white-space: nowrap; padding-top: .5rem; font-size: .85rem; }
.numerology-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.number-card { min-width: 0; padding: 1.1rem; border: 1px solid #ffffff17; border-radius: 1rem; background: linear-gradient(145deg, #ffffff09, #a994ff09); }
.number-card:nth-child(4n + 1) { border-color: #dbc49b35; }
.number-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.number-card h3 { margin: 0; color: var(--muted-strong); font-size: .9rem; font-weight: 500; }
.number-value { color: var(--gold); font-size: 2.5rem; line-height: 1; font-weight: 650; }
.number-theme { display: block; margin-top: .55rem; color: var(--lilac); }
.number-card p { color: var(--muted-strong); font-size: .9rem; }
.number-card details { margin-top: .8rem; }
.number-card summary { color: var(--muted); cursor: pointer; font-size: .82rem; }
.number-card code { display: block; margin-top: .55rem; color: #d1c7e9; font: .78rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.numerology-note { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  #numerology-form { grid-template-columns: 1fr 1fr; }
  #numerology-form button { grid-column: 1 / -1; }
  .numerology-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .numerology-main { width: min(100% - 1.2rem, 76rem); padding-top: 1.5rem; }
  #numerology-form, .numerology-cards { grid-template-columns: 1fr; }
  #numerology-form button { grid-column: auto; }
  .numerology-period { white-space: normal; text-align: right; }
}
