.header-account { position: relative; flex-shrink: 0; }
.header-account .account-link { display: flex; justify-content: center; align-items: center; min-width: 60px; min-height: 44px; padding: 0 12px; background: var(--schedule-updated-bg); border: 1px solid var(--schedule-updated-border); color: var(--pink-text); font-weight: 650; }
.header-account .account-link.is-member { width: 44px; min-width: 44px; padding: 3px; border-radius: 50%; }
.header-account [data-account-avatar] { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.header-account [hidden] { display: none !important; }
.header-account .account-link:hover { background: var(--surface); border-color: var(--pink-text); }
.account-popover { position: absolute; right: 0; top: calc(100% + 12px); width: min(272px,calc(100vw - 24px)); padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-hover); z-index: 110; }
.account-popover-caption { display: block; color: var(--muted); font-size: 12px; }
.account-popover strong { display: block; margin: 6px 0 14px; overflow-wrap: anywhere; }
.account-popover button { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); font-size: 13px; }
.account-popover p { margin: 8px 0 0; font-size: 12px; color: var(--pink-text); }
.account-popover p:empty { display: none; }
.account-popover-profile{display:flex;align-items:center;gap:12px;padding:10px 8px 16px;border-bottom:1px solid var(--line)}
.account-popover-profile img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}.account-popover-profile>span{min-width:0}.account-popover-profile strong{font-size:15px;margin:0 0 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-popover-profile small{font-size:12px;color:var(--muted)}
.account-popover nav{display:grid;padding:8px 0;gap:2px}.account-popover nav a{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 10px;border-radius:6px;font-size:13px}.account-popover nav a>span:last-child{margin-left:auto;color:var(--muted)}.account-popover svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}.account-popover nav a:hover,.account-popover-profile:hover{background:var(--schedule-updated-bg);color:var(--pink-text)}.account-popover-footer{border-top:1px solid var(--line);padding-top:8px}.account-popover-footer button{border:0;background:transparent;text-align:left;padding:8px 10px;color:var(--muted)}.account-popover-footer button:hover{background:var(--surface-soft);color:var(--pink-text)}.account-popover :is(a,button):focus-visible{outline:2px solid var(--pink-text);outline-offset:1px}
@media(prefers-reduced-motion:no-preference){.account-popover:not([hidden]){animation:account-appear 160ms ease-out}}
.account-dialog { width: min(390px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 72px rgba(36,35,43,.2); overflow-y: auto; }
.account-dialog::backdrop { background: rgba(36,35,43,.4); backdrop-filter: blur(4px); }
.account-dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 25px; }
.account-dialog-close:hover { background: var(--surface-soft); }
.account-mascot { width: 68px; height: 68px; margin-bottom: 16px; border-radius: 50%; border: 1px solid var(--schedule-updated-border); }
.account-dialog h2 { margin: 0 0 8px; font-size: 23px; }
.account-dialog > p { margin: 0 0 22px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.account-field { display: block; margin-top: 16px; }
.account-field > span:first-child { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.account-field input { width: 100%; min-width: 0; height: 46px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: 16px; }
.account-field input:focus { outline: 2px solid var(--schedule-updated-border); outline-offset: 1px; border-color: var(--pink-text); }
.account-password, .account-verify { display: flex; gap: 8px; }
.account-password { position: relative; }
.account-password input { padding-right: 58px; }
.account-password button { position: absolute; right: 2px; top: 1px; min-width: 52px; height: 44px; border: 0; background: transparent; color: var(--pink-text); font-size: 12px; }
.account-verify input { flex: 1; }
.account-verify button { flex: 0 0 110px; padding: 0; height: 46px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.account-verify img { width: 110px; height: 44px; object-fit: contain; font-size: 12px; }
.account-feedback { min-height: 20px; margin: 14px 0; font-size: 12px; color: var(--pink-text); }
.account-submit { width: 100%; min-height: 46px; padding: 8px 18px; border: 0; border-radius: 7px; background: var(--pink-text); color: white; font-size: 15px; font-weight: 650; }
.account-submit:disabled { opacity: .6; cursor: wait; }
.account-registration, .account-dialog > .account-registration { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.account-registration a { display: inline-flex; min-height: 44px; align-items: center; gap: 4px; color: var(--pink-text); font-weight: 650; }
.account-registration a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) { .account-dialog { padding: 24px 20px; } .header-account .account-link { min-width: 52px; padding-inline: 10px; } .header-account .account-link.is-member { min-width: 44px; padding: 3px; } }
@media (prefers-reduced-motion: no-preference) { .account-dialog[open] { animation: account-appear 180ms ease-out; } @keyframes account-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } }
