/* Design D.2 "Sage Dial" + One Screen Experience (Ryan 2026-11-27; EJ design review pending).
   Visual layer only: re-maps the V1.2 tokens and restyles/re-lays out the markup.
   Layout follows the real viewport (100dvh + safe areas). No fixed screen heights, text is never
   shrunk to fit: when the user's text size is large the page scrolls instead. */

@font-face { font-family: "Inter"; src: url(fonts/inter-latin-light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "D2 Glyph"; src: url(fonts/DejaVuSans.ttf) format("truetype"); font-display: swap; }

:root {
 --d2-bg:#E8ECE6; --d2-card:#F3F5F1; --d2-line:#D2D9CF;
 --d2-ink:#1F2321; --d2-ink2:#4B524D; --d2-ink3:#5E6661;
 --d2-sage:#B9CBB1; --d2-sageL:#D5E1CF; --d2-sageD:#5E7457; --d2-sageInk:#2E4129; --d2-sageInk2:#3F5539;
 --d2-char:#232624; --d2-chip:#E1E4DF;
 --d2-grad:linear-gradient(165deg,#DCE6D6,#B9CBB1);
 --d2-purple:#D3B9DF; --d2-purple-ink:#573267;
 --d2-pend-bg:#ECEFEA;
 --d2-font:"Inter","Noto Sans Thai",sans-serif;
 --d2-safe-t:env(safe-area-inset-top,0px); --d2-safe-b:env(safe-area-inset-bottom,0px);
 /* V1.2 token names, D.2 values (pages and the consent dialog read these) */
 --se-canvas:var(--d2-bg); --se-surface:var(--d2-card); --se-ink:var(--d2-ink); --se-secondary:var(--d2-ink2);
 --se-line:var(--d2-line); --se-control:#A9B0AA; --se-sage-soft:var(--d2-sage); --se-primary:var(--d2-char);
 --se-primary-pressed:#000; --se-on-primary:#fff; --se-accent:var(--d2-sageD); --se-error:#93463d;
 --se-disabled:#D9DDD7; --se-disabled-text:#5E6661; --se-lift:none; --se-inset:none;
}

html body, html body :is(input,select,button,textarea) { font-family: var(--d2-font); }
html body #cosmos-five-screen-review .page * { font-family: var(--d2-font) !important; }
html body #cosmos-five-screen-review .page :is(.d2-pg,.d2-zg,[data-chart-keys] span) { font-family: "D2 Glyph",sans-serif !important; }
.d2-pg { font-size: 17px; fill: #4D5E48; } .d2-pg.on { fill: #fff; } .d2-pg-on { fill: var(--d2-char); }
.d2-zg { font-family: "D2 Glyph",sans-serif; font-size: 17px; fill: #4D5E48; } .d2-zr-fill { fill: #EEF3EB; }
[hidden] { display: none !important; }

/* shared pieces */
.d2-sim { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--d2-line); color: var(--d2-ink2) !important; font-size: 11px !important; font-weight: 600 !important; white-space: nowrap; letter-spacing: 0 !important; text-transform: none !important; vertical-align: middle; }
.nt-pending { width: fit-content; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-weight: 600 !important; font-size: 12px !important; color: var(--d2-ink2) !important; border: 1.2px dashed #8A918C; background: transparent; border-radius: 999px; padding: 2px 10px; }

/* =================================================================
   Main five screens
   ================================================================= */
html body.d2-main { margin: 0 !important; padding: 0 !important; background: var(--d2-bg) !important; }
html body #cosmos-five-screen-review { background: var(--d2-bg) !important; min-height: 100dvh; padding: 0 !important; }
html body #cosmos-five-screen-review .page {
 --paper:var(--d2-bg); --wash:var(--d2-chip); --ink:var(--d2-ink); --soft:var(--d2-ink2); --accent:var(--d2-ink); --line:var(--d2-line); --card:var(--d2-card); --on:#fff;
 box-sizing: border-box; width: 100%; max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column;
 border: 0 !important; border-radius: 0 !important; background: var(--d2-bg) !important; color: var(--d2-ink); box-shadow: none !important; overflow: visible;
 padding-top: var(--d2-safe-t);
}
@media (min-width: 560px) { html body #cosmos-five-screen-review .page { min-height: min(100dvh, 940px); margin-top: 16px; border-radius: 36px !important; border: 1px solid var(--d2-line) !important; overflow: hidden; } }
html body #cosmos-five-screen-review .page .panels.screen:not([hidden]) {
 flex: 1 1 auto; display: flex !important; flex-direction: column; gap: 8px; min-height: 0 !important; padding: 12px 18px 8px !important;
}
html body #cosmos-five-screen-review .page .screen .block { padding: 0 !important; border: 0 !important; min-block-size: 0; gap: 0; display: flex; flex-direction: column; justify-content: flex-start; }
html body #cosmos-five-screen-review .page :is(h2,h3,p,strong,b,small,span) { color: inherit; }
html body #cosmos-five-screen-review .page :is(h2,h3,p) { margin: 0; }
html body #cosmos-five-screen-review .page .mark { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--d2-ink3) !important; }
html body #cosmos-five-screen-review .page small { color: var(--d2-ink2); }
html body #cosmos-five-screen-review .page svg { color: currentColor; }
html body #cosmos-five-screen-review .page button.textbtn { color: var(--d2-ink); font-weight: 600; min-height: 0; padding: 0; }
html body #cosmos-five-screen-review .page button:focus-visible { outline: 2px solid var(--d2-char); outline-offset: 2px; }
/* round icon buttons */
html body #cosmos-five-screen-review .page .icon-only { width: 40px !important; height: 40px; min-height: 40px !important; flex: none; border-radius: 50%; background: var(--d2-chip) !important; box-shadow: none; display: grid; place-items: center; color: var(--d2-ink); }
html body #cosmos-five-screen-review .page .icon-only svg { width: 18px; height: 18px; }
html body #cosmos-five-screen-review .page .icon-only:disabled { opacity: .45; }
/* charcoal pill CTA */
html body #cosmos-five-screen-review .page .d2-cta {
 flex: none; display: flex !important; align-items: center; justify-content: space-between; width: 100%; min-height: 50px !important;
 padding: 5px 5px 5px 22px !important; border-radius: 999px; background: var(--d2-char) !important; color: #F3F4F2 !important; font-size: 15.5px; font-weight: 600;
}
html body #cosmos-five-screen-review .page .d2-cta > span:first-child { color: #F3F4F2 !important; text-align: left; }
html body #cosmos-five-screen-review .page .d2-go { width: 40px; height: 40px; border-radius: 50%; display: grid !important; place-items: center; background: rgba(255,255,255,.14); color: #fff !important; flex: none; }
html body #cosmos-five-screen-review .page .d2-go svg { width: 18px; height: 18px; color: #fff; }
html body #cosmos-five-screen-review .page .d2-link { display: inline-flex !important; align-items: center; gap: 4px; font-size: 13.5px; white-space: nowrap; min-height: 32px !important; }
html body #cosmos-five-screen-review .page .d2-round { width: 40px; height: 40px; border-radius: 50%; display: grid !important; place-items: center; flex: none; background: var(--d2-chip); }
html body #cosmos-five-screen-review .page .d2-round.dark { background: var(--d2-char); color: #fff; }
html body #cosmos-five-screen-review .page .d2-round svg { width: 17px; height: 17px; }
html body #cosmos-five-screen-review .page .d2-tic { width: 32px; height: 32px; border-radius: 50%; display: grid !important; place-items: center; flex: none; background: var(--d2-sageL); color: var(--d2-sageInk2); }
html body #cosmos-five-screen-review .page .d2-tic svg { width: 16px; height: 16px; }
/* card rows (tap for detail) */
html body #cosmos-five-screen-review .page .d2-row {
 flex: none; display: flex !important; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px !important;
 padding: 6px 14px 6px 8px !important; border-radius: 20px; background: var(--d2-card); border: 1px solid var(--d2-line); text-align: left; font-weight: 400 !important; font-size: 13px; line-height: 1.4;
}
html body #cosmos-five-screen-review .page .d2-row > span:first-child { display: flex !important; align-items: center; gap: 10px; color: var(--d2-ink2); }
html body #cosmos-five-screen-review .page .d2-row b { color: var(--d2-ink); font-weight: 600; }
html body #cosmos-five-screen-review .page .d2-row > span[aria-hidden=true]:last-child { color: var(--d2-ink2); flex: none; }

/* ---------- Today ---------- */
html body #cosmos-five-screen-review .home .identity { gap: 8px !important; }
html body #cosmos-five-screen-review .page .d2-hd { display: flex; align-items: center; gap: 8px; }
html body #cosmos-five-screen-review .page .d2-hd .identity-head { flex: 1; display: flex; flex-direction: column; min-width: 0; }
html body #cosmos-five-screen-review .page .d2-hd small { font-size: 13px; }
html body #cosmos-five-screen-review .home .identity h2 { font-size: 34px; font-weight: 300; letter-spacing: -.8px; line-height: 1.1; }
html body #cosmos-five-screen-review .page .d2-facts { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 0; margin: 0; border-top: 1px solid var(--d2-line); border-bottom: 1px solid var(--d2-line); }
html body #cosmos-five-screen-review .page .d2-facts > div { padding: 5px 0 6px 12px; border: 0; border-left: 1px solid var(--d2-line); background: none; box-shadow: none; display: flex; flex-direction: column; min-width: 0; border-radius: 0; }
html body #cosmos-five-screen-review .page .d2-facts > div:first-child { border-left: 0; padding-left: 0; }
html body #cosmos-five-screen-review .page .d2-facts small { font-size: 12px; color: var(--d2-ink3); }
html body #cosmos-five-screen-review .page .d2-facts strong { font-size: 16px; font-weight: 400; color: var(--d2-ink) !important; line-height: 1.35; }
html body #cosmos-five-screen-review .page .d2-facts .planet strong { font-size: 14.5px; }
html body #cosmos-five-screen-review .page .day {
 flex: 1 1 auto; border-radius: 28px; padding: 10px 12px 12px !important; background: var(--d2-grad) !important; gap: 8px !important; justify-content: space-between !important;
 --dial: clamp(150px, calc(100dvh - 605px), 300px);
}
html body #cosmos-five-screen-review .page .d2-dial { position: relative; width: var(--dial); height: var(--dial); margin: 0 auto; flex: none; }
html body #cosmos-five-screen-review .page .d2-dial .d2-dialsvg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 16px rgba(80,110,70,.25)); }
html body #cosmos-five-screen-review .page .d2-dial-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; padding: 0 16%; }
html body #cosmos-five-screen-review .page .d2-dial-c .mark { font-size: 10.5px; letter-spacing: .04em; text-transform: none; color: var(--d2-sageInk2) !important; }
html body #cosmos-five-screen-review .page .d2-dial-c h3 { font-size: clamp(22px, calc(var(--dial) * .13), 34px); font-weight: 500; letter-spacing: -.4px; line-height: 1.15; color: var(--d2-ink); }
html body #cosmos-five-screen-review .page [data-lucky-color] { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--d2-ink2); }
html body #cosmos-five-screen-review .page [data-lucky-color] .dot { width: 12px; height: 12px; border-radius: 50%; background: #2F5A45; box-shadow: 0 0 0 2px #fff; display: inline-block; }
html body #cosmos-five-screen-review .page .day > p { font-size: 13.5px; line-height: 1.5; color: #22301F; text-align: center; padding: 0 4px; }
html body #cosmos-five-screen-review .page .categories { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 0; text-align: center; }
html body #cosmos-five-screen-review .page .category { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 3px; border-radius: 16px; background: rgba(255,255,255,.62); white-space: normal; }
html body #cosmos-five-screen-review .page .category .category-label { font-size: 12px; color: var(--d2-sageInk2) !important; border: 0; padding: 0; }
html body #cosmos-five-screen-review .page .category b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
html body #cosmos-five-screen-review .page .category b.nt-pending { font-size: 11px !important; padding: 1px 6px; }
html body #cosmos-five-screen-review .page .topic {
 flex: none; flex-direction: row !important; align-items: center; gap: 10px !important; padding: 10px 12px !important; border-radius: 22px; background: var(--d2-card) !important; border: 1px solid var(--d2-line) !important;
}
html body #cosmos-five-screen-review .page .d2-ins-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--d2-purple); color: var(--d2-purple-ink); }
html body #cosmos-five-screen-review .page .d2-ins-ic svg { width: 17px; height: 17px; }
html body #cosmos-five-screen-review .page .d2-ins-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
html body #cosmos-five-screen-review .page .d2-ins-body .mark { font-size: 10.5px; }
html body #cosmos-five-screen-review .page .d2-ins-body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 16px; font-weight: 600; line-height: 1.3; }
html body #cosmos-five-screen-review .page .topic:has([data-topic-dates][hidden]) .d2-sim { display: none; }
html body #cosmos-five-screen-review .page .d2-per { font-size: 12px; line-height: 1.4; color: var(--d2-ink2); }
html body #cosmos-five-screen-review .page .d2-per [data-topic-dates]:not([hidden])::after { content: " · "; }
html body #cosmos-five-screen-review .page .astrologer { flex: none; padding: 0 !important; }
html body #cosmos-five-screen-review .page .astrologer-link { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 8px 8px 8px !important; border-radius: 22px; background: var(--d2-card); border: 1px solid var(--d2-line); text-align: left; }
html body #cosmos-five-screen-review .page .astrologer-link .profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
html body #cosmos-five-screen-review .page .monogram { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #EEEAE4 !important; box-shadow: none !important; flex: none; color: var(--d2-ink); }
html body #cosmos-five-screen-review .page .monogram img { object-fit: cover !important; object-position: 50% 20%; }
html body #cosmos-five-screen-review .page .persona-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
html body #cosmos-five-screen-review .page .persona-copy .mark { font-size: 10.5px; }
html body #cosmos-five-screen-review .page .persona-copy [data-greeting] { font-size: 12.5px; line-height: 1.4; font-weight: 400; color: var(--d2-ink2); }
/* the cards carry their own "ข้อมูลจำลอง" chips; the full disclaimer (with the Lahiri note) is on S00_02 */
html body #cosmos-five-screen-review .page .mock-caption { display: none; }

