/* Janma v4: day bar, toolbar rows, day chart panel, sticky bottom ad */
.daybar{grid-template-columns:auto 1fr auto;align-items:center}
.daybar .dm{display:flex;align-items:center}.daybar .mph{display:block}
.daybar .dl b{font-size:18px}.daybar .dl .lk{color:#fff8c0}.daybar .dcity{opacity:.95}
.daybar .dr{flex-direction:column;gap:2px;align-items:center;text-align:center}
.daybar .dnum{font-size:22px;font-weight:700}.daybar .dmy{font-weight:700;font-size:14px}.daybar .dwk{font-size:14px}
.daybar .fl{text-align:center}.daybar .fl a{margin-right:4px}
.tool{display:block;padding:0;background:#f8b867}
.tool .crow{display:flex;align-items:center;gap:8px;padding:6px 8px;border-bottom:1px solid #e9a453}
.tool .crow .cf{flex:1}.tool .crow .cf input{width:min(260px,60vw);border:2px solid #d9a441;background:#fff}
.tool .crow .pin{font-size:18px}.tool .tgl{margin-left:auto;background:#f6c88e}
.tool .ibar{display:flex;flex-wrap:wrap;justify-content:center;border-bottom:1px solid #e9a453}
.tool .ib{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:92px;padding:8px 6px;background:none;border:0;border-left:1px solid #e9a453;font:12px system-ui;color:#4a2a10;cursor:pointer;text-decoration:none}
.tool .ib:last-child{border-right:1px solid #e9a453}.tool .ib .ic{font-size:22px;line-height:24px;height:24px}.tool .ib.on{background:#f3a54d}.tool .ib:hover{background:#f6c88e}
.tool .tfi{cursor:default}.tool .tfi .seg{flex-wrap:wrap;justify-content:center}
.tool .ptool{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:5px 8px;font-size:13px}.tool .ptool:empty{display:none}
.tool.closed>*:not(.tgl){display:revert}#tool.closed .ibar,#tool.closed .ptool{display:none}#tool.closed .crow{display:flex;border:0}
.dcw{background:#d9d9ad;border:1px solid #b9b98a;margin:8px auto 12px;max-width:640px;padding:0}
.dc2{display:block;width:100%;height:auto}.dc2 a text{fill:#2b2118}.dc2 a:hover text{fill:#b42318;text-decoration:underline}
.dcn{font-size:11px;margin:2px 6px 4px}
.hcards{margin-top:8px}
.adb{position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;box-shadow:0 -2px 10px #0003;transition:transform .2s}
.adb .adbi{height:70px;display:flex;align-items:center;justify-content:center;color:#9a7a4a;font-size:12px;border-top:1px dashed #b98b45}
.adb .chev{position:absolute;left:50%;top:-22px;transform:translateX(-50%);width:54px;height:22px;border:0;border-radius:6px 6px 0 0;background:#fff;box-shadow:0 -2px 6px #0002;cursor:pointer;font-size:16px;line-height:16px}
.adb.min{transform:translateY(70px)}.adb.min .chev{transform:translateX(-50%) rotate(180deg)}
body{padding-bottom:96px}body.noads .adb{display:none}body.noads{padding-bottom:0}
@media print{.adb{display:none!important}}
@media(max-width:700px){.daybar{grid-template-columns:auto 1fr}.daybar .dr{grid-column:1/-1;flex-direction:row;gap:8px}.tool .ib{min-width:70px}}
.igrid{width:100%;table-layout:fixed;border-collapse:collapse}.igrid td{vertical-align:top;height:72px;font-size:11px;border:1px solid var(--line,#ddd);padding:3px}.igrid td.on{background:rgba(255,200,0,.18)}
.jic{width:1.15em;height:1.15em;vertical-align:-.22em;margin-right:.3em;flex:none}
.card h3 .jic{width:1.25em;height:1.25em}
.kundali.kn{max-width:480px;background:none;border-radius:4px}
.kundali .hg{cursor:pointer}.kundali .hs{transition:fill .15s}.kundali .hg:hover .hs{fill:#ffbf66}.kundali .hg:hover .pl,.kundali .pl:hover{font-weight:800;text-decoration:underline}
.kchart{display:block;cursor:pointer}
.kcap{text-align:center;font-weight:600;color:#7a1f1f;margin:2px 0 8px}
.ptab td{background:#fff5e1}.ptab tr:nth-child(even) td{background:#fde6bd}.ptab td .jic{width:1.05em;height:1.05em}
.more2{text-align:right;margin:4px 2px 0}.more2 a{font-weight:700;color:#7a1f1f;text-decoration:underline}
.fban{margin:0 0 12px;display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.fban img,.fban>svg{width:270px;height:180px;border-radius:10px;border:1px solid var(--line);object-fit:cover}.fban figcaption{font-size:12px;color:#6b5a45;max-width:420px}
.mc .ft .jic{width:12px;height:12px;margin-right:2px}
html,body{overflow-x:clip}.adb .adbi{max-width:100%;box-sizing:border-box}.search{min-width:0}.search input{min-width:0;flex:1}.search button{flex:none}
.mgrid{overflow-x:auto;max-width:100%}.kundali{width:100%;height:auto}.kc,.kctl{max-width:100%;box-sizing:border-box;min-width:0}.kgrid>*{min-width:0}.tb .pi{width:14px;height:14px;vertical-align:-2px;margin-right:3px}
@media(max-width:600px){.g2{grid-template-columns:1fr!important}.kmenu{display:flex;overflow-x:auto;gap:2px;max-width:100%}.kmenu a{flex:none;margin:0;min-height:40px;box-sizing:border-box;display:flex;align-items:center}.dcw{overflow-x:auto;max-width:100%}.dcw>svg{min-width:700px}.tool .ibar{display:grid;grid-template-columns:repeat(3,1fr)}.tool .ib{min-width:0;border-left:0;border-right:1px solid #e9a453;border-bottom:1px solid #e9a453}.crow .cf input{width:100%;box-sizing:border-box}.tb,.btn,#nav a,.kctl select,.seg button,.ptab a,.hb{min-height:40px;box-sizing:border-box}.tb{display:inline-flex;align-items:center}}
@media(max-width:600px){table{display:block;overflow-x:auto;max-width:100%}.mhead{flex-wrap:wrap}.g2>*,.g3>*,.g21>*,.mon>*{min-width:0}.tb{white-space:normal;max-width:100%}.rtab{flex-wrap:wrap}input,select,.more,.chip,.in>a,h3>a{min-height:40px;box-sizing:border-box}.in>a,h3>a,.more{display:flex;align-items:center}.chip{display:inline-flex;align-items:center}.more{justify-content:flex-end}}
@media(max-width:480px){header .search{flex-basis:100%;order:9}}
@media(max-width:480px){.hrow{gap:5px;padding:6px 8px}.logo{font-size:18px;gap:3px}.logo svg{width:26px;height:26px}header .hb{padding:4px 7px;font-size:12px}.clock{font-size:12px;white-space:nowrap}.tool .ibar{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.tool .tfi{grid-column:1/-1;border-right:0;padding:6px}.tool .tfi .seg{display:flex;flex-wrap:nowrap;width:100%}.tool .tfi .seg button{flex:1}}
@media(max-width:600px){.logo,.clock,.daybar .dr{min-height:40px;display:inline-flex;align-items:center;box-sizing:border-box}.fdir a{display:block;min-height:24px;line-height:24px}.hrow{gap:4px;padding:6px}.logo{font-size:16px}#lang{max-width:74px}#noads{padding:4px 5px}.clock{font-size:11px;margin-left:auto}.tool .tfi .seg button{justify-content:center;text-align:center}}
a.mc{display:block;text-decoration:none}.mc .wd{text-align:center;font-size:10px}
.ktog{display:flex;flex-wrap:wrap;gap:3px;margin:4px 0}.ktog .tb{opacity:.55}.ktog .tb.on{opacity:1}
.adb .adx{position:absolute;right:6px;top:6px;width:32px;height:32px;border:1px solid #d9b98a;border-radius:50%;background:#fff;color:#5a3a1a;font-size:20px;line-height:1;cursor:pointer;z-index:1}
body.adx .adb{display:none}
svg.jic.ri,.card h3 svg.jic.ri{width:18px;height:18px}
/* ads off unless shell.js ADS flag adds body.ads */
body:not(.ads) .ad,body:not(.ads) .adb,body:not(.ads) #noads{display:none!important}body:not(.ads){padding-bottom:0}
#daybar:empty{min-height:120px}#view{min-height:70vh}.upd{margin:4px 16px;font-size:12px;color:#6b4a2a}
