/* Dustlight identity is scoped to Account; the game keeps its palette. */
#modal:has(.dustlight-account){background:#eee9db;color:#1e252b;border-color:#ac9765;box-shadow:0 20px 80px #1e252b50}
#modal:has(.dustlight-account)::backdrop{background:#1e252baa}
.dustlight-account{--ink:#1e252b;--on-ink:#eee9db;--muted:#49565c;--line:#ac976566;--card:#eee9db;--sand-input:#fcf8ef;--sand-rule:#b7aa92;color:var(--ink)}
.society-brand{display:flex;align-items:center;padding:20px 22px;margin:0 0 24px;border:1px solid #ac9765;border-radius:10px;background:#35424a url("textures/matte-ink-v1.png") repeat;background-size:256px 256px;color:#eee9db}
.society-wordmark{display:block;width:min(100%,330px);height:auto}
.society-card{padding:22px;margin:0 0 24px;border:1px solid #ac9765;border-radius:9px;background:#fcf8ef;color:#1e252b}
.society-card-identity{display:flex;align-items:center;gap:24px;min-width:0}
.society-card-identity>div{min-width:0}
.society-card .eyebrow{margin:0 0 8px;font-size:10px;letter-spacing:1.7px;color:#49565c}
.society-card h3{margin:0 0 9px;font-family:Georgia,'Times New Roman',serif;font-size:28px;line-height:1.2;overflow-wrap:anywhere;color:#1e252b}
.society-member-status{display:inline-flex;align-items:center;padding:5px 9px;border:1px solid #ac9765;border-radius:4px;background:#eee9db;font-size:12px;line-height:1.3;color:#1e252b}
.society-card-note{margin:20px 0 0!important;padding-top:15px;border-top:1px solid #ac976566;font-size:13px!important;line-height:1.6!important;color:#49565c}
.society-card .social-avatar-large{flex-shrink:0}
.society-profile-settings{margin:20px 0}
.society-profile-controls #account-change-picture{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;margin:4px 0 16px;border-radius:7px;font-size:14px}
.society-account-settings .account-details{margin:0;padding:16px 0;border-top:1px solid var(--line)}
.society-account-settings .account-details summary{min-height:44px;align-content:center;font-size:14px;color:var(--ink);cursor:pointer}
.society-account-intro{margin:0 0 24px;font-size:14px;line-height:1.65;color:var(--muted)}
.society-account-settings{margin-top:24px}
.dustlight-account .primary-button,.society-retry{min-height:44px;border:1px solid #1e252b;background:#1e252b;color:#eee9db}
.dustlight-account .primary-button:hover,.society-retry:hover{background:#2b3c45;border-color:#2b3c45}
.dustlight-account .secondary-button{border:1px solid #ac9765;background:#ac9765;color:#1e252b}
.dustlight-account .secondary-button:hover{background:#c9a973;border-color:#c9a973}
.dustlight-account .auth-form input{background:#fcf8ef;border-color:#b7aa92;color:#1e252b}
.dustlight-account :focus-visible{outline:2px solid #1e252b;outline-offset:3px}
.dustlight-account .auth-confirmation{background:#fcf8ef;border-color:#ac9765}
.dustlight-account .auth-confirmation-mark{background:#1e252b;color:#eee9db}
#sign-out-account{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #9b553c;border-radius:7px;background:#9b553c;color:#fff3dd;text-decoration:none;font-size:13px}
#sign-out-account:hover{background:#82432f}
.society-retry{padding:10px 14px;border-radius:7px}
.society-membership-error{font-size:14px;line-height:1.6}
.society-membership-error p{margin-bottom:12px}
@media(max-width:520px){.society-brand{padding:18px 16px}.society-card{padding:20px}.society-card-identity{gap:20px}.society-card h3{font-size:25px}.society-card .social-avatar-large{width:68px;height:68px;flex-basis:68px}}

/* The membership register shares Meso's muted paper, ink and bronze surfaces. */
#modal:has(.dustlight-account){background:#d7ceb9;border-color:#ac9765;color:#2e3c33;}
#modal:has(.dustlight-account) .modal-close{background:#4c5841;border:1px solid #ac9765;color:#eee9db;}
.dustlight-account{--ink:#2e3c33;--muted:#51594b;--line:#9c896066;--card:#d7ceb9;--sand-input:#e9e1ce;--sand-rule:#9c8960;}
.dustlight-account .society-brand{background-color:#1e252b;background-image:linear-gradient(#1e252b99,#1e252b99),url('textures/matte-ink-v1.png');background-size:auto,256px 256px;border-color:#ac9765;border-radius:4px;}
.dustlight-account .society-card{background:#29362f;color:#eee9db;border-color:#ac9765;border-radius:4px;}
.dustlight-account .society-card h3{color:#eee9db;}
.dustlight-account .society-card .eyebrow{color:#c6b383;}
.dustlight-account .society-card-note{color:#c9ccbb;border-color:#ac976566;}
.dustlight-account .society-member-status{background:#4c5841;color:#eee9db;border-color:#ac9765;}
.dustlight-account .primary-button,.dustlight-account .secondary-button,.dustlight-account .society-retry{background:#4c5841;border-color:#9c8960;color:#eee9db;border-radius:7px;}
.dustlight-account .primary-button:hover,.dustlight-account .secondary-button:hover,.dustlight-account .society-retry:hover{background:#59664c;border-color:#c2aa70;color:#eee9db;}
.dustlight-account .auth-form input{background:#e9e1ce;border-color:#9c8960;color:#2e3c33;}
.dustlight-account .auth-confirmation{background:#e9e1ce;border-color:#9c8960;}
.dustlight-account .society-card :focus-visible{outline-color:#e1c58d;}
.dustlight-account .account-membership-summary{display:block;margin-top:10px;color:var(--ink);font-size:13px;line-height:1.6;}

.dustlight-account #auth-create{background:#f2e9d9;border-color:#9c8960;color:#2e3c33;border-radius:7px}
.dustlight-account #auth-create:hover{background:#fff5e3;color:#2e3c33}