/* ---------- Reading Detail (scrolls) ---------- */
html body #cosmos-five-screen-review .page .d2-rhead { flex-direction: row !important; align-items: center; gap: 8px; }
html body #cosmos-five-screen-review .page .d2-ttl { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
html body #cosmos-five-screen-review .page .d2-ttl strong { font-size: 15px; font-weight: 600; }
html body #cosmos-five-screen-review .page .d2-rhero { flex-direction: row !important; align-items: center; gap: 14px; padding: 14px !important; border-radius: 26px; background: var(--d2-grad); }
html body #cosmos-five-screen-review .page .d2-rhero .d2-dial { width: 92px; height: 92px; }
html body #cosmos-five-screen-review .page .d2-rhero > div:last-child { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
html body #cosmos-five-screen-review .page .d2-rhero h3 { font-size: 30px; font-weight: 500; line-height: 1.15; }
html body #cosmos-five-screen-review .page .d2-lead { font-size: 15.5px; line-height: 1.6; padding: 2px 4px; }
html body #cosmos-five-screen-review .page .d2-rsec { border-radius: 20px; background: var(--d2-card); border: 1px solid var(--d2-line) !important; padding: 12px 14px !important; gap: 8px !important; }
html body #cosmos-five-screen-review .page .d2-rh { display: flex; align-items: center; gap: 10px; }
html body #cosmos-five-screen-review .page .d2-rh small { font-size: 13px; color: var(--d2-ink3); }
html body #cosmos-five-screen-review .page .d2-rh b { margin-left: auto; font-size: 16px; font-weight: 600; }
html body #cosmos-five-screen-review .page .d2-pend { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1.2px dashed #A9B0AA; border-radius: 14px; }
html body #cosmos-five-screen-review .page .d2-pend i { height: 8px; border-radius: 4px; background: #E1E5DF; }
html body #cosmos-five-screen-review .page .d2-pend i.s { width: 60%; }
html body #cosmos-five-screen-review .page .d2-pend span { font-size: 12px; color: var(--d2-ink3); }
html body #cosmos-five-screen-review [data-screen=reading] .d2-cta { margin-top: 4px; }

