.account-panel {
    width: calc(100% - 32px);
    max-width: 460px;
    margin: 40px auto;
    padding: 32px;
    background: white;
    border: 1px solid #e0e5d9;
    border-radius: 20px;
    line-height: 1.5;
}
.account-panel h1 {font-size: 28px; letter-spacing: -.7px; line-height: 1.2; margin: 0 0 12px;}
.account-panel h2 {font-size: 20px; letter-spacing: normal;}
.account-panel p {margin: 12px 0 20px;}
.account-panel .account-intro {color: var(--muted); font-size: 15px;}
.account-panel form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    grid-template-columns: none;
    margin: 20px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}
.account-panel label {display: block; color: var(--ink); font-size: 14px; margin-bottom: 7px;}
.account-panel input:not([type=checkbox]):not([type=hidden]) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
    padding: 12px 14px;
}
.account-panel button {min-height: 48px; font-weight: 600; width: 100%;}
.account-panel a {color: #30543c; text-underline-offset: 3px;}
.account-panel .account-options {display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px;}
.account-panel .remember-label {display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0;}
.account-panel input[type=checkbox] {width: 18px; height: 18px; margin: 0; accent-color: #30543c;}
.account-divider {display: flex; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted); font-size: 14px;}
.account-divider::before,.account-divider::after {content: ""; height: 1px; flex: 1; background: #e0e5d9;}
.account-panel .errorlist {color: #a52a2a; font-size: 14px; margin: 6px 0; padding-left: 20px;}
.account-panel .helptext {font-size: 13px; color: var(--muted);}
@media(max-width:480px) {
    .account-panel {padding: 24px 20px; margin: 24px auto;}
    .account-panel h1 {font-size: 25px;}
}
.account-panel .signup-form {gap: 14px;}
.account-panel .password-help {margin-top: 6px; font-size: 13px; color: var(--muted);}
.account-panel .password-help summary {cursor: pointer;}
.account-panel .password-help ul {margin: 8px 0 0; padding-left: 18px;}
.account-panel .social-caption {margin: 20px 0 12px; font-size: 15px; color: var(--muted);}
.account-panel .social-login {margin: 0; flex-direction: row; gap: 12px;}
.account-panel .social-icon-button {display: inline-flex; width: 56px; height: 56px; min-height: 56px; padding: 0; border: 0; border-radius: 6px; background: white;}
.social-icon-button img {display: block; width: 56px; height: 56px;}
.account-panel .social-icon-button:hover {box-shadow: 0 0 0 2px #c8e58c;}
.account-panel .social-icon-button:focus-visible {outline: 3px solid #6f8e69; outline-offset: 3px;}

#account-dialog {width: min(500px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #e0e5d9; border-radius: 20px; color: var(--ink);}
#account-dialog::backdrop {background: #20382d80;}
#account-dialog .account-panel {width: 100%; max-width: none; margin: 0; border: 0; padding-top: 56px;}
#account-close {position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; padding: 0; font-size: 26px; line-height: 1;}
body:has(#account-dialog[open]) {overflow: hidden;}

/* Account content must wrap independently of the search filter buttons. */
.account-panel {min-width: 0; overflow-wrap: anywhere;}
.account-panel button {white-space: normal; overflow-wrap: anywhere; line-height: 1.4;}
.account-panel .notification-delivery {margin: 0; color: var(--muted); font-size: 15px;}
.account-panel .notification-delivery strong {color: var(--ink); font-weight: 500;}
.account-panel .account-logout {margin: 20px 0 0;}

.account-panel .account-notice {display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; padding: 14px 16px; background: #edf4df; border: 1px solid #dce8c5; border-radius: 12px; color: #30543c; font-size: 14px; line-height: 1.5;}
.account-panel .account-notice p {margin: 0;}
.account-notice-icon {flex: 0 0 20px; font-size: 18px; line-height: 21px; font-weight: 700;}

.account-panel .notification-count{font-size:13px;color:var(--muted);margin:20px 0 10px}
.notification-list{display:grid;gap:12px}
.notification-card{border:1px solid #e0e5d9;border-radius:12px;padding:16px;min-width:0}
.notification-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.account-panel .notification-card h2{font-size:16px;margin:0}
.notification-card-heading>span{font-size:12px;color:#30543c;background:#edf4df;border-radius:20px;padding:3px 9px}
.notification-filters{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:12px 0 16px;font-size:13px;line-height:1.5}
.notification-filters li{padding:3px 8px;border-radius:6px;background:#f5f6f2}
.notification-card-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}
.account-panel .notification-card-actions form{margin:0;flex:0 0 auto}
.account-panel .notification-card-actions button{width:auto;min-height:36px;font-size:13px;padding:6px 12px;font-weight:400}
