/* Design V1.3 "Neo-Tactile" (approved by Ryan 2026-11-27). Visual layer only:
   it re-maps the V1.2 tokens and restyles/re-lays out the existing markup.
   No content, data, ids, data-attributes or page logic depend on this file. */

@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; }

/* ---------- tokens: V1.2 names, V1.3 values ---------- */
:root {
 --se-canvas:#f3f1ed;
 --se-surface:#f7f5f1;
 --se-ink:#33322f;
 --se-secondary:#6e6a65;
 --se-line:#dcd6ce;
 --se-control:#c9c1b7;
 --se-sage-soft:#a9bda8;
 --se-primary:#657963;
 --se-primary-pressed:#566a54;
 --se-on-primary:#ffffff;
 --se-accent:#5f735e;
 --se-gold:#bfb2a6;
 --se-growth:#cfdccb;
 --se-rose:#dcc3b9;
 --se-amber:#e5dac4;
 --se-lavender:#d3cfdf;
 --se-neutral:#e9e4dd;
 --se-card-secondary:#3f3b37;
 --se-error:#93463d;
 --se-disabled:#ddd6cd;
 --se-disabled-text:#6e6a65;
 --se-lift:0 1px 0 rgba(255,255,255,.85) inset,0 10px 22px -8px rgba(110,92,74,.28),0 2px 5px rgba(110,92,74,.10);
 --se-inset:inset 2px 3px 6px rgba(110,92,74,.16),inset -2px -2px 5px rgba(255,255,255,.7);

 --nt-page:#e9e5de;
 --nt-card:#ebe6df;
 --nt-card-hi:#f7f5f1;
 --nt-well:#e2dcd4;
 --nt-taupe:#a5978c;
 --nt-clay:#c4a79c;
 --nt-clay-deep:#b5958a;
 --nt-sage-soft:#dfe7dc;
 --nt-primary-hi:#7a8d77;
 --nt-on-card:#2f2c29;
 --nt-pending-bg:#ece3cf;
 --nt-pending-ink:#6b5a3d;
 --nt-float:0 1px 0 rgba(255,255,255,.9) inset,0 18px 34px -12px rgba(110,92,74,.38),0 4px 10px rgba(110,92,74,.12);
 --nt-gentle:0 1px 0 rgba(255,255,255,.8) inset,0 4px 10px -4px rgba(110,92,74,.22);
 /* menus: 60% of the card shadows (Ryan: "ลดเงาเมนู 40%") */
 --nt-menu-float:0 1px 0 rgba(255,255,255,.9) inset,0 11px 20px -7px rgba(110,92,74,.23),0 2px 6px rgba(110,92,74,.07);
 --nt-menu-lift:0 1px 0 rgba(255,255,255,.85) inset,0 6px 13px -5px rgba(110,92,74,.17),0 1px 3px rgba(110,92,74,.06);
 --nt-menu-gentle:0 1px 0 rgba(255,255,255,.8) inset,0 2px 6px -2px rgba(110,92,74,.13);
 --nt-glow:0 0 0 3px rgba(169,189,168,.35),0 6px 16px -4px rgba(131,148,129,.55);
 --nt-font:"Inter","Noto Sans Thai",sans-serif;
 --nt-raised:linear-gradient(180deg,var(--nt-card-hi),var(--nt-card));
 --nt-clay-fill:linear-gradient(160deg,#d2b7ac,var(--nt-clay) 55%,var(--nt-clay-deep));
 --nt-taupe-fill:linear-gradient(180deg,#b3a69b,var(--nt-taupe));
}

/* ---------- typography everywhere ---------- */
html body, html body :is(input,select,button,textarea) { font-family: var(--nt-font); }
html body #cosmos-five-screen-review .page * { font-family: var(--nt-font) !important; }
html body :is(h1,h2,h3) { letter-spacing: -.01em; }

/* =================================================================
   Onboarding pages S00_01 … S00_04 and privacy
   ================================================================= */
html body:is(.neu-birth,:not(.neu-birth)) { background: var(--nt-page); }
html body main:not(.signin) {
 background: var(--se-canvas); border-radius: 28px; padding: 22px 20px 26px;
 box-shadow: 0 30px 60px -30px rgba(80,66,52,.35), 0 0 0 1px rgba(255,255,255,.7) inset;
}
html body main h1 { font-weight: 600; color: var(--se-ink); letter-spacing: -.01em; }
html body main :is(main > header:not(.identity),.top) { font: 500 12px var(--nt-font); letter-spacing: .08em; text-transform: uppercase; color: var(--se-secondary); }
html body main :is(main > header:not(.identity),.top) span:last-child { text-transform: none; letter-spacing: 0; background: var(--nt-well); box-shadow: var(--se-inset); border-radius: 999px; padding: 1px 10px; }
/* progress: one bar (S00_01/03) or 4 steps (S00_02/04) */
html body main .progress { height: 6px; border-radius: 6px; background: var(--nt-well); box-shadow: var(--se-inset); }
html body main .progress span { height: 6px; border-radius: 6px; background: var(--se-sage-soft); box-shadow: 0 0 0 2px rgba(169,189,168,.3); }
html body main .progress:has(> span + span) { height: auto; background: none; box-shadow: none; gap: 8px; }
html body main .progress:has(> span + span) span { background: var(--nt-well); box-shadow: var(--se-inset); }
html body main .progress:has(> span + span) span.complete,
html body main .progress[aria-label*="4 จาก 4"] span { background: var(--se-sage-soft); box-shadow: 0 0 0 2px rgba(169,189,168,.3); }
html body main .back { width: 40px; height: 40px; margin: 10px 0 8px; border-radius: 12px; background: var(--nt-raised); box-shadow: var(--nt-gentle); font-size: 20px; color: var(--se-accent); }

/* primary button */
html body main .next {
 border-radius: 14px; min-height: 54px; font-weight: 600;
 background: linear-gradient(180deg,var(--nt-primary-hi),var(--se-primary)); color: #fff;
 box-shadow: var(--nt-glow), 0 1px 0 rgba(255,255,255,.35) inset;
}
html body main .next:active { background: var(--se-primary-pressed); box-shadow: var(--se-inset); }
html body main .next:disabled { background: var(--se-disabled); color: var(--se-disabled-text); box-shadow: none; }

/* inputs: inset wells, focus = soft blue glow (reference) */
html body main :is(input:not([type=checkbox]):not([type=radio]),select) {
 border: 0; border-radius: 14px; background: var(--nt-well); color: var(--se-ink);
 box-shadow: var(--se-inset); height: 52px; padding: 10px 14px;
}
html body main :is(input:not([type=checkbox]):not([type=radio]),select):focus {
 outline: none; background: var(--nt-card-hi);
 box-shadow: 0 0 0 2px #bfe0ef, 0 0 14px 2px rgba(121,193,227,.45);
}
html body main input::placeholder { color: #9a948d; }
html body main input[aria-invalid=true] { box-shadow: 0 0 0 2px var(--se-error); }

/* ---------- S00_01 ---------- */
.neu-birth form { background: var(--nt-raised); border-radius: 18px; padding: 18px 16px 6px; box-shadow: var(--se-lift); }
.neu-birth form .divider { display: none; }
.neu-birth form label, .neu-birth .legend { font-weight: 600; font-size: 14.5px; color: var(--se-ink); }
.neu-birth .yearline select { height: 34px; width: 92px; border-radius: 10px; font-size: 13.5px; }
.neu-birth .hint { font-size: 12.5px; line-height: 1.6; color: var(--se-secondary); margin-top: 6px; }
.neu-birth .unknown {
 position: relative; background: #efe3dc; color: var(--se-ink); border-radius: 14px; padding: 13px 16px 13px 20px;
 box-shadow: var(--se-inset); font-size: 14px;
}
.neu-birth .unknown::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--nt-clay-deep); }
.neu-birth .status { color: var(--se-error); }
.neu-birth .next { margin-top: 10px; }
.neu-birth .foot { margin-bottom: 8px; }
.neu-birth .approach { border-top: 0; font-size: 13px; color: var(--se-secondary); }
.neu-birth .note { color: var(--se-secondary); }
/* time-precision segmented control (buttons drive the existing #mode select) */
.nt-precision { display: flex; padding: 4px; border-radius: 14px; background: var(--nt-well); box-shadow: var(--se-inset); margin-bottom: 4px; }
.nt-precision button { flex: 1; border: 0; background: none; border-radius: 10px; padding: 9px 4px; min-height: 44px; font: 600 14px var(--nt-font); color: var(--se-secondary); cursor: pointer; }
.nt-precision button[aria-pressed=true] { background: var(--nt-raised); box-shadow: var(--nt-gentle); color: var(--se-ink); }
.nt-precision button:focus-visible { outline: 2px solid var(--se-accent); outline-offset: 2px; }
.neu-birth .nt-mode-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.neu-birth .time-icon { position: relative; }
.neu-birth input[type=time] { min-width: 0; }

/* ---------- S00_02 ---------- */
html body main .identity { text-align: left; }
html body main .identity .eyebrow { font: 500 12px var(--nt-font); letter-spacing: .08em; color: var(--se-secondary); }
html body main .identity h1 { font-size: 30px; margin: 2px 0 0; }
html body main .identity :is(.subtitle,.approx-date) { color: var(--se-secondary); font-size: 13px; margin: 0; }
html body main [data-state] > section { background: var(--nt-raised); border-radius: 18px; padding: 16px; box-shadow: var(--se-lift); border: 0; margin: 0 0 14px; }
html body main [data-state] > section.two { background: none; box-shadow: none; padding: 4px 2px; }
html body main [data-state] > section.two .section-label { display: none; }
html body main [data-state] > section.two h2 { font-size: 15px; margin: 0 0 2px; }
html body main [data-state] > section.two .description { font-size: 13px; }
html body main .section-label { font: 500 12px var(--nt-font); letter-spacing: .08em; color: var(--se-secondary); }
html body main :is(.symbol,.zodiac) { font-family: "DejaVu Sans",sans-serif !important; }
html body main .identity h1 { text-transform: none; }
html body main .zodiac { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--nt-raised); box-shadow: var(--nt-gentle); color: var(--se-primary); font-family: "DejaVu Sans",sans-serif !important; }
html body main .stars { gap: 8px; }
html body main .star { background: var(--nt-raised); border: 0; border-radius: 12px; box-shadow: var(--nt-gentle); padding: 10px 6px; }
html body main .star .symbol { color: var(--se-accent); }
html body main .thai-data { background: var(--nt-well); box-shadow: var(--se-inset); border-radius: 14px; padding: 12px 14px; }
html body main .thai-data dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
html body main .thai-data .data-row { display: block; margin: 0; }
html body main .thai-data dt { font-size: 11.5px; color: var(--se-secondary); line-height: 1.4; }
html body main .thai-data dd { text-align: left; font-size: 14px; line-height: 1.5; }
html body main .notice { background: var(--nt-well); box-shadow: var(--se-inset); border-radius: 14px; }
html body main .asc-card { background: var(--nt-raised); border: 0 !important; box-shadow: var(--nt-gentle); border-radius: 14px !important; }
html body main .certainty.range, html body main .range { color: var(--se-accent); }
html body main .mock, html body main .fixture-note { color: var(--se-secondary); }
html body main .later { color: var(--se-accent); }
/* Western / Thai tabs (added by the page; hidden for "unknown" and for changed birth data) */
.nt-tabs { display: flex; padding: 5px; border-radius: 14px; background: var(--nt-well); box-shadow: var(--se-inset); margin: 14px 0; }
.nt-tabs button { flex: 1; border: 0; background: none; border-radius: 10px; padding: 9px; min-height: 44px; font: 600 14.5px var(--nt-font); color: var(--se-secondary); cursor: pointer; }
.nt-tabs button[aria-selected=true] { background: var(--nt-raised); box-shadow: var(--nt-gentle); color: var(--se-ink); }
.nt-tabs button:focus-visible { outline: 2px solid var(--se-accent); 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; }