/* ---------- My Cosmic ---------- */
html body #cosmos-five-screen-review .page .d2-mhead { flex-direction: row !important; align-items: center; gap: 12px; }
html body #cosmos-five-screen-review .page .d2-av { width: 50px; height: 50px; background: var(--d2-sage) !important; color: var(--d2-sageInk) !important; font-size: 20px; font-weight: 600; display: grid; place-items: center; }
html body #cosmos-five-screen-review .page .d2-mhead > div { display: flex; flex-direction: column; min-width: 0; }
html body #cosmos-five-screen-review .page .d2-mhead h2 { font-size: 30px; font-weight: 300; letter-spacing: -.6px; line-height: 1.15; }
html body #cosmos-five-screen-review .page .d2-mhead small { font-size: 12.5px; line-height: 1.4; }
html body #cosmos-five-screen-review .page .segment { display: flex; padding: 4px; border-radius: 999px; border: 1px solid var(--d2-line); background: var(--d2-card) !important; box-shadow: none; gap: 0; margin: 0; }
html body #cosmos-five-screen-review .page .segment button { flex: 1; min-height: 38px; border: 0; border-radius: 999px; background: none !important; color: var(--d2-ink3) !important; font-weight: 600; font-size: 14px; box-shadow: none !important; }
html body #cosmos-five-screen-review .page .segment button[aria-pressed=true] { background: var(--d2-char) !important; color: #fff !important; }
html body #cosmos-five-screen-review .page .d2-natal { flex: 1 1 auto; border-radius: 26px; background: var(--d2-grad); padding: 10px !important; gap: 8px !important; justify-content: space-between !important; --dial: clamp(140px, calc(100dvh - 650px), 270px); }
html body #cosmos-five-screen-review .page .chart-placeholder { position: relative; width: var(--dial) !important; height: var(--dial) !important; margin: 0 auto !important; border: 0 !important; border-radius: 50%; background: none !important; box-shadow: none !important; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
html body #cosmos-five-screen-review .page .chart-placeholder::before, html body #cosmos-five-screen-review .page .chart-placeholder::after { display: none !important; }
html body #cosmos-five-screen-review .page .chart-placeholder .d2-zring { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(80,110,70,.2)); }
html body #cosmos-five-screen-review .page .chart-placeholder > span, html body #cosmos-five-screen-review .page .chart-placeholder > small { position: relative; font-size: 11px; color: var(--d2-sageInk2); }
html body #cosmos-five-screen-review .page .chart-placeholder > span { font-weight: 600; letter-spacing: .06em; }
html body #cosmos-five-screen-review .page .chart-keys { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0; }
html body #cosmos-five-screen-review .page .chart-keys > div { background: rgba(255,255,255,.62) !important; border-radius: 16px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; border: 0; box-shadow: none; }
html body #cosmos-five-screen-review .page .chart-keys span { display: none; }
html body #cosmos-five-screen-review .page .chart-keys small { font-size: 11.5px; color: var(--d2-sageInk2); }
html body #cosmos-five-screen-review .page .chart-keys strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
html body #cosmos-five-screen-review .page .d2-dna { flex: none; border-radius: 22px; background: var(--d2-card); border: 1px solid var(--d2-line) !important; padding: 10px 14px !important; gap: 5px !important; }
html body #cosmos-five-screen-review .page .d2-dna > .spread { display: flex; align-items: center; gap: 8px; }
html body #cosmos-five-screen-review .page .d2-dna > .spread .mark { flex: 1; }
html body #cosmos-five-screen-review .page .d2-dna .icon-only { width: 34px !important; height: 34px; min-height: 34px !important; }
html body #cosmos-five-screen-review .page .d2-dna h3 { font-size: 17px; font-weight: 600; }
html body #cosmos-five-screen-review .page .d2-dna > p { font-size: 13px; line-height: 1.45; color: var(--d2-ink2); }
html body #cosmos-five-screen-review .page .dna-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
html body #cosmos-five-screen-review .page .dna-grid div { background: var(--d2-sageL) !important; border-radius: 14px; padding: 5px 10px; box-shadow: none; border: 0; display: flex; flex-direction: column; text-align: left; }
html body #cosmos-five-screen-review .page .dna-grid small { font-size: 11.5px; color: var(--d2-sageInk2); }
html body #cosmos-five-screen-review .page .dna-grid strong { font-size: 13px; font-weight: 600; line-height: 1.35; }
html body #cosmos-five-screen-review .page .d2-dna-act { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html body #cosmos-five-screen-review .page .d2-pill { display: inline-flex !important; align-items: center; gap: 6px; padding: 3px 12px 3px 3px !important; border-radius: 999px; background: var(--d2-char) !important; color: #fff !important; font-size: 13px; min-height: 0 !important; }
html body #cosmos-five-screen-review .page .d2-pill span:last-child { color: #fff !important; }
html body #cosmos-five-screen-review .page .d2-pill .monogram { width: 28px; height: 28px; }

