
:root{--bg:#f4f1ea;--card:#fffdf8;--ink:#2a241f;--muted:#776e65;--line:#ddd4c8;--accent:#6b3028;--accent2:#a44c3f;--green:#176b3a;--greenbg:#e8f5ec;--red:#a3261d;--redbg:#fdebea;--yellow:#8b6400;--yellowbg:#fff4cc;--blue:#234f8c;--bluebg:#eaf1fb}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
.topbar{position:sticky;top:0;z-index:10;background:#2f1714;color:white;padding:14px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px;box-shadow:0 3px 16px #0003}.topbar h1{font-size:22px;margin:2px 0}.sanskrit{opacity:.82}.topbar nav{display:flex;gap:8px;flex-wrap:wrap}.nav-btn{border:1px solid #ffffff38;background:transparent;color:#fff;padding:9px 13px;border-radius:10px;cursor:pointer}.nav-btn.active{background:white;color:#2f1714}
.astrology-system-switch{display:flex;justify-content:center;align-items:center;gap:7px;width:max-content;max-width:calc(100% - 24px);margin:12px auto 4px;padding:7px;border:1px solid #98938d;border-radius:15px;background:#d0cdc9;box-shadow:inset 0 2px 5px rgba(0,0,0,.22),0 5px 16px rgba(67,40,20,.12)}.astrology-system-switch .astrology-system-tab{min-width:190px!important;padding:11px 20px!important;border:2px solid #171717!important;border-radius:9px!important;background:#252525!important;color:#fff7e5!important;font-family:inherit!important;font-size:15px!important;font-weight:900!important;opacity:1!important;text-shadow:none!important;transform:translateY(1px);transition:transform .16s ease,box-shadow .16s ease,background .16s ease!important;box-shadow:inset 0 3px 6px rgba(0,0,0,.48),0 1px 0 rgba(255,255,255,.42)!important}.astrology-system-switch .astrology-system-tab:not(.active):hover{border-color:#252525!important;background:#fff!important;color:#252525!important;text-shadow:none!important;transform:translateY(0)}.astrology-system-switch .astrology-system-tab.active{border-color:#d3ad5d!important;background:linear-gradient(180deg,#73383e 0%,#55272b 58%,#421b20 100%)!important;color:#fff4d6!important;text-shadow:0 1px 1px rgba(0,0,0,.45)!important;transform:translateY(-3px);box-shadow:inset 0 2px 0 rgba(255,255,255,.22),inset 0 -2px 0 rgba(33,10,13,.35),0 5px 0 #321318,0 9px 14px rgba(48,18,21,.32)!important}@media(max-width:560px){.astrology-system-switch{width:calc(100% - 20px);box-sizing:border-box}.astrology-system-switch .astrology-system-tab{flex:1!important;min-width:0!important;padding:10px 7px!important;font-size:14px!important}.astrology-system-switch .astrology-system-tab.active{transform:translateY(-2px)}}
.wrap{max-width:1280px;margin:auto;padding:20px}.view{display:none}.view.active{display:block}.card{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:18px;margin-bottom:16px;box-shadow:0 5px 20px rgba(70,45,20,.05)}.notice{border-left:5px solid var(--accent)}.notice p{margin-bottom:0;color:var(--muted);line-height:1.6}
h2{font-size:19px;margin:0 0 14px}.grid{display:grid;gap:12px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-layout{grid-template-columns:minmax(0,1.5fr) minmax(320px,.7fr)}
label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}input,textarea,select,button{font:inherit}input,textarea,select{border:1px solid var(--line);border-radius:10px;padding:10px;background:white;color:var(--ink)}textarea{width:100%;resize:vertical;line-height:1.55}
button{border:1px solid var(--line);border-radius:10px;padding:10px 14px;background:white;cursor:pointer;color:var(--ink)}button.primary{background:var(--accent);border-color:var(--accent);color:white;font-weight:750}.actions{display:flex;gap:8px;margin-top:10px}.hint{font-size:13px;color:var(--muted);line-height:1.55}.center{text-align:center}.import-panel summary{font-weight:750;cursor:pointer}.card-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.toggles{display:flex;gap:12px;flex-wrap:wrap}.toggles label{flex-direction:row;color:var(--ink);align-items:center}
.chart{min-height:620px;display:grid;place-items:center}.chart svg{max-width:100%;height:auto}.planet-natal{font-weight:800;fill:#173d78}.planet-transit{font-weight:800;fill:#b12c22}.asc-label{font-weight:900}.sign-label{font-size:13px;fill:#71675d}.degree-tick{stroke:#c6bcae;stroke-width:1}.major-line{stroke:#75685a;stroke-width:1.6}
.tabs{display:flex;gap:7px;margin-bottom:10px}.tab-btn.active{background:var(--blue);color:white;border-color:var(--blue)}table{width:100%;border-collapse:collapse}th,td{padding:9px 7px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}.badge{display:inline-block;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}.ok{background:var(--greenbg);color:var(--green)}.bad{background:var(--redbg);color:var(--red)}.warn{background:var(--yellowbg);color:var(--yellow)}.na{background:#edf0f3;color:#5a646e}.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result-item{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px}.result-item h3{font-size:16px;margin:0 0 8px}.result-item p{margin:5px 0;color:var(--muted);line-height:1.5}
@media(max-width:900px){.two,.three,.chart-layout,.result-grid{grid-template-columns:1fr}.topbar{position:static;align-items:flex-start;flex-direction:column}.chart{min-height:430px}.wrap{padding:12px}}

.ring-label{font-size:9px;fill:#655a4f;text-anchor:middle;dominant-baseline:middle}
.ring-label.nak{fill:#6b3028;font-size:10px;font-weight:700}
.ring-label.nav{fill:#2e5b3f;font-size:8px}
.ring-label.drek{fill:#65458a;font-size:9px;font-weight:700}
.ring-label.shashti{fill:#777;font-size:5px}
.ring-boundary{stroke:#b8ab9b;stroke-width:.65}
.ring-boundary.major{stroke:#786a5c;stroke-width:1.1}
select:disabled,button:disabled{opacity:.55;cursor:not-allowed}

html{background:#2f1714}
body{min-height:100vh}
@supports(padding:max(0px)){
  .topbar{padding-top:max(14px,env(safe-area-inset-top));padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right))}
  .wrap{padding-bottom:max(20px,env(safe-area-inset-bottom))}
}

/* กาลโยคห้อยเลขดาวในจักรราศี */
.kala-yok-chart-tag{font-family:"Sarabun",Tahoma,sans-serif;font-size:9.5px;font-weight:900;fill:#8b5300;stroke:#fff;stroke-width:1.8px;paint-order:stroke fill;pointer-events:none}
.kala-yok-chart-tag.transit{fill:#17658f}
.transit-taksa-chart-tag{font-family:"Sarabun",Tahoma,sans-serif;font-size:9.5px;font-weight:900;fill:#703f8f;stroke:#fff;stroke-width:1.8px;paint-order:stroke fill;pointer-events:none}
.transit-taksa-chart-tag.transit{fill:#087274}
.transit-taksa-chart-tag.taksa-alert{fill:#d01818;animation:taksa-alert-blink 1s steps(2,end) infinite}
@keyframes taksa-alert-blink{0%,45%{opacity:1}46%,100%{opacity:.18}}
@media (prefers-reduced-motion:reduce){.transit-taksa-chart-tag.taksa-alert{animation:none}}
#view-chart .thai-astrology-only-toggle,
#view-chart .thai-astrology-only-toggle[hidden]{display:none!important}
@media(max-width:640px){
  .topbar nav{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav-btn{width:100%}
  .chart{min-height:360px}
  .card{border-radius:14px;padding:14px}
}

.d60-minor{stroke:#b9a58f;stroke-width:.45}
.d60-medium{stroke:#8c735b;stroke-width:.8}
.d60-major{stroke:#5f4635;stroke-width:1.35}
.d60-label{font-size:6px;fill:#715b48}
.chart svg{width:min(100%,900px);display:block;margin:auto}

.planet-natal{font-size:12px!important;paint-order:stroke;stroke:#fffdf8;stroke-width:2.5px;stroke-linejoin:round}
.planet-transit{font-size:11px!important;paint-order:stroke;stroke:#fffdf8;stroke-width:2.5px;stroke-linejoin:round}
.asc-label{font-size:13px!important}
.d60-label{font-size:5px!important}
.chart svg{width:min(100%,1100px)!important;max-width:1100px!important}
.chart-layout{grid-template-columns:minmax(0,2fr) minmax(300px,.55fr)}

.chart{min-height:760px;overflow:visible}
.chart svg{width:min(100%,1120px)!important;max-width:1120px!important;overflow:visible}
.planet-glyph{fill:#fff;font-size:13px;font-weight:800}
.planet-degree{font-size:11px;font-weight:700;fill:#222}
.planet-sign{font-size:10px;fill:#444}
.planet-degree.transit,.planet-sign.transit{fill:#145bc5}
.planet-degree.natal,.planet-sign.natal{fill:#1b3f7a}
@media(max-width:900px){
  .chart{min-height:520px}
  .planet-degree{font-size:9px}
  .planet-sign{font-size:8px}
  .planet-glyph{font-size:11px}
}

.chart{min-height:820px;overflow:visible}
.chart svg{width:min(100%,1180px)!important;max-width:1180px!important;overflow:visible}
.ring-line{stroke:#9d8a76;stroke-width:.8}
.ring-line.strong{stroke:#5f4a39;stroke-width:1.35}
.ring-divider{stroke:#c2b4a5;stroke-width:.45}
.ring-divider.major{stroke:#75614f;stroke-width:1}
.zodiac-label{font-size:13px;font-weight:800;fill:#4d3428}
.nak-label{font-size:9px;font-weight:700;fill:#7c392f}
.nav-label{font-size:6px;fill:#2f6847}
.drek-label{font-size:8px;font-weight:700;fill:#65478e}
.d60-divider{stroke:#c9bcaf;stroke-width:.35}
.d60-divider.medium{stroke:#9e8873;stroke-width:.65}
.d60-divider.major{stroke:#5d4634;stroke-width:1.1}
.d60-label{font-size:5px;fill:#66503f}
.degree-tick{stroke:#b7aa9c;stroke-width:.4}
.degree-tick.medium{stroke:#8f7b67;stroke-width:.75}
.degree-tick.major{stroke:#523e31;stroke-width:1.2}
.degree-number{font-size:6px;fill:#756657}
.chart-center-title{font-size:18px;font-weight:800;fill:#3c2a22}
.chart-center-subtitle{font-size:10px;fill:#776b61}
.planet-glyph{fill:#fff;font-size:12px;font-weight:800}
.planet-degree{font-size:10px;font-weight:700}
.planet-sign{font-size:9px}
.planet-degree.natal,.planet-sign.natal{fill:#1c3e72}
.planet-degree.transit,.planet-sign.transit{fill:#1262bb}
@media(max-width:900px){
  .chart{min-height:560px}
  .planet-degree{font-size:8px}
  .planet-sign{font-size:7px}
  .planet-glyph{font-size:10px}
}

.chart{min-height:860px;overflow:visible}.chart svg{width:min(100%,1220px)!important;max-width:1220px!important;overflow:visible}
.center-outer{stroke:#5f4938;stroke-width:1.5;fill:#fffdf8}.house-sector{fill:#fffdf8;stroke:none}.house-sector:nth-of-type(even){fill:#faf6ee}
.house-divider{stroke:#705b48;stroke-width:1.15}.house-sign{font-size:12px;font-weight:800;fill:#4a3428}.house-number{font-size:10px;fill:#8b7764}
.center-hub{fill:#f0e7db;stroke:#705b48;stroke-width:1}.center-hub-text{font-size:9px;font-weight:800;fill:#4a3428}
.natal-in-house{font-size:18px;font-weight:800;fill:#1d3f72}.asc-in-house{fill:#9a2c23}
.ring-line{stroke:#9d8a76;stroke-width:.8}.ring-line.strong{stroke:#5f4a39;stroke-width:1.35}.ring-divider{stroke:#c2b4a5;stroke-width:.45}.ring-divider.major{stroke:#75614f;stroke-width:1}
.zodiac-label{font-size:12px;font-weight:800;fill:#4d3428}.nak-label{font-size:8px;font-weight:700;fill:#7c392f}.nav-label{font-size:6px;fill:#2f6847}.drek-label{font-size:8px;font-weight:700;fill:#65478e}
.d60-divider{stroke:#c9bcaf;stroke-width:.35}.d60-divider.medium{stroke:#9e8873;stroke-width:.65}.d60-divider.major{stroke:#5d4634;stroke-width:1.1}
.degree-tick{stroke:#b7aa9c;stroke-width:.4}.degree-tick.medium{stroke:#8f7b67;stroke-width:.75}.degree-tick.major{stroke:#523e31;stroke-width:1.2}.degree-number{font-size:6px;fill:#756657}
.planet-glyph{font-size:12px;font-weight:800;fill:#fff;paint-order:stroke;stroke-width:7px;stroke-linejoin:round}.planet-glyph.natal{stroke:#1d3f72}.planet-glyph.transit{stroke:#0e63bc}
.planet-degree{font-size:10px;font-weight:700}.planet-sign{font-size:9px}.planet-degree.natal,.planet-sign.natal{fill:#1d3f72}.planet-degree.transit,.planet-sign.transit{fill:#0e63bc}
@media(max-width:900px){.chart{min-height:590px}.natal-in-house{font-size:13px}.planet-degree{font-size:8px}.planet-sign{font-size:7px}.planet-glyph{font-size:10px}}

/* Approved central Thai circular rāśi chart */
.center-outer{stroke:#111!important;stroke-width:2.2!important;fill:#fffdf8!important}
.house-divider{stroke:#111!important;stroke-width:1.45!important}
.house-sign{font-size:13px!important;font-weight:700!important;fill:#222!important}
.house-number{font-size:14px!important;font-weight:700!important;fill:#222!important}
.natal-in-house{font-size:17px!important;font-weight:800!important}


/* Readability refinement */
.nav-label{font-size:7.2px!important;font-weight:700!important;fill:#214f39!important}
.nak-label{font-size:10.5px!important;font-weight:800!important}
.drek-label{font-size:10px!important;font-weight:800!important}
.degree-number{font-size:8px!important;font-weight:700!important;fill:#5f5348!important}
.natal-in-house{font-size:20px!important;font-weight:900!important}
.planet-degree{font-size:12px!important;font-weight:800!important}
.planet-sign{font-size:11px!important;font-weight:700!important}
.chart{min-height:900px!important}
.chart svg{width:min(100%,1260px)!important;max-width:1260px!important}

.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.date-grid input{font-size:15px;font-weight:700}
@media(max-width:900px){.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Update 2: larger planet numbers, transit ring, D60 outermost */
.chart{min-height:980px!important}
.chart svg{width:min(100%,1360px)!important;max-width:1360px!important}
.transit-ring{stroke:#92a6bf;stroke-width:1.1;fill:none}
.transit-ring-divider{stroke:#b7c5d7;stroke-width:.85}
.d60-boundary{stroke:#6b5847;stroke-width:1.1;fill:none}.d60-boundary.strong{stroke:#4e3d2f;stroke-width:1.6}
.natal-in-house{font-size:24px!important;font-weight:900!important}
.planet-badge.natal,.planet-badge.transit{stroke:#fffdf8;stroke-width:2px}
.planet-glyph{font-size:18px!important;font-weight:900!important;fill:#fff;stroke:none!important;paint-order:normal!important}
.planet-degree{font-size:13px!important;font-weight:800!important}
.planet-sign{font-size:12px!important;font-weight:700!important}
.nak-label{font-size:11px!important;font-weight:800!important}
.nav-label{font-size:8px!important;font-weight:800!important;fill:#1e4a35!important}
.drek-label{font-size:11px!important;font-weight:800!important}
.degree-number{font-size:9px!important;font-weight:800!important}
@media(max-width:900px){.chart{min-height:640px!important}.natal-in-house{font-size:18px!important}.planet-glyph{font-size:14px!important}.planet-degree{font-size:10px!important}.planet-sign{font-size:9px!important}}

.subhint{font-size:12px;color:#6f6257;font-weight:600}


/* UI / UX refinement */
.chart{min-height:940px!important}
.chart svg{width:min(100%,1320px)!important;max-width:1320px!important}
.center-outer{stroke:#111!important;stroke-width:2.1!important;fill:#fffdf8!important}
.house-divider{stroke:#111!important;stroke-width:1.35!important}
.natal-in-house{font-size:22px!important;font-weight:900!important}
.transit-ring{stroke:#90a6c0;stroke-width:1.05;fill:none}
.transit-ring-divider{stroke:#bcc9d8;stroke-width:.82}
.nak-label{font-size:11px!important;font-weight:800!important}
.nav-label{font-size:8.4px!important;font-weight:800!important;fill:#204b35!important}
.drek-label{font-size:10.5px!important;font-weight:800!important}
.degree-number{font-size:8.5px!important;font-weight:800!important;fill:#5f5348!important}
.d60-boundary{stroke:#6b5847;stroke-width:1.1;fill:none}
.d60-boundary.strong{stroke:#4e3d2f;stroke-width:1.45}
.planet-badge.natal,.planet-badge.transit{stroke:#fffdf8;stroke-width:2.2px}
.planet-glyph{font-size:20px!important;font-weight:900!important;fill:#fff;stroke:none!important;paint-order:normal!important}
.planet-degree{font-size:13px!important;font-weight:800!important}
.planet-sign{font-size:12px!important;font-weight:700!important}
@media(max-width:900px){
  .chart{min-height:620px!important}
  .chart svg{width:min(100%,980px)!important;max-width:980px!important}
  .natal-in-house{font-size:18px!important}
  .planet-glyph{font-size:15px!important}
  .planet-degree{font-size:10px!important}
  .planet-sign{font-size:9px!important}
  .nav-label{font-size:6.5px!important}
}

.date-grid select{font-size:15px;font-weight:700;min-height:43px}

.time-field{display:flex;flex-direction:column;gap:6px}.time-label{font-size:13px;color:var(--muted)}.time-selects{display:flex;align-items:center;gap:7px}.time-selects select{min-width:74px}.engine-details{margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#faf7f1}.engine-details:empty{display:none}.engine-details table{font-size:13px}.engine-details th{color:var(--muted);width:18%}


/* Manual-input-only workflow */
.input-method-card{padding:20px}
.input-method-head{align-items:flex-start;margin-bottom:16px}
.input-method-head h2{margin-bottom:5px}
.method-switch{display:flex;gap:6px;padding:4px;background:#f0e9df;border:1px solid var(--line);border-radius:12px}
.method-btn{border:0;background:transparent;padding:9px 14px;border-radius:9px;font-weight:750}
.method-btn.active{background:var(--accent);color:#fff;box-shadow:0 2px 8px #0002}
.input-panel[hidden]{display:none!important}
.input-panel.active{display:block}
.input-box{border:1px solid var(--line);border-radius:14px;padding:15px;background:#fffaf3}
.input-box h3{margin:0 0 4px;font-size:17px}
.input-box textarea{min-height:230px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px}
.manual-input-panel{margin-top:16px;border:1px solid var(--line);border-radius:14px;background:#fffaf3;overflow:hidden}
.manual-input-panel summary{padding:15px 17px;font-weight:800;cursor:pointer;background:#f7efe4}
.manual-input-panel[open] summary{border-bottom:1px solid var(--line)}
.manual-tabs{display:flex;gap:8px;padding:14px 16px 8px}
.manual-tab{padding:8px 14px}
.manual-tab.active{background:var(--blue);border-color:var(--blue);color:#fff}
.manual-planet-form{padding:8px 16px 4px;display:grid;gap:8px}
.planet-entry-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(150px,1.2fr) minmax(92px,.6fr) minmax(92px,.6fr);gap:10px;align-items:end;padding:10px 12px;border:1px solid #e7ddd0;border-radius:11px;background:white}
.planet-entry-name{display:flex;align-items:center;gap:10px;min-height:42px}
.planet-entry-name b{font-size:22px;min-width:24px;color:var(--blue)}
.planet-entry-name span{font-weight:750}
.planet-entry-row label{gap:4px}
.planet-entry-row input,.planet-entry-row select{padding:8px}
.manual-actions{padding:12px 16px 4px}
#manualPlanetStatus{padding:0 16px 14px;margin-bottom:0}
@media(max-width:760px){
  .input-method-head{display:block}
  .method-switch{margin-top:12px;width:100%}
  .method-btn{flex:1}
  .planet-entry-row{grid-template-columns:1fr 1fr}
  .planet-entry-name{grid-column:1/-1}
}


/* Compact zodiac-name ring + enlarged transit ring */
.zodiac-label{font-size:11px!important;font-weight:800!important}
.transit-ring{stroke:#7895b7!important;stroke-width:1.2!important;fill:none}
.transit-ring-divider{stroke:#afbed0!important;stroke-width:.9!important}
.transit-inline-badge{fill:#0e63bc;stroke:#fffdf8;stroke-width:1.8}
.transit-in-ring{font-size:15px;font-weight:900;fill:#fff}

/* Corrected navamsa sequence */
.nav-label{font-size:9px!important;font-weight:900!important;fill:#176b3a!important;letter-spacing:0!important}


/* Navamsa lord labels + highlighted final navamsa of water signs */
.nav-label{font-size:9px!important;font-weight:900!important;fill:#176b3a!important;letter-spacing:0!important}
.nav-label-red{fill:#c22020!important}


/* Bottom application tabs */
body{padding-bottom:84px}
.bottom-app-nav{position:fixed;z-index:1000;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,1180px);display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:rgba(255,250,243,.97);backdrop-filter:blur(16px);border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 28px #2f171425}
.bottom-app-nav .nav-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:58px;padding:7px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-weight:800}
.bottom-app-nav .nav-btn.active{background:var(--accent);color:#fff}
.bottom-icon{font-size:18px;line-height:1}
.topbar nav .top-chart-btn{display:none}
.analysis-options{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.analysis-options label{min-width:220px}.analysis-options select{min-height:43px}
.analysis-summary .summary-line{font-size:22px;margin:8px 0}.analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.analysis-grid .result-item{border:1px solid var(--line);border-radius:14px;background:#fffaf3;padding:16px}.analysis-grid h3{margin:0 0 9px}.analysis-table{width:100%;border-collapse:collapse}.analysis-table th,.analysis-table td{padding:10px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.table-scroll{overflow:auto}.timing{margin-top:10px;padding:10px;border-radius:10px;background:#f1eadf;font-weight:800}.timing small{display:block;margin-top:4px;color:var(--muted);font-weight:600}.good-chip-list{display:flex;flex-wrap:wrap;gap:8px}.good-chip{display:inline-block;padding:8px 11px;border-radius:999px;background:#e6f4e9;color:#1f6b39;font-weight:800}.badge.warn{background:#fff2cc;color:#805e00}
.special-yoga-summary{border-left:5px solid #8d623d}.special-yoga-score{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.special-yoga-score span{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fffaf3}.special-yoga-table td:nth-child(3){font-weight:800;white-space:nowrap}.special-yoga-none{margin:6px 0;color:var(--muted)}.special-yoga-purpose-warning{border-left:5px solid #d49a24;background:#fff9e8}
@media(max-width:760px){.analysis-grid{grid-template-columns:1fr}.bottom-app-nav{border-radius:14px 14px 0 0}.bottom-app-nav .nav-btn{font-size:12px}.analysis-options>*{width:100%}}


/* Chart alignment correction */
.natal-in-house{font-size:23px!important;font-weight:900!important}
.asc-in-house{fill:#a52222!important}
.transit-asc-badge{fill:#b32020!important;stroke:#fffdf8!important;stroke-width:2.2!important}
.transit-asc-label{font-size:17px!important;font-weight:900!important;fill:#fff!important}


/* Inline weekday above transit text input */
.weekday-inline{display:grid;grid-template-columns:auto minmax(150px,220px);align-items:center;gap:10px;margin:10px 0 9px;font-weight:800;color:var(--text)}
.weekday-inline select{min-height:40px;font-size:15px;font-weight:700}

/* Analysis and Ekavimsati are sequential collapsible modules, not tabs */
.analysis-modules{display:grid;gap:16px;margin-top:18px}
.collapsible-module{padding:0!important;overflow:hidden}
.collapsible-module>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;background:#f7efe4;border-radius:inherit}
.collapsible-module>summary::-webkit-details-marker{display:none}
.collapsible-module>summary span:first-child{display:grid;gap:4px}
.collapsible-module>summary b{font-size:20px}
.collapsible-module>summary small{font-size:13px;color:var(--muted);font-weight:600}
.module-chevron{font-size:25px;line-height:1;transition:transform .2s ease}
.collapsible-module[open] .module-chevron{transform:rotate(180deg)}
.collapsible-module[open]>summary{border-bottom:1px solid var(--line);border-bottom-left-radius:0;border-bottom-right-radius:0}
.module-body{padding:18px 20px 22px}
.module-body>#muhurtaResult,.module-body>#ekavimsatiResult{margin-top:16px}
.bottom-app-nav{display:none!important}
body{padding-bottom:0!important}
@media(max-width:760px){.weekday-inline{grid-template-columns:1fr}.collapsible-module>summary{padding:15px}.module-body{padding:15px}}

/* Unified auspicious page and lunar-month tithi table */
.auspicious-module-group>.module-body{display:grid;gap:14px;background:#fffdf8}
.auspicious-module-group .auspicious-submodule{margin:0}
.auspicious-submodule>.module-body>.good-day-search-card,
.auspicious-submodule>.module-body>.planet-search-card,
.auspicious-submodule>.module-body>.mrityu-search-card{padding:0;box-shadow:none;border:0;background:transparent}
.tithi-place-form{display:grid;gap:12px}
.tithi-month-picker{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-top:14px}
.tithi-month-picker label{display:grid;gap:6px;min-width:min(100%,420px);font-weight:700}
.tithi-month-picker select{width:100%}
.tithi-place-form .province-choice-row{margin:0}
.tithi-coordinate-row{display:grid;grid-template-columns:repeat(2,minmax(150px,240px));gap:12px}
.tithi-coordinate-row label{display:grid;gap:6px;font-weight:700}
.tithi-coordinate-row input{width:100%}
.tithi-month-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 18px;margin:16px 0 10px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff9ec}
.tithi-month-summary span{color:var(--muted);font-weight:600}
.tithi-transition-table{width:100%;border-collapse:collapse;white-space:nowrap}
.tithi-transition-table th,.tithi-transition-table td{padding:10px 12px;border:1px solid var(--line);text-align:center}
.tithi-transition-table th{background:#f2e4c5}
.tithi-transition-table td:nth-child(2),.tithi-transition-table td:last-child{text-align:left}
@media(max-width:760px){.tithi-coordinate-row{grid-template-columns:1fr 1fr}.tithi-month-picker{display:grid}.tithi-transition-table th,.tithi-transition-table td{padding:9px 8px}.tithi-month-summary{display:grid}}


/* Final UI pass: MyHora-like lighter natal digits and larger Navamsa lords */
.natal-in-house{
  font-family:Tahoma, Arial, sans-serif !important;
  font-size:16px !important;
  font-weight:500 !important;
  letter-spacing:0 !important;
  fill:#1d3f72 !important;
}
.asc-in-house{font-weight:600 !important; fill:#9a2c23 !important}
.zodiac-label{
  font-family:Tahoma, Arial, sans-serif !important;
  font-size:10px !important;
  font-weight:600 !important;
}
.nav-label{
  font-family:Tahoma, Arial, sans-serif !important;
  font-size:10.5px !important;
  font-weight:700 !important;
  fill:#176b3a !important;
}
.nav-label-red{fill:#c22020 !important}
.weekday-inline.bottom-weekday{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  font-weight:700;
}
.weekday-inline.bottom-weekday select{
  width:auto;
  min-width:160px;
}
@media(max-width:900px){
  .natal-in-house{font-size:14px !important}
  .nav-label{font-size:7.8px !important}
}


/* Plain transit numbers, nakshatra names, and richer leader labels */
.transit-inline-badge,.transit-asc-badge{display:none}
.transit-in-ring.plain-transit{
  font-family:Tahoma, Arial, sans-serif !important;
  font-size:15px !important;
  font-weight:600 !important;
  fill:#0e63bc !important;
  stroke:none !important;
}
.transit-asc-label.plain-transit{fill:#b32020 !important; font-weight:700 !important}
.transit-plain-label{
  font-family:Tahoma, Arial, sans-serif !important;
  font-size:18px !important;
  font-weight:600 !important;
  fill:#0e63bc !important;
  stroke:none !important;
  paint-order:normal !important;
}
.planet-sign,.planet-degree,.planet-nak{font-family:Tahoma, Arial, sans-serif !important}
.planet-sign{font-size:12px !important;font-weight:700 !important}
.planet-degree{font-size:12px !important;font-weight:600 !important}
.planet-nak{font-size:11px !important;font-weight:600 !important;fill:#7a4032 !important}
.planet-nak.transit{fill:#8b4b36 !important}
.nak-label{font-family:Tahoma, Arial, sans-serif !important;font-size:7.4px !important;font-weight:700 !important;fill:#7c392f !important}
@media(max-width:900px){
  .transit-in-ring.plain-transit{font-size:12px !important}
  .transit-plain-label{font-size:14px !important}
  .planet-nak{font-size:8px !important}
  .nak-label{font-size:5.6px !important}
}


/* Drekkana lord + poison styling */
.drek-label{font-family:Tahoma, Arial, sans-serif !important;font-size:8.4px !important;font-weight:700 !important;fill:#65478e !important}
.drek-poison{fill:#b32020 !important;font-weight:800 !important}
@media(max-width:900px){.drek-label{font-size:6.5px !important}}


/* Curved nakshatra labels and 80%-of-cell ring typography */
.curved-nak-label{
  font-family:Tahoma, Arial, sans-serif !important;
  font-weight:600 !important;
  fill:#7c392f !important;
  dominant-baseline:middle;
}
.planet-shashtiamsa{
  font-family:Tahoma, Arial, sans-serif !important;
  font-size:11px !important;
  font-weight:600 !important;
  fill:#6a4b3b !important;
}
.planet-shashtiamsa.transit{fill:#6b4a3a !important}
@media(max-width:900px){.planet-shashtiamsa{font-size:8px !important}}


/* Layout update: planet table moved below the zodiac for a larger chart */
.single-chart-layout{grid-template-columns:1fr !important}
.chart-card-expanded{padding-bottom:16px}
.chart-card-expanded .chart{min-height:1020px !important}
.chart-card-expanded .chart svg{width:min(100%,1480px) !important;max-width:1480px !important}
.planet-table-card{margin-top:16px}
.yoga-karaka-module{margin-top:16px}
.yoga-karaka-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.yoga-karaka-head h3{margin:0;color:#6f351c;font-size:20px}.yoga-karaka-head p{margin:3px 0 0;color:var(--muted);font-size:12px}
.yoga-karaka-legend{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}.yoga-karaka-legend i{width:12px;height:12px;border:2px solid #ba7a12;border-radius:4px;background:#fff4cf}
.yoga-karaka-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}.yoga-karaka-table{width:100%;min-width:720px;border-collapse:collapse;background:#fffdf8}
.yoga-karaka-table th,.yoga-karaka-table td{padding:11px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle}.yoga-karaka-table thead th{text-align:center;background:#f1e5c8}.yoga-karaka-table tbody th{width:190px;text-align:left;background:#faf5e9}.yoga-karaka-table tbody th span{display:block;color:#73351f;font-size:16px}.yoga-karaka-table tbody th small{display:block;margin-top:3px;color:var(--muted);font-weight:400;line-height:1.35}.yoga-karaka-table tr:last-child>*{border-bottom:0}.yoga-karaka-table tr>*:last-child{border-right:0}
.yoga-karaka-planets{display:flex;flex-wrap:wrap;gap:7px}.yoga-karaka-planet{display:inline-flex;align-items:center;gap:4px;padding:6px 9px;border:1px solid #d8cdbb;border-radius:9px;background:#fff;color:#3a3027}.yoga-karaka-planet b{font-size:17px}.yoga-karaka-planet sup{color:#b54025;font-weight:900}.yoga-karaka-planet small{margin-left:4px;padding-left:7px;border-left:1px solid #c6a55e;color:#7b4a05;font-size:10px}.yoga-karaka-planet.is-active{border:2px solid #ba7a12;background:#fff4cf;box-shadow:0 0 0 2px rgba(186,122,18,.10)}
.yoga-karaka-count{display:inline-block;padding:5px 8px;border-radius:999px;background:#eee8de;color:#6e6257;font-size:11px;white-space:nowrap}.yoga-karaka-count.has-active{background:#7d4d13;color:#fff}.yoga-karaka-notes{margin-top:12px;padding:11px 13px;border-left:4px solid #b46c32;border-radius:7px;background:#fff5e8}.yoga-karaka-notes p{margin:5px 0 0}.yoga-karaka-footnote{margin:10px 2px 0;color:var(--muted);font-size:11px}.yoga-karaka-empty{padding:18px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:10px}
@media(max-width:700px){.yoga-karaka-head{align-items:flex-start;flex-direction:column}.yoga-karaka-table{min-width:650px}.yoga-karaka-table th,.yoga-karaka-table td{padding:9px 8px}.yoga-karaka-table tbody th{width:155px}.yoga-karaka-planet{padding:5px 7px}}
.ch4-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px}.ch4-table{width:100%;min-width:700px;border-collapse:collapse;background:#fffdf8}.ch4-table th,.ch4-table td{padding:9px 10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center;vertical-align:middle}.ch4-table thead th{background:#f1e5c8}.ch4-table tr:last-child td{border-bottom:0}.ch4-table tr>*:last-child{border-right:0}.ch4-chip{display:inline-block;margin:2px;padding:4px 7px;border:1px solid #d7cab2;border-radius:8px;background:#fff}.ch4-chip.strong{border-color:#a86c10;background:#fff1c7}.ch4-tabs{display:flex;gap:7px;margin-bottom:10px}.ch4-tabs button.active{background:#74431d;color:#fff}.ch4-empty{padding:16px;text-align:center;color:var(--muted)}.avastha-chip{display:inline-block;padding:4px 7px;border-radius:8px;background:#eee3cf;color:#683b1d;font-weight:700;white-space:nowrap}.yoga-karaka-table tbody th small,.yoga-karaka-head p,.yoga-karaka-footnote{display:none}.yoga-karaka-notes{padding:8px 11px}.yoga-karaka-notes p{font-size:12px}
.yoga-karaka-table tbody th{background:#64351f!important;color:#fff!important}
.yoga-karaka-table tbody tr:nth-child(even) th{background:#754329!important}
.yoga-karaka-table tbody th span{color:#fff!important;font-weight:800;text-shadow:0 1px 1px rgba(0,0,0,.3)}
.upagraha-in-house{fill:#8a2f78!important;font-weight:700}.upagraha-table-row td:first-child{color:#7b286c;font-weight:800}
.upagraha-transit,.simple-rasi-planet.upagraha-transit{fill:#0e63bc!important}.simple-rasi-planet.upagraha{fill:#8a2f78!important}.upagraha-subtabs{padding:8px 8px 10px;position:sticky;left:0;width:max-content;z-index:3}

/* หน้าโหราศาสตร์ไทย: เพิ่มความชัดของชื่อราศีโดยไม่กระทบหน้าจักรราศีหลัก */
#view-thai-astrology .rasi-name,
#view-thai-astrology .simple-rasi-name,
#view-thai-astrology .navamsa-rasi-name{
  font-size:24px!important;
  font-weight:700!important;
}
#view-thai-astrology .zodiac-label.curved-zodiac-label[class*="rasi-style-"]{
  font-size:10px!important;
  font-weight:700!important;
}
#view-thai-astrology .ong-udom-heading{min-width:170px}
#view-thai-astrology .ong-udom-cell span{display:block;color:#7b3f00;font-weight:700;white-space:nowrap}
#view-thai-astrology .ong-udom-cell span+span{margin-top:3px;color:#8a1f55}
#view-thai-astrology .house-lord-table{width:max-content!important;min-width:max-content!important;table-layout:auto!important}
#view-thai-astrology .house-lord-table th,
#view-thai-astrology .house-lord-table td{width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap;font-weight:650!important}
#view-thai-astrology .house-lord-table th{width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap;font-weight:800!important}
#view-thai-astrology .house-lord-table tbody td{font-size:15px!important;line-height:1.45!important}
#view-thai-astrology .house-lord-table thead th{font-size:14px!important;line-height:1.4!important;text-align:center!important;vertical-align:middle!important}
#view-thai-astrology .house-lord-table .special-yoga-heading{min-width:125px!important}
#view-thai-astrology .house-lord-table .ong-udom-heading{min-width:180px!important}
#view-thai-astrology .special-yoga-cell{color:#7b3f00;font-weight:700}
#view-thai-astrology [data-thai-astrology-source-id="simpleZodiacChart"] .simple-rasi-planet.natal:not(.simple-rasi-asc){font-size:40px!important}
#view-thai-astrology [data-thai-astrology-source-id="simpleZodiacChart"] .simple-rasi-planet.natal.natal-multi:not(.simple-rasi-asc){font-size:37px!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .natal-in-house.natal-safe-glyph:not(.asc-in-house){font-size:28px!important}
@media(max-width:700px){
  #view-thai-astrology [data-thai-astrology-source-id="simpleZodiacChart"] .simple-rasi-planet.natal:not(.simple-rasi-asc){font-size:34px!important}
  #view-thai-astrology [data-thai-astrology-source-id="simpleZodiacChart"] .simple-rasi-planet.natal.natal-multi:not(.simple-rasi-asc){font-size:32px!important}
  #view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .natal-in-house.natal-safe-glyph:not(.asc-in-house){font-size:21px!important}
}

/* Thai astrology tables: freeze only the planet column and fit borders to the real table. */
#view-thai-astrology .planet-table th:not(:first-child),
#view-thai-astrology .planet-table td:not(:first-child){position:static!important;left:auto!important;z-index:auto!important;box-shadow:none!important}
#view-thai-astrology .planet-table th:first-child,
#view-thai-astrology .planet-table td:first-child{position:sticky!important;left:0!important;z-index:35!important;background-clip:padding-box!important;box-shadow:2px 0 0 rgba(77,57,39,.16)!important}
#view-thai-astrology .planet-table thead th:first-child{z-index:45!important;background:#f1e5c8!important;background-image:none!important}
#view-thai-astrology .planet-table tbody tr>td:first-child{background:#fffdf8!important}
#view-thai-astrology .planet-table tbody tr:nth-child(even)>td:first-child{background:#fbf9f5!important}
#view-thai-astrology .planet-table tbody tr:hover>td:first-child{background:#f4efe4!important}

/* v416 final cascade: compact birth-chart and saved-chart fields */
@media(min-width:681px){
  .suri-calc-card .natal-name-row{grid-template-columns:170px minmax(220px,360px);max-width:550px}
  .suri-calc-card .suri-place-row{grid-template-columns:150px 150px minmax(0,1fr)!important}
  .suri-calc-card .province-choice-row>.province-field{flex:0 1 440px;max-width:440px}
  .member-save-panel{grid-template-columns:minmax(220px,360px) minmax(180px,260px) auto;align-items:end}
  .member-save-panel .member-notes-field{max-width:640px}
  .member-library-tools{display:flex;align-items:center;flex-wrap:wrap}
  .member-library-tools #savedChartSearch{flex:0 1 360px;min-width:240px}
  .member-library-tools select,.member-library-tools button,.member-library-tools label{flex:0 0 auto;width:auto}
}
@media(max-width:680px){
  .suri-calc-card .natal-name-row{grid-template-columns:140px minmax(0,1fr)!important;align-items:end}
  .suri-calc-card .suri-date-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .suri-calc-card .suri-date-row .year-field,
  .suri-calc-card .suri-date-row .current-time-button{grid-column:auto!important}
  .suri-calc-card .suri-date-row .current-time-button{width:100%!important;min-height:44px;border-radius:9px}
  .suri-calc-card .suri-place-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .suri-calc-card .province-choice-row,
  .suri-calc-card .foreign-place-fields,
  .suri-calc-card .suri-option-row{grid-column:1/-1}
  .member-save-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .member-save-panel .current-chart-summary,
  .member-save-panel .member-notes-field,
  .member-save-panel .actions{grid-column:1/-1!important}
  .member-library-tools{display:flex!important;align-items:center;flex-wrap:wrap!important}
  .member-library-tools>*{width:auto!important;max-width:100%!important;min-height:44px}
  .member-library-tools #savedChartSearch{flex:1 0 100%;width:100%!important}
}

@media(max-width:360px){
  .suri-calc-card .natal-name-row{grid-template-columns:1fr!important}
}

/* v387: collapsible Choghadiya controls and transit-only zodiac. */
.choghadiya-card>summary{cursor:pointer;list-style:none}
.choghadiya-card>summary::-webkit-details-marker{display:none}
.choghadiya-card>.module-body{padding-top:16px}
.choghadiya-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.choghadiya-heading h2{margin:3px 0 0}
.choghadiya-heading label{display:grid;gap:5px;color:#5b4027;font-size:.82rem;font-weight:800}
.choghadiya-heading select{max-width:100%;padding:8px 34px 8px 10px;border:1px solid #cdb88e;border-radius:9px;background:#fff;font:inherit;color:#39291c}
.choghadiya-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.choghadiya-heading .choghadiya-aspect-toggle{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid #cdb88e;border-radius:9px;background:#fff}
.choghadiya-aspect-toggle input{margin:0}
#prajChoghadiyaTransitTime{display:grid;gap:3px}
#prajChoghadiyaTransitTime span{display:block}
#prajChoghadiyaTransitTime span:last-child{font-weight:700;color:#5b4027}
.choghadiya-lord{display:block;margin-top:3px;color:#64361d;font-size:.86rem;font-weight:800}
.choghadiya-transit-panel{margin:14px 0 20px;padding:14px;border:1px solid #dcc9a7;border-radius:16px;background:#fffaf0}
.choghadiya-transit-panel>div:first-child{text-align:center;margin-bottom:8px}
.choghadiya-transit-panel h3{margin:0;color:#4c2c1e}
.choghadiya-transit-panel p{margin:3px 0 0;color:#79634c;font-size:.86rem}
.choghadiya-transit-chart{display:grid;place-items:center;overflow:hidden}
.choghadiya-transit-chart svg{display:block;width:min(100%,680px);height:auto}
.choghadiya-zodiac-line{fill:none;stroke:#302a23;stroke-width:1.5;vector-effect:non-scaling-stroke}
.choghadiya-zodiac-name{font-family:"Sarabun",sans-serif;font-size:19px;font-weight:800;fill:#493726;text-anchor:middle;dominant-baseline:middle;paint-order:stroke fill;stroke:#fffaf0;stroke-width:4px}
.choghadiya-transit-planet{font-family:"Sarabun",sans-serif;font-size:30px;font-weight:900;fill:#d62e27;text-anchor:middle;dominant-baseline:middle;paint-order:stroke fill;stroke:#fff;stroke-width:3px}
#prajChoghadiyaTransitChart .center-outer,#prajChoghadiyaTransitChart .house-divider,#prajChoghadiyaTransitChart .simple-rasi-outer,#prajChoghadiyaTransitChart .simple-rasi-boundary{fill:none;stroke:#292929;stroke-width:1.45;vector-effect:non-scaling-stroke}
#prajChoghadiyaTransitChart .curved-zodiac-label{font-family:"Sarabun",Tahoma,sans-serif!important;font-size:15.5px!important;font-weight:800!important;font-style:normal!important;letter-spacing:0!important;dominant-baseline:central;alignment-baseline:central;paint-order:stroke fill;stroke:#fffaf0;stroke-width:3px}
#prajChoghadiyaTransitChart .choghadiya-centered-zodiac-label{font-family:"Sarabun",Tahoma,sans-serif;font-size:15.5px;font-weight:800;fill:#4a1820;letter-spacing:0;paint-order:stroke fill;stroke:#fffaf0;stroke-width:3px;stroke-linejoin:round;pointer-events:none}
#prajChoghadiyaTransitChart .choghadiya-inner-transit{font-family:"Sarabun",Tahoma,"Segoe UI",sans-serif;font-size:var(--simple-natal-size,48px);font-weight:600;fill:#111;paint-order:stroke fill;stroke:#fff;stroke-width:1.5px;stroke-linejoin:round}
#prajChoghadiyaTransitChart .choghadiya-inner-transit.ketu-indian{fill:#2478d4!important}
#prajChoghadiyaTransitChart .choghadiya-shine{font-family:"Trirong","Th Sarabun New",serif;font-size:var(--choghadiya-shine-size,22px);font-weight:500;fill:#111;opacity:.72;paint-order:stroke fill;stroke:#fffaf0;stroke-width:2px;stroke-linejoin:round}
#prajChoghadiyaTransitChart .choghadiya-shine.benefic{fill:#39865a}
#prajChoghadiyaTransitChart .choghadiya-shine.malefic{fill:#b84747}
#prajChoghadiyaTransitChart .choghadiya-shine.ketu-indian{fill:#2478d4!important}
@media(max-width:600px){
  .choghadiya-heading{align-items:stretch;flex-direction:column}
  .choghadiya-controls{width:100%}
  .choghadiya-heading select{width:100%}
  .choghadiya-transit-panel{padding:10px}
  .choghadiya-zodiac-name{font-size:17px}
  .choghadiya-transit-planet{font-size:28px}
  #prajChoghadiyaTransitChart .curved-zodiac-label{font-size:15.5px!important}
}

/* v386: daily Choghadiya above the good-day module. */
.choghadiya-card{border-top:4px solid #98631c}.choghadiya-meta{display:inline-flex;margin:2px 0 14px;padding:7px 11px;border-radius:999px;background:#f2e6cf;color:#62451e;font-weight:800}.choghadiya-current{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-bottom:16px;padding:14px 16px;border:2px solid #b98029;border-radius:15px;box-shadow:0 7px 20px rgba(89,55,18,.13)}.choghadiya-current>span{padding:5px 9px;border-radius:999px;background:#2f2417;color:#fff;font-size:.78rem;font-weight:900}.choghadiya-current>strong{font-size:1.15rem}.choghadiya-current>time{font-weight:900}.choghadiya-current>small{grid-column:2/-1;color:#695439}.choghadiya-sections{display:grid;gap:18px}.choghadiya-sections section>h3{margin:0 0 9px;color:#63361d}.choghadiya-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.choghadiya-period{position:relative;display:grid;gap:5px;min-height:124px;padding:12px;border:1px solid #dfceb1;border-left-width:5px;border-radius:12px;background:#fffdf8}.choghadiya-period time{font-size:.8rem;font-weight:900;color:#5b4931}.choghadiya-period strong{font-size:1.05rem}.choghadiya-period small{width:max-content;padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.72);font-weight:900}.choghadiya-period p{margin:2px 0 0;color:#675a49;font-size:.78rem;line-height:1.45}.choghadiya-period.tone-excellent,.choghadiya-current.tone-excellent{border-color:#237a3b;background:#eef9f1}.choghadiya-period.tone-good,.choghadiya-current.tone-good{border-color:#6a9f3e;background:#f5faee}.choghadiya-period.tone-caution,.choghadiya-current.tone-caution{border-color:#d28a19;background:#fff8e8}.choghadiya-period.tone-bad,.choghadiya-current.tone-bad{border-color:#b9362f;background:#fff1f0}.choghadiya-period.current{border-width:3px;box-shadow:0 0 0 3px rgba(183,120,36,.18),0 9px 22px rgba(75,46,12,.16)}.choghadiya-period .current-badge{position:absolute;top:7px;right:7px;padding:3px 7px;font-size:.64rem}.choghadiya-note{margin:15px 0 0;color:#75664f;font-size:.78rem}@media(max-width:900px){.choghadiya-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.choghadiya-grid{grid-template-columns:1fr}.choghadiya-current{grid-template-columns:1fr}.choghadiya-current>small{grid-column:auto}.choghadiya-meta{display:block;border-radius:11px;line-height:1.5}}

/* v350: special Navamsa and poison columns in Thai astrology tables. */
#view-thai-astrology .thai-special-navamsa-column,
#view-thai-astrology .thai-special-navamsa-heading,
#view-thai-astrology .thai-special-navamsa-cell,
#view-thai-astrology .relation-poison-heading,
#view-thai-astrology .relation-poison-cell{width:1%;white-space:nowrap!important;text-align:left}
#view-thai-astrology thead .thai-special-navamsa-column,
#view-thai-astrology thead .thai-special-navamsa-heading,
#view-thai-astrology thead .relation-poison-heading{text-align:center}
#view-thai-astrology .thai-special-navamsa-badge{display:inline-block;margin:2px 3px 2px 0;padding:3px 7px;border-radius:999px;background:var(--navamsa-badge-color);color:#fff;font-size:11px;font-weight:900;line-height:1.35;animation:thaiSpecialNavamsaBlink .8s steps(2,end) infinite}
#view-thai-astrology .thai-special-navamsa-badge.good{--navamsa-badge-color:#168047;--navamsa-badge-pale:#eefaf3;--navamsa-badge-shadow:rgba(22,128,71,.18)}
#view-thai-astrology .thai-special-navamsa-badge.bad{--navamsa-badge-color:#b51f25;--navamsa-badge-pale:#fff0f0;--navamsa-badge-shadow:rgba(181,31,37,.18)}
#view-thai-astrology .ong-udom-cell{white-space:nowrap!important}
@keyframes thaiSpecialNavamsaBlink{0%,45%{background:var(--navamsa-badge-color);color:#fff;box-shadow:0 0 0 0 var(--navamsa-badge-shadow)}50%,100%{background:var(--navamsa-badge-pale);color:var(--navamsa-badge-color);box-shadow:0 0 0 3px var(--navamsa-badge-shadow)}}
@media(prefers-reduced-motion:reduce){#view-thai-astrology .thai-special-navamsa-badge{animation:none}}
#view-thai-astrology .house-lord-table-wrap{display:block!important;width:max-content!important;max-width:100%!important;min-width:0!important;border:0!important;border-radius:0!important;overflow-x:auto!important}
#view-thai-astrology .house-lord-table{width:max-content!important;min-width:max-content!important;max-width:none!important;border:1px solid var(--line)!important;border-radius:12px!important}
#view-thai-astrology .pintubath-cell{color:#a21f2d;font-weight:800!important}
#view-thai-astrology .planet-table .thai-content-width-column{width:1%!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;padding-left:5px!important;padding-right:5px!important;text-align:center!important}
#view-thai-astrology .planet-table th.thai-tight-column,#view-thai-astrology .planet-table td.thai-tight-column{width:1%!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;padding-left:5px!important;padding-right:5px!important}
#view-thai-astrology .planet-table .thai-nakshatra-column{text-align:left!important}
#view-thai-astrology .thai-nakshatra-name{font-weight:900!important}
#view-thai-astrology .motion-chip.thai-motion-fast{background:#dff3e4!important;color:#176b35!important}
#view-thai-astrology .motion-chip.thai-motion-slow{background:#fff0b8!important;color:#7a5700!important}
#view-thai-astrology .motion-chip.thai-motion-retro{background:#ffdeda!important;color:#aa211b!important}
#view-thai-astrology .planet-table .thai-poison-column{width:1%!important;min-width:0!important;white-space:nowrap!important;text-align:center!important;padding-left:5px!important;padding-right:5px!important}
#view-thai-astrology .thai-poison-badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#b51f25;color:#fff;font-size:11px;font-weight:800;line-height:1.35;animation:thaiPoisonPulse .8s steps(2,end) infinite}
#view-thai-astrology .thai-kalakini-cell{color:#c51f28!important;font-weight:900!important}
#view-thai-astrology .kala-yok-heading,#view-thai-astrology .kala-yok-cell{width:1%;white-space:nowrap!important}
#view-thai-astrology .kala-yok-cell{color:#7b3f00;font-weight:800!important}
@keyframes thaiPoisonPulse{0%,45%{background:#b51f25;color:#fff;box-shadow:0 0 0 0 rgba(181,31,37,.55)}50%,100%{background:#fff0f0;color:#b51f25;box-shadow:0 0 0 3px rgba(181,31,37,.18)}}
@media(prefers-reduced-motion:reduce){#view-thai-astrology .thai-poison-badge{animation:none;outline:2px solid #b51f25}}
#view-thai-astrology [data-thai-astrology-source-id="navamsaZodiacChart"] .simple-rasi-planet:not(.simple-rasi-asc),
#view-thai-astrology [data-thai-astrology-source-id="thaiDrekkanaD3Panel"] .simple-rasi-planet:not(.simple-rasi-asc){font-size:33px!important}
@media(max-width:700px){
  #view-thai-astrology [data-thai-astrology-source-id="navamsaZodiacChart"] .simple-rasi-planet:not(.simple-rasi-asc),
  #view-thai-astrology [data-thai-astrology-source-id="thaiDrekkanaD3Panel"] .simple-rasi-planet:not(.simple-rasi-asc){font-size:28px!important}
}
#view-thai-astrology .planet-table th:nth-child(-n+4),#view-thai-astrology .planet-table td:nth-child(-n+4){position:sticky!important;background:#fffdf8!important;background-clip:padding-box!important}
#view-thai-astrology .planet-table th:nth-child(1),#view-thai-astrology .planet-table td:nth-child(1){left:0!important;width:118px!important;min-width:118px!important;max-width:118px!important}
#view-thai-astrology .planet-table th:nth-child(2),#view-thai-astrology .planet-table td:nth-child(2){left:118px!important;width:72px!important;min-width:72px!important;max-width:72px!important}
#view-thai-astrology .planet-table th:nth-child(3),#view-thai-astrology .planet-table td:nth-child(3){left:190px!important;width:50px!important;min-width:50px!important;max-width:50px!important;padding-left:4px!important;padding-right:4px!important;text-align:center!important}
#view-thai-astrology .planet-table th:nth-child(4),#view-thai-astrology .planet-table td:nth-child(4){left:240px!important;width:52px!important;min-width:52px!important;max-width:52px!important;padding-left:4px!important;padding-right:4px!important;text-align:center!important;box-shadow:3px 0 5px rgba(80,52,27,.13)!important}
#view-thai-astrology .planet-table thead th:nth-child(-n+4){z-index:48!important;background:#f7f2ea!important}
#view-thai-astrology .planet-table thead tr>th,#view-thai-astrology .planet-table thead tr>th:nth-child(-n+4){background-color:#f7f2ea!important;text-align:center!important;vertical-align:middle!important}
#view-thai-astrology .planet-table thead tr>th,#view-thai-astrology .planet-table thead tr>th:nth-child(-n+4){background:#f1e5c8!important;background-image:none!important;color:#33261a!important;border-color:#cdbd9e!important;box-shadow:0 1px 0 #cdbd9e!important;text-align:center!important;vertical-align:middle!important}
#view-thai-astrology .planet-table thead tr>th{ text-align:center!important;vertical-align:middle!important }
#view-thai-astrology .planet-table tbody tr>td,#view-thai-astrology .planet-table tbody tr>td[class]{text-align:left!important;vertical-align:middle!important}
#view-thai-astrology .planet-table tbody tr>td,#view-thai-astrology .planet-table tbody tr>td:nth-child(-n+4){background-color:#fffdf8!important}
#view-thai-astrology .planet-table tbody tr:nth-child(even)>td,#view-thai-astrology .planet-table tbody tr:nth-child(even)>td:nth-child(-n+4){background-color:#fbf9f5!important}
#view-thai-astrology .planet-table tbody tr:hover>td,#view-thai-astrology .planet-table tbody tr:hover>td:nth-child(-n+4){background-color:#f4efe4!important}
#view-thai-astrology .planet-table .thai-varga-part-column{width:1%!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;text-align:center!important;padding-left:6px!important;padding-right:6px!important}
#view-thai-astrology .planet-table th:nth-child(-n+4),#view-thai-astrology .planet-table td:nth-child(-n+4){position:static!important;left:auto!important;z-index:auto!important;box-shadow:none!important;background-clip:border-box!important}
.intaphas-module{margin-top:18px}
.intaphas-top-layout{display:grid;grid-template-columns:minmax(500px,.92fr) minmax(520px,1.08fr);gap:24px;align-items:start}
.intaphas-wheel{position:relative;display:grid;place-items:center;padding:8px}.intaphas-wheel svg{width:100%;max-width:720px;height:auto;overflow:visible}.intaphas-wheel .intaphas-ghata-ring,.intaphas-wheel .intaphas-outer-divider{fill:none;stroke:#8d725b;stroke-width:1.8;vector-effect:non-scaling-stroke}.intaphas-wheel .intaphas-zodiac-point{font-family:"Sarabun",Tahoma,"Segoe UI",sans-serif;font-size:40px;font-weight:700;paint-order:stroke fill;stroke:#fffdf8;stroke-width:7px;stroke-linejoin:round}.intaphas-wheel .intaphas-zodiac-point.natal,.intaphas-wheel .intaphas-zodiac-point.natal-planet{fill:#211b18}.intaphas-wheel .intaphas-zodiac-point.natal-planet{font-size:38px}.intaphas-wheel .intaphas-zodiac-point.transit,.intaphas-wheel .intaphas-zodiac-point.transit-planet{fill:#2879b8;font-size:30px}.intaphas-wheel .intaphas-zodiac-point.ghata-intaphas{fill:#b12121;font-size:20px;stroke-width:4px}.intaphas-wheel .intaphas-zodiac-point.ghata-bathchan{fill:#78529b;font-size:20px;stroke-width:4px}.intaphas-wheel-expand{position:absolute;top:10px;right:10px;z-index:3;display:grid!important;place-items:center;width:42px!important;height:42px!important;min-height:0!important;padding:0!important;border:2px solid #b88a3d!important;border-radius:9px!important;background:#fff8e5!important;color:#55272b!important;font-size:25px!important;font-weight:900!important;line-height:1!important;box-shadow:0 3px 9px rgba(63,35,17,.22)!important}.intaphas-wheel-expand:hover{background:#55272b!important;color:#fff4d6!important}.intaphas-module.intaphas-wheel-expanded .intaphas-top-layout{grid-template-columns:minmax(0,1fr)}.intaphas-module.intaphas-wheel-expanded .intaphas-wheel svg{max-width:980px}.intaphas-module.intaphas-wheel-expanded .intaphas-pillars{margin-top:10px}
#view-thai-astrology .intaphas-wheel .simple-rasi-name,#view-thai-astrology .intaphas-wheel .zodiac-label.curved-zodiac-label[class*="rasi-style-"]{font-family:"Sarabun",Tahoma,"Segoe UI",sans-serif!important;font-size:25px!important;font-weight:800!important;letter-spacing:0!important;paint-order:stroke fill;stroke:#fffdf8;stroke-width:4px}
#view-thai-astrology .intaphas-wheel .intaphas-rasi-name{font-family:"Sarabun",Tahoma,"Segoe UI",sans-serif;font-size:25px;font-weight:800;fill:#2c2318;paint-order:stroke fill;stroke:#fffdf8;stroke-width:4px;stroke-linejoin:round}
#thaiAstrologyDirectCalcHost{display:grid;gap:16px;margin-bottom:16px}
.intaphas-pillars{display:grid;gap:18px;min-width:0}.intaphas-pillars>section{min-width:0}.intaphas-pillars>section>h4{margin:0 0 14px;padding:7px 10px;background:#ededed;color:#111;font-size:18px;font-weight:500}.intaphas-pillar-row{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:48px;padding:0 38px 2px}.intaphas-pillar{position:relative;min-width:0;background:#fff}.intaphas-pillar>b{display:block;height:38px;text-align:center;font-size:25px;line-height:38px;font-weight:700}
.intaphas-pillar-lines{position:relative;height:88px;margin:0 12px}.intaphas-pillar-lines:before{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:2px solid #222}.intaphas-pillar-lines{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr)}.intaphas-pillar-lines i{border-bottom:1px solid #333}.intaphas-pillar footer{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border-top:1px solid #aaa;font-size:12px;font-weight:700;min-height:30px}
.intaphas-pillar-values{position:relative;display:grid;gap:0;padding:6px 0}.intaphas-pillar-values:after{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:#222;transform:translateX(-.5px)}.intaphas-pillar-values>div{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:34px}.intaphas-pillar-values em{position:absolute;right:calc(100% + 12px);width:42px;font-style:normal;font-size:13px;font-weight:700;color:#54483d;text-align:right}.intaphas-pillar:not(:first-child) .intaphas-pillar-values em{visibility:hidden}.intaphas-pillar-values span{position:relative;z-index:1;text-align:center;font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}.intaphas-pillar-center{height:38px;text-align:center;font-size:22px;line-height:38px;font-weight:800}.intaphas-pillar footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:30px;padding:3px 0 0;border-top:0;text-align:center;font-size:12px;font-weight:700}
.intaphas-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:16px;align-items:start;margin-top:18px}.intaphas-detail-layout>div{display:grid;gap:14px}.intaphas-detail-section h4,.intaphas-defect h4{margin:0 0 5px;color:#247594;font-size:16px}.intaphas-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.intaphas-detail-table,.intaphas-defect table{width:100%;min-width:900px;border-collapse:collapse;background:#fff}.intaphas-detail-table th,.intaphas-detail-table td,.intaphas-defect th,.intaphas-defect td{height:34px;padding:5px 7px;border:1px solid #4c4c4c;white-space:nowrap;text-align:center;font-size:12px}.intaphas-detail-table tbody th{text-align:left;min-width:110px}.intaphas-tone-natal thead th{background:#f2ddd1;color:#654215}.intaphas-tone-transit thead th{background:#d9eaf6;color:#155b86}
.intaphas-taksa{margin-bottom:18px}.intaphas-taksa h4{margin:0 0 6px;text-align:center;color:#816711}.intaphas-taksa>div{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid #537492;border-top:1px solid #537492}.intaphas-taksa span{display:grid;place-items:center;min-height:45px;border-right:1px solid #537492;border-bottom:1px solid #537492;font-size:18px;color:#8a6812}.intaphas-taksa-transit h4{color:#286c9d}
.intaphas-defect{margin-top:18px}.intaphas-defect-natal h4{color:#a11217}.intaphas-defect-transit h4{color:#133e78}.intaphas-defect-natal thead th{background:#bc080e;color:#fff}.intaphas-defect-transit thead th{background:#073570;color:#fff}.intaphas-defect tbody th{font-style:italic;color:#9d1418;text-align:left}.intaphas-defect-transit tbody th{color:#176081}
.intaphas-taksa span{align-content:center;gap:2px;min-height:54px;font-size:inherit}.intaphas-taksa span b{font-size:18px;line-height:1}.intaphas-taksa span small{font-size:10px;line-height:1.15;font-weight:800;text-align:center;color:#62584d}.intaphas-taksa span.intaphas-taksa-kalakini small{color:#c71919}
.intaphas-ghata-mode{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;margin:18px 0 8px;padding:8px 10px;border:1px solid #d8c8af;border-radius:9px;background:#fffaf1}.intaphas-ghata-mode select{min-width:132px;padding:6px 30px 6px 9px;border:1px solid #bda77e;border-radius:7px;background:#fff;color:#3d2c20;font-weight:700}.intaphas-defect th:nth-child(2),.intaphas-defect td:nth-child(2),.intaphas-defect th:nth-child(5),.intaphas-defect td:nth-child(5){width:1%;min-width:0;white-space:nowrap}.intaphas-ghata-skipped td{color:#8c8175;background:#faf7f2}
.intaphas-defect table th,.intaphas-defect table td{font-size:14px;line-height:1.45}
.intaphas-detail-table th,.intaphas-detail-table td{font-size:14px;line-height:1.45}
.intaphas-next-events{margin-top:22px;padding-top:16px;border-top:2px solid #dcc79c}.intaphas-next-events>h4{margin:0 0 10px;color:#542b20;font-size:18px}.intaphas-next-events>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.intaphas-next-events article{padding:11px;border:1px solid #d9cdbb;border-radius:10px;background:#fff}.intaphas-next-events h5{margin:0 0 8px;color:#276f91;font-size:15px}.intaphas-current-point{margin-bottom:8px;padding:7px 8px;border-radius:7px;background:#f4efe6;color:#49392d;font-size:12px;font-weight:700;line-height:1.55}.intaphas-next-events p{display:grid;gap:2px;margin:7px 0;padding-top:7px;border-top:1px solid #eee3d3}.intaphas-next-events p:first-of-type{border-top:0;padding-top:0}.intaphas-next-events p span{font-weight:800;color:#3b2d25}.intaphas-next-events p small{color:#9b5a16;font-weight:800}@media(max-width:720px){.intaphas-next-events>div{grid-template-columns:1fr}}
@media(max-width:1050px){.intaphas-top-layout{grid-template-columns:1fr}.intaphas-wheel svg{max-width:580px}.intaphas-detail-layout{grid-template-columns:1fr}.intaphas-detail-layout aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.intaphas-pillars>section{overflow-x:auto}.intaphas-pillar-row{width:max-content;min-width:100%;grid-template-columns:repeat(3,minmax(160px,1fr));gap:30px;padding-left:54px;padding-right:18px}}
.embedded-house-lord-module{margin:14px 0 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fffaf0}.embedded-house-lord-module>h4{margin:0 0 10px;color:#5c2b1c;font-size:17px}.parivartana-panel{border-width:2px!important;border-color:#9b5b28!important}.parivartana-panel h4{font-size:19px!important;font-weight:900!important;color:#542014!important}.parivartana-heading>span{padding:4px 8px;border-radius:999px;background:#f0dec0;color:#59351d!important;font-size:12px!important;font-weight:800}
.planet-table .motion-heading,.planet-table .motion-cell{width:96px!important;min-width:96px!important;max-width:96px!important;text-align:center!important;padding-left:5px!important;padding-right:5px!important}.planet-table .motion-cell-content{display:flex;justify-content:center}.planet-table .motion-detail{display:none!important}
.planet-table-wrap .upagraha-planet-table{width:max-content!important;min-width:0!important;max-width:none!important;table-layout:auto!important}.upagraha-planet-table th:first-child,.upagraha-planet-table td:first-child{width:1%!important;min-width:132px!important;max-width:132px!important;white-space:nowrap!important;padding-left:7px!important;padding-right:7px!important}.upagraha-planet-table th:nth-child(2),.upagraha-planet-table td:nth-child(2){width:1%!important;min-width:82px!important;max-width:82px!important;white-space:nowrap!important;padding-left:6px!important;padding-right:6px!important}.upagraha-planet-table th,.upagraha-planet-table td{white-space:nowrap}
.table-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
.table-card-head>.tabs{min-width:0;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
.planet-table-wrap{overflow:auto}
.planet-table-wrap table{min-width:980px}
.planet-table-wrap th,.planet-table-wrap td{vertical-align:top;line-height:1.45;padding:10px 8px}
@media(max-width:900px){
  .chart-card-expanded .chart{min-height:640px !important}
  .chart-card-expanded .chart svg{width:min(100%,1080px) !important;max-width:1080px !important}
  .planet-table-wrap table{min-width:760px}
}


/* More planets, Indian Ketu, darker transit dividers */
.transit-ring-divider{stroke:#6f7f95 !important;stroke-width:1.15 !important}
.natal-in-house{font-size:22px !important;font-weight:700 !important}
.ketu-indian-house,.ketu-indian-transit,.ketu-indian-label{fill:#c22020 !important;color:#c22020 !important}
.transit-in-ring.plain-transit.ketu-indian-transit{fill:#c22020 !important;font-weight:700 !important}
.planet-glyph{font-family:Tahoma, Arial, sans-serif !important;font-size:18px !important;font-weight:700 !important;stroke:none !important;paint-order:normal !important}
.planet-glyph.natal{font-size:20px !important}
.natal-in-house.ketu-indian-house{font-weight:800 !important}
.curved-nak-label{font-weight:700 !important;fill:#7a4032 !important}
.planet-table-wrap .ketu-indian-row td:first-child{color:#b02020;font-weight:800}
.mrityu-bhaga-hit{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:999px;background:#e00000;color:#fff;font-size:11px;font-weight:800;white-space:nowrap;animation:mrityu-danger-blink .8s steps(2,end) infinite}
.planet-table .compact-varga-cell{white-space:nowrap;padding-left:5px!important;padding-right:5px!important}
.planet-table .drekkana-cell{width:112px!important;min-width:112px!important;max-width:112px!important}
.planet-table .navamsa-cell{width:108px!important;min-width:108px!important;max-width:108px!important}
.planet-table .shashtiamsa-cell{width:92px!important;min-width:92px!important;max-width:92px!important}
.planet-table thead .compact-varga-cell:nth-last-child(5){width:112px!important;min-width:112px!important;max-width:112px!important}
.planet-table thead .compact-varga-cell:nth-last-child(4){width:108px!important;min-width:108px!important;max-width:108px!important}
.planet-table thead .compact-varga-cell:nth-last-child(3){width:92px!important;min-width:92px!important;max-width:92px!important}
.planet-table .maha-dusthana-cell,.planet-table .mrityu-bhaga-cell{width:1%;white-space:nowrap;text-align:center;padding-left:6px!important;padding-right:6px!important}
.planet-table thead th:not(:first-child){text-align:center!important;vertical-align:middle!important}
.maha-dusthana-hit{margin-left:0}
@keyframes mrityu-danger-blink{0%,45%{background:#e00000;color:#fff;box-shadow:0 0 0 0 rgba(224,0,0,.55)}50%,100%{background:#fff0f0;color:#d00000;box-shadow:0 0 0 3px rgba(224,0,0,.18)}}
@media (prefers-reduced-motion:reduce){.mrityu-bhaga-hit{animation:none;outline:2px solid #e00000}}
.motion-cell{min-width:175px}.motion-cell-content{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.motion-chip{display:inline-block;padding:3px 7px;border-radius:999px;background:#edf2f5;color:#314c5c;font-size:11px;font-weight:800;line-height:1.35;white-space:nowrap}.motion-detail{display:block;max-width:220px;margin:0;color:var(--muted);font-size:11px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}.motion-vakra,.motion-ativakra{background:#ffe2df;color:#b6221d}.motion-stambhana{background:#f3e7ff;color:#6b348e}.motion-manda,.motion-mandatara{background:#fff0d3;color:#8b5b09}.motion-chara,.motion-atichara{background:#ddf2ff;color:#17688f}.motion-atichara{box-shadow:inset 0 0 0 1px #56a9cf}.motion-sama{background:#e5f4e9;color:#267044}

/* Dasha Engine */
.dasha-page{max-width:1180px;margin:auto}.dasha-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(135deg,#2f1714,#6b3426);color:#fff;border:0;padding:26px}.dasha-hero h2{margin:3px 0 8px;font-size:28px}.dasha-hero p{margin:0;opacity:.84}.dasha-eyebrow{font-size:11px;font-weight:800;letter-spacing:.2em;color:#efc26e}.dasha-reference-control{display:flex;align-items:end;gap:8px;flex-wrap:wrap;min-width:330px}.dasha-reference-control label{font-size:12px;font-weight:700}.dasha-reference-control input{display:block;margin-top:5px;min-width:150px}.dasha-reference-control button{white-space:nowrap}.dasha-current-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.dasha-current-card{background:#fff;border:1px solid color-mix(in srgb,var(--dasha-color),#fff 70%);border-top:5px solid var(--dasha-color);border-radius:17px;padding:17px;box-shadow:0 5px 20px rgba(70,45,20,.06)}.dasha-current-card small{color:var(--muted);font-weight:800}.dasha-lord{display:flex;align-items:center;gap:10px;margin:9px 0}.dasha-lord span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--dasha-color);color:#fff;font-size:23px;font-weight:800}.dasha-lord b{font-size:20px}.dasha-current-card p{font-size:13px;color:var(--muted)}.dasha-progress{height:7px;border-radius:99px;background:#eee;overflow:hidden}.dasha-progress i{display:block;height:100%;background:var(--dasha-color)}.dasha-birth-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dasha-birth-summary>div{padding:4px 12px;border-left:4px solid var(--accent)}.dasha-birth-summary small{color:var(--muted);font-weight:800}.dasha-birth-summary h3{margin:5px 0}.dasha-birth-summary p{margin:0;color:var(--muted)}.dasha-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.dasha-section-head h3,.dasha-section-head p{margin:0}.dasha-section-head p{color:var(--muted);font-size:13px}.dasha-timeline{display:flex;min-height:72px;margin-top:16px;border-radius:13px;overflow:hidden}.dasha-timeline-segment{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:34px;background:color-mix(in srgb,var(--segment),#fff 30%);color:#fff;border-right:1px solid #ffffff55;opacity:.72}.dasha-timeline-segment.active{opacity:1;box-shadow:inset 0 0 0 4px #f4d071}.dasha-timeline-segment b{font-size:20px}.dasha-timeline-segment span{font-size:10px}.dasha-table-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.dasha-table-grid details:last-child{grid-column:1/-1}.dasha-table-grid summary{cursor:pointer}.dasha-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.dasha-active-row{background:#fff2cf!important;box-shadow:inset 4px 0 #c58520}.dasha-empty{text-align:center;padding:44px 20px}.dasha-empty p{color:var(--muted)}
@media(max-width:800px){.dasha-hero{align-items:flex-start;flex-direction:column}.dasha-reference-control{min-width:0;width:100%}.dasha-current-grid,.dasha-birth-summary,.dasha-table-grid{grid-template-columns:1fr}.dasha-table-grid details:last-child{grid-column:auto}.dasha-timeline{overflow-x:auto}.dasha-timeline-segment{min-width:58px}}
.transit-age-summary{display:flex!important;align-items:baseline;gap:12px;margin:10px 0!important;padding:10px 14px;border-left:5px solid #b9251c;border-radius:8px;background:#fff0eb;color:#672018}
.transit-age-summary span{font-size:14px;font-weight:800}
.transit-age-summary strong{font-size:24px;font-weight:900;letter-spacing:.01em}
.dasha-age-now{font-size:14px!important;font-weight:900;color:#7d3018!important}
.dasha-major-dates{display:flex;flex-direction:column;gap:3px}
.dasha-major-dates small{font-size:10px;font-weight:800;color:#7d3018}
@media(max-width:600px){.transit-age-summary{align-items:flex-start;flex-direction:column;gap:2px}.transit-age-summary strong{font-size:21px}}
.table-meta{margin-bottom:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#faf7f1;font-size:14px}
@media(max-width:900px){
  .natal-in-house{font-size:17px !important}
}


/* Tanu markers */
.planet-marker{font-family:Tahoma, Arial, sans-serif !important;font-size:12px !important;font-weight:800 !important;fill:#8b1e1e !important}
.transit-marker{font-size:11px !important;fill:#8b1e1e !important}
.name-marker{display:inline-block;margin-left:4px;color:#8b1e1e;font-weight:800}


/* Navamsa half-height and 90% cell typography refinements */
.drek-poison-line{font-family:Tahoma, Arial, sans-serif !important;font-weight:700 !important;fill:#8a2b2b !important}
.nav-label{letter-spacing:0 !important}
.natal-in-house{font-size:20px !important}
.transit-in-ring.plain-transit{font-size:14px !important}
.zodiac-label{font-size:9px !important}
.ketu-indian-house,.ketu-indian-transit,.ketu-indian-label{fill:#c22020 !important}
@media(max-width:900px){
  .natal-in-house{font-size:16px !important}
  .transit-in-ring.plain-transit{font-size:11px !important}
}


/* Natal degree-line style */
.planet-line-text{font-family:Tahoma, Arial, sans-serif !important;fill:#222 !important;font-size:11px !important;font-weight:500 !important}
.planet-line-text.degree{font-size:12px !important;font-weight:600 !important}
.planet-line-text.shashtiamsa{font-size:10.5px !important;fill:#3b3b3b !important}
.planet-glyph.natal{font-size:18px !important}
/* Tanu markers intentionally disabled */
.planet-marker,.name-marker{display:none !important}


/* Reference-image proportion tuning and leader-line colors */
.zodiac-label{font-size:8.6px !important;font-weight:500 !important}
.transit-in-ring.plain-transit{font-size:15px !important;font-weight:600 !important}
.nak-label.curved-nak-label{font-size:9.6px !important}
.nav-label{font-size:10px !important;font-weight:700 !important}
.drek-label{font-size:12px !important;font-weight:700 !important}
.drek-poison-line{font-size:6.5px !important;font-weight:700 !important}
.degree-number{font-size:8.3px !important}
.planet-glyph.natal{fill:#111 !important;stroke:none !important;font-size:18px !important}
.planet-glyph.transit{fill:#d47a00 !important;stroke:none !important;font-size:18px !important}
.planet-sign.natal,.planet-degree.natal,.planet-shashtiamsa.natal,.planet-line-text.natal{fill:#111 !important}
.planet-sign.transit,.planet-degree.transit,.planet-shashtiamsa.transit{fill:#d47a00 !important}
.planet-line-text.shashtiamsa.natal{fill:#222 !important}
.planet-line-text.shashtiamsa.transit{fill:#a45f00 !important}
@media(max-width:900px){
  .transit-in-ring.plain-transit{font-size:12px !important}
  .planet-glyph.natal,.planet-glyph.transit{font-size:14px !important}
}


/* Standard-ring proportion tuning from reference */
.chart{min-height:1000px !important}
.natal-in-house{font-size:17px !important;font-weight:500 !important;letter-spacing:0 !important}
.asc-in-house{font-size:18px !important}
.zodiac-label{font-size:8px !important;font-weight:500 !important}
.nak-label.curved-nak-label{font-size:10.2px !important;font-weight:500 !important;letter-spacing:0 !important}
.nav-label{font-size:10.8px !important;font-weight:700 !important;letter-spacing:0 !important}
.drek-label{font-size:12.5px !important;font-weight:700 !important}
.drek-poison-line{font-size:6.8px !important;font-weight:700 !important;letter-spacing:0 !important}
.degree-number{font-size:8px !important;font-weight:500 !important}
.transit-ring-divider,.ring-divider,.d60-divider{stroke:#303030 !important}
.d60-boundary,.ring-line.strong{stroke:#202020 !important}
@media(max-width:900px){
  .natal-in-house{font-size:14px !important}
  .asc-in-house{font-size:15px !important}
  .nak-label.curved-nak-label{font-size:8px !important}
  .nav-label{font-size:8.5px !important}
}


/* exact reference-base chart mode */
.toggle-note{font-size:12px;color:#7a4a2f;padding:4px 0;display:inline-block}
.chart-card-expanded .chart{min-height:1120px !important}
.chart-card-expanded .chart svg{width:min(100%,1320px) !important;max-width:1320px !important;height:auto;overflow:visible}
.natal-in-house{font-family:Tahoma, "Leelawadee UI", sans-serif !important;font-size:12.5px !important;font-weight:500 !important;letter-spacing:0 !important;fill:#111 !important}
.asc-in-house{font-size:13px !important}
.transit-in-ring.plain-transit{font-family:Tahoma, "Leelawadee UI", sans-serif !important;font-size:10.5px !important;font-weight:500 !important;fill:#d47a00 !important}
.planet-glyph.natal{font-family:Tahoma, "Leelawadee UI", sans-serif !important;font-size:12px !important;font-weight:500 !important;fill:#111 !important;stroke:none !important}
.planet-glyph.transit{font-family:Tahoma, "Leelawadee UI", sans-serif !important;font-size:12px !important;font-weight:500 !important;fill:#d47a00 !important;stroke:none !important}
.planet-sign.natal,.planet-degree.natal,.planet-shashtiamsa.natal,.planet-line-text.natal{fill:#111 !important;font-family:Tahoma, "Leelawadee UI", sans-serif !important;font-size:7px !important;font-weight:500 !important}
.planet-sign.transit,.planet-degree.transit,.planet-shashtiamsa.transit,.planet-line-text.transit{fill:#d47a00 !important;font-family:Tahoma, "Leelawadee UI", sans-serif !important;font-size:7px !important;font-weight:500 !important}
@media(max-width:900px){.chart-card-expanded .chart{min-height:720px !important}.natal-in-house{font-size:9px !important}.transit-in-ring.plain-transit,.planet-glyph.natal,.planet-glyph.transit{font-size:9px !important}.planet-sign.natal,.planet-degree.natal,.planet-shashtiamsa.natal,.planet-line-text.natal,.planet-sign.transit,.planet-degree.transit,.planet-shashtiamsa.transit,.planet-line-text.transit{font-size:5.8px !important}}


/* Leader-line bubble style */
.leader-bubble-text{font-family:Tahoma, "Leelawadee UI", sans-serif !important;font-size:12px !important;font-weight:700 !important;pointer-events:none}
.leader-bubble.natal line,.leader-bubble.natal circle:first-child{stroke:#111111;fill:#111111}
.leader-bubble.transit line,.leader-bubble.transit circle:first-child{stroke:#ef6b1e;fill:#ef6b1e}
.transit-in-ring.plain-transit{font-size:12px !important;font-weight:500 !important;fill:#ef6b1e !important}
.planet-table-note{font-size:12px;color:#666}
@media(max-width:900px){.leader-bubble-text{font-size:9px !important}.transit-in-ring.plain-transit{font-size:9px !important}}


/* Make transit planets in the zodiac ring clearly visible */
.transit-in-ring.plain-transit.transit-visible{
  fill:#ef6b1e !important;
  font-family:Tahoma, "Leelawadee UI", sans-serif !important;
  font-size:15px !important;
  font-weight:700 !important;
  paint-order:stroke fill !important;
  stroke:#ffffff !important;
  stroke-width:2.2px !important;
}
.transit-asc-label.plain-transit.transit-visible{fill:#c62828 !important;stroke:#ffffff !important;stroke-width:2.2px !important}
.ketu-indian-transit.transit-visible{fill:#c62828 !important;stroke:#ffffff !important;stroke-width:2.2px !important}
@media(max-width:900px){
  .transit-in-ring.plain-transit.transit-visible{font-size:12px !important;stroke-width:1.6px !important}
}


/* Transit inward + lighter, natal larger */
.transit-in-ring.plain-transit.transit-visible{
  font-size:13px !important;
  font-weight:500 !important;
  stroke-width:1.8px !important;
}
.transit-asc-label.plain-transit.transit-visible,
.ketu-indian-transit.transit-visible{
  font-weight:500 !important;
  stroke-width:1.8px !important;
}
.natal-in-house{
  font-size:14.5px !important;
  font-weight:500 !important;
}
.asc-in-house{font-size:15.5px !important}
@media(max-width:900px){
  .transit-in-ring.plain-transit.transit-visible{font-size:10.5px !important;stroke-width:1.4px !important}
  .natal-in-house{font-size:11.5px !important}
  .asc-in-house{font-size:12.5px !important}
}


/* Fully code-drawn chart mode */
.chart-card-expanded .chart{min-height:1080px !important}
.center-outer{stroke:#111 !important;stroke-width:2.2 !important;fill:none}
.house-divider{stroke:#111 !important;stroke-width:1.35 !important}
.ring-line{stroke:#222 !important;stroke-width:1.1 !important;fill:none}
.ring-line.strong{stroke:#111 !important;stroke-width:1.35 !important}
.transit-ring,.transit-ring-divider{stroke:#2a3f8f !important;stroke-width:1.05 !important;fill:none}
.zodiac-label{font-family:Tahoma,"Leelawadee UI",sans-serif !important;font-size:8.5px !important;font-weight:500 !important;fill:#333 !important}
.nak-label.curved-nak-label{font-family:Tahoma,"Leelawadee UI",sans-serif !important;font-size:9.6px !important;font-weight:500 !important;fill:#2b2b2b !important}
.nav-label{font-family:Tahoma,"Leelawadee UI",sans-serif !important;font-size:10px !important;font-weight:700 !important;fill:#111 !important}
.drek-label{font-family:Tahoma,"Leelawadee UI",sans-serif !important;font-size:12px !important;font-weight:700 !important;fill:#111 !important}
.drek-poison-line{font-family:Tahoma,"Leelawadee UI",sans-serif !important;font-size:6.6px !important;font-weight:600 !important;fill:#444 !important}
.degree-number{font-family:Tahoma,"Leelawadee UI",sans-serif !important;font-size:8px !important;font-weight:500 !important;fill:#2f2f2f !important}
.natal-in-house{font-size:15px !important;font-weight:500 !important;fill:#111 !important}
.asc-in-house{font-size:16px !important}
.transit-in-ring.plain-transit.transit-visible{font-size:13px !important;font-weight:500 !important;stroke-width:1.6px !important}
@media(max-width:900px){
  .chart-card-expanded .chart{min-height:760px !important}
  .natal-in-house{font-size:11.5px !important}
  .asc-in-house{font-size:12.5px !important}
  .transit-in-ring.plain-transit.transit-visible{font-size:10px !important}
}


/* 900×900 reference-derived presentation */
.chart-card-expanded .chart{min-height:900px !important}
.chart-card-expanded .chart svg{width:900px !important;height:900px !important;max-width:100% !important;display:block;margin:0 auto;overflow:visible}
.center-outer{stroke:#202020 !important;stroke-width:1.8 !important}
.house-divider{stroke:#202020 !important;stroke-width:1.05 !important}
.ring-line{stroke:#2b2b2b !important;stroke-width:.85 !important}
.ring-divider{stroke:#3a3a3a !important;stroke-width:.68 !important}
.ring-divider.major{stroke:#202020 !important;stroke-width:.95 !important}
.transit-ring,.transit-ring-divider{stroke:#334c9b !important;stroke-width:.82 !important}
.zodiac-label{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:7.2px !important;font-weight:400 !important;fill:#333 !important;letter-spacing:0 !important}
.nak-label.curved-nak-label{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:8.4px !important;font-weight:400 !important;fill:#222 !important;letter-spacing:0 !important}
.nav-label{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:8.8px !important;font-weight:500 !important;fill:#191919 !important;letter-spacing:0 !important}
.drek-label{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:10.4px !important;font-weight:500 !important;fill:#191919 !important;letter-spacing:0 !important}
.drek-poison-line{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:5.8px !important;font-weight:400 !important;fill:#3b3b3b !important;letter-spacing:0 !important}
.degree-number{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:7.3px !important;font-weight:400 !important;fill:#222 !important}
.degree-tick{stroke:#393939 !important;stroke-width:.55 !important}
.degree-tick.medium{stroke-width:.75 !important}
.degree-tick.major{stroke-width:1 !important}
.natal-in-house{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:13.2px !important;font-weight:400 !important;fill:#111 !important}
.asc-in-house{font-size:14px !important}
.transit-in-ring.plain-transit.transit-visible{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:11.6px !important;font-weight:400 !important;fill:#ef6b1e !important;stroke:#fff !important;stroke-width:1.2px !important;paint-order:stroke fill !important}
.leader-bubble-text{font-family:Arial,Tahoma,"Leelawadee UI",sans-serif !important;font-size:10.5px !important;font-weight:500 !important}
@media(max-width:940px){
  .chart-card-expanded .chart{min-height:auto !important}
  .chart-card-expanded .chart svg{width:100% !important;height:auto !important}
}


/* Sarabun override for all zodiac-chart text */
#zodiacChart svg text,
#zodiacChart .zodiac-label,
#zodiacChart .nak-label,
#zodiacChart .nav-label,
#zodiacChart .drek-label,
#zodiacChart .drek-poison-line,
#zodiacChart .degree-number,
#zodiacChart .natal-in-house,
#zodiacChart .transit-in-ring,
#zodiacChart .planet-glyph,
#zodiacChart .planet-sign,
#zodiacChart .planet-degree,
#zodiacChart .planet-shashtiamsa,
#zodiacChart .planet-line-text,
#zodiacChart .leader-bubble-text{
  font-family:"Sarabun", Tahoma, "Leelawadee UI", sans-serif !important;
}

/* Rerk cell multiline style */
.rerk-cell{display:flex;flex-direction:column;gap:2px;line-height:1.2}
.rerk-line{display:block}
.rerk-nak{font-weight:500}
.rerk-tara{color:#444}
.rerk-no{font-weight:700}


/* Rerk / Drekkana table cells refined */
.planet-table-wrap td .rerk-cell,
.planet-table-wrap td .drek-cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  line-height:1.15;
  text-align:center;
}
.planet-table-wrap td .rerk-line,
.planet-table-wrap td .drek-line{display:block;width:100%}
.rerk-cell{padding:2px 0}
.rerk-nak{font-weight:500}
.rerk-tara{color:#444}
.rerk-no{font-weight:700;border-top:1px solid #ddd;padding-top:2px}
.drek-cell{padding:2px 0}
.drek-lord{font-weight:700}
.drek-poison{color:#444;border-top:1px solid #ddd;padding-top:2px;min-width:2.2em}


/* Chart-cell labels: Sarabun and three lines inside each Nakshatra cell */
#zodiacChart .nak-cell-name,
#zodiacChart .nak-cell-rerk,
#zodiacChart .nak-cell-no{
  font-family:"Sarabun",Tahoma,"Leelawadee UI",sans-serif !important;
  fill:#222 !important;
  font-weight:400 !important;
  letter-spacing:0 !important;
}
#zodiacChart .nak-cell-name{font-size:6.4px !important;font-weight:500 !important}
#zodiacChart .nak-cell-rerk{font-size:4.8px !important}
#zodiacChart .nak-cell-no{font-size:6px !important;font-weight:500 !important}

/* Restore the planet table as a fully divided grid */
.planet-table-wrap table{border-collapse:collapse !important;border:1px solid var(--line) !important}
.planet-table-wrap th,
.planet-table-wrap td{
  border:1px solid var(--line) !important;
  padding:9px 8px !important;
  vertical-align:top !important;
  text-align:left !important;
}
.planet-table-wrap th{background:#f7f2ea !important;font-weight:700 !important}


/* Final chart-wide Sarabun override */
#zodiacChart svg text,
#zodiacChart svg textPath,
#zodiacChart .zodiac-label,
#zodiacChart .nak-label,
#zodiacChart .nav-label,
#zodiacChart .drek-label,
#zodiacChart .drek-poison-line,
#zodiacChart .degree-number,
#zodiacChart .natal-in-house,
#zodiacChart .transit-in-ring,
#zodiacChart .planet-glyph,
#zodiacChart .planet-sign,
#zodiacChart .planet-degree,
#zodiacChart .planet-shashtiamsa,
#zodiacChart .planet-line-text,
#zodiacChart .leader-bubble-text,
#zodiacChart .nak-cell-name,
#zodiacChart .nak-cell-rerk,
#zodiacChart .nak-cell-no{
  font-family:"Sarabun", Tahoma, "Leelawadee UI", sans-serif !important;
}
#zodiacChart .zodiac-label{font-size:7.4px !important;font-weight:700 !important;fill:#2d2d2d !important}
#zodiacChart .nak-cell-name{font-size:7.2px !important;font-weight:700 !important;fill:#202020 !important}
#zodiacChart .nak-cell-rerk{font-size:5.6px !important;font-weight:500 !important;fill:#333 !important}
#zodiacChart .nak-cell-no{font-size:7px !important;font-weight:700 !important;fill:#202020 !important}
#zodiacChart .nav-label{font-size:8px !important;font-weight:700 !important;fill:#1a1a1a !important}
#zodiacChart .drek-label{font-size:10px !important;font-weight:700 !important;fill:#1a1a1a !important}
#zodiacChart .drek-poison-line{font-size:7.2px !important;font-weight:500 !important;fill:#333 !important}
#zodiacChart .natal-in-house{font-size:17px !important;font-weight:700 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-size:18px !important}
#zodiacChart .transit-in-ring.plain-transit.transit-visible{font-size:10.8px !important;font-weight:400 !important;stroke-width:1.1px !important;fill:#ef6b1e !important;stroke:#fff !important;paint-order:stroke fill !important}
#zodiacChart .leader-bubble-text{font-size:11px !important;font-weight:700 !important}
@media(max-width:900px){
  #zodiacChart .natal-in-house{font-size:13px !important}
  #zodiacChart .asc-in-house{font-size:14px !important}
  #zodiacChart .transit-in-ring.plain-transit.transit-visible{font-size:8.8px !important}
  #zodiacChart .nak-cell-name{font-size:5.8px !important}
  #zodiacChart .nak-cell-rerk{font-size:4.6px !important}
  #zodiacChart .nak-cell-no{font-size:5.8px !important}
}


/* Ring-order rebuild: Sarabun everywhere, readable ~80% cell height */
#zodiacChart svg text,
#zodiacChart svg textPath{font-family:"Sarabun", Tahoma, "Leelawadee UI", sans-serif !important}
.apple-thai-svg-label{letter-spacing:0!important;font-kerning:normal;text-rendering:geometricPrecision}
#zodiacChart .zodiac-label{font-family:"Sarabun", Tahoma, "Leelawadee UI", sans-serif !important;font-size:8px !important;font-weight:700 !important;fill:#2d2d2d !important}
#zodiacChart .nak-cell-name{font-size:10px !important;font-weight:700 !important;fill:#1f1f1f !important}
#zodiacChart .nak-cell-rerk{font-size:7.6px !important;font-weight:500 !important;fill:#353535 !important}
#zodiacChart .nak-cell-no{font-size:9.5px !important;font-weight:700 !important;fill:#1f1f1f !important}
#zodiacChart .nav-label{font-size:8.4px !important;font-weight:700 !important;fill:#1f1f1f !important}
#zodiacChart .drek-label{font-size:12px !important;font-weight:700 !important;fill:#1f1f1f !important}
#zodiacChart .drek-poison-line{font-size:8px !important;font-weight:500 !important;fill:#383838 !important}
#zodiacChart .degree-number{font-size:8.4px !important;font-weight:500 !important;fill:#2b2b2b !important}
#zodiacChart .natal-in-house{font-size:18px !important;font-weight:700 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-size:19px !important}
#zodiacChart .transit-in-ring.plain-transit.transit-visible{font-size:10.4px !important;font-weight:400 !important;stroke-width:1px !important;fill:#ef6b1e !important;stroke:#fff !important;paint-order:stroke fill !important}
#zodiacChart .leader-bubble-text{font-size:11px !important;font-weight:700 !important}
@media(max-width:900px){
  #zodiacChart .zodiac-label{font-size:6.8px !important}
  #zodiacChart .nak-cell-name{font-size:8px !important}
  #zodiacChart .nak-cell-rerk{font-size:6.2px !important}
  #zodiacChart .nak-cell-no{font-size:7.6px !important}
  #zodiacChart .nav-label{font-size:6.6px !important}
  #zodiacChart .drek-label{font-size:9px !important}
  #zodiacChart .drek-poison-line{font-size:6.4px !important}
  #zodiacChart .natal-in-house{font-size:14px !important}
  #zodiacChart .asc-in-house{font-size:15px !important}
  #zodiacChart .transit-in-ring.plain-transit.transit-visible{font-size:8.4px !important}
}


/* Tuned placement and size update */
#zodiacChart .natal-in-house{font-size:20px !important;font-weight:700 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-size:21px !important}
#zodiacChart .transit-in-ring.plain-transit.transit-visible{font-size:12px !important;font-weight:400 !important;stroke-width:1px !important}
@media(max-width:900px){
  #zodiacChart .natal-in-house{font-size:15px !important}
  #zodiacChart .asc-in-house{font-size:16px !important}
  #zodiacChart .transit-in-ring.plain-transit.transit-visible{font-size:9.5px !important}
}


/* Final cleanup: larger natal/transit glyphs, no explanatory notes */
#zodiacChart .natal-in-house{font-size:22px !important;font-weight:700 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-size:23px !important}
#zodiacChart .transit-in-ring.plain-transit.transit-visible{font-size:13px !important;font-weight:400 !important;stroke-width:1px !important}
.toggle-note:empty{display:none !important}
.hint.center:empty{display:none !important}
@media(max-width:900px){
  #zodiacChart .natal-in-house{font-size:16px !important}
  #zodiacChart .asc-in-house{font-size:17px !important}
  #zodiacChart .transit-in-ring.plain-transit.transit-visible{font-size:10px !important}
}


/* Fixed-house anchor layout */
#zodiacChart .natal-in-house{font-size:24px !important;font-weight:700 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-size:25px !important}
@media(max-width:900px){#zodiacChart .natal-in-house{font-size:17px !important}#zodiacChart .asc-in-house{font-size:18px !important}}


/* Pyramid natal stacking */
#zodiacChart .natal-in-house{font-size:25px !important;font-weight:700 !important;letter-spacing:0 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-size:26px !important}
@media(max-width:900px){#zodiacChart .natal-in-house{font-size:17px !important}#zodiacChart .asc-in-house{font-size:18px !important}}


/* v2 safer natal stacking */
#zodiacChart .natal-in-house{font-size:24px !important;font-weight:700 !important;letter-spacing:0 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-size:25px !important}
@media(max-width:900px){#zodiacChart .natal-in-house{font-size:16px !important}#zodiacChart .asc-in-house{font-size:17px !important}}


/* v3 natal sign-safe boxes */
#zodiacChart .natal-in-house{
  font-size:23px !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  fill:#111 !important;
}
#zodiacChart .asc-in-house{font-size:24px !important}
@media(max-width:900px){
  #zodiacChart .natal-in-house{font-size:15px !important}
  #zodiacChart .asc-in-house{font-size:16px !important}
}


/* v4 sector-aligned natal pyramids */
#zodiacChart .natal-in-house{font-size:24px !important;font-weight:700 !important;letter-spacing:0 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-size:25px !important}
@media(max-width:900px){
  #zodiacChart .natal-in-house{font-size:16px !important}
  #zodiacChart .asc-in-house{font-size:17px !important}
}


/* UI module and degree-line fixes */
.chart-card-expanded{overflow:visible !important;}
.chart-card-expanded .chart{min-height:1040px !important;overflow:visible !important;padding:18px 12px 26px !important;}
.chart-card-expanded .chart svg{width:min(100%,1080px) !important;height:auto !important;max-width:1080px !important;display:block !important;margin:0 auto !important;overflow:visible !important;}
#zodiacChart{overflow:visible !important;}
.leader-bubble line{stroke-linecap:round !important;}
@media(max-width:1100px){.chart-card-expanded .chart{min-height:860px !important}.chart-card-expanded .chart svg{width:100% !important;max-width:100% !important}}


/* Natal safe-grid layout */
#zodiacChart .natal-in-house{font-family:"Sarabun",Tahoma,sans-serif !important;font-weight:700 !important;letter-spacing:0 !important;fill:#111 !important}
#zodiacChart .asc-in-house{font-weight:700 !important}


/* MyHora-derived chart typography */
#zodiacChart svg text,
#zodiacChart svg textPath{
  font-family:"Sarabun",Tahoma,"Segoe UI",Arial,Verdana,sans-serif !important;
}
#zodiacChart .curved-zodiac-label{
  font-family:"Sarabun",Tahoma,"Segoe UI",Arial,Verdana,sans-serif !important;
  font-size:18px !important;
  font-weight:500 !important;
  fill:#0b4c7d !important;
  letter-spacing:0 !important;
}
#zodiacChart .natal-in-house{
  font-family:"Sarabun",Tahoma,"Segoe UI",Arial,Verdana,sans-serif !important;
}
@media(max-width:900px){
  #zodiacChart .curved-zodiac-label{font-size:14px !important}
}


/* MyHora-style fixed sign boxes for natal planets */
#zodiacChart .natal-sign-box{overflow:visible}
#zodiacChart .natal-sign-flex{
  width:100%;
  height:100%;
  box-sizing:border-box;
  display:flex;
  flex-wrap:wrap;
  align-content:center;
  justify-content:center;
  align-items:center;
  gap:var(--natal-gap,4px);
  padding:4px;
  overflow:hidden;
  font-family:"Sarabun", Tahoma, "Segoe UI", Arial, Verdana, sans-serif;
  line-height:1;
}
#zodiacChart .natal-flex-glyph{
  flex:0 0 auto;
  min-width:calc(var(--natal-font-size,22px) * .78);
  height:calc(var(--natal-font-size,22px) * 1.05);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:"Sarabun", Tahoma, "Segoe UI", Arial, Verdana, sans-serif;
  font-size:var(--natal-font-size,22px);
  font-weight:500;
  color:#111;
  white-space:nowrap;
}
#zodiacChart .asc-flex-glyph{font-weight:600}
#zodiacChart .ketu-indian-flex{color:#c62828}
#zodiacChart .natal-in-house{display:none !important}


/* Polygon-validated natal layout: every glyph footprint must remain inside its own sign */
#zodiacChart .natal-sign-box{display:none !important}
#zodiacChart .natal-in-house.natal-safe-glyph{
  display:block !important;
  font-family:"Sarabun",Tahoma,"Segoe UI",Arial,Verdana,sans-serif !important;
  font-size:var(--natal-safe-size,18px) !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
  fill:#111 !important;
}
#zodiacChart .natal-in-house.natal-safe-glyph.ketu-indian-house{fill:#c62828 !important}


/* Keep curved zodiac names fully inside the 20px zodiac-name ring */
#zodiacChart .curved-zodiac-label{
  font-family:"Sarabun",Tahoma,"Segoe UI",Arial,Verdana,sans-serif !important;
  font-size:13.5px !important;
  font-weight:600 !important;
  fill:#0b4c7d !important;
  letter-spacing:0 !important;
}
@media(max-width:900px){
  #zodiacChart .curved-zodiac-label{font-size:11px !important}
}

/* Agnikamal Suriyayatra calculator */
.suri-calc-card{margin-bottom:18px}
.suri-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin:12px 0}
.suri-grid label{display:flex;flex-direction:column;gap:5px;font-weight:700}
.suri-grid input{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:inherit}
.suri-grid .suri-check{grid-column:span 2;flex-direction:row;align-items:center;align-self:end;padding:9px 0}
.suri-grid .suri-check input{width:auto}
.suri-status{margin-top:10px;font-size:1rem}
.suri-status.ok{color:#176f3a;font-weight:700}.suri-status.bad{color:#a32222;font-weight:700}
.suri-atta{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.suri-atta span{border:1px solid var(--line);border-radius:999px;padding:5px 9px;background:var(--soft)}
@media(max-width:760px){.suri-grid{grid-template-columns:repeat(2,minmax(110px,1fr))}.suri-grid .suri-check{grid-column:1/-1}}

/* Compact date/time rows and separate transit section */
.suri-date-row{display:grid;grid-template-columns:80px 110px 108px 92px 92px 46px;gap:10px;align-items:end;margin:12px 0}
.current-time-button{width:46px;height:42px;padding:0;border-radius:50%;font-size:27px;line-height:1;display:grid;place-items:center;color:#7a3f20;background:#fff7df;border:1px solid #cfa968}
.current-time-button:hover{background:#f5e3b7;border-color:#9d6c1d}
.suri-place-row{display:grid;grid-template-columns:minmax(320px,1.7fr) 150px 150px minmax(190px,1fr);gap:12px;align-items:end;margin:10px 0 12px}
.province-choice-row{grid-column:1/-1;display:flex;align-items:end;gap:14px}.province-choice-row>.province-field{flex:1 1 auto}.foreign-birth-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;width:max-content;padding-bottom:9px;font-weight:800;white-space:nowrap}.foreign-birth-toggle input{width:18px!important;height:18px}.foreign-place-fields{grid-column:1/-1;display:grid;grid-template-columns:minmax(180px,.8fr) minmax(250px,1.4fr) minmax(170px,.7fr);gap:12px;align-items:end}.foreign-place-fields[hidden]{display:none!important}.foreign-place-fields label{display:grid;gap:5px}.foreign-timezone{align-self:end;padding:10px 12px;border-radius:9px;background:#f2e9de;font-weight:800;color:#624635;white-space:nowrap}
.province-choice-row>.province-field{flex:0 1 560px;max-width:560px}
.suri-date-row label,.suri-place-row label{display:flex;flex-direction:column;gap:5px;font-weight:700}
.suri-date-row select,.suri-place-row select,.suri-place-row input{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:inherit}
.province-line{display:flex;align-items:center;gap:10px}.province-line select{flex:1 1 230px}.local-time-inline{flex:0 0 auto;white-space:nowrap;font-weight:600;color:var(--muted);font-size:.92rem}
.suri-place-row .suri-check{flex-direction:row;align-items:center;padding-bottom:9px}.suri-place-row .suri-check input{width:auto}
.suri-option-row{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px}.suri-place-row .suri-option-row .suri-check{padding:0}
.transit-calc-card{margin-top:22px;border-top:4px solid #7d4b37}
@media(max-width:900px){.suri-date-row{grid-template-columns:repeat(5,minmax(70px,1fr)) 46px}.suri-place-row{grid-template-columns:1fr 1fr}.province-field{grid-column:1/-1}.province-line{flex-wrap:wrap}.local-time-inline{white-space:normal}.suri-place-row .suri-check{grid-column:1/-1}}
@media(max-width:760px){.foreign-place-fields{grid-template-columns:1fr}.foreign-timezone{white-space:normal}}
@media(max-width:600px){.suri-date-row{grid-template-columns:repeat(2,minmax(100px,1fr))}.suri-date-row .month-field,.suri-date-row .year-field{grid-column:auto}.suri-place-row{grid-template-columns:1fr}.province-field,.suri-place-row .suri-check{grid-column:auto}.province-choice-row{align-items:flex-end;gap:9px}.province-choice-row>.province-field{min-width:0}.province-line{display:block}.province-line .local-time-inline{display:block;margin-top:5px}.foreign-birth-toggle{font-size:.9rem}}

/* Collapsible custom-entry section, positioned below transit calculator */
.collapsible-input-card{padding:0;overflow:hidden;margin-top:18px}
.collapsible-input-card>summary{display:block;cursor:pointer;text-align:left;padding:16px 18px;font-weight:800;font-size:1.06rem;background:#f7efe4;border-bottom:1px solid transparent;list-style:none}
.collapsible-input-card>summary::-webkit-details-marker{display:none}
.collapsible-input-card>summary::before{content:"▸";display:inline-block;margin-right:9px;transition:transform .18s ease}
.collapsible-input-card[open]>summary::before{transform:rotate(90deg)}
.collapsible-input-card[open]>summary{border-bottom-color:var(--line)}
.collapsible-input-body{padding:16px 18px 18px}
.collapsible-input-card .input-method-head{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.collapsible-input-card .method-switch{align-self:flex-start;margin:0}
@media(max-width:700px){.collapsible-input-body{padding:13px}.collapsible-input-card .method-switch{width:auto;max-width:100%}}

/* Match MyHora zodiac-name typography at the 900x900 chart reference scale */
#zodiacChart .curved-zodiac-label{
  font-family:"Sarabun",Tahoma,"Segoe UI",Arial,Verdana,sans-serif !important;
  font-size:12px !important;
  font-weight:400 !important;
  fill:#231f20 !important;
  letter-spacing:0 !important;
}
@media(max-width:900px){
  #zodiacChart .curved-zodiac-label{font-size:10px !important}
}

/* Calendar date summary shown after casting a chart */
.calendar-summary{
  margin-top:12px;
  display:block;
}
.calendar-summary[hidden]{display:none!important;}
.calendar-combined-block{border:1px solid var(--line,#d8c8bb);border-radius:12px;background:rgba(255,255,255,.76);padding:12px 14px;color:var(--ink,#2d211d)}
.calendar-combined-block p{margin:0 0 7px;line-height:1.55;font-size:14px}.calendar-combined-block p:last-child{margin-bottom:0}
.calendar-date-item{
  border:1px solid var(--line,#d8c8bb);
  border-radius:12px;
  background:rgba(255,255,255,.72);
  padding:10px 12px;
  min-width:0;
}
.calendar-date-item b{
  display:block;
  margin-bottom:3px;
  font-size:13px;
  color:#5b2d27;
}
.calendar-date-item span{
  display:block;
  font-size:14px;
  line-height:1.45;
  color:var(--ink,#2d211d);
}
.calendar-date-item small{
  display:block;
  margin-top:3px;
  color:var(--muted,#75665e);
  line-height:1.35;
}
@media (max-width:700px){
  .calendar-summary{grid-template-columns:1fr;}
}


/* Typography matched to the supplied 900x900 reference SVG.
   Content and calculations remain generated by this app. */
#zodiacChart .curved-zodiac-label{
  font-family:Tahoma,"Leelawadee UI","Sarabun",Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:400 !important;
  font-style:normal !important;
  letter-spacing:0 !important;
  stroke:none !important;
}
/* Zodiac-name colours by element:
   fire = red, earth = brown, water = blue, air = green */
#zodiacChart .rasi-style-0,
#zodiacChart .rasi-style-4,
#zodiacChart .rasi-style-8{fill:#c6463d !important;}
#zodiacChart .rasi-style-1,
#zodiacChart .rasi-style-5,
#zodiacChart .rasi-style-9{fill:#7a5230 !important;}
#zodiacChart .rasi-style-2,
#zodiacChart .rasi-style-6,
#zodiacChart .rasi-style-10{fill:#3f8a4c !important;}
#zodiacChart .rasi-style-3,
#zodiacChart .rasi-style-7,
#zodiacChart .rasi-style-11{fill:#2f6fa7 !important;}

#zodiacChart .drek-label{
  font-family:Tahoma,"Leelawadee UI","Sarabun",Arial,sans-serif !important;
  font-size:10px !important;
  font-weight:400 !important;
  font-style:normal !important;
  fill:#262626 !important;
  letter-spacing:0 !important;
  stroke:none !important;
}
#zodiacChart .drek-poison-line{
  font-family:Tahoma,"Leelawadee UI","Sarabun",Arial,sans-serif !important;
  font-size:7px !important;
  font-weight:400 !important;
  font-style:normal !important;
  fill:#e85d5a !important;
  letter-spacing:0 !important;
  stroke:none !important;
}
@media(max-width:900px){
  #zodiacChart .curved-zodiac-label{font-size:11.5px !important;}
  #zodiacChart .drek-label{font-size:8.5px !important;}
  #zodiacChart .drek-poison-line{font-size:6px !important;}
}


/* Navamsa highlighted backgrounds */
.nav-cell-fill{stroke:none;opacity:.95}
.nav-cell-red{fill:#ef9a9a}
.nav-cell-green{fill:#c8eb8d}
.nav-label-on-red{fill:#6b1111 !important;font-weight:900 !important}
#view-thai-astrology .nav-cell-green{fill:#b8e6a3}
#view-thai-astrology .nav-cell-blue{fill:#9fd8ff}
#view-thai-astrology .nav-cell-green-blue{fill:url(#thaiNavSpecialGreenBlueGradient)}
#view-thai-astrology .nav-cell-red-green{fill:url(#thaiNavSpecialRedGreenGradient)}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .zodiac-label.curved-zodiac-label[class*="rasi-style-"]{font-size:20px!important;font-weight:800!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .drek-label{font-size:19px!important;font-weight:900!important;fill:#262626!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .drek-poison-line{font-size:15px!important;font-weight:500!important;fill:#e85d5a!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .nav-label{font-size:15.5px!important;font-weight:900!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .degree-number{font-size:11px!important;font-weight:500!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .nak-cell-name{font-size:15px!important;font-weight:800!important;fill:#000!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .nak-cell-rerk{font-size:10px!important;font-weight:600!important;fill:#3b7d2d!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .nak-cell-no{font-size:15.5px!important;font-weight:900!important;fill:#2b2b2b!important}
#view-thai-astrology .nav-label-on-green,
#view-thai-astrology .nav-label-on-blue,
#view-thai-astrology .nav-label-on-green-blue,
#view-thai-astrology .nav-label-on-red-green{fill:#17364a!important;font-weight:900!important}

/* Chart customization imported from the zodiac-chart tuning module. */
#zodiacChart text{
  font-stretch:normal !important;
  font-style:normal !important;
  letter-spacing:0 !important;
  transform:none !important;
}
#zodiacChart .natal-in-house{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:25px !important;
  font-weight:500 !important;
  font-style:normal !important;
  fill:#111111 !important;
}
#zodiacChart .transit-in-ring.plain-transit{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:28px !important;
  font-weight:600 !important;
  font-style:normal !important;
  fill:#fa0000 !important;
}
@media(max-width:900px){#zodiacChart .transit-in-ring.plain-transit{font-size:20px!important}}
#zodiacChart .curved-zodiac-label{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:20px !important;
  font-weight:800 !important;
  font-style:normal !important;
  dominant-baseline:central;
  alignment-baseline:central;
}
#zodiacChart .nak-cell-name{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:15px !important;
  font-weight:600 !important;
  fill:#000000 !important;
}
#zodiacChart .nak-cell-rerk{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:10px !important;
  font-weight:700 !important;
  fill:#62b643 !important;
}
#zodiacChart .nak-cell-no{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:15.5px !important;
  font-weight:700 !important;
  fill:#2b2b2b !important;
}
#zodiacChart .nav-label{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:15.5px !important;
  font-weight:800 !important;
  font-style:normal !important;
  fill:#111111 !important;
}
#zodiacChart .drek-label{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:19px !important;
  font-weight:900 !important;
  font-style:normal !important;
  fill:#262626 !important;
}
#zodiacChart .drek-poison-line{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:15px !important;
  font-weight:500 !important;
  font-style:normal !important;
  fill:#e85d5a !important;
}
#zodiacChart .degree-number{
  font-family:"Sarabun",Tahoma,sans-serif !important;
  font-size:11px !important;
  font-weight:500 !important;
  font-style:normal !important;
  fill:#2f2f2f !important;
}
.tyajya-kala-zone{fill:#ff0000 !important;stroke:#ff0000;stroke-width:.8px;opacity:.78;pointer-events:auto}
.tyajya-kala-zone.tyajya-naga,
.tyajya-kala-zone.tyajya-pakshi,
.tyajya-kala-zone.tyajya-nikhata{fill:#ff0000 !important}
.tyajya-kala-zone.active{fill:#ff0000 !important;stroke:#b40000;stroke-width:1.4px;opacity:1;filter:drop-shadow(0 0 4px rgba(255,0,0,1))}
#zodiacChart .tyajya-asc-marker{font-family:"Sarabun",Tahoma,sans-serif;font-size:14px !important;font-weight:900 !important;fill:#ff0000 !important;paint-order:stroke fill;stroke:#fff;stroke-width:2px;filter:drop-shadow(0 0 3px rgba(255,0,0,1));pointer-events:none}
.tyajya-danger-result{border:2px solid #ff0000 !important;background:#fff0f0 !important;box-shadow:0 0 0 3px rgba(255,0,0,.1)}
.tyajya-danger-result h3{color:#d60000 !important}

/* Separate natal erotic-astrology module */
#eroticAstrologyResult{margin-top:16px}
.erotic-summary{padding:16px;border:1px solid #dfc9b4;border-radius:16px;background:linear-gradient(135deg,#fffaf5,#fff2ed)}
.erotic-summary h2{margin:0 0 8px;color:#7b2f3c}
.erotic-core-grid,.erotic-rule-grid,.erotic-house-grid{display:grid;gap:12px;margin-top:14px}
.erotic-core-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.erotic-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.erotic-house-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.erotic-core-card,.erotic-rule-grid article,.erotic-house-item{padding:14px;border:1px solid #e4d5c8;border-radius:14px;background:#fff}
.erotic-core-card h3,.erotic-rule-grid h3{margin:0 0 8px;color:#7b2f3c}
.erotic-core-card p{margin:7px 0;line-height:1.55}
.erotic-house-item{display:flex;flex-direction:column;gap:5px}
.erotic-house-item b{color:#5e3540}.erotic-house-item span{line-height:1.5;color:#534c48}
.erotic-warning{margin-top:14px;padding:14px 16px;border:2px solid #c93b3b;border-radius:14px;background:#fff1f1}
.erotic-warning h3{margin:0 0 8px;color:#b30000}.erotic-warning ul{margin:0;padding-left:22px}
.erotic-empty{margin-top:14px;padding:16px;border-radius:12px;background:#fff5e8;color:#7b4a18}
@media(max-width:900px){.erotic-core-grid,.erotic-house-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.erotic-core-grid,.erotic-rule-grid,.erotic-house-grid{grid-template-columns:1fr}}
#zodiacChart .zodiac-boundary-line{
  stroke:#151515 !important;
  stroke-width:1.8 !important;
  stroke-linecap:butt;
  vector-effect:non-scaling-stroke;
}
#zodiacChart .zodiac-boundary-nak-faint{
  stroke:#a8a8a8 !important;
  stroke-width:.65 !important;
  opacity:.38;
}
#zodiacChart .center-fire-lotus{
  pointer-events:none;
}

/* Main rāśi / Drekkana D3 chart tabs */
.chart-view-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.chart-view-tab{padding:8px 12px;border-radius:999px;font-weight:750}
.chart-view-tab.active{background:var(--blue);border-color:var(--blue);color:#fff}
.chart-view-panel[hidden]{display:none!important}
.chart-view-note{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#f7efe4;color:var(--muted);line-height:1.55}
#simpleZodiacChart{display:flex;justify-content:center;min-height:auto!important;padding:16px 8px 24px}
#navamsaZodiacChart{display:flex;justify-content:center;min-height:auto!important;padding:16px 8px 24px}
#simpleZodiacChart svg{display:block;width:min(100%,900px)!important;max-width:900px!important;height:auto!important;overflow:visible;font-family:"Sarabun",Tahoma,sans-serif}
#navamsaZodiacChart svg{display:block;width:min(76vw,680px)!important;max-width:680px!important;height:auto!important;overflow:visible;font-family:"Sarabun",Tahoma,sans-serif}
#simpleZodiacChart .center-outer,#simpleZodiacChart .house-divider,#simpleZodiacChart .ring-line,#simpleZodiacChart .ring-divider,#simpleZodiacChart .simple-rasi-outer,#simpleZodiacChart .simple-rasi-boundary{fill:none;stroke:#292929;stroke-width:1.45;vector-effect:non-scaling-stroke}
#simpleZodiacChart .curved-zodiac-label{font-size:18px!important;font-weight:700!important;letter-spacing:0!important}
#simpleZodiacChart .simple-rasi-planet{font-family:"Sarabun",Tahoma,"Segoe UI",sans-serif;font-size:var(--simple-natal-size,34px);font-weight:600;fill:#111;paint-order:stroke fill;stroke:#fffdf8;stroke-width:1.5px;stroke-linejoin:round}
#simpleZodiacChart .simple-rasi-planet.natal-multi{letter-spacing:-.02em}
#simpleZodiacChart .simple-rasi-planet.transit{fill:#d93636}
#simpleZodiacChart .simple-rasi-planet.simple-rasi-asc{fill:#e02020;font-weight:800;font-size:29px}
#simpleZodiacChart .simple-rasi-planet.ketu-indian{fill:#c62828}
#simpleZodiacChart .simple-rasi-transit{font-size:27px;font-weight:600;fill:#fa0000;paint-order:stroke fill;stroke:#fff;stroke-width:1px}
#simpleZodiacChart .simple-rasi-transit.simple-rasi-asc{font-size:29px;font-weight:800;fill:#e02020}
#simpleZodiacChart .simple-rasi-center-degree{font-size:22px;font-weight:600;fill:#111}
#simpleZodiacChart .simple-rasi-center-minute{font-size:20px;font-weight:700;fill:#111}
#navamsaZodiacChart .center-outer,#navamsaZodiacChart .house-divider,#navamsaZodiacChart .ring-line,#navamsaZodiacChart .ring-divider,#navamsaZodiacChart .simple-rasi-outer,#navamsaZodiacChart .simple-rasi-boundary{fill:none;stroke:#292929;stroke-width:1.45;vector-effect:non-scaling-stroke}
#navamsaZodiacChart .curved-zodiac-label{font-size:18px!important;font-weight:700!important;letter-spacing:0!important}
#navamsaZodiacChart .simple-rasi-planet{font-size:27px;font-weight:600;fill:#111}
#navamsaZodiacChart .simple-rasi-planet.ketu-indian{fill:#c62828}
#navamsaZodiacChart .simple-rasi-transit{font-size:27px;font-weight:600;fill:#fa0000;paint-order:stroke fill;stroke:#fff;stroke-width:1px}
#navamsaZodiacChart .simple-rasi-center-degree{font-size:22px;font-weight:600;fill:#111}
#navamsaZodiacChart .simple-rasi-center-minute{font-size:20px;font-weight:700;fill:#111}
#simpleZodiacChart .simple-relation-layer{pointer-events:none}
#simpleZodiacChart .simple-relation-line{fill:none;stroke-width:1.35;opacity:.25}
#simpleZodiacChart .simple-relation-line.malefic{stroke:#cf5b5b}
#simpleZodiacChart .simple-relation-line.benefic{stroke:#58a879}
#simpleZodiacChart .simple-relation-line.kartari{stroke-width:2;opacity:.48;stroke-linecap:round;stroke-linejoin:round}
#simpleZodiacChart .simple-relation-target{font-family:"Trirong","Th Sarabun New",serif;font-size:var(--relation-label-size,20px);font-weight:300;opacity:.68;paint-order:stroke fill;stroke:#fffdf8;stroke-width:1.8px;stroke-linejoin:round}
#simpleZodiacChart .simple-relation-target.malefic,#simpleZodiacChart .simple-kartari-source.malefic{fill:#b84747}
#simpleZodiacChart .simple-relation-target.benefic,#simpleZodiacChart .simple-kartari-source.benefic{fill:#39865a}
#simpleZodiacChart .simple-kartari-source{font-size:16px;font-weight:700;opacity:.35;paint-order:stroke fill;stroke:#fff;stroke-width:2px}
@media(max-width:700px){#simpleZodiacChart svg,#navamsaZodiacChart svg{width:min(94vw,620px)!important}#simpleZodiacChart .curved-zodiac-label,#navamsaZodiacChart .curved-zodiac-label{font-size:15px!important}#simpleZodiacChart .simple-rasi-planet{font-size:var(--simple-natal-size,30px)}#navamsaZodiacChart .simple-rasi-planet{font-size:23px}#simpleZodiacChart .simple-rasi-planet.simple-rasi-asc,#navamsaZodiacChart .simple-rasi-planet.simple-rasi-asc{font-size:25px}#simpleZodiacChart .simple-rasi-transit,#navamsaZodiacChart .simple-rasi-transit{font-size:23px;font-weight:600}#simpleZodiacChart .simple-rasi-transit.simple-rasi-asc,#navamsaZodiacChart .simple-rasi-transit.simple-rasi-asc{font-size:25px}#simpleZodiacChart .simple-relation-target{font-size:var(--relation-label-size,24px)!important;stroke-width:1.8px!important}}
#calculatedModules[hidden],#analysisNavButton[hidden],#goodDayNavButton[hidden]{display:none!important}

/* Good-day search */
.good-day-page{display:grid;gap:16px}.good-day-search-card{padding:18px}
.good-day-presets{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:12px 0}.good-day-presets label{display:grid;gap:5px;font-weight:700}.good-day-presets select,.good-day-presets button{padding:8px 13px;border:1px solid #d8c5b4;border-radius:10px;background:#fff}.good-day-presets button{cursor:pointer}
.good-day-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.good-day-filters label{display:grid;gap:6px;font-weight:700}.good-day-filters input,.good-day-filters select{min-width:0;padding:10px;border:1px solid #d7c9bd;border-radius:10px;background:#fff}
.good-day-filters .good-day-check{display:flex;align-items:center;gap:8px;padding:10px 0}.good-day-filters .good-day-check input{width:18px;height:18px}
.good-day-result-summary{border-left:5px solid #5f8c45}.good-day-result-summary h2{margin-bottom:4px}
.good-day-month>summary{padding:15px 18px}.good-day-list{display:grid;gap:10px}
.good-day-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid #dfd5cb;border-radius:14px;background:#fff}
.good-day-item.score-5{border-color:#78a95c;background:#f7fff3}.good-day-item h3{margin:0 0 5px}.good-day-item p{margin:0 0 8px}
.good-day-valid-time{padding:8px 10px;border-left:4px solid #4f8b3b;border-radius:7px;background:#eef9e9;color:#285b1c}.good-day-transition{color:#a32626;font-weight:700}
.good-day-component{display:inline-block;margin:3px 5px 0 0;padding:3px 7px;border-radius:999px;font-size:12px;font-weight:700}.good-day-component.ok{background:#dff3d5;color:#316520}.good-day-component.warn{background:#fff0c7;color:#7d5a00}.good-day-component.bad{background:#ffd9d9;color:#991c1c}
.good-day-score{display:grid;justify-items:center;gap:5px;min-width:108px}.good-day-score strong{font-size:24px;color:#386e2e}.good-day-score span{font-weight:800}.good-day-score button{padding:7px 10px;border:1px solid #9ab58a;border-radius:9px;background:#fff;cursor:pointer}
.good-day-empty{text-align:center;padding:30px}
@media(max-width:900px){.good-day-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.good-day-filters{grid-template-columns:1fr}.good-day-item{grid-template-columns:1fr}.good-day-score{justify-items:start}}

/* Planet position search */
.planet-search-card{padding:18px;margin-top:6px}.planet-search-presets,.planet-search-dates{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:12px 0}.planet-search-presets label,.planet-search-dates label{display:grid;gap:5px;font-weight:700}.planet-search-presets select,.planet-search-presets button,.planet-search-dates input{padding:9px 12px;border:1px solid #d8c5b4;border-radius:10px;background:#fff}.planet-search-condition-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 9px}.planet-search-condition-head button,.planet-condition-remove{padding:7px 11px;border:1px solid #d8c5b4;border-radius:9px;background:#fff;cursor:pointer}.planet-search-conditions{display:grid;gap:8px}.planet-search-condition{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto;gap:10px;align-items:end;padding:10px;border:1px solid #e2d5c8;border-radius:12px;background:#fffdf9}.planet-search-condition label{display:grid;gap:5px;font-weight:700}.planet-search-condition select{padding:9px;border:1px solid #d8cbbf;border-radius:9px;background:#fff}.planet-search-summary{border-left:5px solid #315f97}.planet-search-period{padding:14px 16px}.planet-search-period h3{margin:0 0 7px}.planet-search-grahas{display:flex;gap:7px;flex-wrap:wrap}.planet-search-chip{padding:5px 9px;border-radius:999px;background:#edf4fb;color:#234e7e;font-weight:800}.planet-search-chip.retrograde{background:#ffe2df;color:#a21f1a}.planet-search-period small{color:var(--muted)}
@media(max-width:620px){.planet-search-dates{display:grid;grid-template-columns:1fr}.planet-search-condition{grid-template-columns:1fr}.planet-condition-remove{justify-self:start}}
.mrityu-search-card{padding:18px;margin-top:6px}.mrityu-search-card select{padding:9px 12px;border:1px solid #d8c5b4;border-radius:10px;background:#fff}.mrityu-planet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 9px}.mrityu-planet-head span{display:flex;gap:7px}.mrityu-planet-head button{padding:6px 10px;border:1px solid #d8c5b4;border-radius:9px;background:#fff;cursor:pointer}.mrityu-planet-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mrityu-planet-choice{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid #dfd3c7;border-radius:10px;background:#fffdf9;font-weight:700}.mrityu-planet-choice input,.mrityu-exit-check input{width:17px;height:17px}.mrityu-exit-check{display:flex;align-items:center;gap:8px;margin:13px 0;font-weight:700}.mrityu-result-summary{border-left:5px solid #b32020}.mrityu-result-list{display:grid;gap:10px}.mrityu-event{padding:15px 17px}.mrityu-event-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.mrityu-event h3{margin:0 0 5px}.mrityu-zone{display:inline-block;padding:4px 8px;border-radius:999px;background:#ffe1dd;color:#9e1f19;font-weight:800}.mrityu-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:11px 0}.mrityu-event-grid>div{padding:9px 10px;border-radius:9px;background:#f7f3ed}.mrityu-event-grid small{display:block;color:var(--muted);font-weight:700}.mrityu-event-grid b{display:block;margin-top:3px}.mrityu-event-actions{display:flex;gap:8px;flex-wrap:wrap}.mrityu-event-actions button{padding:7px 10px;border:1px solid #cdb9a6;border-radius:9px;background:#fff;cursor:pointer}.mrityu-motion-retro{color:#b32020}.mrityu-no-exit{color:var(--muted)}
@media(max-width:700px){.mrityu-planet-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.mrityu-event-grid{grid-template-columns:1fr}.mrityu-event-head{display:block}.mrityu-zone{margin-top:6px}}
.day-information-module{margin-bottom:16px}
.day-information-grid{display:grid;grid-template-columns:1fr;gap:14px}
.day-information-panel{padding:14px 16px;border:1px solid #e1d3c4;border-radius:14px;background:#fffdf9}
.day-information-panel h3{margin:0 0 10px;color:#4b302c}
.day-information-panel .calendar-summary{margin:0}
.day-information-panel .day-information-atta{margin-top:12px;padding-top:10px;border-top:1px dashed #dfd0c0}
#analysisZodiacModule{margin-bottom:16px}
#analysisZodiacChart{display:block;min-width:100%;overflow:visible!important}
#analysisZodiacChart>svg{display:block;margin-inline:auto}
.analysis-zodiac-viewport{width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:auto;touch-action:pan-x pan-y;border:1px solid #e1d3c4;border-radius:14px;background:#fffdf9;scrollbar-gutter:stable both-edges;-webkit-overflow-scrolling:touch}
.analysis-zodiac-tools{display:flex;justify-content:center;align-items:center;gap:8px;margin:2px 0 8px}.analysis-zodiac-tools button{min-width:44px;min-height:40px;padding:7px 12px;border:1px solid #cdb88e;border-radius:10px;background:#fff;color:#4c2c1e;font-size:1.1rem;font-weight:900;cursor:pointer}.analysis-zodiac-tools #analysisZodiacZoomReset{min-width:78px;font-size:.9rem}.analysis-zodiac-tools button:active{background:#f2e6cf}.analysis-zodiac-zoom-hint{margin:0 0 8px;text-align:center;color:#79634c;font-size:.82rem}
@media(max-width:700px){.analysis-zodiac-viewport{max-height:78vh}.analysis-zodiac-tools{position:sticky;top:4px;z-index:4}.analysis-zodiac-tools button{background:#fffdf9;box-shadow:0 2px 8px rgba(71,45,18,.12)}}
#healthZodiacChart{display:flex;justify-content:center;min-height:auto!important;padding:16px 8px 24px;overflow:visible!important}.health-zodiac-card{padding:12px}.health-zodiac-chart{margin:0 auto}
#healthZodiacChart .health-sign-alert{stroke-width:4;vector-effect:non-scaling-stroke;pointer-events:none}#healthZodiacChart .health-sign-alert.critical{fill:rgba(210,24,24,.08);stroke:#d21818}#healthZodiacChart .health-sign-alert.care{fill:rgba(232,180,18,.16);stroke:#d5a000}.organ-group.health-critical{border:2px solid #cf2727;box-shadow:0 0 0 2px rgba(207,39,39,.1)}.organ-group.health-care{border:2px solid #d5a000;background:#fffbea;box-shadow:0 0 0 2px rgba(213,160,0,.1)}.health-critical-badge,.health-care-badge{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;color:#fff;font-size:.72rem}.health-critical-badge{background:#b91f1f}.health-care-badge{background:#c89400;color:#2f2500}.health-criteria-list{margin-top:10px;padding-top:8px;border-top:1px dashed rgba(109,67,17,.3)}.health-criteria-list p{margin:5px 0!important;font-size:.88rem}
#analysisZodiacChart svg text,#analysisZodiacChart svg textPath{font-family:"Sarabun",Tahoma,"Leelawadee UI",sans-serif!important}
#analysisZodiacChart .curved-zodiac-label{font-size:20px!important;font-weight:800!important;letter-spacing:0!important;dominant-baseline:middle!important;alignment-baseline:middle!important}
#analysisZodiacChart .natal-in-house{font-size:30px!important;font-weight:600!important;fill:#111!important}
#analysisZodiacChart .natal-in-house.asc-in-house{font-size:31px!important;fill:#e02020!important;font-weight:800!important}
#analysisZodiacChart .transit-in-ring.plain-transit{font-size:20px!important;font-weight:600!important;fill:#fa0000!important}
#analysisZodiacChart .transit-asc-label.plain-transit{fill:#e02020!important;font-weight:800!important}
#analysisZodiacChart .center-fire-lotus{pointer-events:none}
@media(max-width:900px){#analysisZodiacChart .natal-in-house{font-size:22px!important}#analysisZodiacChart .natal-in-house.asc-in-house{font-size:23px!important}#analysisZodiacChart .transit-in-ring.plain-transit{font-size:16px!important}}
#drekkanaChart .center-fire-lotus{pointer-events:none}
#drekkanaChart .natal-in-house{font-family:"Sarabun",Tahoma,sans-serif!important;font-size:25px!important;font-weight:500!important;fill:#111!important}
#drekkanaChart .transit-in-ring.plain-transit{font-family:"Sarabun",Tahoma,sans-serif!important;font-size:24px!important;font-weight:500!important;fill:#fa0000!important}
#drekkanaChart .curved-zodiac-label{font-family:"Sarabun",Tahoma,sans-serif!important;font-size:20px!important;font-weight:800!important;font-stretch:normal!important;letter-spacing:0!important;dominant-baseline:central;alignment-baseline:central}
#drekkanaChart .rasi-style-0,#drekkanaChart .rasi-style-4,#drekkanaChart .rasi-style-8{fill:#c6463d!important}
#drekkanaChart .rasi-style-1,#drekkanaChart .rasi-style-5,#drekkanaChart .rasi-style-9{fill:#7a5230!important}
#drekkanaChart .rasi-style-2,#drekkanaChart .rasi-style-6,#drekkanaChart .rasi-style-10{fill:#3f8a4c!important}
#drekkanaChart .rasi-style-3,#drekkanaChart .rasi-style-7,#drekkanaChart .rasi-style-11{fill:#2f6fa7!important}

/* Three anatomical Drekkana wheels */
#drekkanaChart{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:36px;row-gap:26px;align-items:start;margin-top:14px;padding:18px 24px;box-sizing:border-box}
.drekkana-body-chart{display:block;width:100%;height:auto;max-width:none;margin:auto;overflow:visible;font-family:"Sarabun",Tahoma,sans-serif}
.drekkana-body-chart:nth-child(3){grid-column:1/-1;width:calc((100% - 36px)/2)}
.drekkana-body-title{text-anchor:middle;font-size:34px;font-weight:800;fill:#442f28}
.drekkana-body-core{fill:#fff8e7;fill-opacity:.92;stroke:#7a5230;stroke-width:1.4;vector-effect:non-scaling-stroke}
.drekkana-body-label{text-anchor:middle;dominant-baseline:middle;font-size:12px;font-weight:600;fill:#725f54;opacity:.58;pointer-events:none}
.drekkana-body-label .house-line{font-size:13px;font-weight:800;fill:#7a3f20}
.drekkana-body-center{text-anchor:middle;dominant-baseline:central;font-size:20px;font-weight:800;fill:#7a3f20;pointer-events:none}
.drekkana-body-chart .natal-in-house,.drekkana-body-chart .transit-in-ring{opacity:1!important}
.drekkana-reference-marker{font-family:"Sarabun",Tahoma,sans-serif;font-size:19px;font-weight:800;fill:#d51f26;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round;pointer-events:none}
.drekkana-body-note{text-align:center;margin:8px 0 4px;font-size:20px;font-weight:800;color:#7a3f20}
@media(max-width:850px){#drekkanaChart{grid-template-columns:1fr;padding:14px 10px;row-gap:24px}.drekkana-body-chart,.drekkana-body-chart:nth-child(3){grid-column:auto;width:100%;max-width:720px}}

/* Drekkana template: body-part labels moved to a curved outer ring */
.d3-body-ring-text{font-family:"Sarabun",Tahoma,"Leelawadee UI",sans-serif;font-size:11.5px;font-weight:600;fill:#4f3f31;letter-spacing:0}
.d3-body-ring-no{font-size:14px;font-weight:800;fill:#7a3f20}
.drekkana-body-chart .transit-in-ring{opacity:1!important}
@media(max-width:900px){
  .d3-body-ring-text{font-size:9px}
  .d3-body-ring-no{font-size:11px}
}

/* Drekkana wheels: a four-track grid guarantees all three wheels have exactly
   the same rendered width; wheel 3 occupies the two centered tracks. */
#drekkanaChart{grid-template-columns:repeat(4,minmax(0,1fr))}
.drekkana-body-chart{width:100%;max-width:none;aspect-ratio:796/930;justify-self:stretch}
.drekkana-body-chart:nth-child(1){grid-column:1/3}
.drekkana-body-chart:nth-child(2){grid-column:3/5}
.drekkana-body-chart:nth-child(3){grid-column:2/4;width:100%;max-width:none;aspect-ratio:796/930;justify-self:stretch}
.d3-body-ring-text{font-size:18.225px;font-weight:600;fill:#453729;font-stretch:normal;font-style:normal;transform:none}
.d3-body-ring-no{font-size:16.5px;font-weight:800;fill:#7a3f20}
.d3-body-ring-text.d3-house-one{font-weight:800;fill:#d51f26}
.d3-body-ring-no.d3-house-one{font-weight:900;fill:#d51f26;stroke:#d51f26;stroke-width:.45px;paint-order:stroke fill}
.drekkana-body-core{fill:#fdf6e3;fill-opacity:1;stroke:#8a5a16;stroke-width:1.6}
@media(max-width:900px){
  .d3-body-ring-text{font-size:14.175px}
  .d3-body-ring-no{font-size:13px}
  .d3-body-ring-no.d3-house-one{stroke-width:.35px}
}
@media(max-width:850px){
  #drekkanaChart{grid-template-columns:1fr}
  .drekkana-body-chart:nth-child(1),
  .drekkana-body-chart:nth-child(2),
  .drekkana-body-chart:nth-child(3){grid-column:auto;width:100%;max-width:720px;aspect-ratio:796/930;justify-self:center}
}

/* Ascendant glyph standard: vivid red and visibly heavier than planet glyphs */
.asc-symbol{color:#d60000!important;font-weight:900!important;-webkit-text-stroke:.35px #d60000}
#zodiacChart .natal-in-house.asc-in-house,
#drekkanaChart .natal-in-house.asc-in-house{
  fill:#d60000!important;
  font-weight:900!important;
  stroke:#d60000!important;
  stroke-width:.45px!important;
  paint-order:stroke fill!important;
}
#zodiacChart .transit-asc-label.plain-transit,
#drekkanaChart .transit-asc-label.plain-transit{
  fill:#d60000!important;
  font-weight:900!important;
  stroke:#ffffff!important;
  stroke-width:1.2px!important;
  paint-order:stroke fill!important;
}

/* Yoga Engine */
.yoga-engine-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:8px 0 12px}
.yoga-engine-controls label{display:grid;gap:5px;font-weight:700;color:#4f392e}
.yoga-engine-controls select{min-width:145px}
.yoga-mode-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.yoga-mode-tab{font-weight:800;border-color:#ccb7a5;background:#fffaf2}
.yoga-mode-tab.active{background:#6b3028;color:#fff;border-color:#6b3028}
.yoga-engine-summary{margin:14px 0 10px;padding:11px 13px;border:1px solid #d9c1a8;border-radius:10px;background:#fff9ed;color:#4a3025}
.yoga-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.yoga-sign-result{border:1px solid #dfcdb9;border-radius:12px;padding:12px 14px;background:rgba(255,255,255,.82)}
.yoga-sign-result header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.yoga-sign-result h4{margin:0;color:#6f2f23;font-size:18px}
.yoga-count{padding:3px 9px;border-radius:999px;background:#8d241d;color:#fff;font-size:12px;font-weight:800}
.yoga-planets{margin:7px 0;font-size:20px;font-weight:900;color:#d60000}
.yoga-occupants{margin:8px 0;padding:7px 9px;border-radius:8px;background:#f3ede5;color:#4b3a31;line-height:1.5}
.yoga-force{margin-top:10px;padding:9px 10px;border-radius:9px}
.yoga-force>div{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}
.yoga-force.malefic{background:#fff2f0;border-left:4px solid #b8322a}
.yoga-force.benefic{background:#f1f9ef;border-left:4px solid #3d8644}
.yoga-force.malefic>b{color:#92251f}.yoga-force.benefic>b{color:#286b32}
.yoga-planet-chip{display:inline-grid;place-items:center;min-width:30px;height:30px;border-radius:50%;font-size:17px;font-weight:900}
.yoga-planet-chip.malefic{color:#fff;background:#b8322a}
.yoga-planet-chip.benefic{color:#fff;background:#3d8644}
.yoga-none{color:#84766d;font-size:13px}
.yoga-count.malefic{background:#9f2721}.yoga-count.benefic{background:#34783d}.yoga-count.equal{background:#76675c}
.yoga-sign-result ul{margin:6px 0 0;padding-left:22px;color:#4f443e}
.yoga-sign-result li{margin:4px 0;line-height:1.45}
.yoga-below-threshold{margin-top:12px;color:#66564c}
.yoga-below-threshold summary{cursor:pointer;font-weight:700}
.yoga-empty{margin-top:12px;padding:12px;border:1px dashed #c99f88;border-radius:10px;color:#8a2d22;background:#fff8f2}
@media(max-width:760px){.yoga-result-grid{grid-template-columns:1fr}}

/* Date row: wider slot for the labeled current-time button */
.suri-date-row{grid-template-columns:80px 110px 108px 92px 92px auto}
.suri-date-row .current-time-button{align-self:end;justify-self:start}
@media(max-width:900px){.suri-date-row{grid-template-columns:repeat(5,minmax(70px,1fr)) auto}}
@media(max-width:600px){.suri-date-row{grid-template-columns:repeat(2,minmax(100px,1fr))}.suri-date-row .current-time-button{grid-column:1/-1;justify-self:stretch;justify-content:center}}
.dasha-major-list{display:grid;gap:9px;margin-top:16px}.dasha-major-nested{border:1px solid #e2d8cc;border-radius:14px;background:#fff;overflow:hidden}.dasha-major-nested>summary{position:relative;display:grid;grid-template-columns:7px minmax(185px,1fr) auto auto 22px;align-items:center;gap:12px;min-height:62px;padding:0 14px 0 0;cursor:pointer;list-style:none}.dasha-major-nested>summary::-webkit-details-marker{display:none}.dasha-major-band{align-self:stretch;background:var(--major-color)}.dasha-major-title{display:flex;align-items:center;gap:9px}.dasha-major-title b{font-size:16px}.dasha-major-title small{padding:2px 7px;border-radius:99px;background:#f1ece6;color:var(--muted);font-weight:800}.dasha-major-dates{font-size:12px;color:var(--muted);white-space:nowrap}.dasha-current-major-label,.dasha-now-badge{display:inline-block;padding:4px 8px;border-radius:99px;background:#c98713;color:#fff;font-size:10px;font-weight:900;white-space:nowrap}.dasha-major-chevron{font-size:19px;color:var(--muted);transition:transform .2s}.dasha-major-nested[open] .dasha-major-chevron{transform:rotate(180deg)}.dasha-major-nested.current{border:2px solid var(--major-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--major-color),transparent 82%)}.dasha-major-nested.current>summary{background:color-mix(in srgb,var(--major-color),#fff 88%)}.dasha-major-nested.current .dasha-major-title b{color:var(--major-color)}.dasha-nested-body{border-top:1px solid #eadfd4;padding:12px 14px 15px;background:#fffdf9}.dasha-nested-caption{margin-bottom:8px;color:var(--muted);font-size:12px;font-weight:700}.dasha-sub-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px}.dasha-now-badge{margin-left:8px;background:#d12f25}.dasha-nested-section{padding:18px}.dasha-nested-section .planet-table-wrap{margin:0}
@media(max-width:800px){.dasha-major-nested>summary{grid-template-columns:7px 1fr 22px;gap:9px}.dasha-major-dates,.dasha-current-major-label{grid-column:2;justify-self:start}.dasha-major-chevron{grid-column:3;grid-row:1/3}.dasha-major-title{padding-top:9px}.dasha-current-major-label{margin-bottom:9px}}

/* ===== v58: Planet table (ตารางสผุฏ) — Arabic numerals + UI/UX refresh ===== */
.planet-table-wrap{
  overflow:visible;
  max-height:none;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.planet-table-wrap table.planet-table{
  min-width:0;
  border:0 !important;
  border-collapse:separate !important;
  border-spacing:0;
  width:100%;
}
.planet-table th,
.planet-table td{
  border:0 !important;
  border-bottom:1px solid var(--line) !important;
  border-right:1px solid color-mix(in srgb,var(--line),#fff 45%) !important;
  padding:10px 12px !important;
  vertical-align:middle !important;
  font-size:13.5px;
}
.planet-table th:last-child,
.planet-table td:last-child{border-right:0 !important}
.planet-table tbody tr:last-child td{border-bottom:0 !important}

/* Sticky header */
.planet-table thead th{
  position:sticky;top:0;z-index:3;
  background:#f7f2ea !important;
  font-weight:800 !important;
  font-size:12.5px;
  letter-spacing:.01em;
  white-space:nowrap;
  box-shadow:0 1px 0 var(--line);
}

/* Sticky planet column */
.planet-table th:first-child,
.planet-table td:first-child{
  position:sticky;left:0;z-index:2;
  background:#fff;
  min-width:150px;
  box-shadow:1px 0 0 var(--line);
}
.planet-table thead th:first-child{z-index:4;background:#f7f2ea !important}

/* Zebra + hover */
.planet-table tbody tr:nth-child(even) td{background:#fbf9f5}
.planet-table tbody tr:hover td{background:#f4efe4}
.planet-table tbody tr:nth-child(even) td:first-child{background:#fbf9f5}
.planet-table tbody tr:hover td:first-child{background:#f4efe4}

/* Planet name cell with a plain international planet symbol */
.planet-name-cell{white-space:nowrap}
.planet-leading-symbol{display:inline-block;min-width:17px;margin-right:4px;font-family:"Sarabun",Tahoma,sans-serif;font-size:15px;font-weight:900;text-align:center;color:#33261d;vertical-align:middle}
.planet-universal-symbol{
  display:inline-block;margin-left:7px;
  color:#3a2a1a;
  font-family:"Segoe UI Symbol","Noto Sans Symbols 2","Arial Unicode MS",sans-serif;
  font-weight:700;font-size:21px;line-height:1;
  font-variant-numeric:tabular-nums;
  vertical-align:middle;
}
.ascendant-vector{width:22px;height:16px;min-width:22px;margin-right:5px;object-fit:contain;vertical-align:middle}
.simple-ascendant-natal-symbol{filter:drop-shadow(.65px 0 #d60000) drop-shadow(-.65px 0 #d60000) drop-shadow(0 .65px #d60000) drop-shadow(0 -.65px #d60000)}
.health-critical-badge{font-size:0!important}.health-critical-badge::after{content:"ให้ระวังอันตราย";font-size:.72rem}
.organ-group h3 .health-critical-badge,.organ-group h3 .health-care-badge,.organ-group h3 .health-criteria-summary{margin-left:.65em}.health-criteria-summary{display:inline-block;color:#5b3710;font-size:.82rem;font-weight:800}
#view-health .body-visual-intro{display:none}
.kulika-symbol{font-family:"Sarabun",Tahoma,sans-serif;font-size:15px;font-weight:900}
.planet-label{font-weight:700;vertical-align:middle}
.ketu-indian-row .planet-universal-symbol{color:#b02020}
.planet-table .ketu-indian-row td:first-child .planet-label{color:#b02020}
.karaka-value{display:flex;flex-direction:column;gap:2px;white-space:nowrap;line-height:1.25}
.karaka-value strong{font-size:14px;color:#7d3018}
.karaka-value span{font-size:12px;color:var(--muted,#6b6257)}

/* Numeric cells */
.pos-num,.num-cell{font-variant-numeric:tabular-nums;white-space:nowrap}
.pos-num{font-weight:600}
.sign-cell,.position-part{font-variant-numeric:tabular-nums;white-space:nowrap}
.position-part{text-align:center;font-weight:700}
.planet-table .position-heading,
.planet-table .position-part{width:58px;min-width:58px;max-width:58px;padding-left:6px !important;padding-right:6px !important;text-align:center}
.house-lord-table-section{margin-top:18px}
.house-lord-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;margin:0 2px 9px}
.house-lord-head>div{min-width:0}
.house-lord-head h3{margin:0 0 2px;font-size:17px}.house-lord-head small{color:var(--muted)}
.house-lord-head label{display:flex;align-items:center;align-self:start;justify-self:end;gap:8px;width:auto;font-size:13px;font-weight:800;white-space:nowrap}
.house-lord-head select{padding:7px 30px 7px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;font:inherit}
.house-lord-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.house-lord-table{width:100%;border-collapse:collapse;background:#fff}
.house-lord-table th,.house-lord-table td{padding:7px 6px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;font-size:12px;line-height:1.25;overflow-wrap:anywhere}
.house-lord-table th:nth-child(3),.house-lord-table td:nth-child(3),
.house-lord-table th:nth-child(5),.house-lord-table td:nth-child(5),
.house-lord-table th:nth-child(6),.house-lord-table td:nth-child(6),
.house-lord-table th:nth-child(9),.house-lord-table td:nth-child(9){white-space:nowrap;overflow-wrap:normal;word-break:normal}
.house-lord-table th:last-child,.house-lord-table td:last-child{border-right:0}.house-lord-table tbody tr:last-child td{border-bottom:0}
.house-lord-table th{background:#2d7775;color:#fff;font-weight:800;white-space:nowrap}
/* v85: sticky header + sticky planet column แบบเดียวกับตารางสผุฏ */
.house-lord-table thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 var(--line)}
.house-lord-table th:first-child,.house-lord-table td:first-child{position:sticky;left:0;z-index:2;box-shadow:1px 0 0 var(--line)}
.house-lord-table thead th:first-child{z-index:4}
.house-lord-table tbody tr:nth-child(even) td:first-child{background:color-mix(in srgb,var(--planet-accent),#f3ffe5 91%)}
.house-lord-table tbody tr:nth-child(even){background:#f3ffe5}
.lord-planet{font-weight:800;white-space:nowrap;vertical-align:middle!important;width:1%;min-width:0}.lord-planet-inner{display:flex;align-items:center;justify-content:flex-start;gap:1em;width:max-content;min-width:0}
/* v85: ชื่อดาวและสัญลักษณ์ใช้สีประจำดาว (ผสมเข้มขึ้นเพื่อให้อ่านชัดบนพื้นอ่อน เช่น สีเหลืองจันทร์) */
.lord-planet span{color:color-mix(in srgb,var(--planet-accent),#241c14 38%)}
.lord-planet b{font-family:"Segoe UI Symbol","Noto Sans Symbols 2",sans-serif;font-size:20px;font-weight:500;color:color-mix(in srgb,var(--planet-accent),#241c14 25%)}

/* Stacked info cells (นักษัตร / ตรียางศ์ / นวางศ์) */
.cell-stack{display:flex;flex-direction:column;gap:2px;line-height:1.35}
.cell-main{font-weight:600}
.cell-sub{font-size:12px;color:var(--muted,#6b6257)}
.cell-poison{color:#a03a12;font-weight:700}
.planet-table .navamsa-cell{white-space:nowrap;min-width:112px}
.house-lord-table{min-width:0;table-layout:auto}
.house-type-badges{display:flex;flex-wrap:wrap;gap:3px;min-width:0}
.house-type-chip{display:inline-block;padding:2px 5px;border-radius:999px;background:#edf2f5;color:#314c5c;font-size:10px;font-weight:800;line-height:1.25;white-space:normal;cursor:help}
.house-type-chip:focus{outline:2px solid #2d7775;outline-offset:2px}
.house-type-kendra{background:#ffe2df;color:#a72d28}.house-type-panaphara{background:#fff0d3;color:#805508}
.house-type-apoklima{background:#ddf2ff;color:#17688f}.house-type-kona{background:#e5f4e9;color:#267044}
.house-type-trika{background:#f3e7ff;color:#6b348e}.house-type-upachaya{background:#e4eeff;color:#315b9b}
.house-type-chaturasra{background:#f9e4ef;color:#963d6d}
.house-lord-table tbody tr{--planet-accent:#8b8177}
.shadbala-criteria{display:flex;flex-wrap:wrap;gap:3px;min-width:0}.shadbala-criteria>span{display:inline-block;padding:2px 5px;border-radius:999px;background:#e6eff8;color:#245477;font-size:10px;font-weight:800;line-height:1.25;white-space:nowrap}.shadbala-pending,.shadbala-unavailable{font-size:11px;color:var(--muted)}
.shadbala-breakdown{margin-top:10px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.shadbala-breakdown>summary{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;background:#f7f2ea}.shadbala-breakdown>summary span{font-size:11px;color:var(--muted)}.shadbala-table-wrap{overflow-x:auto}.shadbala-table-wrap table{min-width:920px}.shadbala-table-wrap th,.shadbala-table-wrap td{padding:6px;text-align:center;font-size:11px}.shadbala-table-wrap th:first-child,.shadbala-table-wrap td:first-child{text-align:left;font-weight:800}.shadbala-status{display:inline-block;padding:3px 6px;border-radius:99px;white-space:nowrap}.shadbala-status.pass{background:#e6f6e9;color:#17642a}.shadbala-status.fail{background:#fff0e6;color:#a13d0b}
.house-lord-table tbody td:first-child{border-left:7px solid var(--planet-accent);background:color-mix(in srgb,var(--planet-accent),#fff 91%)}
.parivartana-panel{margin-top:10px;padding:13px;border:1px solid #d9c8b8;border-radius:12px;background:#fffaf4}
.parivartana-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.parivartana-panel h4{margin:0;color:#6f2f23;font-size:16px}.parivartana-heading>span{font-size:11px;color:var(--muted)}
.parivartana-list{display:grid;gap:10px}
.parivartana-item{display:flex;flex-direction:column;gap:8px;padding:11px;border:1px solid #e4d2bf;border-radius:10px;background:#fff;color:#49362a;box-shadow:0 2px 8px rgba(91,55,31,.05)}
.parivartana-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.parivartana-title>b{font-size:14px;color:#7d3018}.parivartana-title>span{padding:2px 7px;border-radius:99px;background:#f3e8dc;font-size:10px;color:#755642}
.parivartana-chain{padding:8px 10px;border-radius:8px;background:#f3e8dc;color:#6f2f23;font-weight:800;text-align:center;line-height:1.55}
.parivartana-planet{font-weight:900}.parivartana-planet-sun{color:#d71920}.parivartana-planet-moon{color:#b48a00}.parivartana-planet-mars{color:#e83e8c}.parivartana-planet-mercury{color:#17823b}.parivartana-planet-jupiter{color:#d66a00}.parivartana-planet-venus{color:#1670c5}.parivartana-planet-saturn{color:#6741a5}.parivartana-planet-rahu{color:#343434}.parivartana-planet-ketu{color:#8b4513}
.parivartana-houses{display:flex;align-items:center;gap:9px}.parivartana-houses strong{font-size:11px;color:#694d3a}.parivartana-houses span{font-size:13px;font-weight:800;color:#8b431f}
.parivartana-steps{display:grid;gap:6px;margin:0;padding:0;list-style:none}.parivartana-steps li{display:grid;grid-template-columns:24px 1fr;gap:7px;align-items:start;font-size:12px;line-height:1.4}.parivartana-step-number{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#8b431f;color:#fff;font-size:11px;font-weight:800}.parivartana-steps b{color:#6f2f23}.parivartana-steps small{display:block;color:var(--muted);font-size:11px}
.parivartana-rulerships{padding-top:7px;border-top:1px dashed #ddcbbb}.parivartana-rulerships>strong{display:block;margin-bottom:5px;font-size:11px;color:#694d3a}.parivartana-rulerships>div{display:flex;flex-wrap:wrap;gap:5px}.parivartana-rulerships span{padding:4px 7px;border-radius:6px;background:#f8f3ed;font-size:11px;color:#5e5148}.parivartana-rulerships b{color:#7d3018}
.parivartana-empty{margin:0;font-size:12px;color:var(--muted)}.parivartana-note{margin:8px 0 0;font-size:10px;color:var(--muted)}
.light-status{display:inline-block;padding:3px 7px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;cursor:help}
.light-combust{background:#ffe2dc;color:#a52820}.light-full{background:#fff1bd;color:#765600}
/* v85: สีประจำดาวตามคติโหราศาสตร์ไทย — ๑ แดง ๒ เหลืองนวล ๓ ชมพู ๔ เขียว ๕ แสด ๖ ฟ้า ๗ ม่วงดำ ๘ เทาหมอก ๙ ทองแดง ๐ เทาน้ำเงิน */
.lord-row-sun{--planet-accent:#c1272d!important}.lord-row-moon{--planet-accent:#e6c845!important}
.lord-row-mars{--planet-accent:#e78ea9!important}.lord-row-mercury{--planet-accent:#2f8f4e!important}
.lord-row-jupiter{--planet-accent:#e8842c!important}.lord-row-venus{--planet-accent:#3f8fd2!important}
.lord-row-saturn{--planet-accent:#5a3d78!important}.lord-row-rahu{--planet-accent:#57544f!important}
.lord-row-ketu{--planet-accent:#b0642a!important}.lord-row-mrityu{--planet-accent:#5a7d94!important}
.lord-row-asc{--planet-accent:#6b3028!important}.lord-row-ketuIndian{--planet-accent:#c62828!important}

/* Mobile */
@media(max-width:900px){
  .planet-table-wrap{overflow-x:auto;overflow-y:visible;max-height:none;-webkit-overflow-scrolling:touch}
  .planet-table-wrap table.planet-table{min-width:820px}
  .planet-table th,.planet-table td{padding:8px 9px !important;font-size:12.5px}
  .planet-table th:first-child,.planet-table td:first-child{min-width:128px}
  .planet-table .position-heading,.planet-table .position-part{width:48px;min-width:48px;max-width:48px;padding-left:4px !important;padding-right:4px !important}
  .planet-leading-symbol{min-width:15px;font-size:13px}
  .ascendant-vector{width:20px;height:14px;min-width:20px}
  .planet-universal-symbol{font-size:18px;margin-left:5px}
  .house-lord-head{grid-template-columns:minmax(0,1fr) auto;align-items:start}.house-lord-head label{justify-content:flex-end;width:auto}
  /* v85: มือถือใช้แนวเดียวกับตารางสผุฏ — เลื่อนแนวนอน + คงขนาดตัวอักษรอ่านง่าย ไม่บีบคอลัมน์ */
  .house-lord-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .house-lord-table{min-width:780px}
  .lord-planet-inner{gap:1em}.lord-planet b{font-size:14px}
}

/* The same vector ascendant mark is used in every zodiac view. */
.ascendant-chart-symbol{pointer-events:none;overflow:visible}
.ascendant-leader-symbol{pointer-events:none}
.tanu-sesa-plus{font-family:"Sarabun",Tahoma,sans-serif;font-size:var(--tanu-plus-size,12px);font-weight:900;fill:#d60000;stroke:#fff;stroke-width:2px;paint-order:stroke fill;pointer-events:none}
.chart-aquarius-lord{display:flex;align-items:center;align-self:flex-start;gap:7px;height:30px;box-sizing:border-box;margin-left:auto;padding:0;color:#5f4430;font-size:12px;font-weight:800;line-height:1;white-space:nowrap}.chart-aquarius-lord select{width:auto;min-width:68px;height:26px;box-sizing:border-box;padding:1px 22px 1px 7px;border:1px solid #d0b66f;border-radius:6px;background:#fffdf8;color:#4b2724;font:700 13px/1 "Sarabun",sans-serif}.tanu-sesa-summary{display:flex;flex-wrap:wrap;align-items:center;gap:7px 14px;margin:0 0 11px;padding:10px 13px;border:1px solid #dfc98f;border-radius:11px;background:#fff8e5;color:#5d3b21}.tanu-sesa-summary strong{color:#7c241f;font-size:15px}.tanu-sesa-summary span{font-size:13px;font-weight:700}@media(max-width:700px){.chart-aquarius-lord{height:27px;padding:0;font-size:10px;gap:4px}.chart-aquarius-lord select{min-width:60px;height:23px;padding-top:0;padding-bottom:0;font-size:11px}.tanu-sesa-summary{align-items:flex-start;flex-direction:column;gap:4px}}

/* Ownership and intellectual-property notice */
.site-legal-footer{max-width:1480px;margin:24px auto 0;padding:18px clamp(18px,4vw,56px) calc(24px + env(safe-area-inset-bottom));border-top:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.65}
.site-legal-footer>p{margin:0 0 8px}.site-legal-footer summary{width:max-content;max-width:100%;cursor:pointer;color:var(--text);font-weight:800}.legal-detail{max-width:920px;margin-top:10px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.72)}.legal-detail p{margin:0 0 8px}.legal-detail p:last-child{margin-bottom:0}.legal-detail a{color:var(--blue);font-weight:700}.legal-disclaimer{padding-top:8px;border-top:1px dashed var(--line)}

/* ===== จักรราศีเหนือฟ้า–ใต้ฟ้า (Hemispheric Emphasis) ===== */
#hemisphericChart{display:flex;justify-content:center;min-height:auto!important;padding:14px 0 22px!important}
#hemisphericChart svg{width:min(90%,820px)!important;max-width:820px!important;height:auto!important}
#hemisphericChart .hemi-sign-boundary{fill:none;stroke:#5f4a39;stroke-width:1.15;opacity:.85;vector-effect:non-scaling-stroke}
#hemisphericChart .hemi-house-divider-extended{fill:none;stroke:#5f4a39;stroke-width:1.15;opacity:.9;vector-effect:non-scaling-stroke}
#hemisphericChart .hemi-nak-ring-line,#hemisphericChart .hemi-nak-ring-divider{fill:none;stroke:#7c392f;stroke-width:1;opacity:.95;vector-effect:non-scaling-stroke}
#hemisphericChart .hemi-nak-ring-divider.major{stroke-width:1.2}
#hemisphericChart .hemi-pie-divider{fill:none;stroke:#a08e78;stroke-width:.85;opacity:.8;vector-effect:non-scaling-stroke}
#hemisphericChart .hemi-pie-hub{fill:none;stroke:#a08e78;stroke-width:.85;opacity:.8}
.hemi-mode-tabs{margin:2px 0 10px}
#hemisphericChart .curved-zodiac-label{font-family:"Sarabun",Tahoma,sans-serif;font-size:15px;font-weight:800;fill:#2c2318}
#hemisphericChart .nak-label{font-size:11px!important;font-weight:800!important;fill:#7c392f!important}
#hemisphericChart .hemi-sky{fill:#dcecf7;opacity:.55}
#hemisphericChart .hemi-earth{fill:#e4d6bd;opacity:.6}
#hemisphericChart .hemi-horizon{stroke:#5a4326;stroke-width:1.1;stroke-linecap:round;vector-effect:non-scaling-stroke}
#hemisphericChart .hemi-horizon-label{font-family:"Sarabun",Tahoma,sans-serif;font-size:16px;font-weight:800;fill:#5a4326}
#hemisphericChart .hemi-zone-label{font-family:"Sarabun",Tahoma,sans-serif;font-size:17px;font-weight:800}
#hemisphericChart .hemi-zone-label.sky{fill:#2f6690}
#hemisphericChart .hemi-zone-label.earth{fill:#7a5a2e}
#hemisphericChart .hemi-house-num{font-family:"Sarabun",Tahoma,sans-serif;font-size:15px;font-weight:800;fill:#8a7a63}
#hemisphericChart .hemi-house-name{font-family:"Sarabun",Tahoma,sans-serif;font-size:13px;font-weight:700;fill:#9a8b74}
#hemisphericChart .hemi-house-name.hemi-house-kamma{fill:#2f6690;font-weight:800}
#hemisphericChart .hemi-house-name.hemi-house-bandhu{fill:#7a5a2e;font-weight:800}
#hemisphericChart .simple-rasi-planet{font-size:27px;font-weight:600;fill:#111}
#hemisphericChart .simple-rasi-planet.ketu-indian{fill:#c62828}
#hemisphericChart .simple-rasi-transit{font-size:24px;font-weight:600;fill:#fa0000;paint-order:stroke fill;stroke:#fff;stroke-width:1px}
#hemisphericChart .simple-rasi-transit.ketu-indian{fill:#c62828}

/* ===== v96: readable swipe table + mobile zodiac containment ===== */
.house-lord-table-section,
.house-lord-table-wrap{
  width:100%;
  max-width:100%;
  min-width:0;
}
.house-lord-table-wrap{
  overflow-x:auto;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  touch-action:pan-x pan-y;
}
.house-lord-table{
  min-width:1080px;
}

@media(max-width:700px){
  html,body{max-width:100%;overflow-x:hidden}
  .wrap,
  .view,
  .chart-layout,
  .single-chart-layout,
  .chart-card-expanded,
  .chart-view-panel,
  .chart{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .chart-card-expanded{
    overflow:hidden !important;
    padding-left:10px;
    padding-right:10px;
  }
  .chart-card-expanded .card-head{min-width:0}
  .chart-view-tabs{
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
  }
  .chart-card-expanded .chart{
    min-height:auto !important;
    overflow:hidden !important;
    padding:8px 0 14px !important;
  }
  .chart-card-expanded .chart svg,
  #zodiacChart svg{
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-width:100% !important;
    margin:0 auto !important;
    overflow:hidden !important;
  }
  #zodiacChart{overflow:hidden !important}
  .house-lord-table{min-width:820px}
}
#hemisphericChart .hemi-empty{margin:16px 4px;font-size:14px;color:var(--muted,#6b6257)}
@media(max-width:700px){
  #hemisphericChart svg{width:92%!important;max-width:92%!important}
  #hemisphericChart .curved-zodiac-label{font-size:14px}
  #hemisphericChart .simple-rasi-planet,#hemisphericChart .simple-rasi-transit{font-size:24px}
  #hemisphericChart .nak-label{font-size:10px!important}
  #hemisphericChart .hemi-horizon-label{font-size:15px}
  #hemisphericChart .hemi-zone-label{font-size:16px}
}

/* v85: แถบเลือกวันเวลาโหมดฟ้าจริง */
.hemi-sky-controls{display:flex;flex-wrap:wrap;align-items:end;gap:9px;margin:0 0 12px;padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:#fbf8f2}
.hemi-sky-controls label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--muted)}
.hemi-sky-controls input,.hemi-sky-controls select{padding:7px 9px;border:1px solid var(--line);border-radius:9px;font-size:14px;background:#fff}
.hemi-sky-controls input[type=number]{width:74px}
#hemiSkyStatus{flex-basis:100%;margin-top:2px}
@media(max-width:700px){.hemi-sky-controls{gap:7px}.hemi-sky-controls input[type=number]{width:62px}}

/* ===== v85 UI polish ===== */
/* ปุ่มเมนูที่ล็อกรอการคำนวณ */
.nav-btn-locked{opacity:.5;cursor:not-allowed;position:relative}
.nav-btn-locked::after{content:"🔒";font-size:10px;margin-left:5px}
#gateToast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(14px);background:#2a241f;color:#fff;padding:11px 17px;border-radius:12px;font-size:14px;box-shadow:0 8px 26px #0005;opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease;z-index:60;max-width:88vw;text-align:center}
#gateToast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* แถบทางลัดโมดูล */

/* แถบแท็บผังดวง: บรรทัดเดียวเลื่อนได้ */
.chart-view-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
.chart-view-tabs::-webkit-scrollbar{display:none}
.chart-view-tab{flex:0 0 auto;white-space:nowrap}

/* Empty state ผังหลัก */
.chart-empty-state{display:grid;place-items:center;gap:4px;text-align:center;padding:52px 20px;border:2px dashed var(--line);border-radius:16px;margin:8px 0 14px;background:color-mix(in srgb,var(--card),#fff 30%)}
.chart-empty-state p{margin:3px 0;color:var(--muted)}
.chart-empty-state p b{color:var(--ink);font-size:17px}
.chart-empty-state button{margin-top:9px}
.chart-awaiting .chart-view-panel{opacity:.45}

/* สัญญาณเลื่อนตาราง */
.scroll-hint-shell{position:relative}
.scroll-hint-pill{position:absolute;right:8px;bottom:10px;background:#2a241fd9;color:#fff;font-size:11.5px;font-weight:700;padding:5px 10px;border-radius:999px;pointer-events:none;opacity:0;transition:opacity .2s ease;z-index:5}
.scroll-hint-shell.has-more .scroll-hint-pill{opacity:1}
/* ระบบสมาชิก v105 */
.member-gate{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(24,8,12,.94);backdrop-filter:blur(10px)}
.member-gate[hidden],.member-setup-notice[hidden]{display:none!important}
.member-auth-card{width:min(430px,100%);padding:30px;border:1px solid rgba(218,172,83,.45);border-radius:22px;background:#fffaf1;box-shadow:0 24px 80px rgba(0,0,0,.5);text-align:center}
.expired-renewal-card{width:min(760px,100%);max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box}.expired-renewal-kicker{margin:0;color:#8b6428;font-size:.78rem;font-weight:800;letter-spacing:.14em}.expired-member-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.expired-member-details>div{padding:12px;border:1px solid #dfcfb4;border-radius:12px;background:#f7ecda}.expired-member-details span{display:block;color:#756656;font-size:.78rem}.expired-member-details strong{display:block;margin-top:4px;font-size:1.05rem}.expired-renewal-message{color:#67584b}.expired-plan-list{text-align:left}.expired-renewal-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.expired-renewal-actions button{min-height:44px}@media(max-width:560px){.expired-renewal-card{max-height:calc(100dvh - 20px);padding:22px 14px}.expired-member-details{grid-template-columns:1fr}.expired-plan-list{grid-template-columns:1fr}.expired-renewal-actions{display:grid}.expired-renewal-actions button{width:100%}}
.expired-web-renewal{margin:18px 0;padding:18px;border:1px solid #d5b772;border-radius:16px;background:linear-gradient(145deg,#fff8e9,#f3e3c5)}.expired-web-renewal h3{margin:0 0 6px}.expired-web-renewal>p{margin:6px 0 14px;color:#665646}.expired-contact-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.expired-contact-options a{display:grid;gap:3px;padding:13px;border:1px solid #caaa67;border-radius:12px;background:#fffaf0;color:#542333;text-decoration:none}.expired-contact-options span{font-size:.78rem;color:#766452}.expired-contact-options strong{font-size:1rem}.expired-bank-bonus{padding:12px;border-radius:11px;background:#3d1720!important;color:#ffe5a2!important}.expired-bank-bonus b{color:#fff3ca}@media(max-width:560px){.expired-contact-options{grid-template-columns:1fr}}
.expired-web-year-plan{display:grid;gap:5px;margin:14px 0;padding:20px;border:2px solid #bd9345;border-radius:14px;background:#fffaf0}.expired-web-year-plan h4{margin:0;font-size:1.1rem}.expired-web-year-plan strong{color:#6f302d;font-family:Trirong,serif;font-size:2rem}.expired-web-year-plan small{color:#67584a;font-weight:700}
.expired-cross-platform{padding:12px;border:1px solid #cfb778;border-radius:11px;background:#fffaf0!important;color:#574b3e!important;line-height:1.65}.expired-cross-platform b{color:#6f302d}
.member-auth-card img{display:block;margin:0 auto 12px}.member-auth-card h2{margin:0 0 5px}.member-auth-card form{display:grid;gap:14px;margin-top:22px;text-align:left}
.member-auth-card label,.member-save-panel label{display:grid;gap:6px;font-weight:700}.member-auth-card input,.member-save-panel input,.member-save-panel textarea,.member-library-tools input{width:100%;box-sizing:border-box}
.member-auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.member-auth-links button{border:0;background:transparent;color:#7b2235;text-decoration:underline}
.member-status{min-height:1.4em;color:#286237}.member-status.bad{color:#a41428}
.member-setup-notice{position:fixed;z-index:9999;left:12px;right:12px;bottom:12px;padding:10px 14px;border-radius:10px;background:#fff0c7;color:#592b00;box-shadow:0 4px 24px rgba(0,0,0,.25);text-align:center}
.member-dialog{width:min(900px,calc(100% - 28px));max-height:88vh;box-sizing:border-box;padding:0;border:1px solid #c79a4a;border-radius:18px;background:#fffaf1;color:#241417}
.member-dialog::backdrop{background:rgba(20,5,10,.68);backdrop-filter:blur(5px)}.member-dialog-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #dbc9aa;background:#fffaf1}
.member-dialog-head h2,.member-dialog-head p{margin:0}.member-dialog-head button{font-size:28px;border:0;background:transparent}.member-save-panel{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:18px 20px;border-bottom:1px solid #e3d5bc}
.member-notes-field,.member-save-panel .actions{grid-column:1/-1}.member-library-tools{display:flex;gap:10px;padding:16px 20px}.member-library-tools input{flex:1}.member-dialog>.member-status{padding:0 20px}
.saved-chart-list{display:grid;gap:10px;padding:4px 20px 22px}.saved-chart-item{display:flex;justify-content:space-between;gap:18px;padding:15px;border:1px solid #ddceb3;border-radius:12px;background:#fff}
.saved-chart-item h3,.saved-chart-item p{margin:0 0 5px}.saved-chart-meta{font-size:.88rem;color:#76675e}.saved-chart-notes{white-space:pre-wrap}.saved-chart-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.danger-button{color:#9b1428;border-color:#bd6673}.member-account-dialog{max-width:560px}.member-account-dialog>p,.member-account-dialog>.actions{margin:20px}.member-account-button{max-width:180px;overflow:hidden;text-overflow:ellipsis}

@media(max-width:680px){.member-save-panel{grid-template-columns:1fr}.member-save-panel>*{grid-column:1}.saved-chart-item{display:block}.saved-chart-actions{margin-top:10px}.member-library-tools{display:grid}.member-auth-links{display:grid}}

.save-chart-shortcut{flex:0 0 auto;border-color:#9f7740;background:#fff8eb;color:#6b461e;font-weight:800;white-space:nowrap}
.save-chart-shortcut:hover{background:#f7ead3}
@media(max-width:680px){.suri-calc-card .card-head{align-items:flex-start;flex-wrap:wrap}.save-chart-shortcut{width:100%}}

/* v111: separate native name from birth date */
.natal-name-row{margin:12px 0 4px;max-width:520px}
.natal-name-row label{display:flex;flex-direction:column;gap:5px;font-weight:700}
.natal-name-row input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:inherit}
.current-chart-summary{grid-column:1/-1;display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:10px;background:#f7ead3}.current-chart-summary span{font-size:.9rem;color:#6f6258}.favorite-check{align-content:end;display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.favorite-check input,.trash-toggle input{width:auto!important}.member-library-tools{flex-wrap:wrap}.member-library-tools select{min-width:145px}.trash-toggle,.import-button{display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}.saved-chart-item{position:relative;padding-left:48px}.favorite-button{position:absolute;left:12px;top:12px;border:0;background:transparent;font-size:26px;color:#9f7740}.saved-chart-main{flex:1}.saved-chart-title:empty{display:none}.saved-chart-title{font-size:.9rem;color:#5b4a3e}.saved-chart-updated{font-size:.78rem;color:#92857a}.chart-dirty-status{margin:5px 0 0;color:#a05b00;font-weight:700}.compact-member-dialog{max-width:520px}.password-setup-body,.confirm-dialog-body{display:grid;gap:14px;padding:20px}.password-setup-body label,.account-name-field{display:grid;gap:6px;font-weight:700}.password-field{display:flex;gap:7px}.password-field input{flex:1}.account-name-field{margin:20px}.natal-name-row{display:grid;grid-template-columns:minmax(170px,.35fr) minmax(280px,1fr);gap:12px;max-width:760px}.natal-name-row select,.natal-name-row input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:inherit}.owner-name-field{display:flex!important}.import-button{font-weight:600}@media(max-width:680px){.natal-name-row{grid-template-columns:1fr}.member-library-tools>*{width:100%;box-sizing:border-box}.saved-chart-item{padding-left:42px}}

/* ===== v118 Mobile Responsive Pass ===== */
:root{--mobile-page-gap:10px}
html{-webkit-text-size-adjust:100%}
body{min-width:0}
img,svg,canvas{max-width:100%}
button,input,select,textarea{font-size:16px}
.planet-table-wrap,.table-wrap,.scroll-hint-shell{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.planet-table-wrap table,.table-wrap table{min-width:720px}

@media(max-width:900px){
  .topbar{position:relative!important;display:grid!important;grid-template-columns:1fr auto;gap:10px;padding:12px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))!important}
  .topbar .brand{min-width:0}
  .topbar .brand h1{font-size:clamp(17px,4.5vw,23px);line-height:1.2;overflow-wrap:anywhere}
  .topbar .sanskrit{font-size:clamp(13px,3.6vw,17px)}
  .topbar .brand-mark{width:40px;height:40px}
  .topbar .nataraja-emblem{display:none!important}
  .topbar nav{grid-column:1/-1;display:flex!important;gap:7px;width:100%;max-width:100%;overflow-x:auto;padding:2px 0 5px;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-inline:contain}
  .topbar nav::-webkit-scrollbar{display:none}
  .topbar nav .nav-btn{flex:0 0 auto;white-space:nowrap;min-height:42px}
  .wrap{width:100%!important;max-width:100%!important;padding:var(--mobile-page-gap)!important;padding-left:max(var(--mobile-page-gap),env(safe-area-inset-left))!important;padding-right:max(var(--mobile-page-gap),env(safe-area-inset-right))!important;box-sizing:border-box}
  .card{max-width:100%;box-sizing:border-box;border-radius:14px}
  .card-head{gap:10px;align-items:flex-start}
  .card-head h2{font-size:18px}
  .hint{font-size:13px;line-height:1.45}
  .actions{display:flex;flex-wrap:wrap;gap:8px}
  .actions>button{min-height:44px}
  .chart-view-tabs,.tabs,.manual-tabs,.yoga-mode-tabs,.hemi-mode-tabs{display:flex!important;flex-wrap:nowrap!important;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-inline:contain;padding-bottom:5px}
  .chart-view-tabs::-webkit-scrollbar,.tabs::-webkit-scrollbar,.manual-tabs::-webkit-scrollbar,.yoga-mode-tabs::-webkit-scrollbar,.hemi-mode-tabs::-webkit-scrollbar{display:none}
  .chart-view-tab,.tab-btn,.manual-tab,.yoga-mode-tab,.hemi-mode-tab{flex:0 0 auto;white-space:nowrap;min-height:40px}
  .chart-layout,.single-chart-layout{display:block!important;width:100%!important;min-width:0!important}
  .chart-card-expanded{padding:12px 8px!important;overflow:hidden!important}
  .chart-card-expanded .chart{display:block!important;width:100%!important;min-height:0!important;height:auto!important;padding:4px 0 10px!important;overflow:hidden!important}
  .chart-card-expanded .chart>svg,
  #zodiacChart>svg,#simpleZodiacChart>svg,#navamsaZodiacChart>svg,#hemisphericChart>svg{
    display:block!important;width:100%!important;height:auto!important;max-width:100%!important;margin:0 auto!important;overflow:visible!important;touch-action:pan-y pinch-zoom
  }
  #drekkanaChart{display:grid!important;grid-template-columns:1fr!important;gap:18px!important;padding:8px 0!important}
  #drekkanaChart .drekkana-body-chart,#drekkanaChart .drekkana-body-chart:nth-child(1),#drekkanaChart .drekkana-body-chart:nth-child(2),#drekkanaChart .drekkana-body-chart:nth-child(3){grid-column:auto!important;width:100%!important;max-width:680px!important;margin:0 auto!important}
}

@media(max-width:680px){
  .nataraja-welcome{padding-left:14px;padding-right:14px;box-sizing:border-box}
  .nataraja-welcome-art{width:min(88vw,430px)!important;height:auto!important;aspect-ratio:1/1}
  .nataraja-welcome h2{font-size:clamp(18px,5vw,25px);line-height:1.5}
  .enter-chart-button{width:min(100%,360px);min-height:48px}
  .suri-calc-card{padding:14px 12px!important}
  .suri-calc-card .card-head{display:grid!important;grid-template-columns:1fr!important}
  .save-chart-shortcut{width:100%!important;min-height:46px!important}
  .natal-name-row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;max-width:none!important}
  .suri-date-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .suri-date-row label,.suri-date-row select{min-width:0;width:100%}
  .suri-date-row .year-field{grid-column:1/-1}
  .suri-date-row .current-time-button{grid-column:1/-1;width:100%;justify-content:center;min-height:44px}
  .suri-place-row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .province-choice-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:stretch!important}
  .province-choice-row>.province-field{width:100%;min-width:0}
  .province-line{display:grid!important;grid-template-columns:1fr!important;gap:6px}
  .local-time-inline{margin:0!important;white-space:normal}
  .foreign-birth-toggle{width:100%!important;padding:8px 0!important;white-space:normal!important}
  .foreign-place-fields{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .foreign-place-fields[hidden]{display:none!important}
  .foreign-timezone{white-space:normal!important}
  .suri-check{display:flex!important;align-items:center;gap:8px}
  .suri-calc-card>.actions,.suri-calc-card .actions{display:grid!important;grid-template-columns:1fr!important}
  .suri-calc-card>.actions button,.suri-calc-card .actions button{width:100%;min-height:48px}
  .chart-view-note{font-size:13px}
  .chart-empty-state{padding:34px 14px}
  .planet-table-wrap{margin-inline:-2px}
  .planet-table-wrap table{min-width:660px}
  details.card>summary{min-height:44px;display:flex;align-items:center}
  .member-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
  .member-dialog-head{padding:14px max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left))!important}
  .member-dialog-head button{min-width:44px;min-height:44px}
  .member-save-panel{display:grid!important;grid-template-columns:1fr!important;padding:14px!important;gap:11px!important}
  .member-library-tools{display:grid!important;grid-template-columns:1fr!important;padding:12px 14px!important;gap:9px!important}
  .member-library-tools>*{width:100%!important;max-width:100%!important;box-sizing:border-box;min-height:44px}
  .saved-chart-list{padding:4px 12px 20px!important}
  .saved-chart-item{display:block!important;padding:14px 12px 14px 44px!important}
  .saved-chart-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin-top:10px}
  .saved-chart-actions button{width:100%;min-height:42px}
  .password-field{display:grid!important;grid-template-columns:1fr auto;gap:7px}
  .password-field button{min-height:44px}
  .member-auth-card{padding:22px 16px!important;border-radius:16px!important}
  .member-auth-card input,.member-auth-card button{min-height:46px}
  .member-auth-links{display:grid!important;grid-template-columns:1fr!important}
}

@media(max-width:420px){
  :root{--mobile-page-gap:7px}
  .topbar{padding-top:max(8px,env(safe-area-inset-top))!important}
  .topbar .brand-mark{width:36px;height:36px}
  .card{border-radius:12px}
  .suri-date-row{grid-template-columns:1fr 1fr!important}
  .chart-card-expanded{padding-left:4px!important;padding-right:4px!important}
  #zodiacChart .curved-zodiac-label,#simpleZodiacChart .curved-zodiac-label,#navamsaZodiacChart .curved-zodiac-label,#hemisphericChart .curved-zodiac-label{font-size:13px!important}
  #zodiacChart .natal-in-house{font-size:8px!important}
  #zodiacChart .transit-in-ring,#zodiacChart .planet-glyph{font-size:8px!important}
  #zodiacChart .planet-sign,#zodiacChart .planet-degree,#zodiacChart .planet-line-text{font-size:5.2px!important}
  #simpleZodiacChart .simple-rasi-planet,#navamsaZodiacChart .simple-rasi-planet,#hemisphericChart .simple-rasi-planet{font-size:20px!important}
  #simpleZodiacChart .simple-rasi-transit,#navamsaZodiacChart .simple-rasi-transit,#hemisphericChart .simple-rasi-transit{font-size:20px!important}
  .saved-chart-actions{grid-template-columns:1fr!important}
}

@media(min-width:681px) and (max-width:1100px) and (orientation:landscape){
  .suri-date-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .suri-place-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .chart-card-expanded .chart>svg,#zodiacChart>svg{width:min(82vh,100%)!important;max-width:100%!important}
  .member-dialog{width:min(94vw,980px)!important;max-height:92dvh!important}
}

/* v437 — compact saved-chart library */
.saved-chart-list{gap:7px;padding-top:2px}
.saved-chart-item{min-height:0;gap:12px;padding:10px 11px 10px 39px;border-radius:10px}
.saved-chart-main{min-width:0}
.saved-chart-item h3{margin:0 0 2px;font-size:.96rem;line-height:1.25}
.saved-chart-item p{margin:0 0 2px;line-height:1.3}
.saved-chart-title{font-size:.82rem}
.saved-chart-meta{font-size:.79rem}
.saved-chart-updated{font-size:.7rem}
.saved-chart-notes{display:-webkit-box;overflow:hidden;font-size:.78rem;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.favorite-button{left:9px;top:8px;font-size:21px;line-height:1;padding:3px}
.saved-chart-actions{align-content:center;gap:5px}
.saved-chart-actions button{min-height:34px;padding:6px 9px;font-size:.78rem;line-height:1.15}
@media(max-width:680px){
  .saved-chart-list{gap:7px!important;padding:2px 10px 16px!important}
  .saved-chart-item{padding:10px 10px 10px 38px!important;border-radius:10px!important}
  .saved-chart-item h3{font-size:.94rem}
  .saved-chart-meta{font-size:.77rem}
  .favorite-button{left:8px;top:8px;font-size:20px}
  .saved-chart-actions{display:flex!important;grid-template-columns:none!important;gap:6px!important;margin-top:7px!important}
  .saved-chart-actions button{width:auto!important;min-height:38px!important;flex:1 1 auto;padding:6px 8px!important;font-size:.76rem}
}

/* ===== v119 Full responsive audit fixes ===== */
/* Keep every chart panel content-led. Older desktop min-heights must never create
   vertical blanks on phones/tablets. */
.chart-view-panel{
  min-height:0!important;
  height:auto!important;
  align-content:start!important;
}
#simpleRasiChartPanel,
#navamsaChartPanel,
#rasiChartPanel,
#hemisphericChartPanel,
#drekkanaChartPanel{
  min-height:0!important;
  height:auto!important;
}
#simpleZodiacChart,
#navamsaZodiacChart,
#zodiacChart,
#hemisphericChart,
#drekkanaChart{
  min-height:0!important;
  height:auto!important;
  align-items:start!important;
  align-content:start!important;
  place-items:start center!important;
}

/* Stable scrolling tables. Safari is unreliable with sticky cells on collapsed
   borders, so all horizontally scrollable data tables use separate borders. */
.planet-table,
.house-lord-table,
.shadbala-table-wrap table,
.table-wrap table{
  border-collapse:separate!important;
  border-spacing:0!important;
}
.house-lord-table-wrap,
.planet-table-wrap,
.shadbala-table-wrap,
.table-wrap{
  position:relative;
  max-width:100%;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch;
  isolation:isolate;
}

/* ราศีธิปติสัมพันธ์: sticky header + the complete first column, never only the
   top-left corner. Explicit opaque backgrounds prevent scrolled cells showing through. */
.house-lord-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:30!important;
  background:#2d7775!important;
  color:#fff!important;
}
.house-lord-table th:first-child,
.house-lord-table td:first-child{
  position:sticky!important;
  left:0!important;
  z-index:25!important;
  min-width:118px;
  background:#fffdf8!important;
  background-clip:padding-box!important;
  box-shadow:2px 0 0 rgba(77,57,39,.18)!important;
}
.house-lord-table thead th:first-child{
  z-index:40!important;
  background:#2d7775!important;
  color:#fff!important;
}
.house-lord-table tbody tr:nth-child(even) td:first-child{
  background:#f3ffe5!important;
}
.house-lord-table tbody tr:hover td:first-child{
  background:#eef8df!important;
}

/* ตารางสผุฏดาว follows the same coherent frozen-column behaviour. */
.planet-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:30!important;
}
.planet-table th:first-child,
.planet-table td:first-child{
  position:sticky!important;
  left:0!important;
  z-index:25!important;
  background-clip:padding-box!important;
  box-shadow:2px 0 0 rgba(77,57,39,.16)!important;
}
.planet-table thead th:first-child{z-index:40!important}

/* Horizontal tab bars visibly indicate that more tabs exist off-screen. */
@media(max-width:900px){
  .chart-card-expanded{
    min-height:0!important;
  }
  .chart-card-expanded .card-head{
    margin-bottom:4px!important;
  }
  .chart-view-tabs,.tabs,.manual-tabs,.yoga-mode-tabs,.hemi-mode-tabs{
    scroll-padding-inline:8px;
    mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 24px),transparent 100%);
    -webkit-mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 24px),transparent 100%);
  }
  .chart-view-tabs:focus-within,.tabs:focus-within,.manual-tabs:focus-within,
  .yoga-mode-tabs:focus-within,.hemi-mode-tabs:focus-within{
    mask-image:none;
    -webkit-mask-image:none;
  }
  .chart-view-panel{
    margin:0!important;
    padding:0!important;
  }
  .chart-card-expanded .chart,
  #simpleZodiacChart,
  #navamsaZodiacChart,
  #zodiacChart,
  #hemisphericChart{
    display:block!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
  }
  #simpleZodiacChart>svg,
  #navamsaZodiacChart>svg,
  #zodiacChart>svg,
  #hemisphericChart>svg{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    margin:0 auto!important;
  }
  .house-lord-head{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
  }
  .house-lord-head label{
    justify-content:flex-end;
    justify-self:end;
    width:auto;
  }
  .house-lord-head select{max-width:100%}
}

@media(max-width:480px){
  .table-card-head,.house-lord-head{gap:7px}
  .chart-aquarius-lord,.house-lord-head label{align-items:flex-end;flex-direction:column;gap:3px;font-size:10px}
  .chart-aquarius-lord select,.house-lord-head select{min-width:60px;height:26px;padding:1px 20px 1px 6px;font-size:11px}
  .chart-card-expanded{padding:10px 5px!important}
  .chart-card-expanded .card-head{padding-inline:5px}
  .house-lord-table{min-width:980px!important}
  .planet-table-wrap table{min-width:760px!important}
  .house-lord-table th:first-child,
  .house-lord-table td:first-child{min-width:82px;width:82px}
}

/* กาลโยคและทักษาเป็นข้อมูลโหราศาสตร์ไทย จึงไม่แสดงในตารางหน้าพระเวท */
#view-chart .house-lord-table .thai-astrology-relation-column{display:none!important}


/* v125 — Jātaka dasha enhancements */
@media(max-width:800px){.dasha-hero{align-items:flex-start;flex-direction:column}.dasha-reference-control{width:100%}.dasha-current-grid,.dasha-birth-summary{grid-template-columns:1fr}.dasha-timeline{overflow-x:auto}.dasha-timeline-segment{min-width:58px}.dasha-major-nested>summary{grid-template-columns:7px 1fr 22px;gap:9px}.dasha-major-dates,.dasha-current-major-label{grid-column:2;justify-self:start}.dasha-major-chevron{grid-column:3;grid-row:1/3}.dasha-major-title{padding-top:9px}.dasha-current-major-label{margin-bottom:9px}.dasha-page .planet-table-wrap{overflow-x:auto}.dasha-page table{min-width:650px}}

/* v078 dasha readability refinements */
.dasha-hero > div:first-child{padding:14px 18px;border-radius:14px;background:rgba(255,250,238,.94);box-shadow:0 4px 18px rgba(76,43,18,.12)}
.dasha-hero h2{margin:0 0 6px;color:#5b210f!important;font-weight:900;text-shadow:0 1px 0 #fff;letter-spacing:.01em}
.dasha-hero p{margin:0;color:#5f4a36!important;font-weight:650}

/* Collapsible Mahadasha / Anudasha module */
.dasha-collapsible-module{padding:0;overflow:hidden}
.dasha-module-summary{display:block;padding:18px;cursor:pointer;list-style:none;user-select:none;background:#fffaf1}
.dasha-module-summary::-webkit-details-marker{display:none}
.dasha-module-summary .dasha-section-head{width:100%}
.dasha-module-toggle{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#6b3426;color:#fff;font-size:21px;font-weight:900;transition:transform .2s ease}
.dasha-collapsible-module[open] .dasha-module-toggle{transform:rotate(180deg)}
.dasha-module-body{padding:0 18px 18px;border-top:1px solid #eadfd4}
.dasha-module-body .dasha-major-list{margin-top:16px}
@media(max-width:800px){.dasha-module-summary{padding:15px}.dasha-module-body{padding:0 12px 14px}.dasha-module-summary .dasha-section-head{align-items:flex-start}.dasha-module-toggle{flex:0 0 32px}}

/* Dasha transit aspect windows */
.dasha-aspect-module{margin:14px 0;border:1px solid #dfd1c2;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 5px 20px rgba(70,45,20,.06)}
.dasha-aspect-module>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 19px;cursor:pointer;list-style:none;background:#fff7e8}
.dasha-aspect-module>summary::-webkit-details-marker{display:none}.dasha-aspect-module>summary h3,.dasha-aspect-module>summary p{margin:0}.dasha-aspect-module>summary p{margin-top:4px;color:#766752;font-size:12px}.dasha-aspect-module>summary>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#6b3426;color:#fff;font-size:20px;transition:transform .2s}.dasha-aspect-module[open]>summary>span{transform:rotate(180deg)}
.dasha-aspect-body{display:grid;gap:13px;padding:15px}.dasha-aspect-card{margin:0;border-left:6px solid #a67a21}.dasha-aspect-card.warning{border-left-color:#485367}.dasha-aspect-card.danger{border-left-color:#66507c}.dasha-aspect-heading h3{margin:3px 0 0}.dasha-aspect-message{margin:12px 0;padding:11px 13px;border-radius:12px;background:#fff2c9;color:#6e3f08;font-size:16px;font-weight:900}.dasha-aspect-card.warning .dasha-aspect-message,.dasha-aspect-card.danger .dasha-aspect-message{background:#f8e8e5;color:#8b201d}
.dasha-aspect-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.dasha-aspect-columns section{padding:12px;border:1px solid #eadfd4;border-radius:13px;background:#fffdf9}.dasha-aspect-columns h4{margin:0 0 3px;font-size:14px}.dasha-aspect-columns small{color:#766752}.dasha-aspect-columns ul{display:grid;gap:5px;margin:10px 0 0;padding:0;list-style:none}.dasha-aspect-columns li{padding:7px 9px;border-radius:8px;background:#f6f1ea;font-size:12px}.dasha-aspect-both{box-shadow:inset 0 0 0 2px #d8a733}.dasha-aspect-empty{color:#8a7965;font-weight:600}
@media(max-width:800px){.dasha-aspect-columns{grid-template-columns:1fr}.dasha-aspect-module>summary{padding:15px}.dasha-aspect-body{padding:11px}.dasha-aspect-message{font-size:15px}}

/* v080 — Dasha mobile readability overhaul */
@media(max-width:800px){
  .dasha-page{padding-left:0;padding-right:0;padding-bottom:34px}
  .dasha-page>.card,.dasha-page #dashaResult>.card,.dasha-aspect-module{border-radius:14px}
  .dasha-hero{gap:14px;padding:16px}
  .dasha-hero>div:first-child{width:100%;padding:14px}
  .dasha-hero h2{font-size:22px;line-height:1.35}
  .dasha-hero p{font-size:15px;line-height:1.65}
  .dasha-reference-control{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:10px}
  .dasha-reference-control label{grid-column:1/-1;font-size:15px;line-height:1.45}
  .dasha-reference-control input{width:100%;min-width:0;min-height:46px;font-size:16px}
  .dasha-reference-control button{min-height:46px;font-size:15px;padding:10px 12px}

  .dasha-aspect-module>summary{align-items:flex-start;padding:16px}
  .dasha-aspect-module>summary h3{font-size:18px;line-height:1.45}
  .dasha-aspect-module>summary p{font-size:14px;line-height:1.6}
  .dasha-aspect-module>summary>span{flex:0 0 36px;width:36px;height:36px}
  .dasha-aspect-body{gap:14px;padding:12px}
  .dasha-aspect-card{padding:15px 13px;border-left-width:5px}
  .dasha-aspect-heading .mini-label{font-size:13px;line-height:1.5}
  .dasha-aspect-heading h3{font-size:19px;line-height:1.45}
  .dasha-aspect-message{font-size:17px;line-height:1.6;padding:12px}
  .dasha-aspect-columns{gap:12px}
  .dasha-aspect-columns section{padding:13px}
  .dasha-aspect-columns h4{font-size:16px;line-height:1.5}
  .dasha-aspect-columns small{display:block;font-size:14px;line-height:1.55}
  .dasha-aspect-columns li{font-size:15px;line-height:1.55;padding:10px}

  .dasha-current-grid{gap:13px;margin:14px 0}
  .dasha-current-card{padding:16px}
  .dasha-current-card>small{font-size:15px}
  .dasha-lord{margin:10px 0}
  .dasha-lord span{width:46px;height:46px;font-size:26px}
  .dasha-lord b{font-size:21px}
  .dasha-current-card p{font-size:15px;line-height:1.6;margin:7px 0}
  .dasha-age-now{font-size:16px!important}
  .dasha-change-info{gap:7px;padding:12px;font-size:15px;line-height:1.55}
  .dasha-progress{height:9px}

  .dasha-birth-summary{gap:14px}
  .dasha-birth-summary>div{padding:7px 12px}
  .dasha-birth-summary small{font-size:14px}
  .dasha-birth-summary h3{font-size:19px;line-height:1.45}
  .dasha-birth-summary p{font-size:15px;line-height:1.6}

  .dasha-module-summary{padding:16px}
  .dasha-module-summary .dasha-section-head{gap:12px}
  .dasha-section-head h3{font-size:19px;line-height:1.45}
  .dasha-section-head p{font-size:14px;line-height:1.55;margin-top:4px}
  .dasha-module-body{padding:0 10px 14px}
  .dasha-major-list{gap:12px}
  .dasha-major-nested>summary{grid-template-columns:7px minmax(0,1fr) 34px;gap:10px;min-height:0;padding-right:10px}
  .dasha-major-title{align-items:flex-start;flex-wrap:wrap;padding:13px 0 2px}
  .dasha-major-title b{font-size:17px;line-height:1.45}
  .dasha-major-title small{font-size:13px;padding:4px 8px}
  .dasha-major-dates{font-size:15px;line-height:1.55;white-space:normal;padding-bottom:3px}
  .dasha-major-dates small{font-size:14px;line-height:1.5;margin-top:3px}
  .dasha-current-major-label,.dasha-now-badge{font-size:13px;line-height:1.35;padding:5px 9px}
  .dasha-major-chevron{font-size:23px}
  .dasha-nested-body{padding:13px 10px 15px}
  .dasha-nested-caption{font-size:15px;line-height:1.55}

  .dasha-page .planet-table-wrap{overflow:visible}
  .dasha-page table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 9px}
  .dasha-page table thead{display:none}
  .dasha-page table tbody,.dasha-page table tr,.dasha-page table td{display:block;width:100%}
  .dasha-page table tr{padding:11px 12px;border:1px solid #e5d8ca;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(70,45,20,.04)}
  .dasha-page table td{display:grid!important;grid-template-columns:minmax(82px,30%) minmax(0,1fr);align-items:start;gap:10px;position:relative;padding:8px 0;border:0;font-size:15px;line-height:1.5;min-height:0}
  .dasha-page table td::before{content:attr(data-label);position:static;width:auto;color:#6f5d49;font-size:13px;font-weight:800;line-height:1.45}
  .dasha-page table .dasha-cell-value{min-width:0;overflow-wrap:anywhere;line-height:1.55}
  .dasha-page table .dasha-lord-cell{display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap}
  .dasha-page table .dasha-now-badge{margin:5px 0 0;display:table}
  .dasha-active-row{box-shadow:inset 5px 0 #c58520,0 2px 8px rgba(70,45,20,.06)!important}

  .dasha-timeline{min-height:82px}
  .dasha-timeline-segment{min-width:72px;padding:8px 4px}
  .dasha-timeline-segment b{font-size:23px}
  .dasha-timeline-segment span{font-size:13px;line-height:1.35}
}

@media(max-width:390px){
  .dasha-reference-control{grid-template-columns:1fr}
  .dasha-reference-control label{grid-column:auto}
  .dasha-hero h2{font-size:20px}
  .dasha-page table td{padding-left:40%}
  .dasha-page table td::before{width:37%}
}

/* v081 — hard mobile width containment for Dasha */
@media (max-width:800px){
  html,body,.app-shell,main,#dashboard,.analysis-page,.dasha-page,#dashaResult{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }
  #dashboard,.screen{padding-left:10px!important;padding-right:10px!important}
  .dasha-page,.dasha-page *{min-width:0!important;max-width:100%}
  .dasha-page>.card,
  .dasha-page #dashaResult>.card,
  .dasha-aspect-module,
  .dasha-aspect-body,
  .dasha-aspect-card,
  .dasha-aspect-columns,
  .dasha-aspect-columns section,
  .dasha-current-grid,
  .dasha-current-card,
  .dasha-collapsible-module,
  .dasha-module-body,
  .dasha-major-list,
  .dasha-major-nested,
  .dasha-nested-body,
  .planet-table-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none!important;
  }
  .dasha-aspect-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  .dasha-aspect-module>summary,
  .dasha-section-head,
  .dasha-aspect-heading,
  .dasha-major-title{min-width:0!important}
  .dasha-aspect-module>summary>div,
  .dasha-section-head>div,
  .dasha-aspect-heading,
  .dasha-major-title,
  .dasha-major-dates{min-width:0!important;max-width:100%!important}
  .dasha-page h2,.dasha-page h3,.dasha-page h4,.dasha-page p,.dasha-page small,.dasha-page b,.dasha-page span,.dasha-page li{
    overflow-wrap:anywhere!important;
    word-break:break-word;
    white-space:normal!important;
  }
  .dasha-aspect-card{padding:14px 12px!important}
  .dasha-aspect-columns section{padding:12px!important}
  .dasha-page table,.dasha-page tbody,.dasha-page tr,.dasha-page td{max-width:100%!important}
  .dasha-timeline{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important}
}

/* v082: clearer aspect periods and readable Rahu card */
.dasha-aspect-card.dasha-danger{border-left-color:#66507c;background:#f7f3fb;color:#2f2637}
.dasha-aspect-card.dasha-danger .dasha-aspect-heading .mini-label{color:#5b3f72!important}
.dasha-aspect-card.dasha-danger .dasha-aspect-heading h3{color:#2f2637!important}
.dasha-aspect-card.dasha-danger .dasha-aspect-message{background:#eadff3;color:#4a285f}
.dasha-aspect-card.dasha-danger .dasha-aspect-columns section{background:#fff;color:#2f2637;border-color:#d9cce4}
.dasha-aspect-card.dasha-danger .dasha-aspect-columns h4,.dasha-aspect-card.dasha-danger .dasha-aspect-columns small,.dasha-aspect-card.dasha-danger .dasha-aspect-columns li{color:#2f2637!important}
.dasha-aspect-columns li{display:grid;gap:5px}
.dasha-aspect-columns li>b{font-size:1.03em}
.dasha-period-target{font-weight:800;color:#523821}
.dasha-aspect-columns li small{font-size:12px;line-height:1.45;color:#756657}
.dasha-period-status{justify-self:start;display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900}
.dasha-period-status.current{background:#dff2df;color:#24612b}
.dasha-period-status.next{background:#fff0c4;color:#79530a}
.dasha-aspect-columns li.is-current{box-shadow:inset 0 0 0 2px #4e914f;background:#f4fbf4}
.dasha-aspect-columns li.is-next{box-shadow:inset 0 0 0 2px #d6a526;background:#fffaf0}
@media(max-width:600px){
  .dasha-aspect-card.dasha-danger{background:#f4eef9!important;color:#271f2d!important}
  .dasha-aspect-card.dasha-danger .dasha-aspect-columns section{background:#fff!important}
  .dasha-aspect-columns li small{font-size:14px!important}
  .dasha-period-status{font-size:12px}
}



.shodasha-varga-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:12px}.shodasha-varga-controls>label{display:grid;gap:6px;font-weight:700}.shodasha-varga-controls select{min-width:230px}.shodasha-varga-mode{display:flex;flex-wrap:wrap;gap:10px 14px;padding:10px 12px;margin:0;border:1px solid #e6d8ca;border-radius:12px}.shodasha-varga-mode legend{padding:0 6px;font-weight:700}.shodasha-varga-mode label{display:inline-flex;align-items:center;gap:6px;font-weight:500}.shodasha-varga-note{margin-bottom:12px;line-height:1.6}.dasha-period-breakdown{display:grid;gap:8px;margin-top:4px}.dasha-period-block{display:grid;gap:3px;padding:8px 9px;border-radius:8px;background:#fff}.dasha-period-label{font-weight:800;color:#5f4430}.dasha-period-value{display:block}.dasha-period-relative{color:#7a684f}@media(max-width:760px){.shodasha-varga-controls{flex-direction:column;align-items:stretch}.shodasha-varga-mode{display:grid}}

/* v133: major analysis grounded in chapters 3–7 */
.major-analysis-module>.module-body{display:grid;gap:14px}.major-analysis-section{border:1px solid var(--line,#d8c8b5);border-radius:14px;background:rgba(255,252,245,.72);overflow:hidden}.major-analysis-section>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px;cursor:pointer;list-style:none;background:rgba(105,46,36,.06)}.major-analysis-section>summary::-webkit-details-marker{display:none}.major-analysis-section>summary small{color:#77634f}.major-analysis-section>div{padding:14px}.major-analysis-intro{display:grid;gap:4px;margin-bottom:12px;padding:12px 14px;border-left:4px solid #8a5f2b;background:#fff8e8;border-radius:10px}.house-analysis-grid,.house-group-grid,.planet-registry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.house-analysis-card,.house-group-card,.planet-registry-card{border:1px solid #ddcfbd;border-radius:13px;background:#fffdf8;padding:13px;box-shadow:0 3px 12px rgba(64,40,18,.05)}.house-analysis-head{display:flex;gap:10px;align-items:center}.house-analysis-head h4,.house-group-card h4,.planet-registry-card h4{margin:0}.house-number{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#5c2f29;color:#fff;font-weight:900}.house-analysis-card p,.house-group-card p{margin:10px 0;line-height:1.55}.house-flow{display:grid;gap:2px;padding:9px 10px;background:#f7efe3;border-radius:9px}.house-flow span{font-size:12px;color:#7b6957}.house-analysis-tags,.house-group-planets{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.house-analysis-tags span,.house-group-planets span{padding:5px 8px;border:1px solid #dfcfba;border-radius:999px;background:#fff9ef;font-size:12px}.house-flow-reading{font-size:12px;color:#6d5b49}.house-group-card header,.planet-registry-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.house-group-card header>span,.planet-registry-card header>span{padding:4px 8px;border-radius:999px;background:#6b3426;color:#fff;font-size:12px}.muted{opacity:.65}.planet-position{font-weight:700;line-height:1.55}.planet-registry-card dl{display:grid;gap:7px;margin:10px 0 0}.planet-registry-card dl>div{display:grid;grid-template-columns:85px 1fr;gap:8px}.planet-registry-card dt{color:#7b6957}.planet-registry-card dd{margin:0;font-weight:650}.analysis-empty{padding:16px;text-align:center;color:#796754}@media(max-width:980px){.house-analysis-grid,.house-group-grid,.planet-registry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.house-analysis-grid,.house-group-grid,.planet-registry-grid{grid-template-columns:1fr}.major-analysis-section>summary{align-items:flex-start;flex-direction:column}.major-analysis-section>div{padding:10px}}
/* v135 extended analysis */
.analysis-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}
.analysis-metric{padding:12px;border:1px solid #c9aa72;border-radius:10px;background:linear-gradient(180deg,#fffaf0,#f4e6ca);box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}
.analysis-metric small{display:block;color:#755337;font-weight:800}.analysis-metric b{display:block;color:#321f17;font-size:1rem;margin-top:4px}.analysis-metric span{display:block;color:#6d6257;font-size:.86rem;margin-top:4px;line-height:1.45}
.analysis-source-note{margin:10px 0 0;padding:10px 12px;border-left:3px solid #9b7343;background:#fbf5e9;color:#65584b;border-radius:0 8px 8px 0}
.calc-audit-table,.muhurta-checklist{display:grid;gap:7px}.calc-audit-table>div,.muhurta-checklist>div{display:grid;grid-template-columns:minmax(170px,.7fr) 1.3fr;gap:12px;padding:9px 10px;border-bottom:1px solid #e3d2b4}.calc-audit-table span,.muhurta-checklist span{font-weight:700;color:#6d4d32}.calc-audit-table b,.muhurta-checklist b{font-weight:600;color:#34251d}
.knowledge-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.knowledge-cards article{padding:12px;border:1px solid #d1b789;border-radius:10px;background:#fffaf1}.knowledge-cards h4{margin:0 0 5px}.knowledge-cards p{margin:0;line-height:1.55}
@media(max-width:760px){.analysis-summary-grid{grid-template-columns:1fr}.calc-audit-table>div,.muhurta-checklist>div{grid-template-columns:1fr;gap:4px}.knowledge-cards{grid-template-columns:1fr}}
.feature-page{display:grid;gap:16px;max-width:1180px;margin:0 auto}.feature-heading h2{margin-bottom:4px}.nearest-good-day{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border:1px solid rgba(137,95,32,.25);border-radius:14px;background:rgba(255,249,232,.75);margin:10px 0 14px}.nearest-good-day strong{font-size:1.08rem}.nearest-good-day span{font-weight:700;color:#855b21}.good-day-row{display:flex;justify-content:space-between;gap:16px;padding:12px 4px;border-bottom:1px solid rgba(80,55,25,.12)}.good-day-row.past{opacity:.55}.organ-group-list{display:grid;gap:12px}.organ-group{padding:14px;border-left:4px solid #9a6b28;border-radius:10px;background:rgba(255,250,238,.72)}.organ-group h3{margin:0 0 6px}.organ-group p{margin:0;line-height:1.8}.medical-disclaimer{border-color:#b76b62;background:#fff8f6}.compatibility-form-card{display:grid;gap:14px}.compatibility-summary-result,.compatibility-moon-houses{padding:18px;border-radius:14px;background:#fff;border:1px solid rgba(88,63,31,.2);margin-bottom:16px}.compatibility-summary-result.good{border-color:#4c9664;background:#f3fbf5}.compatibility-summary-result.warn{border-color:#c49335;background:#fffaf0}.compatibility-summary-result.bad{border-color:#b8544e;background:#fff4f3}.compatibility-summary-result h3{margin:4px 0}.compatibility-score{font-size:1.15rem;font-weight:800}.compatibility-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compatibility-rule{padding:16px;border-radius:13px;border:1px solid rgba(80,55,25,.18);background:#fff}.compatibility-rule>div{display:flex;justify-content:space-between;gap:12px}.compatibility-rule>div span{font-weight:800}.compatibility-rule.good{border-left:5px solid #4c9664}.compatibility-rule.warn{border-left:5px solid #c49335}.compatibility-rule.bad{border-left:5px solid #b8544e}.compatibility-rule p{line-height:1.65}.compatibility-moon-houses article{padding:12px 0;border-top:1px solid rgba(80,55,25,.14)}.compatibility-note{font-size:.92rem;opacity:.72}@media(max-width:760px){.compatibility-rules{grid-template-columns:1fr}.nearest-good-day{align-items:flex-start;flex-direction:column}.topbar nav{overflow-x:auto;flex-wrap:nowrap}.topbar nav .nav-btn{white-space:nowrap}}
.compatibility-library-picker{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;align-items:end;gap:10px;padding:13px;border:1px solid rgba(137,95,32,.25);border-radius:12px;background:#fff9eb}.compatibility-library-picker label{display:grid;gap:5px;font-weight:700}.compatibility-library-picker select{width:100%;min-height:40px;padding:7px 34px 7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:inherit}.compatibility-library-picker button{min-height:40px}.compatibility-library-picker .hint{grid-column:1/-1}.compatibility-library-picker .hint:empty{display:none}@media(max-width:760px){.compatibility-library-picker{grid-template-columns:1fr}.compatibility-library-picker .hint{grid-column:1}}
/* v140: Jataka auspicious timing and complete illustrated health UI */
.jataka-feature-heading .mini-label,.analysis-result>.mini-label{display:block;margin-bottom:.45rem;color:#75521d;font-size:.78rem;font-weight:900;letter-spacing:.04em}.analysis-result{padding:20px}.good-day-help{padding:12px 14px;border-radius:13px;background:#fff7df;color:#5a4320;line-height:1.65}.nearest-good-day{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px;border:1px solid #d5b66f;border-radius:16px;background:linear-gradient(135deg,#fff9e8,#f5dfaa);margin:12px 0}.nearest-good-day strong{font-size:clamp(1.02rem,3vw,1.3rem);color:#713c15}.nearest-good-day span{font-weight:900;color:#9e3f24;white-space:nowrap}.good-day-all summary{cursor:pointer;font-weight:900;color:#6d4311;padding:9px 0}.good-day-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.good-day-row{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #ead9b7;border-radius:11px;background:#fffdf8}.good-day-row b{color:#9e3f24;white-space:nowrap}.good-day-row.past{opacity:.48}.lakshmi-current-time{font-weight:900;color:#8e301f;background:#fff2dc;border:1px solid #efc88f;padding:10px 12px;border-radius:12px;display:inline-flex}.lakshmi-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lakshmi-period{position:relative;border:1px solid #e1d0ad;border-radius:14px;padding:13px;background:#fffdf8;overflow:hidden}.lakshmi-period-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.lakshmi-time-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lakshmi-period time{font-weight:900;color:#4e391c}.lakshmi-period p{margin:0;line-height:1.55}.lakshmi-status-badge,.current-badge{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:.76rem;font-weight:900}.current-badge{background:#2f2417;color:#fff}.tone-excellent{border-left:6px solid #237a3b;background:#f0faf3}.tone-excellent .lakshmi-status-badge{background:#237a3b;color:#fff}.tone-good{border-left:6px solid #62a64b;background:#f5fbf0}.tone-good .lakshmi-status-badge{background:#dff2d7;color:#245b25}.tone-stay{border-left:6px solid #d78319;background:#fff8e9}.tone-stay .lakshmi-status-badge{background:#fff0c9;color:#8b4b00}.tone-bad{border-left:6px solid #b9362f;background:#fff2f1}.tone-bad .lakshmi-status-badge{background:#b9362f;color:#fff}.tone-hide{border-left:6px solid #72529a;background:#f7f2fb}.tone-hide .lakshmi-status-badge{background:#e8dcf3;color:#513270}.lakshmi-period.current{border-width:3px;box-shadow:0 0 0 3px rgba(183,120,36,.16),0 10px 25px rgba(75,46,12,.18)}
.organ-group-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 20px}.organ-group{border:1px solid #e4d3b2;border-radius:14px;padding:13px 14px;background:#fffaf0}.organ-group h3{margin:0 0 7px;color:#6d4311;font-size:.94rem}.organ-group p{margin:0;line-height:1.65}.body-visual-shell{display:grid;gap:18px;margin-top:18px}.body-visual-intro,.body-overview-panel,.d3-section-heading,.body-zone-panel{border:1px solid #e6d7bd;border-radius:20px;background:#fffdf9;padding:16px 18px}.body-visual-intro p,.body-overview-head p,.d3-section-heading p,.body-zone-panel-head p{margin:.35rem 0 0;color:#74685b}.praj-body-overview{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,300px) minmax(120px,1fr);gap:12px;align-items:center;min-height:600px}.praj-body-overview img{display:block;width:100%;height:570px;object-fit:contain}.praj-body-labels{display:flex;flex-direction:column;gap:8px}.praj-body-labels.left{text-align:right}.praj-body-labels span,.praj-zone-labels span{padding:5px 7px;border:1px solid rgba(168,132,47,.28);border-radius:7px;background:rgba(255,251,240,.94);color:#4a3a24;font-size:.78rem;line-height:1.35}.body-zoom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.body-zone-panel{position:relative;padding:14px}.primary-body-zone{border:2px solid #b68a31;box-shadow:0 8px 24px rgba(100,67,15,.12)}.primary-body-zone-badge{display:inline-flex;margin:-4px 0 10px;padding:5px 9px;border-radius:999px;background:#6d4a16;color:#fff;font-size:.74rem;font-weight:900}.praj-zone-visual img{display:block;width:100%;height:360px;object-fit:contain;filter:grayscale(1)}.praj-zone-labels{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.medical-disclaimer{margin:18px 0;padding:16px 18px;border:2px solid #b44235;border-radius:16px;background:linear-gradient(135deg,#fff3ef,#fff9f2);box-shadow:0 8px 22px rgba(144,52,39,.12);color:#4d302b}.medical-disclaimer>strong{display:block;margin-bottom:7px;color:#a32f24;font-size:1.05rem;font-weight:900}.medical-disclaimer p{margin:5px 0;line-height:1.65}.medical-disclaimer b{color:#8f241d}
.praj-anatomy-canvas{position:relative;width:100%;height:570px;margin-top:12px;overflow:visible;background:linear-gradient(180deg,#fff,#fdfbf7)}.praj-anatomy-canvas>img{position:absolute;left:50%;top:3%;transform:translateX(-50%);width:46%;height:94%;object-fit:contain;filter:grayscale(1)}.praj-anatomy-canvas>svg,.anatomy-label-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.anatomy-guide{fill:none;stroke:#a8842f;stroke-width:1.6;opacity:.84;vector-effect:non-scaling-stroke}.anatomy-anchor{fill:#a8842f;stroke:#fffdf6;stroke-width:1.5;paint-order:stroke;vector-effect:non-scaling-stroke}.anatomy-text{position:absolute;transform:translateY(-50%);width:20%;font-size:.72rem;line-height:1.27;color:#4a3a24;background:rgba(255,251,240,.92);border:1px solid rgba(168,132,47,.28);border-radius:6px;padding:2px 4px}.anatomy-text.left{left:0;text-align:right}.anatomy-text.right{right:0;text-align:left}.body-zone-panel .praj-anatomy-canvas{height:450px}.body-zone-panel .praj-anatomy-canvas>img{width:50%}
@media(max-width:900px){.body-zoom-grid{grid-template-columns:1fr}.body-zone-panel .praj-anatomy-canvas{height:520px}}@media(max-width:700px){.good-day-list,.lakshmi-periods,.organ-group-list{grid-template-columns:1fr}.nearest-good-day{align-items:flex-start;flex-direction:column}.praj-anatomy-canvas{height:520px}.praj-anatomy-canvas>img{width:54%}.anatomy-text{width:22%;font-size:.66rem}.body-zone-panel .praj-anatomy-canvas{height:460px}.body-zone-panel .praj-anatomy-canvas>img{width:52%}}

/* v221: readable Anudasha/Antardasha cards on narrow screens. */
@media(max-width:800px){
  .dasha-page .planet-table-wrap{width:100%!important;max-width:100%!important;overflow:visible!important}
  .dasha-page .planet-table-wrap table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
  .dasha-page .planet-table-wrap tbody,
  .dasha-page .planet-table-wrap tr,
  .dasha-page .planet-table-wrap td{width:100%!important;max-width:100%!important;min-width:0!important}
  .dasha-page .planet-table-wrap td{
    display:grid!important;
    grid-template-columns:minmax(82px,30%) minmax(0,1fr)!important;
    gap:10px!important;
    padding:8px 0!important;
  }
  .dasha-page .planet-table-wrap td::before{
    content:attr(data-label)!important;
    position:static!important;
    width:auto!important;
  }
  .dasha-page .planet-table-wrap .dasha-cell-value{
    display:block;
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
  }
  .dasha-page .planet-table-wrap .dasha-lord-cell{
    display:flex;
    align-items:flex-start;
    gap:6px;
    flex-wrap:wrap;
  }
}

/* v155: member account dialog */
.member-account-dialog{width:min(620px,calc(100% - 28px));overflow:hidden;background:linear-gradient(180deg,#fffaf1 0,#fffdf8 100%)}.account-dialog-head{background:linear-gradient(135deg,#2a1115,#4a2226);color:#f8e8bd;border-bottom-color:#cfa94f}.account-dialog-head button{color:#f8e8bd}.account-dialog-kicker{display:block;margin-bottom:2px;color:#d9b65f;font-size:.68rem;font-weight:800;letter-spacing:.18em}.member-account-body{display:grid;gap:16px;padding:20px}.member-account-hero{display:flex;align-items:center;gap:14px;padding:15px;border:1px solid #e2d2ad;border-radius:16px;background:linear-gradient(135deg,#fff8e7,#f5e8c8)}.member-account-avatar{display:grid;flex:0 0 52px;width:52px;height:52px;place-items:center;border:1px solid #e3c579;border-radius:50%;background:linear-gradient(145deg,#4b2025,#281014);color:#f4d98d;font:700 1.35rem Trirong,serif;box-shadow:0 5px 14px #2b11142b}.member-account-identity{min-width:0}.member-account-identity span{display:block;margin-bottom:3px;color:#776756;font-size:.76rem}.member-account-identity strong{display:block;overflow:hidden;color:#352126;text-overflow:ellipsis;white-space:nowrap}.membership-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.membership-summary>div{min-width:0;padding:12px;border:1px solid #e0d2b5;border-radius:13px;background:#fff}.membership-summary span{display:block;margin-bottom:5px;color:#806f60;font-size:.72rem}.membership-summary strong{display:block;overflow-wrap:anywhere;color:#3b2428;font-size:.95rem}.member-account-section{display:grid;gap:12px;padding:16px;border:1px solid #e2d7c1;border-radius:16px;background:rgba(255,255,255,.75)}.member-account-section-title{display:flex;align-items:center;gap:10px}.member-account-section-title>span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#f3e5c5;color:#7d4a1e;font-size:1.1rem}.member-account-section-title strong,.member-account-section-title small{display:block}.member-account-section-title small{margin-top:2px;color:#84766a;font-size:.74rem}.member-account-dialog .account-name-field{margin:0;gap:7px}.member-account-dialog .account-name-field>span{font-size:.82rem}.member-account-dialog .account-name-field input{width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid #d7c6a5;border-radius:11px;background:#fff;font:inherit}.member-account-save{justify-self:start}.member-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.member-account-actions button{min-height:44px}.member-account-status{min-height:22px;margin:0!important;padding:0!important;text-align:center}.member-account-dialog .admin-members-link{margin:0!important;padding:12px 14px;border:1px solid #cfaa5a;border-radius:12px;background:#fff5d9;text-align:center;font-weight:800}
.notification-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 13px;border:1px solid #dfd1b5;border-radius:12px;background:#fff;cursor:pointer}.notification-setting-row span{min-width:0}.notification-setting-row strong,.notification-setting-row small{display:block}.notification-setting-row small{margin-top:3px;color:#806f60;font-size:.75rem}.notification-setting-row input{width:22px;height:22px;flex:0 0 auto;accent-color:#5b2028}
@media(max-width:560px){.member-account-body{padding:14px;gap:12px}.membership-summary{grid-template-columns:1fr 1fr}.membership-summary>div:last-child{grid-column:1/-1}.member-account-actions{grid-template-columns:1fr}.member-account-save{width:100%}.member-account-hero{padding:12px}.member-account-avatar{width:46px;height:46px;flex-basis:46px}}
.date-format-hint{display:block;margin-top:6px;color:var(--muted,#756b60);font-size:.82rem}.dual-calendar-date{display:block;margin-top:5px;color:#80551f;font-weight:700;font-size:.82rem}
.caution-page{display:grid;gap:16px}.caution-list{display:grid;gap:14px}.caution-shell{overflow:visible}.caution-period{border:1px solid #e0c99b;border-radius:16px;padding:16px;background:#fffaf0}.caution-period h3{margin:0 0 10px;color:#9e3f24}.caution-period p{margin:7px 0;line-height:1.65}.calculating{color:var(--muted,#756b60)}
.caution-emotional{background:linear-gradient(145deg,#fff8fb,#f8edf3);border-color:#d9b5c6}.caution-emotional h3{color:#7d3155}.caution-saturn-asc{position:relative;border-width:2px;box-shadow:0 8px 22px rgba(102,72,32,.12)}.caution-saturn-asc::before{content:"📌";position:absolute;top:11px;right:13px;font-size:1.05rem}.caution-rahu-asc{border-left:4px solid #7b3fb0;background:linear-gradient(180deg,#fff 0%,#faf5ff 100%)}
.caution-overlap-summary{padding:14px 15px;border:1px solid #b695c6;border-radius:16px;background:#f8f1fb}.caution-overlap-summary h3{margin:0 0 9px;color:#5d3374}.caution-overlap-summary p{display:grid;gap:3px;margin:8px 0;padding-bottom:8px;border-bottom:1px dashed #d6c2df}.caution-overlap-summary p:last-child{border-bottom:0;padding-bottom:0}.caution-overlap-summary span{font-size:.88rem;color:#66556e}
.caution-period.is-current{border:3px solid #b9342e;background:#fff5f2;box-shadow:0 0 0 4px rgba(185,52,46,.1),0 10px 25px rgba(76,28,22,.13)}.caution-period.has-overlap{border-left:7px solid #74518d}.caution-period.is-past{opacity:.58;filter:saturate(.78)}.caution-badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:9px}.caution-overlap-badge{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:.76rem;font-weight:900;background:#eadcf2;color:#5c3472;border:1px solid #b596c5}
.caution-status-note{display:inline-flex;align-items:center;justify-content:center;margin-bottom:10px;padding:6px 10px;border-radius:999px;font-size:.8rem;font-weight:900;line-height:1.2}.caution-status-note.passed{background:#edf3ed;color:#436347;border:1px solid #b8ccb9}.caution-status-note.upcoming{background:#eef4ff;color:#305b99;border:1px solid #bfd2f7}.caution-status-note.active{background:#fff0ec;color:#a23322;border:1px solid #efc1b8}.caution-helper-note{display:grid;gap:6px;margin-top:10px;padding:10px 12px;border-radius:12px;background:#eef8f0;border:1px solid #cfe6d2;color:#215b2e;font-size:.92rem;line-height:1.55}
.add-calendar-btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;margin-top:.75rem;padding:.65rem .9rem;border:1px solid rgba(126,86,28,.35);border-radius:999px;background:#fff8e8;color:#563b16;font:700 14px/1.2 inherit;cursor:pointer;max-width:100%;white-space:normal;text-align:center}.add-calendar-btn:active{transform:translateY(1px)}
.auspicious-module-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;margin:0 16px;padding:11px 0;border-bottom:1px solid var(--line,#d8c8bb)}
.auspicious-transit-reference{min-width:0;color:var(--muted,#756b60);font-size:.86rem}.auspicious-transit-reference b{color:var(--ink,#2d211d)}
.auspicious-action-buttons{display:flex;align-items:center;gap:9px}.auspicious-action-buttons button{min-height:40px;padding:7px 13px;border:1px solid rgba(126,86,28,.35);border-radius:999px;background:#fff8e8;color:#563b16;font:800 13px/1.2 inherit;cursor:pointer}.auspicious-action-buttons button:active{transform:translateY(1px)}
.auspicious-notification-switch{display:flex;align-items:center;gap:8px;min-height:40px;padding:5px 6px 5px 11px;border:1px solid rgba(126,86,28,.35);border-radius:999px;background:#fffaf0;color:#563b16;font-size:13px;font-weight:800;cursor:pointer;user-select:none}.auspicious-notification-switch input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.auspicious-notification-switch i{position:relative;width:42px;height:24px;border-radius:999px;background:#b6aa98;box-shadow:inset 0 0 0 1px rgba(55,35,22,.18);transition:.2s ease}.auspicious-notification-switch i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(35,20,12,.3);transition:.2s ease}.auspicious-notification-switch input:checked+i{background:#6e2933}.auspicious-notification-switch input:checked+i::after{transform:translateX(18px)}.auspicious-notification-switch:has(input:focus-visible){outline:3px solid var(--focus-ring,#8e404b);outline-offset:2px}.auspicious-notification-switch.is-disabled{opacity:.55;cursor:not-allowed}
.auspicious-action-status{grid-column:1/-1;min-height:1.1em;color:var(--muted,#756b60)}.auspicious-action-status[data-tone="ok"]{color:#27613d}.auspicious-action-status[data-tone="bad"]{color:#a52929}
@media(max-width:640px){.auspicious-module-actions{grid-template-columns:1fr;margin:0 12px}.auspicious-action-buttons{display:grid;grid-template-columns:minmax(0,1fr) auto}.auspicious-action-buttons button{width:100%;font-size:14px}.auspicious-notification-switch{font-size:14px}.auspicious-action-status{grid-column:auto}}
.result-date-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.result-date-actions h3{flex:1}.result-date-actions button,.tithi-transition-table [data-calendar-time]{padding:7px 10px;border:1px solid #cdb98a;border-radius:9px;background:#fff8e8;color:#563b16;font-weight:800;white-space:nowrap;cursor:pointer}

/* v228: keep planet numbers legible after the 900px zodiac SVG is scaled to a phone. */
@media(max-width:600px){
  #zodiacChart .natal-in-house.natal-safe-glyph{
    font-size:var(--natal-safe-size,24px)!important;
    font-weight:800!important;
    stroke:#fffdf8!important;
    stroke-width:2px!important;
    paint-order:stroke fill!important;
  }
  #zodiacChart .transit-in-ring.plain-transit.transit-visible{
    font-size:38px!important;
    font-weight:800!important;
    stroke:#fffdf8!important;
    stroke-width:2px!important;
    paint-order:stroke fill!important;
  }
}

/* v236: preserve polygon-calculated natal size on phones; dense signs shrink safely. */
@media(max-width:600px){
  #simpleZodiacChart .simple-rasi-planet.natal{
    font-size:var(--simple-natal-size,30px)!important;
  }
}

/* v385: prominent planet-number summary for every house group. */
.house-group-numerals{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:13px 0 4px;padding:9px 11px;border-radius:10px;background:#f3e5c9;color:#54251f}
.house-group-numerals b{font-size:27px;font-weight:900;line-height:1}
.house-group-numerals i{font-size:17px;font-style:normal;font-weight:900;color:#9b6324}

/* v255: Indian Ketu uses indigo-violet, distinct from red/green aspect digits. */
.ketu-indian-house,.ketu-indian-transit,.ketu-indian-label,
#simpleZodiacChart .simple-rasi-planet.ketu-indian,
#simpleZodiacChart .simple-rasi-transit.ketu-indian,
#navamsaZodiacChart .simple-rasi-planet.ketu-indian,
#hemisphericChart .simple-rasi-planet.ketu-indian,
.ketu-indian-row .planet-universal-symbol,
.planet-table .ketu-indian-row td:first-child .planet-label{
  fill:#2478D4!important;
  color:#2478D4!important;
}
#cautionNavButton{position:relative}.nav-alert-badge{position:absolute;top:1px;right:2px;min-width:18px;height:18px;padding:0 4px;border-radius:99px;display:grid;place-items:center;background:#c3312c;color:#fff;font-size:10px;line-height:1;box-shadow:0 0 0 3px rgba(255,255,255,.8);animation:cautionPulse 1.15s ease-in-out infinite}@keyframes cautionPulse{50%{transform:scale(1.13);box-shadow:0 0 0 5px rgba(195,49,44,.16)}}@media(prefers-reduced-motion:reduce){.nav-alert-badge{animation:none}}@media(max-width:640px){.add-calendar-btn{width:100%;font-size:15px;padding:.78rem .9rem}}

/* Mobile Intaphas–Bathchan: every section follows the available module width. */
@media(max-width:700px){
  #view-thai-astrology .intaphas-module{width:100%;max-width:100%;overflow:hidden}
  #view-thai-astrology .intaphas-module>.module-body{width:100%;max-width:100%;padding:10px 6px 14px}
  #view-thai-astrology .intaphas-top-layout,
  #view-thai-astrology .intaphas-pillars,
  #view-thai-astrology .intaphas-pillars>section,
  #view-thai-astrology .intaphas-detail-layout,
  #view-thai-astrology .intaphas-detail-layout>div,
  #view-thai-astrology .intaphas-defect,
  #view-thai-astrology .intaphas-next-events{width:100%;max-width:100%;min-width:0;overflow:visible}
  #view-thai-astrology .intaphas-wheel{width:100%;max-width:100%;padding:4px 0}
  #view-thai-astrology .intaphas-wheel svg,
  #view-thai-astrology .intaphas-module.intaphas-wheel-expanded .intaphas-wheel svg{width:100%;max-width:100%;height:auto}
  #view-thai-astrology .intaphas-wheel-expand{top:4px;right:4px;width:36px!important;height:36px!important;font-size:21px!important}
  #view-thai-astrology .intaphas-pillars{gap:12px;margin-top:8px}
  #view-thai-astrology .intaphas-pillars>section{overflow:visible}
  #view-thai-astrology .intaphas-pillars>section>h4{margin-bottom:8px;padding:6px 5px;font-size:clamp(11px,3.4vw,15px);text-align:center;overflow-wrap:anywhere}
  #view-thai-astrology .intaphas-pillar-row{width:100%;max-width:100%;min-width:0;padding:0 2px 0 34px;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(4px,1.8vw,9px)}
  #view-thai-astrology .intaphas-pillar{width:100%;max-width:100%;min-width:0}
  #view-thai-astrology .intaphas-pillar>b{height:30px;font-size:clamp(16px,5vw,21px);line-height:30px}
  #view-thai-astrology .intaphas-pillar-values span{font-size:clamp(11px,3.7vw,16px)}
  #view-thai-astrology .intaphas-pillar-values em{right:calc(100% + 3px);width:28px;font-size:clamp(7px,2.3vw,10px)}
  #view-thai-astrology .intaphas-pillar-center{height:30px;font-size:clamp(14px,4.3vw,19px);line-height:30px}
  #view-thai-astrology .intaphas-pillar footer{gap:2px;font-size:clamp(7px,2.2vw,10px);overflow-wrap:anywhere}
  #view-thai-astrology .intaphas-table-scroll{width:100%;max-width:100%;overflow:visible}
  #view-thai-astrology .intaphas-detail-table,
  #view-thai-astrology .intaphas-defect table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
  #view-thai-astrology .intaphas-detail-table th,
  #view-thai-astrology .intaphas-detail-table td,
  #view-thai-astrology .intaphas-defect th,
  #view-thai-astrology .intaphas-defect td{width:auto!important;min-width:0!important;height:auto;padding:3px 1px!important;font-size:clamp(6px,2.15vw,9px)!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}
  #view-thai-astrology .intaphas-detail-table tbody th{min-width:0!important;text-align:left}
  #view-thai-astrology .intaphas-detail-layout aside{width:100%;max-width:100%;grid-template-columns:1fr 1fr;gap:6px}
  #view-thai-astrology .intaphas-taksa span{min-height:42px;padding:2px;font-size:clamp(10px,3vw,14px)}
  #view-thai-astrology .intaphas-taksa span b{font-size:clamp(11px,3.4vw,15px)}
  #view-thai-astrology .intaphas-taksa span small{font-size:clamp(7px,2.1vw,9px);overflow-wrap:anywhere}
  #view-thai-astrology .intaphas-ghata-mode{width:100%;max-width:100%;justify-content:space-between;gap:6px;padding:7px 8px}
  #view-thai-astrology .intaphas-ghata-mode select{min-width:0;max-width:58%;font-size:12px}
  #view-thai-astrology .intaphas-next-events>div{grid-template-columns:1fr}
}

/* Final Thai-table cascade: only พระเคราะห์ remains frozen horizontally. */
#view-thai-astrology .planet-table th:not(:first-child),
#view-thai-astrology .planet-table td:not(:first-child){position:static!important;left:auto!important;z-index:auto!important;box-shadow:none!important}
#view-thai-astrology .planet-table th:first-child,
#view-thai-astrology .planet-table td:first-child{position:sticky!important;left:0!important;z-index:35!important;background-clip:padding-box!important;box-shadow:2px 0 0 rgba(77,57,39,.16)!important}
#view-thai-astrology .planet-table thead th:first-child{z-index:45!important;background:#f1e5c8!important;background-image:none!important}
#view-thai-astrology .planet-table tbody tr>td:first-child{background:#fffdf8!important}
#view-thai-astrology .planet-table tbody tr:nth-child(even)>td:first-child{background:#fbf9f5!important}
#view-thai-astrology .planet-table tbody tr:hover>td:first-child{background:#f4efe4!important}

/* v418 final cascade: allow horizontal dragging after the zodiac is enlarged. */
#analysisZodiacViewport,
#analysisZodiacChart,
#analysisZodiacChart>svg{touch-action:pan-x pan-y!important}

/* v420: mobile/native charts use direct pinch zoom; the SVG carries its background while enlarged. */
#analysisZodiacChart,
#analysisZodiacChart>svg{background:#fffdf9}
@media(max-width:900px){
  .analysis-zodiac-tools,.analysis-zodiac-zoom-hint{display:none!important}
  #simpleZodiacChart,#navamsaZodiacChart,#zodiacChart,#hemisphericChart,
  #shodashaVargaChart,#drekkanaChart,#prajChoghadiyaTransitChart,#healthZodiacChart{
    display:block!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
    overscroll-behavior-x:contain;touch-action:pan-x pan-y!important;-webkit-overflow-scrolling:touch;background:#fffdf9
  }
  #simpleZodiacChart>svg,#navamsaZodiacChart>svg,#zodiacChart>svg,#hemisphericChart>svg,
  #shodashaVargaChart>svg,#drekkanaChart svg,#prajChoghadiyaTransitChart>svg,#healthZodiacChart>svg{
    display:block!important;margin-inline:auto!important;touch-action:pan-x pan-y!important;background:#fffdf9
  }
}
html.native-app .analysis-zodiac-tools,
html.native-app .analysis-zodiac-zoom-hint{display:none!important}
html.native-app :is(#simpleZodiacChart,#navamsaZodiacChart,#zodiacChart,#hemisphericChart,#shodashaVargaChart,#drekkanaChart,#prajChoghadiyaTransitChart,#healthZodiacChart){
  overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x pan-y!important;background:#fffdf9
}
html.native-app :is(#simpleZodiacChart,#navamsaZodiacChart,#zodiacChart,#hemisphericChart,#shodashaVargaChart,#drekkanaChart,#prajChoghadiyaTransitChart,#healthZodiacChart) svg{
  touch-action:pan-x pan-y!important;background:#fffdf9
}

/* v421: visible chart toggles occupy only their content; hidden controls reserve no grid cells. */
#mainChartCard .toggles{display:flex!important;align-items:center;flex-wrap:wrap!important;gap:7px 10px!important;grid-template-columns:none!important}
#mainChartCard .toggles label{flex:0 0 auto!important;width:auto!important}
#mainChartCard .toggles label[hidden],
#mainChartCard .toggles .thai-astrology-only-toggle[hidden]{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important}

/* v424: Aquarius-lord selectors fit only the two short options and do not crowd the table headers. */
.chart-aquarius-lord,
.house-lord-head label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;align-self:start!important;gap:4px!important;width:auto!important;height:24px!important;margin:0!important;line-height:1!important;white-space:nowrap!important}
.chart-aquarius-lord select,
.house-lord-head select{flex:0 0 52px!important;width:52px!important;min-width:52px!important;max-width:52px!important;height:22px!important;min-height:22px!important;padding:0 17px 0 5px!important;border-radius:5px!important;font-size:11px!important;line-height:20px!important}

/* v425: Thai chart controls and the Taksa–Triwai module. */
#view-thai-astrology #mainChartCard>.card-head{display:block!important}
#view-thai-astrology #mainChartCard .chart-view-tabs{margin-top:7px!important}
#view-thai-astrology #mainChartCard .chart-view-tabs+.toggles{width:100%!important;margin:7px 0 0!important;padding:7px 0 0!important;border:0!important;border-top:1px solid rgba(116,78,40,.2)!important;border-radius:0!important;background:transparent!important}
.thai-taksa-triwai-module{margin-top:0}.thai-taksa-triwai-grid{display:grid;grid-template-columns:minmax(250px,.75fr) minmax(440px,1.5fr);gap:28px;align-items:start}.thai-taksa-triwai-grid>section>h3{margin:0 0 13px;text-align:center;color:#4e2922;font:800 21px/1.2 "Trirong","Sarabun",serif}.thai-taksa-grid{display:grid;grid-template-columns:repeat(3,minmax(70px,1fr));border-top:1px solid #8b8175;border-left:1px solid #8b8175}.thai-taksa-grid>div{display:grid;place-items:center;align-content:center;gap:3px;min-height:83px;padding:6px 4px;border-right:1px solid #8b8175;border-bottom:1px solid #8b8175;text-align:center}.thai-taksa-grid span,.thai-triwai-cell span{color:#252869;font-size:13px;font-weight:800}.thai-taksa-grid b,.thai-triwai-cell b{color:#171717;font:800 27px/1 "Trirong","Sarabun",serif}.thai-taksa-grid small,.thai-triwai-cell small{color:#a75435;font-size:11px;line-height:1.2}.thai-taksa-grid .is-kalakini b,.thai-taksa-grid .is-kalakini span{color:#a21518}.thai-taksa-center{background:#f4f1eb}.thai-triwai-grid{display:grid;grid-template-columns:repeat(4,minmax(92px,1fr));border-left:1px solid #8b8175}.thai-triwai-column{display:grid;grid-template-rows:repeat(3,83px) auto}.thai-triwai-cell{position:relative;display:grid;place-items:center;align-content:center;gap:3px;padding:6px 3px;border-top:1px solid #8b8175;border-right:1px solid #8b8175;text-align:center}.thai-triwai-cell:nth-child(3){border-bottom:1px solid #8b8175}.thai-triwai-cell.is-current:after{content:"";position:absolute;inset:7px;border:2px solid #ef5a22;border-radius:50%;pointer-events:none}.thai-triwai-column h5{margin:8px 0 0;text-align:center;font-size:13px;color:#352b25}
@media(max-width:820px){.thai-taksa-triwai-grid{grid-template-columns:1fr;gap:24px}.thai-triwai-grid{overflow-x:auto;grid-template-columns:repeat(4,minmax(88px,1fr))}.thai-taksa-triwai-module{padding:13px 9px}.thai-taksa-grid>div,.thai-triwai-column{grid-template-rows:none}.thai-triwai-column{display:grid}.thai-triwai-cell{min-height:76px}}

/* v426: fixed Taksa planet layout, progressed highlights, Triwai anchors and dates. */
.thai-module-key{display:flex;justify-content:center;gap:14px;margin:-5px 0 8px;font-size:11px;font-weight:800}.thai-module-key span:first-child{color:#252869}.thai-module-key span:last-child{color:#a75435}.thai-taksa-grid>div.is-current,.thai-triwai-cell.is-current{background:#dff3df!important;box-shadow:inset 0 0 0 2px #2f8a49}.thai-triwai-cell.is-current:after{display:none}.thai-triwai-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px}.thai-triwai-heading h3{margin:0!important}.thai-triwai-heading label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;color:#5a4636;font-size:12px;font-weight:800;white-space:nowrap}.thai-triwai-heading select{width:auto;min-width:94px;height:28px;padding:2px 25px 2px 7px;border-radius:6px;font-size:12px}.thai-triwai-cell em{display:block;color:#66584d;font-size:9px;font-style:normal;line-height:1.2;white-space:nowrap}.thai-triwai-column{grid-template-rows:repeat(3,94px) auto}.thai-taksa-grid>div{min-height:94px}
@media(max-width:560px){.thai-triwai-heading{align-items:stretch;flex-direction:column}.thai-triwai-heading label{justify-content:flex-end}.thai-triwai-cell em{font-size:8px}.thai-triwai-grid{grid-template-columns:repeat(4,minmax(104px,1fr))}}

/* v427: concise Taksa labels and the traditional faint ๕ in the centre. */
.thai-taksa-center-number{color:#8b8b8b!important;opacity:.38}

/* v428: collapsible Thai timing module and Kala Yok tables. */
.thai-taksa-triwai-module{padding:0!important;overflow:hidden}.thai-taksa-triwai-module>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;cursor:pointer;list-style:none;background:#fff8e8}.thai-taksa-triwai-module>summary::-webkit-details-marker{display:none}.thai-taksa-triwai-module>summary>span:first-child{display:grid;gap:2px}.thai-taksa-triwai-module>summary small{color:#776552}.thai-taksa-triwai-module>.module-body{padding:17px}.thai-taksa-triwai-module:not([open]) .module-chevron{transform:rotate(-90deg)}
.thai-taksa-grid b,.thai-triwai-cell b{font-family:"Sarabun",Tahoma,"Segoe UI",sans-serif!important;font-weight:600!important}
.thai-triwai-grid{border-left:0!important}
.thai-kala-yok-module{margin-top:24px;padding-top:16px;border-top:1px solid #ddcfbd}.thai-kala-yok-module>h3{margin:0 0 10px!important;text-align:left!important;font-size:17px!important}.thai-kala-yok-scroll{overflow-x:auto}.thai-kala-yok-module table{min-width:420px;border-collapse:collapse;background:#fff}.thai-kala-yok-module th,.thai-kala-yok-module td{padding:9px 10px;border:1px solid #b8aa99;text-align:center}.thai-kala-yok-module thead th{background:#f3e5ca;color:#5b3823}.thai-kala-yok-module tbody th{text-align:left;color:#31316e}.thai-kala-yok-module td{font-family:"Sarabun",Tahoma,"Segoe UI",sans-serif;font-size:23px;font-weight:600;color:#171717}
@media(max-width:560px){.thai-taksa-triwai-module>.module-body{padding:12px 8px}.thai-kala-yok-module table{min-width:360px}.thai-kala-yok-module th,.thai-kala-yok-module td{padding:7px 5px;font-size:12px}.thai-kala-yok-module td{font-size:20px}}

/* v430: five independently collapsible Kala Yok base tables, styled like Taksa/Triwai. */
.thai-kala-yok-tables{display:grid;gap:14px}.thai-kala-yok-table{overflow:hidden;border:0;border-radius:0;background:transparent}.thai-kala-yok-table>summary{display:flex;align-items:center;justify-content:space-between;padding:7px 2px;cursor:pointer;list-style:none;color:#242569}.thai-kala-yok-table>summary::-webkit-details-marker{display:none}.thai-kala-yok-table:not([open]) .module-chevron{transform:rotate(-90deg)}.thai-kala-yok-table table{width:100%;min-width:420px;table-layout:fixed;background:transparent}.thai-kala-yok-table th:first-child{width:34%;text-align:left}.thai-kala-yok-table thead th{background:transparent!important;color:#252869;border-top:0}.thai-kala-yok-table tbody th{font-size:14px}.thai-kala-yok-table th,.thai-kala-yok-table td{border-color:#8f8f8f}.thai-kala-yok-table td{background:transparent;font-size:21px}

/* v431: Kala Yok names across columns; natal and transit years down rows. */
.thai-kala-yok-table th:first-child{width:29%}.thai-kala-yok-table thead th:not(:first-child){text-align:center;font-size:12px}.thai-kala-yok-table tbody th{white-space:nowrap}.thai-kala-yok-table tbody td{text-align:center}

/* v432: complete borders, black headings and lightly differentiated natal/transit rows. */
.thai-kala-yok-table>summary{color:#111}.thai-kala-yok-table th,.thai-kala-yok-table td{color:#111!important;border:1px solid #8f8f8f!important}.thai-kala-yok-table thead th{color:#111!important;background:transparent!important}.thai-kala-yok-table tbody tr:first-child th,.thai-kala-yok-table tbody tr:first-child td{background:#f7f3eb!important}.thai-kala-yok-table tbody tr:last-child th,.thai-kala-yok-table tbody tr:last-child td{background:#eef3f5!important}

/* v433: collapsible Kala Yok section, balanced desktop grid and corrected Triwai left borders. */
.thai-triwai-grid{border-left:1px solid #8b8175!important}.thai-triwai-column:first-child .thai-triwai-cell{border-left:0}.thai-kala-yok-module{display:block}.thai-kala-yok-module>summary{display:flex;align-items:center;justify-content:space-between;padding:8px 2px 12px;cursor:pointer;list-style:none;color:#111}.thai-kala-yok-module>summary::-webkit-details-marker{display:none}.thai-kala-yok-module:not([open]) .module-chevron{transform:rotate(-90deg)}.thai-kala-yok-module:not([open]){padding-bottom:0}.thai-kala-yok-tables{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.thai-kala-yok-table:last-child:nth-child(odd){grid-column:1/-1;width:calc(50% - 7px)}
@media(max-width:820px){.thai-kala-yok-tables{grid-template-columns:1fr}.thai-kala-yok-table:last-child:nth-child(odd){grid-column:auto;width:auto}}

/* v434: unified Kala Yok typography and benefic/malefic number colours. */
.thai-kala-yok-module,.thai-kala-yok-module summary,.thai-kala-yok-module table,.thai-kala-yok-module th,.thai-kala-yok-module td{font-family:"Sarabun",Tahoma,"Segoe UI",sans-serif!important}.thai-kala-yok-table td.is-good{color:#21833d!important}.thai-kala-yok-table td.is-bad{color:#b52d2d!important}

/* v435: compact natal/transit date-time selectors; wrap by content instead of stretching. */
.suri-calc-card .suri-date-row{display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:3px!important;margin:7px 0!important}
.suri-calc-card .suri-date-row label{flex:0 0 auto!important;width:auto!important;min-width:0!important;gap:1px!important;font-size:12px!important;line-height:1.15!important}
.suri-calc-card .suri-date-row select{box-sizing:border-box!important;width:auto!important;min-width:0!important;height:32px!important;min-height:32px!important;padding:2px 24px 2px 8px!important;border-radius:6px!important;font-size:13px!important;line-height:1.1!important;appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23534032' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 8px center!important;background-size:10px 6px!important}
.suri-calc-card :is(#natalCalcDay,#transitCalcDay){width:calc(2.6ch + 34px)!important;min-width:64px!important}
.suri-calc-card :is(#natalCalcMonth,#transitCalcMonth){width:116px!important}
.suri-calc-card :is(#natalCalcYear,#transitCalcYear){width:calc(11ch + 34px)!important;min-width:136px!important}
.suri-calc-card :is(#natalCalcHour,#transitCalcHour,#natalCalcMinute,#transitCalcMinute){width:68px!important}
.suri-calc-card .suri-date-row .current-time-button{flex:0 0 34px!important;align-self:flex-end!important;width:34px!important;min-width:34px!important;height:32px!important;min-height:32px!important;padding:4px!important;border-radius:6px!important}
@media(max-width:680px){
  .suri-calc-card .suri-date-row{display:flex!important;grid-template-columns:none!important;justify-content:flex-start!important}
  .suri-calc-card .suri-date-row .year-field{grid-column:auto!important}
  .suri-calc-card .suri-date-row .current-time-button{grid-column:auto!important;justify-self:auto!important}
}

/* v436: compact every field in the natal/transit input panels using measured content widths. */
.suri-calc-card .natal-name-row{display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:3px!important;max-width:none!important;margin:7px 0!important}
.suri-calc-card .natal-name-row label{flex:0 0 auto!important;width:auto!important;gap:1px!important;font-size:12px!important;line-height:1.15!important}
.suri-calc-card #natalChartType{width:128px!important}
.suri-calc-card #natalOwnerName{width:240px!important}
.suri-calc-card .natal-name-row :is(select,input),
.suri-calc-card .suri-place-row :is(select,input[type="number"]){box-sizing:border-box!important;height:32px!important;min-height:32px!important;padding:2px 23px 2px 6px!important;border-radius:6px!important;font-size:13px!important;line-height:1.1!important}
.suri-calc-card #natalOwnerName{padding-right:7px!important}
.suri-calc-card .suri-place-row{display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:3px!important;margin:7px 0!important}
.suri-calc-card .suri-place-row>label{flex:0 0 auto!important;width:auto!important;gap:1px!important;font-size:12px!important;line-height:1.15!important}
.suri-calc-card .province-choice-row{display:flex!important;flex:0 0 auto!important;align-items:flex-end!important;gap:6px!important;width:auto!important}
.suri-calc-card .province-choice-row>.province-field{flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:0!important}
.suri-calc-card .province-line{display:flex!important;align-items:center!important;gap:5px!important;width:auto!important}
.suri-calc-card :is(#natalCalcProvince,#transitCalcProvince){flex:0 0 178px!important;width:178px!important;min-width:178px!important;max-width:178px!important}
.suri-calc-card :is(#natalCalcLatitude,#transitCalcLatitude,#natalCalcLongitude,#transitCalcLongitude){width:112px!important;min-width:112px!important;max-width:112px!important;height:32px!important;min-height:32px!important;padding-right:6px!important}
.suri-calc-card .suri-option-row{flex:1 0 100%!important;width:100%!important;gap:4px 16px!important}
.suri-calc-card .foreign-birth-toggle{padding-bottom:5px!important}
@media(max-width:680px){
  .suri-calc-card .natal-name-row{display:flex!important;grid-template-columns:none!important;gap:3px!important}
  .suri-calc-card .province-choice-row{display:flex!important;grid-template-columns:none!important;align-items:flex-end!important}
  .suri-calc-card .province-line{display:flex!important;grid-template-columns:none!important}
  .suri-calc-card .province-line .local-time-inline{display:inline!important;margin:0!important}
}

/* v437: Sarabun-only compact typography for the saved-chart library. */
#memberLibraryDialog,#memberLibraryDialog input,#memberLibraryDialog select,#memberLibraryDialog textarea,#memberLibraryDialog button{font-family:"Sarabun",Tahoma,"Leelawadee UI",sans-serif!important}
#memberLibraryDialog{font-size:13px!important}
#memberLibraryDialog .member-dialog-head{padding:11px 16px!important}
#memberLibraryDialog .member-dialog-head h2{font-size:18px!important;line-height:1.2!important}
#memberLibraryDialog .member-save-panel{gap:7px!important;padding:11px 16px!important}
#memberLibraryDialog .member-save-panel label{gap:2px!important;font-size:12px!important}
#memberLibraryDialog .member-save-panel :is(input,select,textarea){padding:6px 8px!important;font-size:13px!important;line-height:1.25!important}
#memberLibraryDialog .member-library-tools{gap:5px!important;padding:9px 16px!important}
#memberLibraryDialog .member-library-tools>*{min-height:32px!important;padding-block:4px!important;font-size:12px!important}
#memberLibraryDialog .saved-chart-list{gap:5px!important;padding:2px 16px 14px!important}
#memberLibraryDialog .saved-chart-item{gap:8px!important;padding-top:7px!important;padding-bottom:7px!important}
#memberLibraryDialog .saved-chart-item h3{font-size:14px!important;line-height:1.2!important}
#memberLibraryDialog .saved-chart-item p{line-height:1.22!important}
#memberLibraryDialog .saved-chart-title{font-size:12px!important}
#memberLibraryDialog .saved-chart-meta,#memberLibraryDialog .saved-chart-notes{font-size:11.5px!important}
#memberLibraryDialog .saved-chart-actions button{min-height:30px!important;padding:4px 7px!important;font-size:11.5px!important}
@media(max-width:680px){
  #memberLibraryDialog .member-library-tools{padding:8px 10px!important;gap:5px!important}
  #memberLibraryDialog .member-library-tools>*{min-height:34px!important}
  #memberLibraryDialog .saved-chart-list{padding:2px 10px 12px!important}
}

/* v452: larger planet numerals in the detailed zodiac on Vedic and Thai pages. */
#zodiacChart .natal-in-house.natal-safe-glyph,
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .natal-in-house.natal-safe-glyph{
  font-size:var(--natal-safe-size,32px)!important;
  font-weight:700!important;
}
#zodiacChart .transit-in-ring.plain-transit.transit-visible,
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .transit-in-ring.plain-transit.transit-visible{
  font-size:16px!important;
  font-weight:700!important;
  stroke-width:1.4px!important;
}
@media(max-width:700px){
  #view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .natal-in-house.natal-safe-glyph{font-size:var(--natal-safe-size,28px)!important}
  #view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .transit-in-ring.plain-transit.transit-visible{font-size:18px!important}
}

/* v453: match the Vedic detailed-zodiac display scale to the Thai 1080px copy. */
#view-chart #rasiChartPanel{overflow-x:auto!important;overflow-y:visible!important}
#view-chart #zodiacChart{width:1080px!important;min-width:1080px!important;max-width:none!important;margin-inline:auto!important}
#view-chart #zodiacChart>svg{width:1080px!important;min-width:1080px!important;max-width:none!important;height:auto!important;margin-inline:auto!important}

/* v454: Thai detailed-zodiac sign names exactly match the Vedic rendering. */
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] .zodiac-label.curved-zodiac-label[class*="rasi-style-"]{
  font-family:"Sarabun",Tahoma,sans-serif!important;
  font-size:20px!important;
  font-weight:800!important;
  font-style:normal!important;
  letter-spacing:0!important;
  dominant-baseline:central!important;
  alignment-baseline:central!important;
  stroke:none!important;
}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] :is(.rasi-style-0,.rasi-style-4,.rasi-style-8){fill:#c6463d!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] :is(.rasi-style-1,.rasi-style-5,.rasi-style-9){fill:#7a5230!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] :is(.rasi-style-2,.rasi-style-6,.rasi-style-10){fill:#3f8a4c!important}
#view-thai-astrology [data-thai-astrology-source-id="zodiacChart"] :is(.rasi-style-3,.rasi-style-7,.rasi-style-11){fill:#2f6fa7!important}
.reminder-setting-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #d9c8ab;color:#38241f}
.reminder-setting-item strong,.reminder-setting-item small{display:block;overflow-wrap:anywhere}
.reminder-setting-item small{font-size:13px;margin-top:4px;color:#645047}
.reminder-setting-item button{padding:8px 12px;color:#702633;background:#fff8e7;border:1px solid #b99658;border-radius:8px}
#androidNotificationSettings .auspicious-notification-switch{flex-shrink:0}
#androidNotificationSettings .notification-setting-row{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px}
#androidNotificationSettings .notification-setting-row>span:first-child{flex:1;min-width:0}
#androidNotificationSettings .notification-setting-row>.auspicious-notification-switch{display:inline-flex!important;flex:0 0 auto;margin-left:auto;width:auto;padding:8px;border:0;background:transparent}
#androidNotificationSettings .auspicious-notification-switch i{display:block;flex:0 0 42px}
.auspicious-notification-switch:has(input:disabled){opacity:.5}
.result-date-distance{display:inline-block;max-width:100%;padding:5px 10px;border:1px solid #986c38;border-radius:8px;background:#fff0d5;color:#593614;font-family:Sarabun,sans-serif;font-size:14px;font-weight:800;line-height:1.6;white-space:normal;vertical-align:middle}
.result-date-distance[data-period="future"]{background:#e9f3ff;border-color:#6185b0;color:#174572}
.result-date-distance[data-period="today"]{background:#e6f5e9;border-color:#538665;color:#205332}
.dasha-future-periods>details>summary{font-size:17px!important;font-weight:800!important;line-height:1.6;padding:10px 8px;color:#6e2933;cursor:pointer}
details>summary.text-collapse-summary{position:relative;padding-right:88px!important;list-style:none!important;min-height:36px;box-sizing:border-box}
details>summary.text-collapse-summary::-webkit-details-marker{display:none!important}
details>summary.text-collapse-summary::marker{content:""}
details>summary.text-collapse-summary::before{display:none!important}
details>summary.text-collapse-summary::after{content:"ขยาย"!important;position:absolute;right:8px;top:50%;transform:translateY(-50%)!important;display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:68px;height:32px;margin:0!important;padding:4px 8px;background:#e3e3e3!important;border:1px solid #bcbcbc!important;border-radius:3px;color:#6e2933!important;font:700 14px/1.3 Sarabun,sans-serif!important}
details[open]>summary.text-collapse-summary::after{content:"ย่อ"!important}
.text-collapse-summary .old-collapse-arrow,.text-collapse-summary :is(.module-chevron,.dasha-module-toggle,.dasha-major-chevron){display:none!important}
button.suri-collapse-toggle{width:auto!important;min-width:68px!important;height:36px!important;padding:5px 12px!important;border:1px solid #bcbcbc!important;border-radius:3px!important;background:#e3e3e3!important;color:#6e2933!important;font:700 14px/1.3 Sarabun,sans-serif!important;box-shadow:none!important}
