:root { font-family: system-ui, sans-serif; color: #28453b; background: #f5f8f6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1100px; margin: 32px auto; padding: 0 20px; }
header, .account-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h1 { margin: 0; font-size: 28px; }
h2 { margin: 0 0 18px; font-size: 19px; }
p, small { color: #63766e; }
a { color: #267659; }
section { background: white; padding: 24px; border: 1px solid #d7e1db; border-radius: 12px; margin-bottom: 24px; }
.account-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
label { display: block; margin: 0 0 16px; font-size: 14px; }
input, select { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #bacbc1; border-radius: 6px; font: inherit; background: white; color: inherit; }
small { display: block; margin: -6px 0 18px; }
button { padding: 9px 14px; border: 1px solid #bacbc1; border-radius: 7px; background: #f1f7f3; color: #264c3b; font: inherit; cursor: pointer; }
button:hover { background: #e1eee5; }
button:disabled { opacity: .5; cursor: default; }
.account-permission-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; white-space: nowrap; }
.account-permission-toggle input[type="checkbox"] { width: auto; margin: 0; accent-color: #267659; }
.account-danger { color: #a52a2a; border-color: #e4b8b8; background: #fff6f6; }
.account-danger:hover:not(:disabled) { background: #fbe7e7; }
.account-table { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
td, th { padding: 12px 10px; border-bottom: 1px solid #e3eae6; vertical-align: top; }
td button { margin: 0 6px 6px 0; white-space: nowrap; }
td small { margin: 4px 0 0; }
dialog { width: min(460px, calc(100% - 32px)); border: 1px solid #bacbc1; border-radius: 12px; padding: 24px; color: inherit; }
dialog::backdrop { background: #20362c88; }
#account-status[data-error="true"], #password-error { color: #a52a2a; }
#invitation-error, #invitation-email-warning { color: #a52a2a; }
.invitation-page { min-height: 100vh; display: grid; place-items: center; }
.invitation-page main { width: min(500px, 100%); margin: 24px auto; }
.invitation-page h1 { margin-bottom: 18px; }
.invitation-page button { width: 100%; }
@media (max-width: 650px) { .account-forms { grid-template-columns: 1fr; gap: 0; } header { align-items: start; } }