/* ---------- Astrologers: tap a portrait to preview; set the personal astrologer with its own button ---------- */
html body #cosmos-five-screen-review [data-screen=astrologers] > section.tight-top h2 { font-size: 30px; font-weight: 400; letter-spacing: -.4px; line-height: 1.2; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section.tight-top .secondary { font-size: 13px; color: var(--d2-ink2); }
html body #cosmos-five-screen-review .page .d2-picks { display: flex; justify-content: space-around; flex: none; }
html body #cosmos-five-screen-review .page .d2-picks button { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; color: var(--d2-ink2); padding: 0; min-height: 0; cursor: pointer; }
html body #cosmos-five-screen-review .page .d2-pick-ph { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: block; background: #EEEAE4; opacity: .75; border: 2px solid transparent; }
html body #cosmos-five-screen-review .page .d2-pick-ph img { object-fit: cover !important; object-position: 50% 22%; }
html body #cosmos-five-screen-review .page .d2-picks button[aria-pressed=true] { color: var(--d2-ink); font-weight: 600; }
html body #cosmos-five-screen-review .page .d2-picks button[aria-pressed=true] .d2-pick-ph { opacity: 1; border-color: var(--d2-char); box-shadow: 0 0 0 2px var(--d2-bg), 0 0 0 3.5px var(--d2-char); }
html body #cosmos-five-screen-review .page .d2-pick-ok:not([hidden]) { position: absolute; top: 40px; left: calc(50% + 14px); width: 20px; height: 20px; border-radius: 50%; display: grid !important; place-items: center; background: var(--d2-sageD); color: #fff; border: 2px solid var(--d2-bg); }
html body #cosmos-five-screen-review .page .d2-pick-ok svg { width: 11px; height: 11px; stroke-width: 2.6; }
html body #cosmos-five-screen-review [data-screen=astrologers] .d2-pcard { display: none !important; }
html body #cosmos-five-screen-review [data-screen=astrologers][data-preview=EL] .d2-pcard[data-card=EL],
html body #cosmos-five-screen-review [data-screen=astrologers][data-preview=AYA] .d2-pcard[data-card=AYA],
html body #cosmos-five-screen-review [data-screen=astrologers][data-preview=MARIO] .d2-pcard[data-card=MARIO] { display: flex !important; flex: 1 1 auto; }
html body #cosmos-five-screen-review .page .d2-pcard .editorial-person { flex: 1 1 auto; display: flex !important; flex-direction: column; gap: 8px; padding: 10px; border-radius: 28px; background: var(--d2-grad); }
html body #cosmos-five-screen-review .page .d2-pcard .portrait { position: relative; flex: 1 1 auto; width: 100%; min-height: 150px; max-height: calc(100dvh - 560px); height: auto; border-radius: 20px; overflow: hidden; background: #EEEAE4 !important; padding: 0 !important; border: 0; box-shadow: none; }
html body #cosmos-five-screen-review .page .d2-pcard .portrait img { position: absolute; inset: 0; object-fit: cover !important; object-position: 50% 22%; }
html body #cosmos-five-screen-review .page .d2-pcard .person-info { display: flex; flex-direction: column; gap: 3px; padding: 0 6px; }
html body #cosmos-five-screen-review .page .d2-pcard [data-person-current]:not([hidden]) { display: inline-flex !important; align-self: flex-start; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--d2-char); color: #fff !important; font-size: 11.5px; font-weight: 600; box-shadow: none; }
html body #cosmos-five-screen-review .page .d2-pcard [data-person-current] svg { width: 12px; height: 12px; stroke-width: 2.4; }
html body #cosmos-five-screen-review .page .d2-pcard h3 button { font-size: 24px !important; font-weight: 400 !important; letter-spacing: -.4px; line-height: 1.2; text-align: left; }
html body #cosmos-five-screen-review .page .d2-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
html body #cosmos-five-screen-review .page .d2-tags small { font-size: 12.5px; color: var(--d2-sageInk2); }
html body #cosmos-five-screen-review .page .d2-tags .method { padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.7); color: var(--d2-sageInk) !important; font-weight: 600; font-size: 11.5px; margin: 0; }
html body #cosmos-five-screen-review .page .d2-pcard .quote { font-size: 13.5px; line-height: 1.5; color: #22301F; padding: 0 6px; font-style: normal !important; }
html body #cosmos-five-screen-review .page .d2-setcur { align-self: center; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 30px !important; }

/* ---------- Calendar ---------- */
html body #cosmos-five-screen-review [data-screen=calendar] > section.tight-top h2,
html body #cosmos-five-screen-review [data-screen=me] .me-profile h2 { font-size: 30px; font-weight: 300; letter-spacing: -.6px; line-height: 1.2; }
html body #cosmos-five-screen-review .page .d2-cal { flex: 1 1 auto; border-radius: 24px; background: var(--d2-card); border: 1px solid var(--d2-line) !important; padding: 10px 12px !important; gap: 6px !important; }
html body #cosmos-five-screen-review .page .month-head { display: flex; align-items: center; justify-content: space-between; }
html body #cosmos-five-screen-review .page .month-head h3 { font-size: 16px; font-weight: 600; }
html body #cosmos-five-screen-review .page .month-head button { width: 34px; height: 34px; min-height: 34px !important; border-radius: 50%; background: var(--d2-chip) !important; font-size: 18px; box-shadow: none; display: grid; place-items: center; }
html body #cosmos-five-screen-review .page .calendar-grid { flex: 1 1 auto; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); grid-auto-rows: minmax(30px,1fr); gap: 4px; margin: 0; }
html body #cosmos-five-screen-review .page .calendar-grid .weekday { font-size: 12px; color: var(--d2-ink3); text-align: center; align-self: center; }
html body #cosmos-five-screen-review .page .calendar-grid button { position: relative; min-height: 30px !important; height: auto; border: 0; border-radius: 12px; background: #ECEFEA !important; color: var(--d2-ink) !important; box-shadow: none !important; font-size: 14.5px; font-weight: 500; padding: 0; }
html body #cosmos-five-screen-review .page .calendar-grid button[data-kind]::after { content: ""; position: absolute; bottom: 3px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; }
html body #cosmos-five-screen-review .page .calendar-grid button[data-kind=support]::after { background: #7f9a7c; }
html body #cosmos-five-screen-review .page .calendar-grid button[data-kind=shift]::after { background: #c2a668; }
html body #cosmos-five-screen-review .page .calendar-grid button[data-kind=care]::after { background: #b5806f; }
html body #cosmos-five-screen-review .page .calendar-grid button[aria-pressed=true] { background: var(--d2-char) !important; color: #fff !important; font-weight: 700; }
html body #cosmos-five-screen-review .page .legend { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: var(--d2-ink2); margin: 0; }
html body #cosmos-five-screen-review .page .legend span { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; }
html body #cosmos-five-screen-review .page .legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
html body #cosmos-five-screen-review .page .legend span[data-kind=support]::before { background: #7f9a7c !important; }
html body #cosmos-five-screen-review .page .legend span[data-kind=shift]::before { background: #c2a668 !important; }
html body #cosmos-five-screen-review .page .legend span[data-kind=care]::before { background: #b5806f !important; }
html body #cosmos-five-screen-review .page .legend span[data-kind=normal]::before { background: #c9c1b7 !important; }
html body #cosmos-five-screen-review .page .d2-dayC { flex: none; flex-direction: row !important; align-items: center; gap: 12px; border-radius: 22px; padding: 10px 12px !important; background: var(--d2-grad); }
html body #cosmos-five-screen-review .page .d2-dd { width: 50px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.7); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; flex: none; }
html body #cosmos-five-screen-review .page .d2-dd b { font-size: 21px; font-weight: 600; }
html body #cosmos-five-screen-review .page .d2-dd small { font-size: 11px; }
html body #cosmos-five-screen-review .page .d2-dayB { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
html body #cosmos-five-screen-review .page .d2-dayB .mark { font-size: 10.5px; letter-spacing: .02em; text-transform: none; }
html body #cosmos-five-screen-review .page .d2-dayB h3 { font-size: 18px; font-weight: 500; line-height: 1.3; }
html body #cosmos-five-screen-review .page .d2-dayB p { font-size: 12px; line-height: 1.4; color: #2F3A2D; }
html body #cosmos-five-screen-review .page .d2-dayB p:empty { display: none; }
html body #cosmos-five-screen-review .page .d2-dayA { display: flex; flex-direction: column; align-items: center; gap: 4px; }
html body #cosmos-five-screen-review .page .d2-dayA .icon-only { width: 34px !important; height: 34px; min-height: 34px !important; background: rgba(255,255,255,.6) !important; }