/* ---------- S00_03 ---------- */
html body main .option { border: 0 !important; border-radius: 18px; background: var(--nt-raised); box-shadow: var(--nt-gentle); padding: 16px !important; min-height: 84px; }
html body main .option.selected { background: var(--nt-sage-soft) !important; box-shadow: 0 0 0 2px var(--se-sage-soft), var(--se-lift); }
html body main .option input, html body main .person input { accent-color: var(--se-primary); }
html body main .option .title { font-weight: 600; color: var(--se-ink); }
html body main .preview { border-top: 0; background: var(--nt-well); box-shadow: var(--se-inset); border-radius: 18px; padding: 16px; min-height: 0; }
html body main .preview .quote { background: var(--nt-raised); box-shadow: var(--nt-gentle); border-radius: 4px 14px 14px 14px; padding: 10px 14px; font-size: 15.5px; }
html body main .consent { background: var(--nt-well); box-shadow: var(--se-inset); border-radius: 14px; }
html body main .avatar { background: var(--nt-card-hi); box-shadow: var(--nt-gentle); }

/* ---------- S00_04 ---------- */
html body main .person { border: 0; border-radius: 18px; background: var(--nt-raised); box-shadow: var(--nt-gentle); padding: 14px; margin-bottom: 12px; }
html body main .person.selected { background: var(--nt-sage-soft); box-shadow: 0 0 0 2px var(--se-sage-soft), var(--se-lift); }
html body main .person .portrait { width: 96px; height: 96px; border-radius: 14px; background: #f1e6de; box-shadow: var(--nt-gentle); margin-right: 14px; }
html body main .person.selected .portrait { outline: 0; background: #f1e6de; }
html body main .person .heading { margin-bottom: 10px; }
html body main .person h2 { font-size: 20px; }
html body main .person .quote { font-size: 14.5px; line-height: 1.7; color: var(--se-ink); }
html body main .person .method { display: inline-block; font-size: 12px; background: var(--nt-well); box-shadow: var(--se-inset); border-radius: 999px; padding: 1px 10px; margin-top: 8px; }
html body main .bottom { border-top: 0; padding-top: 8px; }

/* ---------- sign-in (index) ---------- */
html body .signin { padding-top: 72px; }
html body .signin h1 {
 color: var(--nt-on-card); letter-spacing: .14em; font-size: 30px; font-weight: 600;
 background: linear-gradient(160deg,#d2b7ac,var(--nt-clay)); box-shadow: none; border-radius: 22px 22px 0 0; padding: 28px 22px 10px; margin: 0 0 -16px; position: relative; z-index: 1;
}
html body .signin h1 + p { color: var(--nt-on-card); background: linear-gradient(180deg,var(--nt-clay),var(--nt-clay-deep)); border-radius: 0 0 22px 22px; padding: 4px 22px 26px; margin: 0; box-shadow: 0 18px 34px -12px rgba(110,92,74,.38),0 4px 10px rgba(110,92,74,.12); font-size: 16px; }
html body .signin .privacy { border: 0; background: var(--nt-well); box-shadow: var(--se-inset); border-radius: 16px; color: var(--se-ink); }
html body .signin .privacy a { color: var(--se-accent); font-weight: 600; }
html body .signin .gsi-button { border-radius: 14px; box-shadow: var(--nt-gentle); }

/* =================================================================
   Main five screens
   ================================================================= */
#cosmos-five-screen-review { --nt-scope: 1; }
html body:has(#cosmos-five-screen-review) { background: var(--nt-page) !important; }
html body #cosmos-five-screen-review .page {
 --paper:var(--se-canvas); --wash:var(--nt-well); --ink:var(--se-ink); --soft:var(--se-secondary);
 --accent:var(--se-accent); --line:var(--se-line); --card:var(--nt-card-hi); --on:#fff;
 border: 0; border-radius: 30px; background: var(--se-canvas);
 box-shadow: 0 30px 60px -30px rgba(80,66,52,.35), 0 0 0 1px rgba(255,255,255,.7) inset;
}
#cosmos-five-screen-review .page header { background: transparent; }
html body #cosmos-five-screen-review .page .panels { padding: 6px 18px 4px; }
html body #cosmos-five-screen-review .page .screen .block { border-bottom: 0 !important; min-block-size: 0; }
html body #cosmos-five-screen-review .page .mark { font-size: 11.5px; letter-spacing: .08em; font-weight: 500; color: var(--se-secondary); }
html body #cosmos-five-screen-review .page :is(h2,h3) { font-weight: 600; }
html body #cosmos-five-screen-review .page svg { color: var(--se-accent); }
/* cards */
html body #cosmos-five-screen-review .page :is(.nt-card) { background: var(--nt-raised); border-radius: 18px; box-shadow: var(--se-lift); padding: 16px; margin-bottom: 14px; }
/* text links rendered as tactile arrow rows */
html body #cosmos-five-screen-review .page button.textbtn.spread > span[aria-hidden=true]:last-child {
 width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none;
 background: var(--nt-sage-soft); color: var(--se-primary); box-shadow: var(--nt-gentle); font-size: 14px;
}
html body #cosmos-five-screen-review .page button.textbtn { color: var(--se-ink); font-weight: 600; }
html body #cosmos-five-screen-review .page .icon-only {
 width: 38px; height: 38px; min-height: 38px; border-radius: 11px; background: var(--nt-raised); box-shadow: var(--nt-gentle);
}
/* primary CTA */
html body #cosmos-five-screen-review .page button.textbtn[data-open=reading] {
 padding: 14px 18px; border-radius: 14px; color: #fff; margin-top: 12px;
 background: linear-gradient(180deg,var(--nt-primary-hi),var(--se-primary)); box-shadow: var(--nt-glow), 0 1px 0 rgba(255,255,255,.35) inset;
}
html body #cosmos-five-screen-review .page button.textbtn[data-open=reading] > span[aria-hidden=true]:last-child { background: none; box-shadow: none; color: #fff; }
html body #cosmos-five-screen-review .page button.textbtn[data-open=reading] span { color: #fff !important; }

