.tn-sky .tn-lunar-mini{margin:15px 0 5px;min-width:0}
.tn-sky .tn-lunar-mini h4{font-size:15px;margin:16px 0 8px;color:inherit}
.tn-lunar-quarters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0 14px}
.tn-lunar-quarters a,.tn-lunar-quarters button{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;font-size:10px;border:1px solid #ffffff28;border-radius:9px;background:#ffffff08;padding:8px 3px;color:inherit;text-decoration:none;cursor:pointer;min-width:0;line-height:1.3}
.tn-lunar-quarters svg{width:27px;height:27px;display:block}
.tn-lunar-quarters time{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.tn-lunar-quarters a:focus-visible,.tn-lunar-quarters button:focus-visible,.tn-lunar-picks button:focus-visible{outline:2px solid #9dd6ff;outline-offset:2px}
.tn-sky .tn-lunar-reference,.tn-sky .tn-lunar-visibility{font-size:11px;line-height:1.4;color:#b8cbe5;margin:6px 0}
.tn-sky .tn-lunar-visibility{color:#ffc078}
.tn-lunar-picks{display:grid;gap:7px}
.tn-lunar-pick{border-left:2px solid #83daa5;padding:5px 0 5px 8px;line-height:1.4}
.tn-lunar-pick>a,.tn-lunar-pick>button{font-size:13px;font-weight:700;padding:0;background:none;border:0;color:#b5e3ff;cursor:pointer;text-align:left;text-decoration:underline}
.tn-lunar-pick .tn-lunar-meta{display:block;font-size:11px;color:#cad7e8;margin:3px 0}
.tn-lunar-pick p{font-size:11px;margin:4px 0!important;color:#c4d1e4;line-height:1.5}
.tn-sky .tn-lunar-open{display:block;margin-top:12px;font-size:13px;font-weight:650}
/* A fixed Kp 0–9 scale stretched into the available card height. */
.tn-sky .tn-grid .tn-card>.tn-kp-curve{flex:1;display:flex;flex-direction:column;min-height:220px;margin:12px 0 0}
.tn-sky .tn-kp-curve .tn-kp-bars{flex:1;height:auto;min-height:180px;background:repeating-linear-gradient(to top,transparent 0,transparent calc(33.333% - 1px),#ffffff20 calc(33.333% - 1px),#ffffff20 33.333%)}
.tn-sky .tn-kp-curve .tn-kp-bars::before{content:'9';position:absolute;top:0;left:0;font-size:10px;color:#b9c7df;transform:translateY(-13px)}
.tn-sky .tn-kp-curve .tn-kp-axis{flex:none}
.tn-sky .tn-kp-curve .tn-kp-tooltip{flex:none;min-height:28px}
.tn-lunar-atlas{font-family:inherit;max-width:1180px;margin:24px auto;padding:clamp(18px,3vw,36px);border-radius:20px;color:#edf3ff;background:linear-gradient(145deg,#081226,#152949);box-sizing:border-box}
.tn-lunar-atlas *{box-sizing:border-box}
.tn-lunar-atlas h2,.tn-lunar-atlas h3,.tn-lunar-atlas h4{color:inherit;margin:0 0 12px}
.tn-lunar-atlas h2{font-size:clamp(28px,3.5vw,44px);line-height:1.2;margin-top:10px}
.tn-lunar-atlas h3{font-size:20px}.tn-lunar-atlas h4{font-size:15px;margin-top:20px}
.tn-lunar-atlas p{margin:8px 0 14px;line-height:1.6}
.tn-lunar-atlas a{color:#9dd6ff}
.tn-lunar-back{font-size:13px}.tn-lunar-eyebrow{display:block;font-size:10px;letter-spacing:.18em;color:#95a9c9;margin-top:22px}
.tn-lunar-heading>p{color:#b8cbe5;max-width:720px}
.tn-lunar-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end;background:#ffffff0a;border:1px solid #ffffff20;border-radius:13px;padding:16px;margin-top:20px}
.tn-lunar-atlas label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#b8cbe5}
.tn-lunar-atlas input,.tn-lunar-atlas select{font:inherit;color:#edf3ff;background:#0b1b32;border:1px solid #5d7595;border-radius:7px;padding:9px;max-width:100%;color-scheme:dark}
.tn-lunar-atlas button{font:inherit;color:#edf3ff;background:#1e3a58;border:1px solid #64829f;border-radius:7px;padding:9px;cursor:pointer}
.tn-lunar-atlas button:focus-visible,.tn-lunar-atlas input:focus-visible,.tn-lunar-atlas select:focus-visible{outline:2px solid #9dd6ff;outline-offset:2px}
.tn-lunar-time-buttons{display:flex;gap:5px;flex-wrap:wrap;margin-left:auto;font-size:12px}
.tn-lunar-location{margin:12px 0;font-size:12px;color:#b8cbe5}.tn-lunar-location summary{cursor:pointer}.tn-lunar-location>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.tn-lunar-location input{width:150px}
.tn-lunar-error{font-size:13px;color:#ffaaaa}
.tn-lunar-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.tn-lunar-stats>div{padding:15px;border:1px solid #ffffff23;border-radius:12px;background:#ffffff07}
.tn-lunar-stats span{display:block;color:#a6b9d3;font-size:11px}.tn-lunar-stats strong{display:block;font-size:clamp(16px,2vw,24px);margin-top:7px}
.tn-lunar-body{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:18px;margin:20px 0}
.tn-lunar-map-card,.tn-lunar-sidebar,.tn-lunar-list-card{padding:20px;border:1px solid #ffffff25;border-radius:15px;background:#ffffff09;min-width:0}
.tn-lunar-map-shell{position:relative;aspect-ratio:1;background:#050b14;border-radius:12px;overflow:hidden;touch-action:none;cursor:grab}
.tn-lunar-map-shell:active{cursor:grabbing}
.tn-lunar-map,.tn-lunar-markers{position:absolute;inset:0;width:100%;height:100%;display:block}
.tn-lunar-markers [role=button]{cursor:pointer;outline:none}.tn-lunar-markers [role=button]:focus circle{stroke:#fff;stroke-width:3}
.tn-lunar-map-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0;font-size:12px}.tn-lunar-map-tools label{flex:1}.tn-lunar-map-tools input{padding:0;width:100%}
.tn-lunar-map-hint{font-size:11px;color:#adbfda}.tn-lunar-map-legend{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:10px;color:#c4d1e4}
.tn-lunar-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}.tn-good{background:#83daa5}.tn-lit{background:#ffc078}.tn-dark{background:#7c93b3}
.tn-lunar-detail h4{font-size:24px;margin-top:3px}.tn-lunar-detail p{font-size:13px;color:#c4d1e4}.tn-lunar-detail dl{font-size:12px}.tn-lunar-detail dl>div{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #ffffff1a}.tn-lunar-detail dt{color:#a6b9d3}.tn-lunar-detail dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.tn-lunar-detail a{font-size:12px}
.tn-lunar-list-tools{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin-bottom:15px}.tn-lunar-search{width:180px}.tn-lunar-count{margin-left:auto;font-size:12px;color:#a6b9d3;padding-bottom:10px}
.tn-lunar-table-wrap{overflow:auto;max-height:430px}.tn-lunar-list-card table{width:100%;border-collapse:collapse;font-size:12px}.tn-lunar-list-card th{text-align:left;padding:9px;color:#b8cbe5;font-weight:500;position:sticky;top:0;background:#132642;z-index:1}.tn-lunar-list-card td{padding:8px;border-bottom:1px solid #ffffff18}.tn-lunar-list-card td:first-child{min-width:125px}.tn-lunar-list-card td>button{padding:0;border:0;background:none;color:#a8dbff;text-decoration:underline}.tn-lunar-list-card tr[aria-selected=true]{background:#5a9fc02b}.tn-lunar-table-wrap .tn-good-text{color:#83daa5}
.tn-lunar-source{font-size:11px;color:#a9bbd6;border-top:1px solid #ffffff22;margin-top:24px;padding-top:14px}.tn-lunar-source p{margin-bottom:8px}
.tn-lunar-atlas [hidden]{display:none!important}
@media(max-width:780px){.tn-lunar-body{grid-template-columns:1fr}.tn-lunar-atlas{padding:18px}.tn-lunar-map-card,.tn-lunar-sidebar,.tn-lunar-list-card{padding:15px}.tn-lunar-time-buttons{margin-left:0}.tn-lunar-stats{gap:6px}.tn-lunar-stats>div{padding:10px}.tn-lunar-stats strong{font-size:16px}.tn-lunar-map-legend{font-size:11px}.tn-lunar-sidebar .tn-lunar-quarters{max-width:400px}.tn-lunar-list-card table{font-size:11px}}
html.tnc-night-mode .tn-lunar-atlas{color:#f5b5a5;background:#180706}html.tnc-night-mode .tn-lunar-atlas input,html.tnc-night-mode .tn-lunar-atlas select,html.tnc-night-mode .tn-lunar-atlas button{color:#f5b5a5;background:#30110d;border-color:#793333}