/* ---------- Me ---------- */
html body #cosmos-five-screen-review [data-screen=me]:not([hidden]) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
html body #cosmos-five-screen-review [data-screen=me] > section { grid-column: 1 / -1; gap: 6px !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2),
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) { grid-column: auto; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(1) > .spread { display: none; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(1)::before { content: "PERSONAL SPACE"; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--d2-ink3); padding-left: 62px; margin-bottom: -6px; }
html body #cosmos-five-screen-review [data-screen=me] .me-profile { display: flex; align-items: center; gap: 12px; }
html body #cosmos-five-screen-review [data-screen=me] .me-profile .monogram { width: 50px; height: 50px; background: var(--d2-sage) !important; color: var(--d2-sageInk) !important; font-size: 20px; font-weight: 600; display: grid; place-items: center; }
html body #cosmos-five-screen-review [data-screen=me] .me-profile > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
html body #cosmos-five-screen-review [data-screen=me] .me-profile h2 { width: 100%; }
html body #cosmos-five-screen-review [data-screen=me] .me-profile small { font-size: 12.5px; }
html body #cosmos-five-screen-review [data-screen=me] [data-action=edit-profile] { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; min-height: 28px !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) { background: var(--d2-grad); border-radius: 20px; padding: 10px 12px !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) .sub-card { background: none !important; padding: 0; border: 0; display: flex; flex-direction: column; gap: 3px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) .sub-card svg { display: none; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) h3 { font-size: 17px; font-weight: 600; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) p { font-size: 12px; line-height: 1.35; color: #2F3A2D; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) button.textbtn { font-size: 13px; justify-content: flex-start; gap: 6px; min-height: 28px !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) { background: var(--d2-card); border: 1px solid var(--d2-line) !important; border-radius: 20px; padding: 10px 12px !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) > .spread { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) .profile { display: flex; align-items: center; gap: 8px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) .profile > span:last-child { display: flex; flex-direction: column; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) .monogram { width: 38px; height: 38px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) strong { font-size: 13.5px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) small { font-size: 11.5px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) [data-open=persona] { font-size: 13px; margin-top: auto; min-height: 28px !important; align-self: flex-start; color: var(--d2-ink) !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) [data-open=persona]::after { content: " →"; }
html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) .mark { grid-column: 1 / -1; }
html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) button.textbtn {
 display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 8px 3px !important; border-radius: 16px;
 background: var(--d2-card); border: 1px solid var(--d2-line); font-size: 11.5px !important; line-height: 1.3 !important; font-weight: 500; text-align: center;
}
html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) button.textbtn > span:first-child { display: flex !important; flex-direction: column; align-items: center; gap: 4px; }
html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) button.textbtn svg { width: 30px !important; height: 30px !important; padding: 7px; border-radius: 50%; background: var(--d2-sageL); color: var(--d2-sageInk2); }
html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) button.textbtn > span[aria-hidden=true]:last-child { display: none; }
html body #cosmos-five-screen-review [data-screen=me] [data-style-summary] { font-size: 11px !important; color: var(--d2-sageD) !important; font-weight: 600; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) { gap: 0 !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) .mark { margin-bottom: 6px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) button.textbtn { display: flex; align-items: center; justify-content: space-between; min-height: 40px !important; padding: 0 14px !important; font-size: 14px; font-weight: 500; background: var(--d2-card); border: 1px solid var(--d2-line); border-top: 0; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) button.textbtn:nth-of-type(1) { border-radius: 18px 18px 0 0; border-top: 1px solid var(--d2-line); }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) button.textbtn:last-of-type { border-radius: 0 0 18px 18px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) svg { width: 17px; height: 17px; }