/* ---------- Today ---------- */
html body #cosmos-five-screen-review .home .identity { padding: 14px 0 6px; }
html body #cosmos-five-screen-review .home .identity h2 { font-size: 32px; }
html body #cosmos-five-screen-review .page .asc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px; }
html body #cosmos-five-screen-review .page .asc div,
html body #cosmos-five-screen-review .page .asc div + div {
 background: var(--nt-raised); border-radius: 12px; box-shadow: var(--nt-gentle); padding: 10px 12px; border: 0;
}
html body #cosmos-five-screen-review .page .asc strong { font-size: 19px; }
html body #cosmos-five-screen-review .page .planet { display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; background: var(--nt-well); box-shadow: var(--se-inset); border-radius: 999px; padding: 3px 12px; }
html body #cosmos-five-screen-review .page .day {
 background: var(--nt-clay-fill) !important; border-radius: 20px; box-shadow: var(--nt-float); padding: 18px !important; margin: 10px 0 14px;
}
html body #cosmos-five-screen-review .page .day :is(h3,p,b,small,.mark,.category-label) { color: var(--nt-on-card) !important; }
html body #cosmos-five-screen-review .page .day h3 { font-size: 34px; }
html body #cosmos-five-screen-review .page .day .icon-only { background: rgba(255,255,255,.35); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 4px 10px -4px rgba(90,60,50,.35); }
html body #cosmos-five-screen-review .page .day .icon-only svg { color: #4a3a34; }
html body #cosmos-five-screen-review .page .categories { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; text-align: left; }
html body #cosmos-five-screen-review .page .category {
 display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
 background: rgba(255,255,255,.5); border-radius: 12px; padding: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 10px -6px rgba(90,60,50,.35);
}
html body #cosmos-five-screen-review .page .category svg { grid-row: 1 / 3; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--nt-card-hi); color: #6b4f45; box-shadow: var(--nt-gentle); }
html body #cosmos-five-screen-review .page .category .category-label { font-size: 12px; }
html body #cosmos-five-screen-review .page .category b { font-size: 14.5px; }
html body #cosmos-five-screen-review .page .topic {
 background: var(--nt-taupe-fill) !important; border-radius: 20px; padding: 18px !important; margin: 0 0 14px; box-shadow: var(--se-lift);
}
html body #cosmos-five-screen-review .page .topic[data-topic-tone=growth] { background: linear-gradient(180deg,#d8e3d4,var(--se-growth)) !important; }
html body #cosmos-five-screen-review .page .topic[data-topic-tone=relationship] { background: linear-gradient(180deg,#e4cfc6,var(--se-rose)) !important; }
html body #cosmos-five-screen-review .page .topic[data-topic-tone=attention] { background: linear-gradient(180deg,#ece3d0,var(--se-amber)) !important; }
html body #cosmos-five-screen-review .page .topic[data-topic-tone=transition] { background: linear-gradient(180deg,#dcd8e6,var(--se-lavender)) !important; }
html body #cosmos-five-screen-review .page .topic :is(h3,p,small,.mark,span) { color: var(--nt-on-card) !important; }
html body #cosmos-five-screen-review .page .topic svg { color: var(--nt-on-card); }
html body #cosmos-five-screen-review .page .topic button.textbtn.spread > span[aria-hidden=true]:last-child { background: rgba(255,255,255,.42); }
html body #cosmos-five-screen-review .page .astrologer {
 background: var(--nt-raised); border-radius: 18px; box-shadow: var(--se-lift); padding: 14px 16px !important; margin: 0 0 6px; border-top: 0 !important;
}
html body #cosmos-five-screen-review .page .monogram { background: var(--nt-card-hi); box-shadow: var(--nt-gentle), 0 0 0 3px var(--nt-card-hi); border-radius: 50%; }
html body #cosmos-five-screen-review .page .astrologer [data-open=persona] { color: var(--se-secondary); font-weight: 500; }

