.yearin-profile-section{margin:24px 0;padding:24px 0;border-top:1px solid #dfd4c2;border-bottom:1px solid #dfd4c2;text-align:center}
.yearin-profile-avatar{display:grid;place-items:center;width:92px;height:92px;margin:0 auto 18px;border:3px solid #fffaf0;border-radius:50%;outline:1px solid #c4a474;background:linear-gradient(145deg,#425b38,#223d2d);color:#ead3a8;font:500 30px Newsreader,Georgia,serif;overflow:hidden;box-shadow:0 8px 24px #273c2520}
.yearin-profile-avatar img{width:100%;height:100%;object-fit:cover}
.yearin-profile-section h3{margin:0 0 8px;font:500 25px Newsreader,Georgia,serif;color:#23402d}
.yearin-profile-section p{margin:0 auto 16px;max-width:30ch;font-size:12px;line-height:1.6;color:#766b5d}
.yearin-profile-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.yearin-profile-actions button,.yearin-photo-actions button{min-height:44px;padding:10px 20px;border:1px solid #c9baa2;border-radius:999px;background:#fffaf1;color:#314731;font:600 12px 'DM Sans',system-ui,sans-serif;cursor:pointer}
.yearin-profile-actions [data-choose-photo],.yearin-photo-actions [data-save-photo]{background:#2d4833;border-color:#2d4833;color:#fff8ed}
.yearin-profile-section input[type=file]{display:none}
.yearin-profile-section [role=status]{min-height:1.2em;margin:12px 0 0;font-size:12px;color:#3e6041}
.yearin-profile-section .error,.yearin-photo-editor .error{color:#a1412b}
.yearin-profile-button{position:relative;overflow:hidden}
.yearin-profile-button img[data-yearin-avatar-image]{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;border-radius:50%;pointer-events:none}
.yearin-profile-button.has-photo>svg{visibility:hidden}
.yearin-photo-editor{position:fixed;inset:0;margin:auto;height:fit-content;width:min(calc(100% - 32px),440px);max-height:calc(100dvh - 32px);overflow:auto;padding:30px;border:1px solid #d6c3a4;border-radius:24px;background:#fff9ee;color:#263d2c;box-shadow:0 24px 90px #08130a60;font-family:'DM Sans',system-ui,sans-serif}
.yearin-photo-editor::backdrop{background:#14231bc9;backdrop-filter:blur(6px)}
.yearin-photo-editor h2{margin:0 0 10px;font:500 31px Newsreader,Georgia,serif;text-align:center}
.yearin-photo-editor>p{margin:0 auto 20px;color:#786b5a;font-size:12px;line-height:1.6;text-align:center;max-width:32ch}
.yearin-photo-editor canvas{display:block;width:min(100%,256px);height:auto;aspect-ratio:1;border-radius:50%;margin:0 auto 24px;border:3px solid #fff;outline:1px solid #c2a06a;touch-action:none;cursor:grab;background:#eee4d3;box-shadow:0 8px 30px #182b1920}
.yearin-photo-editor canvas:active{cursor:grabbing}
.yearin-photo-editor canvas:focus-visible{outline:3px solid #496e47;outline-offset:4px}
.yearin-photo-editor label{display:flex;align-items:center;gap:18px;color:#685a46;font-size:12px}
.yearin-photo-editor input[type=range]{flex:1;min-width:0;accent-color:#365336;min-height:32px}
.yearin-photo-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.yearin-photo-editor [role=status]{min-height:1.5em;margin:12px 0 0;font-size:12px;color:#3e6041}
.yearin-profile-actions button:disabled,.yearin-photo-actions button:disabled{opacity:.6;cursor:wait}
.yearin-profile-actions button[hidden]{display:none}
.yearin-account-sheet{position:fixed;inset:0;margin:auto;height:fit-content;max-height:calc(100dvh - 32px);overflow:auto}
@media(max-width:520px){.yearin-account-inner{padding:24px}.yearin-profile-section{margin:18px 0;padding:20px 0}.yearin-photo-editor{padding:24px}.yearin-profile-avatar{width:80px;height:80px}}

[data-yearin-theme=dark] #yearin-photo-editor [role=status]{color:#efe1cc!important}
[data-yearin-theme=dark] #yearin-photo-editor [role=status].error{color:#ffcab6!important}