/* ---------- bottom menu: 5 labelled items, charcoal active ---------- */
html body #cosmos-five-screen-review .page nav {
 position: sticky; bottom: 0; z-index: 5; flex: none; display: grid; grid-template-columns: repeat(5,1fr);
 margin: 4px 12px 0; padding: 6px 4px calc(6px + var(--d2-safe-b)) !important; border-radius: 28px 28px 0 0; border: 1px solid var(--d2-line); border-bottom: 0;
 background: rgba(247,248,246,.97) !important; box-shadow: 0 -6px 18px rgba(60,70,60,.06);
}
@media (min-width: 560px) { html body #cosmos-five-screen-review .page nav { margin-bottom: 12px; border-radius: 28px; border-bottom: 1px solid var(--d2-line); padding-bottom: 6px !important; } }
html body #cosmos-five-screen-review .page nav button { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none !important; color: var(--d2-ink3) !important; font-size: 11px; font-weight: 500; box-shadow: none !important; padding: 0 2px; white-space: nowrap; }
html body #cosmos-five-screen-review .page nav button svg { width: 18px; height: 18px; }
html body #cosmos-five-screen-review .page nav button span { color: inherit !important; }
html body #cosmos-five-screen-review .page nav button[aria-current] { color: var(--d2-ink) !important; font-weight: 700; }
html body #cosmos-five-screen-review .page nav button[aria-current] svg { width: 40px; height: 30px; padding: 6px 11px; border-radius: 999px; background: var(--d2-char); color: #fff; }
html body #cosmos-five-screen-review .page nav button[aria-current]::after { display: none; }

/* ---------- sheets / dialogs ---------- */
html body #cosmos-five-screen-review dialog, html body dialog.cosmos-consent { border: 1px solid var(--d2-line); border-radius: 26px; background: var(--d2-card); color: var(--d2-ink); box-shadow: 0 20px 40px rgba(40,50,40,.2); padding: 20px; font-family: var(--d2-font); }
html body #cosmos-five-screen-review dialog::backdrop, html body dialog.cosmos-consent::backdrop { background: rgba(30,36,32,.35); backdrop-filter: blur(3px); }
html body #cosmos-five-screen-review dialog .primary, html body dialog.cosmos-consent button[data-consent-confirm] { background: var(--d2-char) !important; color: #fff !important; border: 0; border-radius: 999px; }
html body dialog.cosmos-consent button { border: 1px solid var(--d2-line); border-radius: 999px; background: var(--d2-card); color: var(--d2-ink); padding: 8px 18px; }
html body dialog.cosmos-consent input { accent-color: var(--d2-char); }
html body #cosmos-five-screen-review dialog .sharecard { border: 1px solid var(--d2-line); border-radius: 16px; background: var(--d2-bg); }
html body #cosmos-five-screen-review dialog [data-sheet-body] > button.textbtn { display: flex !important; justify-content: center; width: 100%; min-height: 48px; margin-top: 14px !important; border-radius: 999px; color: #fff !important; background: var(--d2-char); }

/* =================================================================
   Onboarding pages and sign-in
   ================================================================= */
html body.d2-onb, html body:has(main.signin), html body:has(.d2-identity) { margin: 0 !important; padding: 0 !important; background: var(--d2-bg) !important; color: var(--d2-ink); }
html body main:not(.signin) {
 box-sizing: border-box; max-width: 480px; min-height: 100dvh; margin: 0 auto; border-radius: 0; background: var(--d2-bg) !important; box-shadow: none; display: flex; flex-direction: column; gap: 10px;
 padding: calc(12px + var(--d2-safe-t)) 18px calc(14px + var(--d2-safe-b)) !important;
}
@media (min-width: 560px) { html body main:not(.signin) { min-height: min(100dvh, 940px); margin-top: 16px; border-radius: 36px; border: 1px solid var(--d2-line); } }
html body main :is(h1,h2,p) { margin: 0; }
html body main h1 { font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -.4px; color: var(--d2-ink); }
html body main .intro { font-size: 13px; line-height: 1.55; color: var(--d2-ink2); margin: -4px 0 0; }
/* top bar: back · steps · n / 3 */
html body main :is(main > header:not(.identity), .top) { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 11.5px var(--d2-font); letter-spacing: .1em; color: var(--d2-ink3); text-transform: uppercase; margin: 0; }
html body main :is(main > header, .top) > span:last-child { text-transform: none; letter-spacing: 0; border: 1px solid var(--d2-line); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
html body main .progress { flex: 1; display: flex !important; justify-content: center; gap: 6px; height: auto !important; background: none !important; box-shadow: none !important; margin: 0 !important; }
html body main .progress span { display: block; width: 8px !important; height: 8px !important; border-radius: 50%; background: #C6CBC5 !important; box-shadow: none !important; }
html body main .progress span.complete { background: var(--d2-sageD) !important; }
html body main .progress span.on { width: 26px !important; border-radius: 5px; background: var(--d2-char) !important; }
html body main .back { width: 40px; height: 40px; margin: 0; flex: none; border-radius: 50%; background: var(--d2-chip); box-shadow: none; display: grid; place-items: center; font-size: 18px; color: var(--d2-ink); text-decoration: none; }
/* primary button */
html body main .next { flex: none; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--d2-char) !important; color: #F3F4F2 !important; box-shadow: none !important; font-size: 15.5px; font-weight: 600; padding: 6px 8px 6px 22px; text-decoration: none; margin-top: auto; }
html body main .next > span[aria-hidden=true], html body main a.next::after { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); }
html body main a.next::after { content: "→"; }
html body main .next:disabled { background: #D9DDD7 !important; color: var(--d2-ink3) !important; }
html body main .later { text-align: center; font-size: 13px; color: var(--d2-ink); text-decoration: underline; text-underline-offset: 4px; }
html body main .foot, html body .d2-foot { font-size: 11.5px; color: var(--d2-ink3); text-align: center; line-height: 1.5; margin: 0; }
html body main .note, html body > .note { display: none; }
/* inputs */
html body main :is(input:not([type=checkbox]):not([type=radio]),select) { border: 0; border-radius: 14px; background: #ECEFEA; color: var(--d2-ink); box-shadow: none; height: 46px; padding: 8px 14px; font-size: 15px; }
html body main :is(input:not([type=checkbox]):not([type=radio]),select):focus { outline: 2px solid var(--d2-char); outline-offset: 1px; background: #fff; }
html body main input::placeholder { color: #8C938E; }
html body main input[aria-invalid=true] { box-shadow: 0 0 0 2px var(--se-error); }

/* ---------- S00_01 ---------- */
.d2-birth main form { background: var(--d2-card); border: 1px solid var(--d2-line); border-radius: 24px; padding: 12px 14px 4px; box-shadow: none; }
.d2-birth main form .divider { display: none; }
.d2-birth main .field { margin-bottom: 10px; }
.d2-birth main form label, .d2-birth main .legend { font-weight: 600; font-size: 13.5px; color: var(--d2-ink); margin-bottom: 5px; }
.d2-birth main .yearline { margin-bottom: 5px; }
.d2-birth main .yearline select { height: 32px; width: 84px; border-radius: 10px; font-size: 13px; }
.d2-birth main .hint { font-size: 12px; line-height: 1.5; color: var(--d2-ink3); margin-top: 4px; }
.d2-birth main .unknown { background: var(--d2-sageL); color: var(--d2-ink); border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.d2-birth main .status { color: var(--se-error); font-size: 13px; margin: 6px 0; }
.d2-birth main form .next { margin: 6px 0 4px; }
.d2-birth main .approach { border-top: 0; margin: 0; padding: 0; font-size: 11.5px; line-height: 1.55; color: var(--d2-ink3); text-align: center; }
.nt-precision { display: flex; padding: 4px; border-radius: 999px; border: 1px solid var(--d2-line); background: var(--d2-bg); margin-bottom: 2px; }
.nt-precision button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 6px 4px; min-height: 40px; font: 600 13.5px var(--d2-font); color: var(--d2-ink3); cursor: pointer; }
.nt-precision button[aria-pressed=true] { background: var(--d2-char); color: #fff; }
.nt-precision button:focus-visible { outline: 2px solid var(--d2-char); outline-offset: 2px; }
.d2-birth .nt-mode-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.d2-birth main input[type=time] { min-width: 0; }

/* ---------- S00_02 ---------- */
.d2-identity main .identity { text-align: left; padding: 0; margin: 0; }
.d2-identity main .identity .eyebrow { font: 600 11.5px var(--d2-font); letter-spacing: .1em; color: var(--d2-ink3); text-transform: uppercase; }
.d2-identity main .identity h1 { font-size: 34px; font-weight: 300; letter-spacing: -.8px; line-height: 1.1; text-transform: none; }
.d2-identity main .identity :is(.subtitle,.approx-date) { display: inline; color: var(--d2-ink2); font-size: 12.5px; line-height: 1.5; }
.d2-identity main .identity .subtitle::after { content: " · "; }
.d2-identity main [data-state]:not([hidden]) { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.d2-identity main [data-state] > section { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.d2-identity main .section-label { display: none; }
.d2-identity main :is(.symbol,.zodiac) { font-family: "D2 Glyph",sans-serif !important; }
.d2-identity main .rising { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; border-radius: 26px; padding: 12px 16px; background: var(--d2-grad); }
.d2-identity main .rising .zodiac { display: none !important; }
.d2-identity main .rising > div:not(.d2-gx) { display: flex; flex-direction: column; gap: 2px; }
.d2-identity main .rising .eyebrow { font: 600 11px var(--d2-font); letter-spacing: .1em; color: var(--d2-sageInk2); text-transform: uppercase; }
.d2-identity main .rising h2 { font-size: 34px; font-weight: 400; letter-spacing: -.6px; line-height: 1.1; color: var(--d2-ink); }
.d2-identity main .rising .detail { font-size: 13px; color: #2F3A2D; }
.d2-identity main .d2-gx { width: min(42vw,170px); }
.d2-identity main .d2-gauge { width: 100%; display: block; }
.d2-identity main .d2-gl { display: flex; justify-content: space-between; margin-top: -2px; }
.d2-identity main .d2-gl small { font-size: 11px; color: var(--d2-sageInk2); }
.d2-identity main .stars { display: flex; flex-direction: column; border-radius: 22px; background: var(--d2-card); border: 1px solid var(--d2-line); gap: 0; }
.d2-identity main .star { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-top: 1px solid var(--d2-line); border-radius: 0; background: none; box-shadow: none; text-align: left; }
.d2-identity main .star:first-child { border-top: 0; }
.d2-identity main .star .symbol { display: none; }
.d2-identity main .star small { font-size: 12.5px; color: var(--d2-ink3); }
.d2-identity main .star strong { font-size: 15px; font-weight: 500; }
.d2-identity main .certainty { display: inline-flex; justify-self: end; align-items: center; width: fit-content; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--d2-sage); color: var(--d2-sageInk); }
.d2-identity main .certainty.range { background: none; border: 1.2px solid var(--d2-sageD); color: var(--d2-sageInk2); }
.d2-identity main .certainty.trial { background: none; border: 1.2px dashed var(--d2-sageD); color: var(--d2-sageInk2); }
.d2-identity main .description { font-size: 13px; line-height: 1.55; color: var(--d2-ink2); }
.d2-identity main .thai-data { background: var(--d2-card); border: 1px solid var(--d2-line); border-radius: 22px; padding: 10px 14px; box-shadow: none; }
.d2-identity main .thai-data .eyebrow { font: 600 11px var(--d2-font); letter-spacing: .08em; color: var(--d2-ink3); }
.d2-identity main .thai-data dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 6px 0 0; }
.d2-identity main .thai-data .data-row { display: block; margin: 0; border: 0; padding: 0; }
.d2-identity main .thai-data dt { font-size: 11.5px; color: var(--d2-ink3); line-height: 1.4; }
.d2-identity main .thai-data dd { margin: 0; text-align: left; font-size: 14px; line-height: 1.45; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.d2-identity main .thai-data dd .certainty { font-size: 10.5px; padding: 1px 8px; }
.d2-identity main :is(.hint,.method-note,.possible,.fixture-note,.detail[style]) { font-size: 12px !important; line-height: 1.5; color: var(--d2-ink3); margin: 0 !important; }
.d2-identity main .notice { background: var(--d2-card); border: 1px solid var(--d2-line); border-radius: 22px; padding: 12px 14px; box-shadow: none; }
.d2-identity main .notice h2 { font-size: 15px; font-weight: 600; }
.d2-identity main .notice p { font-size: 13px; line-height: 1.5; color: var(--d2-ink2); }
.d2-identity main .notice .time-range { font-size: 24px; font-weight: 300; color: var(--d2-ink); }
.d2-identity main .notice a { font-size: 13px; color: var(--d2-ink); font-weight: 600; }
.d2-identity main [data-state=unknown] .notice { background: var(--d2-grad); border: 0; }
.d2-identity main dl:not(.thai-data dl) { border-radius: 22px; background: var(--d2-card); border: 1px solid var(--d2-line); margin: 0; }
.d2-identity main .unknown .data-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--d2-line); margin: 0; }
.d2-identity main .unknown .data-row:first-child { border-top: 0; }
.d2-identity main .unknown dt { font-size: 12.5px; color: var(--d2-ink3); }
.d2-identity main .unknown dd { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.d2-identity main .asc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d2-identity main .asc-card { border: 0 !important; border-radius: 18px !important; background: var(--d2-grad); box-shadow: none; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.d2-identity main .asc-card .symbol { font-size: 20px; color: var(--d2-sageInk2); }
.d2-identity main .asc-card h2 { font-size: 17px; font-weight: 600; }
.d2-identity main .asc-card :is(.detail,.degree) { font-size: 12px; color: var(--d2-sageInk2); margin: 0; }
.d2-identity main .eyebrow { font: 600 11px var(--d2-font); letter-spacing: .08em; color: var(--d2-ink3); text-transform: uppercase; }
.d2-identity main section.two { gap: 0; }
.d2-identity main section.two > :is(h2,.section-label) { display: none; }
.d2-identity main .d2-tap { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; border: 1px solid var(--d2-line); border-radius: 18px; background: var(--d2-card); padding: 8px 14px; font: 400 12.5px var(--d2-font); color: var(--d2-ink2); text-align: left; cursor: pointer; }
.d2-identity main .d2-tap-t { font-weight: 600; color: var(--d2-ink); white-space: nowrap; }
.d2-identity main .d2-tap-t::after { content: " ·"; }
.d2-identity main .d2-tap-s { flex: 1; }
.d2-identity main .d2-tap[aria-expanded=true] .d2-tap-a { transform: rotate(90deg); }
.d2-identity main section.two .description { padding: 8px 6px 0; }
.d2-identity main .mock[data-lahiri-note] { display: none !important; }
.nt-tabs { display: flex; padding: 4px; border-radius: 999px; border: 1px solid var(--d2-line); background: var(--d2-card); margin: 0; }
.nt-tabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 6px; min-height: 40px; font: 600 14px var(--d2-font); color: var(--d2-ink3); cursor: pointer; }
.nt-tabs button[aria-selected=true] { background: var(--d2-char); color: #fff; }
.nt-tabs button:focus-visible { outline: 2px solid var(--d2-char); outline-offset: 2px; }
main[data-nt-tab=western] [data-state=exact] > section:nth-of-type(2),
main[data-nt-tab=thai] [data-state=exact] > section:nth-of-type(1),
main[data-nt-tab=western] [data-state=approximate] > section:nth-of-type(3),
main[data-nt-tab=thai] [data-state=approximate] > section:nth-of-type(2) { display: none !important; }
.d2-identity main [data-state] > a.next { margin-top: auto; }

/* ---------- S00_04: astrologer + language level on one screen ---------- */
.d2-choose fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.d2-choose legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.d2-choose .d2-trio { display: flex; justify-content: space-around; }
.d2-choose .person { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font-size: 12.5px; color: var(--d2-ink2); border: 0; background: none; padding: 0; margin: 0; box-shadow: none; }
.d2-choose .person input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.d2-choose .person .portrait { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #EEEAE4; opacity: .75; border: 2px solid transparent; }
.d2-choose .person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.d2-choose .person.selected { color: var(--d2-ink); font-weight: 600; }
.d2-choose .person.selected .portrait { opacity: 1; border-color: var(--d2-char); box-shadow: 0 0 0 2px var(--d2-bg), 0 0 0 3.5px var(--d2-char); }
.d2-choose .person:has(input:focus-visible) .portrait { outline: 2px solid var(--d2-sageD); outline-offset: 4px; }
.d2-choose .d2-sel { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; border-radius: 28px; padding: 10px; background: var(--d2-grad); }
.d2-choose .heading { display: flex; gap: 12px; align-items: center; }
.d2-choose .heading .portrait { width: 118px; height: 132px; flex: none; border-radius: 20px; overflow: hidden; background: #EEEAE4; }
.d2-choose .heading .portrait img { object-fit: cover !important; object-position: 50% 22%; }
.d2-choose .heading h2 { font-size: 22px; font-weight: 400; letter-spacing: -.3px; line-height: 1.2; }
.d2-choose .heading .title { font-size: 12.5px; color: var(--d2-sageInk2); margin-top: 4px; }
.d2-choose .heading .method { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.7); font-size: 11.5px; font-weight: 600; color: var(--d2-sageInk); }
.d2-choose .label { font: 600 11px var(--d2-font); letter-spacing: .08em; color: var(--d2-sageInk2); padding: 0 4px; }
.d2-choose .d2-levels { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.6); }
.d2-choose .option { flex: 1; display: flex; flex-direction: column; align-items: center; border-radius: 999px; padding: 5px 4px; cursor: pointer; line-height: 1.25; border: 0; background: none; margin: 0; min-height: 0; }
.d2-choose .option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.d2-choose .option .title { font-size: 13.5px; font-weight: 600; color: var(--d2-ink); }
.d2-choose .option .description { font-size: 10.5px; color: var(--d2-ink3); margin: 0; }
.d2-choose .option.selected { background: var(--d2-char) !important; }
.d2-choose .option.selected :is(.title,.description) { color: #fff; }
.d2-choose .option:has(input:focus-visible) { outline: 2px solid var(--d2-char); outline-offset: 2px; }
.d2-choose .d2-desc { font-size: 12px; color: var(--d2-sageInk2); padding: 0 6px; }
.d2-choose .preview { border-radius: 18px; background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; border: 0; margin: 0; min-height: 0; }
.d2-choose .speaker { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--d2-ink3); margin: 0; }
.d2-choose .avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #EEEAE4; margin: 0; }
.d2-choose .avatar img { object-fit: cover !important; object-position: 50% 20%; }
.d2-choose .quote { font-size: 14.5px; line-height: 1.55; color: var(--d2-ink); }
.d2-choose .bottom { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; }

/* ---------- sign-in (index) ---------- */
html body .signin { box-sizing: border-box; max-width: 480px; min-height: 100dvh; padding: calc(28px + var(--d2-safe-t)) 18px calc(18px + var(--d2-safe-b)); gap: 12px; }
html body .signin .d2-sihero { position: relative; width: min(78%,300px); aspect-ratio: 1; margin: 8px auto 6px; display: grid; place-items: center; }
html body .signin .d2-sihero .d2-dialsvg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 16px rgba(80,110,70,.25)); }
html body .signin h1 { position: relative; margin: 0; font-size: clamp(28px, 10vw, 40px); font-weight: 600; letter-spacing: 6px; color: var(--d2-ink); background: none; box-shadow: none; padding: 0; }
html body .signin h1 + p { text-align: center; font-size: 14.5px; color: var(--d2-ink2); background: none; padding: 0; box-shadow: none; }
/* Google's own dark button (branding guidelines: #131314 fill, #8E918F stroke, #E3E3E3 label), pill shape */
html body .signin .gsi-button { margin-top: 4px; min-height: 52px; border-radius: 999px; background: #131314; border: 1px solid #8E918F; color: #E3E3E3; box-shadow: none; }
html body .signin .gsi-button svg { background: #fff; border-radius: 50%; padding: 3px; }
html body .signin .privacy { font-size: 12.5px; line-height: 1.55; border: 1px solid var(--d2-line); background: var(--d2-card); border-radius: 18px; color: var(--d2-ink2); box-shadow: none; }
html body .signin .privacy a { color: var(--d2-ink); font-weight: 600; }
html body .signin .d2-trio-row { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
html body .signin .d2-trio-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--d2-bg); margin: 0 -5px; background: #EEEAE4; }
html body .signin .d2-trio-row small { width: 100%; text-align: center; font-size: 12px; color: var(--d2-ink3); margin-top: 6px; }
html body .signin .switch-account { border: 1px solid var(--d2-line); color: var(--d2-ink); }

/* shorter phones (e.g. Galaxy 360×780): tighter spacing, same text sizes */
@media (max-height: 800px) {
 html body main:not(.signin) { gap: 7px; }
 .d2-identity main .rising { padding: 10px 14px; }
 .d2-identity main .rising h2 { font-size: 30px; }
 .d2-identity main .star { padding: 6px 14px; }
 .d2-identity main .identity h1 { font-size: 30px; }
 .nt-tabs button { min-height: 36px; padding: 4px; }
 html body #cosmos-five-screen-review [data-screen=me] .me-profile h2 { font-size: 26px; }
 html body #cosmos-five-screen-review [data-screen=me]:not([hidden]) { gap: 5px; padding-top: 8px !important; }
 html body #cosmos-five-screen-review [data-screen=me] .me-profile .monogram { width: 44px; height: 44px; }
 html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(1)::before { padding-left: 56px; }
 html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) button.textbtn { min-height: 38px !important; }
 html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) button.textbtn { padding: 6px 3px !important; }
 html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) button.textbtn svg { width: 26px !important; height: 26px !important; padding: 6px; }
}
html body #cosmos-five-screen-review .page .persona-copy .mark [data-astrologer] { display: inline !important; font-size: inherit !important; font-weight: inherit !important; color: inherit !important; letter-spacing: inherit; }
