[data-planet-detail]{cursor:pointer;pointer-events:all;touch-action:manipulation;outline:none}
tspan[data-planet-detail]{stroke:transparent;stroke-width:3px;paint-order:stroke fill}
tspan[data-planet-detail]:hover,tspan[data-planet-detail]:focus-visible{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;stroke:#d9b67788}
.wheel-marker[data-planet-detail]:hover .wheel-marker-disc,.wheel-marker[data-planet-detail]:focus-visible .wheel-marker-disc{stroke:#b48941;stroke-width:5px}
.planet-detail-hint{font-size:.78rem;line-height:1.7;color:#886225;margin:6px 0 12px;text-align:center}
.planet-detail-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #e8ddcb;border-radius:18px;background:#fffdf9;color:#302321;overflow:hidden;font-family:Sarabun,system-ui,sans-serif}
.planet-detail-dialog[open]{display:flex;flex-direction:column}
.planet-detail-dialog::backdrop{background:#28140fc2;backdrop-filter:blur(3px)}
.planet-detail-header{display:flex;align-items:center;gap:14px;padding:20px 22px;border-bottom:1px solid #e8ddcb;flex-shrink:0}
.planet-detail-heading{min-width:0;flex:1}
.planet-detail-heading p{margin:0 0 3px;font-size:13px;line-height:1.7;color:#76675e;overflow-wrap:anywhere}
.astrologer-main .planet-detail-heading h2{font-size:22px;line-height:1.6;margin:0;color:#65090d}
.planet-detail-glyph{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0;font-size:28px;background:#1455c5;color:#fff;line-height:1.6}
.planet-detail-dialog.is-transit .planet-detail-glyph{background:#ff762d}
.planet-detail-dialog button{min-width:44px;min-height:44px;border:1px solid #e8ddcb;border-radius:10px;font:inherit;color:#65090d;background:#fff;padding:9px 16px;cursor:pointer;line-height:1.5}
.planet-detail-dialog .planet-detail-close{font-size:26px;padding:0;flex-shrink:0;line-height:1}
.planet-detail-dialog button:focus-visible{outline:2px solid #886225;outline-offset:3px}
.planet-detail-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:20px 22px;font-size:calc(15px * var(--astrologer-font-scale,1));line-height:1.8;overflow-wrap:anywhere}
.planet-detail-summary{padding:13px 16px;border-left:3px solid #d9b677;border-radius:0 8px 8px 0;background:#faf2e4;margin:0 0 18px;color:#65090d}
.planet-detail-facts{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:0 18px;margin:0}
.planet-detail-facts dt,.planet-detail-facts dd{padding:11px 0;margin:0;border-bottom:1px solid #eee5d8;line-height:1.8;min-width:0}
.planet-detail-facts dt{font-weight:400;color:#76675e}.planet-detail-facts dd{font-weight:600;color:#302321}
.planet-detail-note{font-size:.85em;line-height:1.8;color:#76675e;margin:18px 0 0}
.planet-detail-footer{padding:14px 22px;border-top:1px solid #e8ddcb;flex-shrink:0;display:flex;justify-content:flex-end}
@media(max-width:480px){.planet-detail-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.planet-detail-header{padding:14px;gap:10px}.planet-detail-glyph{width:40px;height:40px;font-size:25px}.astrologer-main .planet-detail-heading h2{font-size:19px}.planet-detail-heading p{font-size:12px}.planet-detail-body{padding:14px;font-size:calc(15px * var(--astrologer-font-scale,1))}.planet-detail-facts{grid-template-columns:minmax(0,1fr)}.planet-detail-facts dt{padding:10px 0 0;border-bottom:0;font-size:.87em}.planet-detail-facts dd{padding:2px 0 10px}.planet-detail-footer{padding:12px 14px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.planet-detail-footer button{width:100%}}
@media print{.planet-detail-dialog,.planet-detail-hint{display:none!important}}
