/* Fonts are hosted with the site (fast on Indian mobile networks, no third-party tracking) */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/pjs-400.woff2) format('woff2');}
@font-face{font-family:'Noto Sans Devanagari';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/nsd-400.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/pjs-600.woff2) format('woff2');}
@font-face{font-family:'Noto Sans Devanagari';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/nsd-600.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/pjs-700.woff2) format('woff2');}
@font-face{font-family:'Noto Sans Devanagari';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/nsd-700.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/pjs-800.woff2) format('woff2');}
@font-face{font-family:'Noto Sans Devanagari';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/nsd-800.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/fr-700.woff2) format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/fr-800.woff2) format('woff2');}
/* Cosmic Kundli — mobile-first styles */
:root {
  --ink: #1F2937; --ink-2: #374151; --muted: #4B5563; --line: #1F2937;
  --paper: #FBF7F0; --card: #FFFFFF; --navy: #23265E; --navy-2: #2F3380;
  --saffron: #E8730C; --saffron-2: #C95F05; --gold: #F5B83D; --soft: #FFF1DE;
  --input: #FFF9DB; --ok: #16A34A; --watch: #F59E0B; --crit: #DC2626; --blue: #2563EB;
  --shadow: 3px 3px 0 var(--ink); --shadow-lg: 5px 5px 0 var(--ink); --r: 12px;
  --font: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.5; }
