.profile-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(540px,calc(100vw - 36px));max-height:calc(100svh - 40px);border:1px solid #e4e6d6;border-radius:16px;background:#f4f2e9;color:#31473e;box-shadow:0 25px 90px #020c1870;overflow:auto;overscroll-behavior:contain;font-family:var(--sans,system-ui,sans-serif)}.profile-dialog::backdrop{background:#091a28b8;backdrop-filter:blur(8px)}.profile-dialog *{box-sizing:border-box}.profile-dialog button,.profile-dialog input,.profile-dialog select{font:inherit}.profile-dialog button{cursor:pointer;touch-action:manipulation}.profile-dialog :focus-visible{outline:2px solid #77905f;outline-offset:3px}.profile-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 26px;border-bottom:1px solid #d9decc;background:#f4f2e9f5;backdrop-filter:blur(10px)}.profile-header p{font-size:8px;color:#8b9078;letter-spacing:.17em;margin:0 0 8px}.profile-header h2{font-family:var(--serif);font-size:25px;font-weight:500;letter-spacing:-.04em;margin:0}.profile-close{width:35px;height:35px;border:1px solid #cfd7c4;border-radius:50%;padding:0;background:none;color:#61735a;font-size:25px!important;flex-shrink:0}.profile-form{padding:23px 26px 25px}.profile-lead{font-size:12px;line-height:1.9;color:#728069;margin:0 0 24px;word-break:keep-all}.profile-field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#526649;min-width:0}.profile-field small{display:inline;color:#8a947e;font-size:10px;font-weight:400}.profile-field input,.profile-field select{width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #c9d3bf;border-radius:8px;background:#fcfbf2;color:#314b38;font-size:16px}.profile-field input::placeholder{color:#9ba38f;font-size:13px}.profile-field input:disabled,.profile-field select:disabled{opacity:.4}.profile-form fieldset{padding:0;border:0;min-width:0;margin:22px 0}.profile-form legend{font-size:12px;color:#526649;margin-bottom:11px;padding:0}.profile-gender{display:flex;gap:9px}.profile-gender label{flex:1;position:relative}.profile-gender input{position:absolute;left:14px;top:15px;accent-color:#57774b}.profile-gender span{display:block;text-align:center;padding:12px 10px 12px 25px;border:1px solid #c9d3bf;border-radius:8px;background:#faf9f0;font-size:13px;color:#708166}.profile-gender input:checked+span{background:#e6ecd9;border-color:#799365;color:#3a5938}.profile-gender input:focus-visible+span{outline:2px solid #799365;outline-offset:3px}.profile-date{display:grid;grid-template-columns:135px 1fr;gap:11px}.profile-help{font-size:10px;line-height:1.8;color:#829076;margin:9px 0 0}.profile-time>div{display:grid;grid-template-columns:1fr 1fr;gap:11px}.profile-time .profile-check{margin:12px 0 0}.profile-check{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.8;color:#607551}.profile-check input{width:17px;height:17px;margin:2px 0 0;flex-shrink:0;accent-color:#57774b}.profile-check small{display:block;color:#8a947f;font-size:10px;line-height:1.9;margin-top:4px;word-break:keep-all}.profile-remember{padding:14px;border:1px solid #d1d9c5;border-radius:9px;background:#e9edde}.profile-privacy{font-size:10px;line-height:1.9;color:#89947c;margin:15px 0 12px;word-break:keep-all}.profile-status{font-size:11px;color:#5b7b4e;line-height:1.8;min-height:20px;margin:0 0 12px;word-break:keep-all}.profile-status.is-error{color:#a65048}.profile-save{width:100%;min-height:46px;border:0;border-radius:8px;background:#405f43;color:#f4ecd8;font-size:12px!important;padding:13px}.profile-save:disabled{opacity:.6;cursor:progress}.profile-delete{display:block;margin:14px auto 0;border:0;background:none;color:#8b776c;font-size:10px!important;text-decoration:underline;text-underline-offset:4px;padding:8px}.profile-delete[hidden]{display:none}.has-profile{position:relative}.has-profile:after{content:'';position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:#d9c998;border:2px solid #254037}
@media(max-width:760px){.profile-dialog{width:calc(100vw - 28px);max-height:calc(100svh - 28px);border-radius:13px}.profile-header{padding:19px}.profile-header h2{font-size:23px}.profile-form{padding:21px 19px}.profile-lead{font-size:11px}.profile-date{grid-template-columns:110px 1fr;gap:9px}.profile-field{font-size:11px}.profile-field input,.profile-field select{padding:10px;font-size:16px}.profile-field small{font-size:9px}.profile-form fieldset{margin:21px 0}.profile-remember{padding:12px}.profile-check{font-size:11px}.profile-check small{font-size:9px}}
@media(max-width:350px){.profile-date{grid-template-columns:1fr}.profile-header h2{font-size:21px}.profile-field{gap:7px}.profile-form{padding:18px}.profile-field small{display:block}}

/* Keep the explanation next to the field that needs attention. */
.profile-dialog .profile-field-error{grid-column:1/-1;flex-basis:100%;margin:7px 0 0;color:#984337;font-size:13px;line-height:1.8;font-weight:500;word-break:keep-all}
.profile-dialog [aria-invalid=true]{border-color:#a85848;outline-color:#a85848}
.profile-dialog .profile-gender:has([aria-invalid=true]){padding:10px;border:1px solid #c69789;border-radius:8px}
.profile-dialog .profile-status.is-error:not(:empty){padding:12px 14px;border-left:3px solid #a85848;background:#f7ece6;color:#823d32}
.profile-dialog .profile-gender{flex-wrap:wrap}
.profile-dialog .profile-gender label{flex:1 1 calc(50% - 5px);min-width:0}
.profile-dialog .profile-gender span{white-space:nowrap}
