/* A compact, stable surface; stars and navigation stay outside the editor. */
.af-refresh .parameters-sheet.af-birth-sheet {border:1px solid #c5b5ee29!important;border-radius:24px!important;background:linear-gradient(145deg,#171c30,#101525)!important;box-shadow:0 24px 80px #0004,inset 0 1px #ffffff08;overflow:auto;scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#b496d53b transparent}
.af-refresh[data-route="calculate"] #parameters-layer {padding-top:calc(var(--header-h) + 20px);padding-bottom:24px;min-height:100dvh}
.af-refresh[data-route="calculate"] .af-birth-sheet {width:min(680px,100%);max-width:680px;overflow:visible}
.af-refresh .af-birth-sheet .sheet-header {position:static;padding:24px 28px 12px!important;border-bottom:0!important;gap:16px;background:transparent!important}
.af-refresh .af-birth-sheet .sheet-header>div>span {display:block;color:#bcabda;font-size:10px;letter-spacing:.16em;margin-bottom:10px}
.af-refresh .af-birth-sheet .sheet-header h1 {font-size:30px!important;font-weight:500!important;letter-spacing:-.035em;line-height:1.18!important}
.af-refresh .af-birth-sheet .sheet-close {border:1px solid #bda4e32b!important;border-radius:50%;background:#bfa4e60c!important;color:#dacbf0}
.af-refresh .af-birth-sheet .parameters-form {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:16px!important;padding:0 28px 24px!important;overflow:visible}
.af-birth-intro {grid-column:1/-1;color:#a8a3b9;font-size:13px;line-height:1.5;margin:0 0 4px}
.af-birth-intro i {display:none}
.af-refresh .af-birth-sheet .form-field {min-width:0;align-content:start;gap:7px;margin:0;position:relative}
.af-refresh .af-birth-sheet .form-field>span,.af-refresh .af-birth-sheet .form-field>label {font-size:12px!important;font-weight:500;color:#cfc6df!important;letter-spacing:.015em;line-height:1.4;margin:0}
.af-refresh .af-birth-sheet input:not([type="hidden"]):not([type="checkbox"]) {box-sizing:border-box;width:100%;height:48px!important;min-height:48px;border:1px solid #b6a1d134!important;border-radius:12px!important;background:#0b1020!important;color:#f1e8ff;font:inherit;font-size:16px!important;line-height:1.5;box-shadow:inset 0 1px #ffffff05;transition:border-color .18s,background .18s,box-shadow .18s}
.af-refresh .af-birth-sheet :where(input:not([type="hidden"]):not([type="checkbox"])) {padding:0 12px!important}
.af-refresh .af-birth-sheet input::placeholder {color:#9e94b2;opacity:1}
.af-refresh .af-birth-sheet input:focus {outline:0;border-color:#c5a4ef90!important;box-shadow:0 0 0 3px #b395e015!important;background:#19223c55!important}
.af-refresh .af-birth-sheet input[aria-invalid="true"] {border-color:#e8a0a0b0!important}
.af-birth-input-wrap {position:relative;display:flex;align-items:center}
.af-refresh .af-birth-sheet .af-birth-input-wrap input {padding-right:46px!important;letter-spacing:0}
.af-refresh .af-birth-sheet .af-birth-input-wrap input.af-mask-active {color:#f1e8ff;caret-color:#f1e8ff;font-variant-numeric:tabular-nums}
.af-birth-sheet input.af-mask-active::selection {color:#fff;background:#76569b}
.af-birth-trigger {position:absolute;right:2px;top:2px;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:#b4a3ce;cursor:pointer;transition:background .18s,color .18s}
.af-birth-trigger svg {width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.5}
.af-birth-trigger:hover,.af-birth-trigger[aria-expanded="true"] {background:#bda0e529;color:#eee0ff}
.af-gender-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;box-sizing:border-box;width:100%;height:48px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.af-gender-options button {position:relative;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 6px;border:1px solid #b6a1d134;border-radius:12px;background:#0b1020;font:inherit;font-size:13px;line-height:1.4;color:#bfb3cf;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.af-gender-options button:hover {border-color:#bca1df70;background:#211e38;color:#f2e8ff}
.af-gender-options button[aria-checked="true"] {border-color:#c5a4ef90;background:linear-gradient(125deg,#3b2e51,#28253f);color:#f5ecff}
.af-gender-options button:focus-visible {outline-offset:-2px}
.af-gender-icon {display:flex;flex:0 0 28px;color:#b9a4d7;transition:color .2s,transform .26s}
.af-gender-icon svg {width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.af-gender-icon .af-gender-orbit {stroke-width:.8;opacity:.3}
.af-gender-icon .af-gender-star {fill:currentColor;stroke:none;opacity:.6}
.af-gender-label {font-weight:500;white-space:nowrap;letter-spacing:.005em}
.af-gender-check {display:flex;flex:0 0 10px;color:#d8c1f3;opacity:0;transform:scale(.6);transition:opacity .18s,transform .22s}
.af-gender-check svg {width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.af-gender-options button[aria-checked="true"] .af-gender-icon {color:#e5ccff;transform:rotate(-5deg)}
.af-gender-options button[aria-checked="true"] .af-gender-orbit {opacity:.6}
.af-gender-options button[aria-checked="true"] .af-gender-check {opacity:1;transform:none}
.af-refresh .af-birth-sheet .af-unknown-time {grid-column:1/-1;display:flex;align-items:center;gap:12px;width:fit-content;margin-top:-8px;font-size:13px;color:#bcb0ce;cursor:pointer;min-height:32px}
.af-refresh .af-birth-sheet .af-unknown-time input {appearance:none;-webkit-appearance:none;width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;padding:0!important;margin:0;border:1px solid #bba1d955!important;border-radius:6px!important;background:#171f343d!important;box-shadow:none;display:grid;place-items:center;cursor:pointer;transition:background .2s,border-color .2s;flex:0 0 20px}
.af-refresh .af-birth-sheet .af-unknown-time input:checked {background:#b194d8!important;border-color:#cbb4ec!important}
.af-unknown-time input:checked::after {content:'✓';font-size:14px;line-height:1;color:#111425}
.af-time-disabled .af-birth-input-wrap {opacity:.6}
.af-refresh .af-time-disabled .af-birth-input-wrap input {padding-right:12px!important;font-family:inherit;font-size:14px!important}
.af-time-disabled .af-birth-trigger {visibility:hidden}
.af-time-disabled .af-birth-trigger {cursor:default}
.af-birth-note {grid-column:1/-1;color:#b7a7cc;font-size:12px;line-height:1.5;margin:-8px 0 0;padding-left:32px;overflow:hidden}
.af-refresh .af-birth-sheet .form-field>.af-birth-error {color:#f0b0b9;font-size:11px;line-height:1.4}
.af-birth-error[hidden] {display:none}
.af-birth-note[hidden] {display:none}
.af-refresh .af-birth-sheet .smart-combobox>small,.af-refresh .af-birth-sheet .form-field>small {color:#9188a2;font-size:11px;line-height:1.6;margin:0}
.af-birth-sheet .combobox-list:not([hidden]) {animation:af-birth-options-in .18s ease-out}
@keyframes af-birth-options-in {from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.af-refresh .af-birth-sheet .af-birth-location {grid-column:1/-1;padding-top:0}
.af-birth-extra {grid-column:1/-1;margin:0;border-top:1px solid #bea6dc20;color:#b7a8ce}
.af-birth-extra>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:12px 0;border:0;border-radius:0;background:transparent;font-size:12px;line-height:1.5;cursor:pointer;min-height:48px}
.af-birth-extra>summary::-webkit-details-marker {display:none}
.af-birth-extra>summary::after {content:'+';flex:0 0 20px;text-align:center;font-size:19px;line-height:1;color:#c4ace3;transition:transform .26s}
.af-birth-extra[open]>summary::after {transform:rotate(45deg)}
.af-birth-extra[data-disclosure-open="false"]>summary::after {transform:rotate(0)}
.af-birth-extra-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:8px 0 0}
.af-birth-extra-fields>.full {grid-column:1/-1}
.af-refresh .af-birth-sheet .af-fold-time {margin:0;grid-column:1/-1;line-height:1.5}
.af-refresh .af-birth-sheet .sheet-actions {grid-column:1/-1;margin:0;padding:14px 0 0;border-top:1px solid #bca0db20;display:flex;align-items:center;justify-content:space-between;gap:12px}
.af-refresh .af-birth-sheet .sheet-actions>.calculate-button {min-height:48px;border-radius:12px!important;background:linear-gradient(120deg,#bb9cdd,#aa8bce)!important;color:#131322!important;box-shadow:0 8px 30px #b494d118;font-size:14px!important;font-weight:600;min-width:210px;justify-content:center;padding:0 22px!important;transition:filter .2s,transform .2s}
.af-refresh .af-birth-sheet .sheet-actions>.calculate-button:hover {filter:brightness(1.1);transform:translateY(-1px)}
.af-refresh .af-birth-sheet .sheet-actions>.ghost-button {min-height:46px;font-size:12px;background:transparent!important;color:#b5a5ca;border:0;padding:8px 4px}
.af-refresh .af-birth-sheet .af-form-unchanged {grid-column:1/-1;color:#9c91af;font-size:12px;margin:0;line-height:1.6}
.af-birth-picker-popover {position:absolute;top:calc(100% + 10px);left:0;width:320px;max-width:calc(100vw - 48px);box-sizing:border-box;z-index:210;padding:16px;border:1px solid #cfb0f343;border-radius:20px;background:rgba(19,23,42,.97);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);box-shadow:0 20px 65px #0006,inset 0 1px #ffffff09;opacity:0;transform:translateY(-7px) scale(.985);transform-origin:top left;transition:opacity .18s,transform .18s;}
.af-birth-picker-popover.is-open {opacity:1;transform:none}
.af-birth-picker-popover[hidden] {display:none}
.af-calendar-header {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}
.af-calendar-header>div {display:flex;gap:4px}
.af-birth-picker-popover button {font:inherit;font-size:13px;color:#d7cce7;background:transparent;border:1px solid transparent;border-radius:9px;min-height:34px;padding:5px 9px;cursor:pointer;transition:background .15s,border-color .15s}
.af-calendar-header>button {font-size:23px;padding:0;width:34px}
.af-birth-picker-popover button:hover {background:#b69bdb1c}
.af-birth-picker-popover button:disabled {opacity:.25;cursor:default}
.af-calendar-week,.af-calendar-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.af-calendar-week {margin-bottom:7px;text-align:center;font-size:10px;color:#9e8eae}
.af-birth-picker-popover .af-calendar-day {font-size:12px;padding:0;min-height:35px;font-variant-numeric:tabular-nums}
.af-calendar-day.is-outside {color:#81768e}
.af-calendar-day.is-today {border-color:#b59ace48}
.af-birth-picker-popover button[aria-pressed="true"],.af-birth-picker-popover button[aria-selected="true"] {background:#bd9ddd2e;border-color:#c8a6e67a;color:#f5eaff}
.af-calendar-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.af-calendar-choices button {min-height:45px;font-size:12px;padding:5px}
.af-birth-picker-popover footer {display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #b69bd921;margin-top:13px;padding-top:10px}
.af-birth-picker-popover footer>span {font-size:10px;color:#9e8eae}
.af-birth-picker-popover footer>button {background:#b396d81c;color:#d9c0f1;padding:5px 12px}
.af-time-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.af-time-columns h3 {margin:0 0 12px;text-align:center;font-size:11px;letter-spacing:.05em;color:#b5a0ca;font-weight:500}
.af-time-list {max-height:220px;overflow:auto;display:flex;flex-direction:column;gap:3px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b496d53b transparent}
.af-time-list button {flex:0 0 36px;font-size:16px;font-variant-numeric:tabular-nums}
.af-smooth-details {box-sizing:border-box}
.af-time-uncertainty {margin:0 0 20px;padding:14px 18px;border:1px solid #c2a8e32c;border-radius:14px;background:#b699dc0b;font-size:12px;line-height:1.65;color:#bdaeCB;max-width:78ch}
.af-birth-sheet :is(button,input,summary):focus-visible {outline:2px solid #d1b1f4;outline-offset:3px}
.af-birth-sheet #gender[aria-invalid="true"]+.af-gender-options button {border-color:#e8a0a0b0}
@media(max-width:540px){.af-section-tabs a{white-space:normal;min-width:0;text-align:center;line-height:1.35}}
@media(max-width:560px){
  .af-refresh .af-birth-sheet {border-radius:18px!important;max-width:100%;}
  .af-refresh .af-birth-sheet .sheet-header {padding:18px 16px 10px!important;gap:12px}
  .af-refresh .af-birth-sheet .sheet-header>div>span {font-size:9px;margin-bottom:6px}
  .af-refresh .af-birth-sheet .sheet-header h1 {font-size:26px!important}
  .af-refresh .af-birth-sheet .parameters-form {grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);padding:0 16px 16px!important;gap:12px 10px!important}
  .af-refresh .af-birth-sheet .af-birth-input-wrap input {padding-left:10px!important;padding-right:44px!important;font-size:16px!important}
  .af-refresh .af-birth-sheet .parameters-form>.form-field:not(.af-birth-field) {grid-column:1/-1}
  .af-birth-intro {font-size:12px;margin-bottom:0}
  .af-birth-extra-fields {gap:12px}
  .af-birth-picker-popover {width:100%;max-width:none;padding:13px;border-radius:17px}
  .af-refresh .af-birth-sheet .sheet-actions {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding-top:12px}
  .af-refresh .af-birth-sheet .sheet-actions>.calculate-button {width:100%;min-width:0;font-size:13px!important;padding-inline:12px!important}
  .af-refresh .af-birth-sheet .sheet-actions>.ghost-button {width:auto;min-height:44px;text-align:left;padding-inline:0;font-size:11px}
  .af-refresh .af-birth-sheet .af-unknown-time {font-size:12px;gap:10px;margin-top:-6px;width:auto}
  .af-birth-note {padding-left:30px;margin-top:-8px}
  .af-time-uncertainty {margin:0 0 14px;font-size:11px;padding:12px 14px}
}
@media(max-width:560px) and (max-height:800px){
  .af-refresh .af-birth-sheet .sheet-header>div>span {display:none}
  .af-refresh .af-birth-sheet .sheet-header {padding-block:12px 8px!important}
  .af-refresh .af-birth-sheet .parameters-form {row-gap:10px!important;padding-bottom:12px!important}
  .af-birth-intro {display:none}
}
@media(max-width:379px){
  .af-refresh .af-birth-sheet .af-birth-field {grid-column:1/-1}
  .af-refresh .af-birth-sheet .sheet-header h1 {font-size:24px!important}
  .af-refresh .af-birth-sheet .sheet-actions {grid-template-columns:minmax(0,1fr)}
  .af-refresh .af-birth-sheet .sheet-actions>.ghost-button {width:100%;text-align:center}
}
@media(prefers-reduced-motion:reduce){.af-birth-sheet *, .af-birth-picker-popover {transition:none!important;animation:none!important}}
html[data-motion-paused="true"] .af-gender-options button {transition:none!important}