/* ---------- My Cosmic ---------- */
html body #cosmos-five-screen-review [data-screen=cosmic] > section:nth-of-type(1) { background: var(--nt-raised); border-radius: 18px; box-shadow: var(--se-lift); padding: 16px !important; margin: 10px 0 14px; }
html body #cosmos-five-screen-review [data-screen=cosmic] .birth-asc { border-top: 0; padding-top: 0; }
html body #cosmos-five-screen-review .page .segment { background: var(--nt-well) !important; box-shadow: var(--se-inset); border-radius: 14px; padding: 5px; }
html body #cosmos-five-screen-review .page .segment button { border-radius: 10px; color: var(--se-secondary); font-weight: 600; }
html body #cosmos-five-screen-review .page .segment button[aria-pressed=true] { background: var(--nt-raised) !important; box-shadow: var(--nt-gentle); color: var(--se-ink); }
html body #cosmos-five-screen-review .page .chart-placeholder {
 width: 240px; height: 240px; border: 0; background: var(--nt-well) !important; box-shadow: var(--se-inset); margin: 16px auto;
}
html body #cosmos-five-screen-review .page .chart-placeholder::before { inset: 26%; border: 0; background: var(--nt-raised); box-shadow: var(--se-lift); }
html body #cosmos-five-screen-review .page .chart-placeholder::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed #cfc6bb; z-index: -1; }
html body #cosmos-five-screen-review .page .chart-keys { gap: 8px; }
html body #cosmos-five-screen-review .page .chart-keys > div { background: var(--nt-raised); border-radius: 12px; box-shadow: var(--nt-gentle); padding: 10px 4px; }
html body #cosmos-five-screen-review [data-screen=cosmic] > section:nth-of-type(3) {
 background: var(--nt-clay-fill); border-radius: 20px; box-shadow: var(--nt-float); padding: 18px !important; margin: 12px 0 14px;
}
html body #cosmos-five-screen-review [data-screen=cosmic] > section:nth-of-type(3) :is(h3,p,strong,small,.mark,span) { color: var(--nt-on-card) !important; }
html body #cosmos-five-screen-review [data-screen=cosmic] > section:nth-of-type(3) .icon-only { background: rgba(255,255,255,.35); }
html body #cosmos-five-screen-review .page .dna-grid div { background: rgba(255,255,255,.55) !important; border-radius: 12px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 10px -6px rgba(90,60,50,.35); }
html body #cosmos-five-screen-review .page .dna-grid svg { color: #6b4f45; }
html body #cosmos-five-screen-review [data-screen=cosmic] > section:nth-of-type(3) button.textbtn.spread > span[aria-hidden=true]:last-child { background: rgba(255,255,255,.45); }
html body #cosmos-five-screen-review [data-screen=cosmic] > section:nth-of-type(4),
html body #cosmos-five-screen-review [data-screen=calendar] > section:nth-of-type(5) { background: var(--nt-raised); border-radius: 18px; box-shadow: var(--se-lift); padding: 10px 16px !important; margin-bottom: 8px; }

