/* V136: Birth Chart page only. All existing Sky Scout page styles remain untouched. */
.sky-page-birth #skyBirthPanel{overflow:visible;}
.sky-page-birth #skyBirthPanel>.sky-chart-panel-header{margin-bottom:12px;}
.sky-page-birth .birth-name-row,
.sky-page-birth .birth-coordinates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.sky-page-birth .birth-name-row{margin:0 0 4px;}
.sky-page-birth .birth-field{min-width:0;}
.sky-page-birth .birth-field>label,
.sky-page-birth .birth-location-block>label{display:block;margin-bottom:5px;font:650 12px/1.35 'Jost',sans-serif;color:#e7d4f6;}
.sky-page-birth .birth-field>input,
.sky-page-birth #birthCity{box-sizing:border-box;width:100%;min-width:0;height:36px;min-height:36px;border:1px solid var(--sky-field-border);border-radius:18px;background:var(--sky-field-bg);box-shadow:var(--sky-field-shadow);padding:0 12px;color:#f5edff;font:400 12px/1.3 'Jost',sans-serif;}
.sky-page-birth .birth-field>input::placeholder,
.sky-page-birth #birthCity::placeholder{color:#c2a9d0;opacity:.85;}
.sky-page-birth .birth-name-row+.chart-wrap{margin-top:0!important;}
.sky-page-birth #chart{overflow:visible;}
.sky-page-birth .birth-date-row{margin-top:6px;}
.sky-page-birth .birth-unknown-label{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;color:#f5eaff;font:600 12px/1.4 'Jost',sans-serif;margin:1px auto 2px;width:100%;cursor:pointer;}
.sky-page-birth .birth-unknown-label span{font-weight:400;color:#cbb4dc;}
.sky-page-birth .birth-unknown-label input{width:16px;height:16px;accent-color:#ae75e2;margin:0 2px 0 0;}
.sky-page-birth .birth-location-block{margin:6px 0 2px;padding:12px 11px 10px;border:1px solid #8d60b055;border-radius:16px;background:#140b222e;}
.sky-page-birth .birth-location-search{display:flex;align-items:stretch;gap:7px;margin-bottom:8px;}
.sky-page-birth #birthCity{flex:1;min-width:0;}
.sky-page-birth #birthFindLocation{flex:0 0 auto;min-height:36px;padding:0 12px;border:1px solid #9f75c4;border-radius:18px;background:linear-gradient(#6d4090,#332049);color:#fff;font:700 12px 'Jost',sans-serif;}
.sky-page-birth #birthFindLocation:disabled{opacity:.48;}
.sky-page-birth .birth-coordinates{gap:8px;}
.sky-page-birth .birth-location-tip{font:400 10px/1.45 'Jost',sans-serif;color:#cdbbe1;margin:7px 0 0;}
.sky-page-birth .birth-location-tip a{color:#d8b6f9;}
.sky-page-birth .birth-place-results{display:grid;gap:4px;max-height:180px;overflow:auto;font-size:11px;color:#f1e8f9;}
.sky-page-birth .birth-place-choice{border:1px solid #9470bc;background:#39254e;color:#f7efff;text-align:left;padding:9px 11px;border-radius:9px;font-size:11px;line-height:1.4;min-height:0;}
.sky-page-birth #status{color:#e6d4fb;font-size:11px;line-height:1.5;text-align:center;min-height:14px;margin:3px 2px;}
.sky-page-birth #error{color:#ffb8ca;font-size:12px;min-height:0;line-height:1.5;text-align:center;}
.sky-page-birth .birth-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px auto 0;}
.sky-page-birth .birth-actions>button{min-height:36px;border:1px solid #ad85d8;border-radius:20px;color:#f8eeff;background:var(--sky-field-bg);font:700 13px 'Jost',sans-serif;padding:0 17px;}
.sky-page-birth .birth-actions>.birth-primary{background:var(--sky-primary-bg);box-shadow:var(--sky-primary-shadow);}
.sky-page-birth .birth-save-status{color:#dbbaff;text-align:center;font-size:11px;line-height:1.5;margin:3px 0;min-height:0;}
.sky-page-birth .birth-saved{margin:8px auto 3px;width:100%;border:1px solid #8d60b055;border-radius:14px;padding:9px 12px;background:#1a103026;}
.sky-page-birth .birth-saved h3{margin:0 0 5px;font:700 13px 'Jost',sans-serif;color:#f2e6fe;}
.sky-page-birth .birth-saved #birthSavedList>p{font-size:11px;color:#c2add5;margin:4px 0;}
.sky-page-birth .birth-saved-row{display:flex;align-items:center;gap:8px;min-height:39px;padding:4px 0;border-top:1px solid #9e78bb40;color:#e8ddf4;font-size:12px;}
.sky-page-birth .birth-saved-row span{flex:1;min-width:0;overflow-wrap:anywhere;}
.sky-page-birth .birth-saved-row button{flex:0 0 auto;padding:3px 8px;border:1px solid #8660a6;border-radius:10px;color:#f1e1ff;background:#38234e;min-height:27px;font-size:10px;}
.sky-page-birth .birth-positions{margin-top:10px!important;}
.sky-page-birth .birth-positions table{width:100%;border-collapse:collapse;}
.sky-page-birth #positions tr>td{vertical-align:middle;}
.sky-page-birth #positions .birth-planet-cell{padding-left:10px!important;}
.sky-page-birth .birth-planet-toggle{display:inline-flex;align-items:center;gap:7px;min-height:35px;padding:0;max-width:100%;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;color:#f4e9ff;font:700 13px/1.4 'Jost',sans-serif;text-align:left;cursor:pointer;white-space:nowrap;}
.sky-page-birth .birth-planet-toggle>span:first-child{width:22px;height:22px;flex:0 0 22px;}
.sky-page-birth .birth-planet-toggle .pw-rx{font-size:10px;font-weight:650;color:#c8a5db;}
.sky-page-birth .birth-detail-row td{padding:9px 16px 13px!important;background:#4a326a3d;border-bottom:1px solid #795b9b55;}
.sky-page-birth .birth-detail-row strong{display:block;font-size:12px;margin:2px 0 7px;color:#e9d7fa;}
.sky-page-birth .birth-aspect-detail{margin:5px 0 0;border:1px solid #8d6ab04d;border-radius:10px;background:#23163588;font-size:11px;color:#f8ebff;}
.sky-page-birth .birth-aspect-detail summary{cursor:pointer;padding:7px 10px;list-style:revert;}
.sky-page-birth .birth-aspect-detail p{color:#cdb7e0;margin:0;padding:0 10px 8px;line-height:1.5;}
.sky-page-birth .birth-aspect-red{color:#da7b93;}
.sky-page-birth .birth-aspect-blue{color:#8ca3e5;}
.sky-page-birth .birth-aspects-panel{padding:16px!important;overflow:hidden;}
.sky-page-birth .birth-aspects-panel h2{font:700 17px 'Jost',sans-serif;color:#f4e7ff;text-align:center;margin:0 0 7px;}
.sky-page-birth .birth-aspects-panel>p{font:400 12px/1.45 'Jost',sans-serif;color:#cdb7e0;margin:0 0 12px;text-align:center;}
.sky-page-birth .birth-grid-scroller{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 0 10px;}
.sky-page-birth .birth-triangle{table-layout:fixed;border-collapse:separate;border-spacing:2px;width:max-content;min-width:100%;font-size:12px;color:#f2e5ff;}
.sky-page-birth .birth-triangle td,.sky-page-birth .birth-triangle th{box-sizing:border-box;border:1px solid #6c4a8d85;border-radius:4px;padding:0;width:29px;height:29px;min-width:29px;text-align:center;vertical-align:middle;font-weight:400;background:#302147;}
.sky-page-birth .birth-triangle th{background:#513366;font-size:16px;color:#f6edff;}
.sky-page-birth .birth-triangle .birth-grid-empty{background:#160f26;opacity:.28;border-color:transparent;}
.sky-page-birth .birth-triangle .birth-grid-red{color:#ed8d9e;font-size:19px;}
.sky-page-birth .birth-triangle .birth-grid-blue{color:#9caff0;font-size:19px;}
@media(max-width:609px){
 .sky-page-birth .birth-name-row{gap:7px;}
 .sky-page-birth .birth-field>input{padding:0 9px;font-size:12px;}
 .sky-page-birth #skyBirthPanel{padding-bottom:14px!important;}
 .sky-page-birth .birth-positions .degree{font-size:12px;}
 .sky-page-birth .birth-location-block{padding:11px 9px;}
}

/* V138: Birth Chart-only orbital control, full-width date entry, and contained touch zoom. */
.sky-page-birth #chart{overflow:hidden;touch-action:none;}
.sky-page-birth #skyBirthPanel>.chart-wrap{overflow:hidden;}
.sky-page-birth #skyBirthPanel .birth-date-row{grid-template-columns:minmax(0,1fr)!important;}
.sky-page-birth .birth-date-picker-frame{position:relative;width:100%;min-width:0;}
.sky-page-birth .birth-date-picker-frame #chartDateTimePicker{width:100%;}
.sky-page-birth .birth-date-placeholder{position:absolute;top:50%;left:12px;right:32px;transform:translateY(-50%);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e9dbf6;font:400 12px/1.25 'Jost',sans-serif;}
.sky-page-birth .birth-date-picker-frame:not(.birth-date-unset) .birth-date-placeholder{display:none;}
.sky-page-birth .birth-date-unset #chartDateTimePicker{color:transparent!important;}
.sky-page-birth .birth-date-unset #chartDateTimePicker::-webkit-datetime-edit{opacity:0;}


/* V140: optional natal angle aspects; closed by default. */
.sky-page-birth .birth-additional-objects{position:relative;margin:0 auto 2px;width:max-content;max-width:100%;color:#efddfb;font:600 12px/1.35 'Jost',sans-serif;}
.sky-page-birth .birth-additional-objects>summary{cursor:pointer;list-style:none;min-height:32px;padding:7px 18px;border:1px solid var(--sky-field-border);border-radius:18px;background:var(--sky-field-bg);box-shadow:var(--sky-field-shadow);text-align:center;}
.sky-page-birth .birth-additional-objects>summary::-webkit-details-marker{display:none;}
.sky-page-birth .birth-additional-objects>summary::after{content:' ▾';font-size:12px;}
.sky-page-birth .birth-additional-objects[open]>summary::after{content:' ▴';}
.sky-page-birth .birth-additional-options{display:grid;gap:9px;margin-top:7px;padding:11px 13px;border:1px solid var(--sky-field-border);border-radius:14px;background:#312044;}
.sky-page-birth .birth-additional-options label{display:flex;align-items:center;gap:9px;white-space:nowrap;cursor:pointer;}
.sky-page-birth .birth-additional-options input{width:16px;height:16px;accent-color:#b77ce8;margin:0;}
.sky-page-birth .birth-additional-options label:has(input:disabled){opacity:.48;cursor:default;}
/* With no birthdate chosen, the native datetime fields stay empty and invisible
   behind the custom instruction; tapping still opens the original picker. */
.sky-page-birth .birth-date-unset #chartDateTimePicker{-webkit-text-fill-color:transparent!important;}