body.deva { font-family: 'Noto Sans Devanagari', var(--font); }
a { color: var(--navy-2); }
button { font-family: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: var(--navy); color: #fff; border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; min-width: 0; }
.brand svg { flex: 0 0 34px; }
.brand b { font-family: var(--serif); font-size: 21px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
body.deva .brand b { font-family: 'Noto Sans Devanagari', var(--serif); font-size: 19px; }
.spacer { flex: 1; }
.lang { display: flex; border: 2px solid #fff; border-radius: 999px; overflow: hidden; }
.lang button { background: transparent; color: #E5E7EB; border: 0; padding: 5px 11px; font-size: 14px; font-weight: 700; cursor: pointer; }
.lang button.on { background: var(--saffron); color: #fff; }
.tagline { background: var(--soft); border-bottom: 2px solid var(--ink); font-family: var(--serif); font-weight: 700; font-size: 14px; text-align: center; padding: 6px 12px; color: var(--ink-2); }
body.deva .tagline { font-family: 'Noto Sans Devanagari', serif; }

main { padding: 18px 0 110px; min-height: 70vh; }
h1 { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 6px 0 10px; }
body.deva h1 { font-family: 'Noto Sans Devanagari', serif; font-weight: 800; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.sub { color: var(--muted); }

/* Cards */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin: 0 0 16px; position: relative; transition: background .15s, transform .15s; }
.card.hov:hover, .card.hov:focus-within { background: #FFFCF5; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.card .info { position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-2); font-size: 11px; font-weight: 800; display: grid; place-items: center; color: var(--ink-2); background: #fff; cursor: pointer; padding: 0; }
.tip { display: none; margin-top: 10px; background: #F3F4F6; border: 1.5px dashed var(--ink-2); border-radius: 8px; padding: 9px 11px; font-size: 13.5px; color: var(--ink-2); }
.tip.open { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 2px solid var(--ink); background: var(--saffron); color: #fff; font-weight: 800; font-size: 16px; box-shadow: var(--shadow); cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; }
.btn:hover { background: var(--saffron-2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.navy { background: var(--navy); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 200px; }

/* Home */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #3A2A6E 100%); color: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px 18px; margin-bottom: 20px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; }
.hero p { color: #E0E7FF; }
.hero .stars { position: absolute; right: -20px; top: -20px; opacity: .25; }
.feat { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feat .card { margin: 0; }
.feat .ic { font-size: 26px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; }
.steps li::before { content: counter(s); width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--saffron); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; }
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; }
.plans ul { margin: 6px 0 0; padding-left: 20px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--gold); color: var(--ink); }
.badge.blue { background: var(--blue); color: #fff; }
.badge.ok { background: var(--ok); color: #fff; }
.badge.grey { background: #E5E7EB; }

/* Form */
.field { margin-bottom: 16px; position: relative; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field input[type=text], .field input[type=number], .field input[type=date], .field input[type=time], .field input[type=tel], .field input[type=password], .chatbar textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--ink); background: var(--input); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; }
.field input:focus, .chatbar textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.field.bad input { border-color: var(--crit); background: #FEF2F2; }
.err { color: var(--crit); font-size: 14px; font-weight: 600; margin-top: 5px; display: none; }
.field.bad .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 22px; accent-color: var(--saffron); }
.alert { border: 2px solid var(--crit); background: #FEF2F2; color: #991B1B; border-radius: 10px; padding: 10px 12px; font-weight: 600; margin-bottom: 14px; }
.alert.note { border-color: var(--blue); background: #EFF6FF; color: #1E3A8A; }
.sugg { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); z-index: 30; max-height: 280px; overflow: auto; }
.sugg button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #E5E7EB; padding: 12px; font-size: 15px; cursor: pointer; color: var(--ink); }
.sugg button:hover, .sugg button:focus { background: var(--soft); }
.sugg .note { padding: 12px; color: var(--muted); font-size: 14px; }
.tzline { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--ok); }
.row2 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }

/* KPI grid */
.kpis { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.kpi { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; min-height: 108px; position: relative; cursor: pointer; transition: background .15s; }
.kpi:hover { background: var(--soft); }
.kpi .k { font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-transform: none; }
.kpi .v { font-size: 22px; font-weight: 800; line-height: 1.15; margin: 4px 0 2px; color: var(--navy); }
.kpi .v.big { font-size: 38px; color: var(--saffron-2); }
.kpi .s { font-size: 12.5px; color: var(--muted); }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 2px solid var(--ink); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
th, td { border: 1px solid #9CA3AF; padding: 8px 6px; text-align: center; vertical-align: middle; }
th { background: #EEF0FA; font-weight: 800; color: var(--ink); font-size: 12.5px; line-height: 1.25; }
td.l, th.l { text-align: left; }
tr.now td { background: #FFF1DE; font-weight: 700; }
tr.now-a td { background: #FDE7C8; font-weight: 800; }
tr.sub td { background: #FAFAFA; font-size: 13px; }
.retro { color: var(--crit); font-weight: 800; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px; background: #F3F4F6; border: 1.5px solid #D1D5DB; border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.linkbtn { background: none; border: 0; color: var(--navy-2); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px; font-size: 13px; }

/* Chart */
.nchart { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.nc-sign { font-size: 13px; fill: #9A3412; font-weight: 800; font-family: var(--font); }
.nc-line { font-size: 13px; font-weight: 700; fill: var(--ink); font-family: var(--font); }
.nc-asc { fill: var(--saffron-2); font-weight: 800; }

/* Numerology */
.nums { display: grid; gap: 12px; grid-template-columns: 1fr; }
.numcard .bigno { font-size: 46px; font-weight: 800; color: var(--saffron-2); line-height: 1; }
.numcard .head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.loshu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 300px; margin: 6px auto 12px; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
.loshu div { aspect-ratio: 1; display: grid; place-items: center; border: 1.5px solid var(--ink); font-size: 26px; font-weight: 800; color: var(--navy); background: #fff; position: relative; }
.loshu div.miss { background: #F3F4F6; color: #9CA3AF; font-size: 15px; font-weight: 600; }
.loshu div.rep { background: #FFF1DE; }
.loshu div small { position: absolute; top: 3px; left: 6px; font-size: 11px; color: var(--muted); font-weight: 700; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.letters span { border: 1.5px solid var(--ink); border-radius: 6px; padding: 2px 6px; font-size: 13px; background: #fff; }
.letters span b { color: var(--saffron-2); }

/* Pills */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { border: 2px solid #9CA3AF; background: #F9FAFB; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.pill.on { background: var(--navy); border-color: var(--ink); color: #fff; box-shadow: var(--shadow); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 88%; padding: 10px 13px; border: 2px solid var(--ink); border-radius: 14px; white-space: pre-wrap; font-size: 15.5px; }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: #fff; box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.msg.wait { color: var(--muted); font-style: italic; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 6px; }
.chips button { flex: 0 0 auto; border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chips button:hover { background: var(--soft); }
.chatbar { position: sticky; bottom: 72px; background: var(--paper); padding: 8px 0; display: flex; gap: 8px; align-items: flex-end; }
.chatbar textarea { min-height: 50px; max-height: 140px; resize: none; }
.chatbar .btn { flex: 0 0 auto; }

/* Bottom tabs */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 3px solid var(--ink); z-index: 25; padding-bottom: env(safe-area-inset-bottom); }
.tabs .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 7px 10px; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; border: 2px solid transparent; }
.tabs a .i { font-size: 19px; line-height: 1.1; }
.tabs a.on { background: var(--saffron); color: #fff; border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

.disclaimer { margin: 22px 0 0; padding: 12px 14px; border: 2px dashed var(--ink-2); border-radius: 10px; font-size: 13.5px; color: var(--ink-2); background: #fff; text-align: center; }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 4px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 0 8px; }
.lockbox { text-align: center; padding: 22px 16px; background: repeating-linear-gradient(45deg, #fff, #fff 10px, #FBF7F0 10px, #FBF7F0 20px); }
.price { font-size: 40px; font-weight: 800; color: var(--navy); }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -3px; }
@keyframes sp { to { transform: rotate(360deg); } }
.center { text-align: center; }
.mt { margin-top: 14px; }
details.help { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; font-size: 14px; }
details.help summary { font-weight: 800; cursor: pointer; }

@media (min-width: 640px) {
  .feat { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .nums { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 34px; }
}
@media print {
  .top, .tabs, .chatbar, .btn, .lang { display: none !important; }
  body { background: #fff; }
  .card, .kpi { box-shadow: none; }
}

/* ---- Plans, AI labels, safety, help video ---- */
.center-pills { justify-content: center; }
.plans3 { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 6px; }
.plan h3 { font-size: 20px; margin: 2px 0 4px; }
.plan .price { font-size: 32px; }
.plan ul { padding-left: 20px; margin: 10px 0 14px; font-size: 14.5px; }
.plan.best { border-width: 3px; border-color: var(--saffron-2); }
.plan.current { background: #F0FDF4; }
.ribbon { position: absolute; top: -12px; right: 14px; background: var(--saffron); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 2px 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ailabel { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 4px; letter-spacing: .2px; }
.disclaimer .ai { font-weight: 600; }
.linkbtn.danger { color: var(--crit); font-size: 14px; }
.video-card video { width: 100%; max-height: 70vh; border: 2px solid var(--ink); border-radius: 10px; background: #111; display: block; margin-top: 8px; }
.kpi .info { position: absolute; top: 6px; right: 8px; width: 16px; height: 16px; font-size: 10px; border-radius: 50%; border: 1.5px solid var(--ink-2); display: grid; place-items: center; font-weight: 800; color: var(--ink-2); }
.tabs .wrap { grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 7px 6px; }
.tabs a { font-size: 11px; }
.ver { display: grid; gap: 10px; grid-template-columns: 1fr; }
.ver .card { margin: 0; }
@media (min-width: 640px) { .plans3 { grid-template-columns: repeat(3, 1fr); } .ver { grid-template-columns: repeat(3, 1fr); } }

.ctl-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.sel { min-height: 40px; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; font: inherit; background: var(--input); color: var(--ink); }
.alert.warn { border-color: var(--watch); background: #FFFBEB; color: #78350F; }
.card-ok { border-left: 8px solid var(--ok); }
.card-watch { border-left: 8px solid var(--watch); }

/* Site menu */
.menubtn { background: transparent; color: #fff; border: 2px solid #fff; border-radius: 10px; font-size: 18px; width: 40px; height: 36px; cursor: pointer; }
.menu { background: #fff; border-bottom: 3px solid var(--ink); position: sticky; top: 63px; z-index: 19; }
.menu .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
.menu a { text-decoration: none; }
.learn details { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.learn summary { font-weight: 800; cursor: pointer; }
.contact-card p { margin: 0 0 8px; }
.values { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) {
  .brand b { font-size: 17px; }
  body.deva .brand b { font-size: 16px; }
  .brand svg { width: 28px; height: 28px; flex-basis: 28px; }
  .top .wrap { gap: 6px; padding: 0 10px; }
  .lang button { padding: 5px 7px; font-size: 13px; }
  .menubtn { width: 34px; }
}

/* Kundli Milan */
.milan-score .bignum { font-size: 54px; font-weight: 800; color: var(--navy); line-height: 1.05; }
.milan-score .bignum span { font-size: 22px; color: var(--muted); }
.milan-score.ok { border-left: 10px solid var(--ok); } .milan-score.watch { border-left: 10px solid var(--watch); } .milan-score.crit { border-left: 10px solid var(--crit); }
.gauge { position: relative; height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: #F3F4F6; overflow: hidden; margin-top: 8px; }
.gauge div { height: 100%; background: linear-gradient(90deg, var(--crit), var(--watch) 50%, var(--ok)); }
.gauge i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.gauge-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; }
.cg-hi { background: #DCFCE7 !important; } .cg-mid { background: #F3F4F6 !important; } .cg-lo { background: #FEE2E2 !important; }
.small { font-size: 12.5px; }
.tabs .wrap { grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 7px 4px; }
.tabs a { font-size: 10.5px; padding: 5px 1px; }
tr.click { cursor: pointer; }

/* Name checker */
.nc-row { border: 2px solid var(--ink); border-radius: 10px; padding: 8px; margin-bottom: 8px; background: #fff; }
.nc-row.best { border-color: var(--ok); box-shadow: 3px 3px 0 var(--ok); }
.nc-row.best::after { content: '★ Best Option'; display: block; font-size: 12px; font-weight: 800; color: var(--ok); margin-top: 4px; }
body.deva .nc-row.best::after { content: '★'; }
.nc-in { width: 100%; min-height: 44px; border: 2px solid var(--ink); border-radius: 8px; padding: 8px 10px; font: inherit; background: var(--input); }
.nc-out { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; border-radius: 8px; padding: 0 4px; }
.nc-out:empty { display: none; }
.nc-num { font-size: 26px; font-weight: 800; color: var(--saffron-2); }

/* Panchang day navigation */
.pnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 10px; }
.pnav .btn { padding: 10px 8px; font-size: 14px; min-height: 44px; }

/* Family list */
.fam-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line, #d9d4c7); border-radius: 12px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.fam-row small { color: var(--muted, #6b6b6b); }
.fam-row.on { border-color: var(--navy); background: #f3f1ff; }
.fam-row span:last-child { font-weight: 800; color: var(--navy); }
select { width: 100%; font: inherit; padding: 12px; border: 2px solid var(--navy); border-radius: 12px; background: #fffbe9; }

/* Vastu */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border: 3px solid var(--navy); border-radius: 12px; padding: 4px; background: #fffbe9; }
.vcell { min-height: 74px; border: 1px dashed #c9c2ae; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.vdir { font-size: 11px; font-weight: 800; color: var(--muted, #6b6b6b); }
.vchip { display: inline-block; font-size: 11.5px; line-height: 1.25; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.vchip.ideal { background: #dcf3e3; color: #135c2d; } .vchip.ok { background: #e6f0ff; color: #1d3f8a; }
.vchip.neutral { background: #eee; color: #444; } .vchip.avoid { background: #fde2e2; color: #8a1c1c; }

/* Vastu home plan */
.vstage { position: relative; width: 100%; border: 3px solid var(--navy); border-radius: 12px; overflow: hidden; background: #fff; touch-action: none; user-select: none; }
.vstage > img, .vstage > svg:not(.vover) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.vover { position: absolute; inset: 0; width: 100%; height: 100%; }
.vover .vbox { fill: none; stroke: #E8730C; stroke-width: 3; stroke-dasharray: 10 6; }
.vover .vsec line { stroke: #E8730C; stroke-width: 1.5; opacity: .7; }
.vover .vcen { fill: rgba(232,115,12,.08); stroke: #E8730C; stroke-width: 1.5; }
.vover .vlab text { fill: #23265E; font-weight: 800; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.vover .vlab text.vn { fill: #DC2626; }
.vover .vh { fill: #E8730C; stroke: #fff; stroke-width: 3; cursor: grab; }
.vmark circle { stroke: #fff; stroke-width: 3; } .vmark text { text-anchor: middle; font-weight: 800; fill: #23265E; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.vmark.ideal circle { fill: #16A34A; } .vmark.ok circle { fill: #2563EB; } .vmark.neutral circle { fill: #6b7280; } .vmark.avoid circle { fill: #DC2626; }
.vnrow { display: flex; gap: 10px; align-items: center; margin-top: 8px; } .vnrow input { flex: 1; }

/* Readings on the Kundli screen */
.tone { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 12px; white-space: nowrap; }
.tone.strong { background: #DCFCE7; color: #166534; } .tone.mixed { background: #FEF3C7; color: #92400E; } .tone.care { background: #FEE2E2; color: #991B1B; }
.area-d { border: 2px solid #d9d4c7; border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; }
.area-d.now { border-color: var(--navy); background: #f3f1ff; }
.area-d summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.area-d summary::-webkit-details-marker { display: none; }
.area-d summary small { color: #555; }
.yoga { border-left: 5px solid var(--orange, #E8730C); padding: 4px 10px; margin-bottom: 8px; }

/* Date and time pick-lists */
.dp { display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: 6px; flex: 1 1 280px; }
.dp[data-dp="time"] { grid-template-columns: 1fr 1fr 1fr; }
.dp select { padding: 11px 6px; min-width: 0; width: 100%; }
.dp .dp-echo { grid-column: 1 / -1; font-size: 13.5px; font-weight: 700; color: #166534; min-height: 18px; }
.row2:has(.dp) { grid-template-columns: 1fr; }
a.menubtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; }