/* ---------- Astrologers ---------- */
html body #cosmos-five-screen-review [data-screen=astrologers]:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: start; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section { grid-column: 1 / -1; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(3),
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(4) { grid-column: auto; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(n+2):nth-of-type(-n+4) {
 background: var(--nt-raised); border-radius: 20px; box-shadow: var(--se-lift); padding: 12px !important; margin-bottom: 12px;
}
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(2) { background: var(--nt-clay-fill); box-shadow: var(--nt-float); padding: 0 !important; overflow: hidden; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(2) :is(h3,button,small,p) { color: var(--nt-on-card) !important; }
html body #cosmos-five-screen-review .page .editorial-person { grid-template-columns: 1fr; gap: 8px; }
html body #cosmos-five-screen-review .page .editorial-person .portrait { height: 130px; background: #f1e6de !important; border-radius: 12px; box-shadow: var(--nt-gentle); }
html body #cosmos-five-screen-review .page .editorial-person .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(2) .portrait { height: 220px; border-radius: 0; box-shadow: none; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(2) .person-info { padding: 0 18px 16px; }
html body #cosmos-five-screen-review .page .person-info h3 button { font-size: 18px; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(2) .person-info h3 button { font-size: 22px; }
html body #cosmos-five-screen-review .page .person-info .quote { font-size: 13.5px; font-style: normal !important; }
html body #cosmos-five-screen-review .page [data-person-current]:not([hidden]) { display: inline-block; background: rgba(247,245,241,.9); border-radius: 999px; padding: 1px 10px; box-shadow: var(--nt-gentle); }
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(5) { background: var(--nt-raised); border-radius: 18px; box-shadow: var(--se-lift); padding: 8px 16px !important; }

/* ---------- Calendar ---------- */
html body #cosmos-five-screen-review [data-screen=calendar] > section:nth-of-type(2) { background: var(--nt-raised); border-radius: 18px; box-shadow: var(--se-lift); padding: 14px !important; margin: 10px 0 14px; }
html body #cosmos-five-screen-review .page .month-head button { width: 36px; height: 36px; min-height: 36px; border-radius: 10px; background: var(--nt-raised); box-shadow: var(--nt-gentle); font-size: 20px; }
html body #cosmos-five-screen-review .page .calendar-grid { gap: 6px; }
html body #cosmos-five-screen-review .page .calendar-grid button {
 position: relative; min-height: 40px; border-radius: 11px; background: var(--nt-raised) !important; color: var(--se-ink) !important; box-shadow: var(--nt-gentle) !important; font-weight: 500;
}
html body #cosmos-five-screen-review .page .calendar-grid button[data-kind]::after { content: ""; position: absolute; bottom: 4px; 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(--nt-well) !important; box-shadow: var(--se-inset), 0 0 0 2px var(--se-sage-soft) !important; color: var(--se-primary) !important; font-weight: 700; }
html body #cosmos-five-screen-review .page .legend span::before { 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 [data-screen=calendar] > section:nth-of-type(3) {
 background: var(--nt-clay-fill); border-radius: 20px; box-shadow: var(--nt-float); padding: 18px !important; margin-bottom: 14px;
}
html body #cosmos-five-screen-review [data-screen=calendar] > section:nth-of-type(3) :is(h3,p,small,.mark,span) { color: var(--nt-on-card) !important; }
html body #cosmos-five-screen-review [data-screen=calendar] > section:nth-of-type(4) {
 background: var(--nt-taupe-fill); border-radius: 20px; box-shadow: var(--se-lift); padding: 18px !important; margin-bottom: 14px;
}
html body #cosmos-five-screen-review [data-screen=calendar] > section:nth-of-type(4) :is(h3,p,.mark,span) { color: var(--nt-on-card) !important; }
html body #cosmos-five-screen-review [data-screen=calendar] > section:is(:nth-of-type(3),:nth-of-type(4)) button.textbtn.spread > span[aria-hidden=true]:last-child { background: rgba(255,255,255,.42); }
html body #cosmos-five-screen-review [data-screen=calendar] > section:nth-of-type(3) .icon-only { background: rgba(255,255,255,.35); }

