/* 星屿 · a quiet little space for personal details */
.star-profile-dialog{width:min(420px,calc(100% - 32px));max-width:none;max-height:min(88dvh,680px);border:1px solid #e9ede3;border-radius:24px;padding:0;background:#fdfdf9;color:#384337;box-shadow:0 28px 90px #34433330;overflow:auto}.star-profile-dialog::backdrop{background:#34433780;backdrop-filter:blur(5px)}.sp-shell{position:relative;padding:28px}.sp-close{position:absolute;right:17px;top:15px;width:32px;height:32px;border:0;border-radius:50%;background:#eff3e9;color:#7f9074;font-size:22px;line-height:1;cursor:pointer}.sp-close:hover{background:#e5eddd}.sp-profile-head{display:flex;gap:15px;align-items:center;padding:0 34px 21px 0;border-bottom:1px solid #edf0e8}.sp-avatar{width:57px;height:57px;flex:none;display:grid;place-items:center;border-radius:19px;background:#e9f1dc;color:#9aad7a;font-size:32px;transform:rotate(-7deg)}.sp-eyebrow{font:600 9px/1.4 Arial,sans-serif;letter-spacing:1.8px;color:#a0ae94;margin:0 0 5px}.sp-profile-head h2,.sp-birthday-head h2{font-size:21px;line-height:1.35;margin:0;color:#39483a;outline:none}.sp-profile-head p:last-child,.sp-birthday-head>p:last-child{font-size:11px;color:#98a390;margin:5px 0 0}.sp-label{display:flex;justify-content:space-between;font-size:12px;font-weight:600;margin:19px 0 8px}.sp-label span{font-size:10px;font-weight:400;color:#a5ae9c}.sp-input{width:100%;min-height:46px;padding:12px 14px;border:1px solid #e4eadc;border-radius:12px;background:#fff;color:#39483a;font:inherit;font-size:13px}.sp-input::placeholder{color:#bcc5b5}.sp-birthday-trigger{width:100%;display:flex;align-items:center;gap:11px;text-align:left;background:#f5f8f0;border:1px solid #e7edde;padding:10px 13px;border-radius:13px;color:#5e7354;cursor:pointer}.sp-date-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#e7eedb;color:#95a87d;font-size:20px}.sp-birthday-trigger small,.sp-birthday-trigger strong{display:block}.sp-birthday-trigger small{font:600 8px/1.2 Arial,sans-serif;letter-spacing:1px;color:#a0ad96;margin-bottom:4px}.sp-birthday-trigger strong{font-size:12px;font-weight:600}.sp-arrow{margin-left:auto;color:#9bad8b;font-size:17px}.sp-note{font-size:10px;line-height:1.8;color:#9aa694;margin:13px 0 0}.sp-error{font-size:11px;color:#b4655c;min-height:0;margin:5px 0}.sp-error:empty{display:none}.sp-primary{display:flex;align-items:center;justify-content:center;gap:18px;border:0;background:#c6dda9;color:#42583a;font-size:12px;font-weight:600;padding:12px 20px;border-radius:11px;cursor:pointer}.sp-primary:hover{background:#b8d297}.sp-profile-head+form>.sp-primary{width:100%;margin-top:18px}.sp-journal{display:flex;justify-content:space-between;width:100%;padding:14px 3px 0;background:none;border:0;color:#829378;font-size:11px;cursor:pointer}.sp-birthday-shell{padding:27px 28px 25px}.sp-birthday-head{text-align:center;padding:0 18px 20px}.sp-moon{position:relative;display:grid;place-items:center;width:48px;height:48px;margin:0 auto 11px;border-radius:17px;background:#eeedf6;color:#a69abd;font-size:32px;line-height:1}.sp-moon i{position:absolute;font-size:10px;right:5px;top:7px;font-style:normal;color:#b5c69a}.sp-birthday-head h2{font-size:19px}.sp-date-selects{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:8px}.sp-date-selects label>span{display:block;font-size:10px;color:#87987c;margin:0 0 5px 3px}.sp-date-selects select{width:100%;min-width:0;min-height:44px;padding:0 8px;border:1px solid #e3eadb;border-radius:11px;background:#f8faf5;color:#5a6c50;font:inherit;font-size:12px}.sp-date-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}.sp-text{border:0;background:none;color:#92a088;text-decoration:underline;text-underline-offset:3px;font-size:11px;padding:9px 0;cursor:pointer}.sp-close:focus-visible,.sp-input:focus-visible,.sp-birthday-trigger:focus-visible,.sp-primary:focus-visible,.sp-journal:focus-visible,.sp-date-selects select:focus-visible,.sp-text:focus-visible{outline:3px solid #9383ac;outline-offset:3px}@media(max-width:480px){.star-profile-dialog{width:calc(100% - 30px);border-radius:20px}.sp-shell{padding:25px 22px}.sp-birthday-shell{padding:24px 22px 21px}.sp-profile-head h2{font-size:19px}.sp-birthday-head h2{font-size:18px}}
/* Compact downward menus show up to eight dates at a time. */
.sp-date-selects{position:relative}.sp-date-field{position:relative;min-width:0}.sp-date-label{display:block;font-size:10px;color:#87987c;margin:0 0 5px 3px}.sp-date-select{display:flex;align-items:center;justify-content:space-between;gap:3px;width:100%;min-height:44px;padding:0 10px;border:1px solid #e3eadb;border-radius:11px;background:#f8faf5;color:#5a6c50;font-size:12px;text-align:left}.sp-date-select svg{width:14px;height:14px;fill:none;stroke:#94a786;stroke-width:1.5;transition:transform .2s}.sp-date-select[aria-expanded=true]{background:#edf4e7;border-color:#b8cda9}.sp-date-select[aria-expanded=true] svg{transform:rotate(180deg)}.sp-date-menu{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:5;padding:5px;border:1px solid #e0e8d9;border-radius:12px;background:#fff;box-shadow:0 12px 26px #3443331c}.sp-date-menu[hidden]{display:none}.sp-date-items{display:grid;gap:1px;max-height:calc(var(--sp-row, 29px) * 8 + 7px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8d6bd transparent}.sp-date-items button{width:100%;height:var(--sp-row, 29px);padding:0 8px;text-align:left;border-radius:7px;background:transparent;color:#65765c;font-size:12px}.sp-date-items button small{margin-left:3px;color:#a9b5a2;font-size:9px}.sp-date-items button:hover,.sp-date-items button[aria-pressed=true]{background:#eaf2e3;color:#506c43}.sp-date-select:focus-visible,.sp-date-menu button:focus-visible{outline:2px solid #9383ac;outline-offset:1px}

/* The selector floats below the field without resizing the dialog. */
.star-profile-dialog.birthday-view{overflow:visible;position:fixed;top:max(8px,calc((100dvh - 620px)/2));bottom:auto;margin:0 auto;--sp-row:29px}
@media(max-height:500px){.star-profile-dialog.birthday-view{--sp-row:clamp(20px,calc((100dvh - 210px)/8),29px)}.birthday-view .sp-birthday-shell{padding-top:16px;padding-bottom:16px}.birthday-view .sp-birthday-head{padding-bottom:10px}.birthday-view .sp-moon{width:36px;height:36px;margin-bottom:5px;font-size:25px}.birthday-view .sp-note{margin-top:8px}.birthday-view .sp-date-actions{margin-top:9px}}

.star-profile-dialog.birthday-view.birthday-over-profile {
  width: min(340px, calc(100% - 24px));
  margin: 0;
  border-color: #dbe5d2;
  box-shadow: 0 14px 42px #30412f30;
}
.birthday-over-profile::backdrop { background: transparent; backdrop-filter: none; }
.birthday-over-profile .sp-birthday-shell { padding: 18px 18px 16px; }
.birthday-over-profile .sp-birthday-head { text-align: left; padding: 0 36px 13px 0; }
.birthday-over-profile .sp-birthday-head h2 { font-size: 17px; }
.birthday-over-profile .sp-moon { display: none; }
.birthday-over-profile .sp-date-label { color: #586950; font-size: .75rem; }
.birthday-over-profile .sp-birthday-head > p { color: #64725f; }
.birthday-over-profile .sp-close { top: 11px; right: 11px; width: 36px; height: 36px; color: #50664b; }
.birthday-over-profile .sp-date-actions { margin-top: 12px; }
.birthday-over-profile .sp-text { color: #5d7254; }
.sp-date-items { max-height: min(calc(var(--sp-row, 29px) * 8 + 7px), var(--sp-menu-height, 260px)); }
.sp-date-menu:not([hidden]) { animation: sp-date-show .18s ease-out both; }
@keyframes sp-date-show {
  from { opacity: .45; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}
@media(prefers-reduced-motion:reduce) {
  .sp-date-menu:not([hidden]) { animation: none; }
}