/* ---------- Me (compact) ---------- */
html body #cosmos-five-screen-review [data-screen=me]:not([hidden]) { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; align-items: stretch; padding-top: 10px; }
html body #cosmos-five-screen-review [data-screen=me] > section { grid-column: 1 / -1; padding: 0 !important; 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] .me-profile .monogram { width: 56px; height: 56px; font-size: 21px; color: var(--se-primary); }
html body #cosmos-five-screen-review [data-screen=me] .me-profile h2 { font-size: 24px; line-height: 1.2; }
html body #cosmos-five-screen-review [data-screen=me] [data-action=edit-profile] { min-height: 28px; font-size: 13.5px; color: var(--se-accent); }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) { background: var(--nt-clay-fill); border-radius: 18px; box-shadow: var(--nt-float); padding: 14px !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) .sub-card { background: none !important; padding: 0; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) :is(h3,p,.mark,span) { color: var(--nt-on-card) !important; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) h3 { font-size: 17px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) p { font-size: 11.5px; line-height: 1.45; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) button.textbtn { font-size: 12.5px; min-height: 32px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(2) button.textbtn.spread > span[aria-hidden=true]:last-child { background: rgba(255,255,255,.45); width: 24px; height: 24px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) { background: var(--nt-raised); border-radius: 18px; box-shadow: var(--nt-menu-lift); padding: 14px !important; justify-content: flex-start; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) > .spread { flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) .profile .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: 11px; white-space: nowrap; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) [data-open=persona] { min-height: 28px; font-size: 12.5px; color: var(--se-accent); margin-top: auto; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(3) [data-open=persona]::after { content: " →"; }
/* personal data + preferences: 4-across icon tiles */
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,1fr); gap: 8px !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; margin-top: 4px; }
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; min-height: 0 !important;
 padding: 10px 4px 9px; border-radius: 14px; background: var(--nt-raised); box-shadow: var(--nt-menu-gentle);
 font-size: 11.5px !important; line-height: 1.35 !important; font-weight: 500; text-align: center; color: var(--se-ink);
}
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: 6px; }
html body #cosmos-five-screen-review [data-screen=me] > section:is(:nth-of-type(4),:nth-of-type(5)) button.textbtn svg {
 width: 34px !important; height: 34px !important; padding: 8px; border-radius: 10px; background: var(--nt-well); box-shadow: var(--se-inset);
}
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: 10.5px !important; color: var(--se-primary) !important; font-weight: 600; }
/* account & privacy: compact list group */
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: 4px 0 6px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) button.textbtn {
 min-height: 46px !important; font-size: 14px !important; font-weight: 500; padding: 4px 14px; background: var(--nt-raised); box-shadow: var(--nt-menu-lift);
 border-top: 1px solid var(--se-line);
}
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) button.textbtn:nth-of-type(1) { border-radius: 16px 16px 0 0; border-top: 0; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) button.textbtn:last-of-type { border-radius: 0 0 16px 16px; }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) button.textbtn > span[aria-hidden=true]:last-child { background: none; box-shadow: none; color: var(--se-secondary); }
html body #cosmos-five-screen-review [data-screen=me] > section:nth-of-type(6) svg { width: 30px !important; height: 30px !important; padding: 7px; border-radius: 9px; background: var(--nt-raised); box-shadow: var(--nt-menu-gentle); }

/* ---------- bottom menu: floating, 40% lighter shadow ---------- */
html body #cosmos-five-screen-review .page nav {
 margin: 10px 14px 4px; padding: 6px; border-radius: 22px; background: var(--nt-raised) !important; box-shadow: var(--nt-menu-float); border: 0; gap: 2px;
}
html body #cosmos-five-screen-review .page nav button { min-height: 52px; border-radius: 14px; color: var(--se-secondary) !important; font-weight: 500; }
html body #cosmos-five-screen-review .page nav button svg { color: inherit; }
html body #cosmos-five-screen-review .page nav button[aria-current] { background: var(--nt-well) !important; box-shadow: var(--se-inset); color: var(--se-primary) !important; font-weight: 600; }
html body #cosmos-five-screen-review .page nav button[aria-current]::after { display: none; }
html body #cosmos-five-screen-review .page .mock-caption { padding: 4px 24px 14px; font-size: 11px; color: var(--se-secondary); }

/* ---------- sheets / dialogs ---------- */
html body #cosmos-five-screen-review dialog,
html body dialog.cosmos-consent {
 border: 0; border-radius: 26px; background: var(--se-canvas); box-shadow: var(--nt-float); padding: 20px;
}
html body #cosmos-five-screen-review dialog::backdrop, html body dialog.cosmos-consent::backdrop { background: rgba(80,70,60,.32); backdrop-filter: blur(3px); }
html body #cosmos-five-screen-review dialog .primary,
html body dialog.cosmos-consent button[data-consent-confirm] { background: var(--se-primary) !important; color: #fff !important; border: 0; border-radius: 12px; box-shadow: var(--nt-glow); }
html body dialog.cosmos-consent button { border: 0; border-radius: 12px; background: var(--nt-raised); box-shadow: var(--nt-gentle); color: var(--se-ink); }
html body #cosmos-five-screen-review dialog .sharecard { border: 0; border-radius: 14px; background: var(--nt-well); box-shadow: var(--se-inset); }

/* ---------- pending values ("รอตรวจสอบ") ---------- */
.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(--nt-pending-ink) !important; background: var(--nt-pending-bg); border-radius: 999px; padding: 2px 10px 2px 8px; }
.nt-pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c2a668; }

dd.nt-pending { margin-left: auto; }
html body main .thai-data dd.nt-pending { margin-left: 0; margin-top: 3px; }
/* grids: content height only (the V1.1 section weights no longer apply) */
html body #cosmos-five-screen-review .page .panels.screen:is([data-screen=astrologers],[data-screen=me]) { min-height: 0; grid-template-rows: none; grid-auto-rows: auto; align-content: start; }
html body #cosmos-five-screen-review [data-screen=astrologers] > section:nth-of-type(2):nth-of-type(n) { background: var(--nt-clay-fill); box-shadow: var(--nt-float); padding: 0 !important; overflow: hidden; }
html body #cosmos-five-screen-review dialog [data-sheet-body] > button.textbtn {
 display: flex !important; justify-content: center; width: 100%; min-height: 50px; margin-top: 16px !important; border-radius: 14px; color: #fff !important;
 background: linear-gradient(180deg,var(--nt-primary-hi),var(--se-primary)); box-shadow: var(--nt-glow);
}
