.account-locked { min-height: 100dvh; height: auto !important; overflow: auto !important; }
.account-locked > .app-shell { display: none !important; }
.account-gate { min-height: 100dvh; display: grid; place-items: center; padding: 30px 18px; background: radial-gradient(ellipse at 5% 5%, #e6f3ee 0, transparent 55%), var(--bg); }
.account-login-card { width: min(100%, 440px); padding: 34px; border: 1px solid #dce7e3; border-radius: 18px; background: #fff; box-shadow: 0 16px 60px #244d4610; }
.account-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; color: #244f4b; font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.account-brand small { display: block; margin-top: 2px; color: #869b96; font-size: 10px; font-weight: 500; letter-spacing: 1px; }
.account-brand-mark { display: grid; gap: 4px; width: 39px; padding: 9px 7px; border-radius: 9px; background: #e8f4ef; }
.account-brand-mark i { display: block; position: relative; height: 5px; border: 1px solid #5a9689; border-radius: 2px; }
.account-brand-mark i::after { content: ''; position: absolute; right: 3px; top: 1px; width: 2px; height: 1px; background: #5a9689; }
.account-login-card h1 { display: block; font-size: 25px; letter-spacing: -.5px; }
.account-intro { margin: 10px 0 20px; color: #708883; line-height: 1.8; font-size: 12px; overflow-wrap: anywhere; }
.account-intro strong { color: var(--ink); }
.account-form { display: grid; gap: 16px; }
.account-form > label { display: grid; gap: 7px; color: #3e5c57; font-size: 12px; font-weight: 550; }
.account-form input:not([type=checkbox]), .account-form select { display: block; width: 100%; min-width: 0; min-height: 41px; padding: 10px 12px; border: 1px solid #d8e3df; border-radius: 7px; background: #fff; }
.account-form input:disabled, .account-form select:disabled { background: #f4f7f6; }
.account-form small { color: #869791; font-size: 11px; font-weight: 400; }
.account-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.account-feedback { min-height: 0; margin: 0; color: #287765; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.account-feedback:empty { display: none; }
.account-feedback.error { padding: 11px 13px; border: 1px solid #eed6cc; border-radius: 7px; background: #fff7f1; color: #a65a39; }
.account-full { width: 100%; min-height: 42px; }
.account-login-help { margin-top: 18px; color: #84958f; font-size: 11px; text-align: center; }
.account-login-footer { margin-top: 32px; padding-top: 18px; border-top: 1px solid #edf1ef; color: #8ba099; font-size: 10px; text-align: center; }
.account-notice { margin: 0 0 18px; padding: 13px 15px; border: 1px solid #e0ebe6; border-radius: 8px; background: #f5faf7; color: #5f7e73; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.account-form .account-notice { margin: 0; }
#account-controls { flex: 0 0 auto; position: relative; }
.account-menu { position: relative; }
.account-menu > summary { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 7px; border: 1px solid #dfebe5; border-radius: 7px; color: #45685e; background: #f6faf8; list-style: none; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:focus-visible { outline: 3px solid #64b8ae; outline-offset: 3px; }
.account-avatar { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; background: #d9eee4; color: #337862; font-size: 11px; font-weight: 650; }
.account-user-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.account-role { color: #8aa092; font-size: 10px; }
.account-menu-panel { position: absolute; z-index: 100; top: calc(100% + 7px); right: 0; min-width: 170px; max-width: min(300px, calc(100vw - 24px)); padding: 6px; border: 1px solid #dce8e1; border-radius: 9px; background: #fff; box-shadow: 0 10px 26px #173c311c; }
.account-menu-name { padding: 7px 9px 10px; border-bottom: 1px solid #ecf1ed; color: #97a59f; font-size: 10px; overflow-wrap: anywhere; }
.account-menu-panel button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: #44675c; text-align: left; font-size: 12px; }
.account-menu-panel button:hover { background: #f0f7f3; }
.account-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid #d6e2dc; border-radius: 13px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #18372b33; }
.account-dialog::backdrop { background: #19382a66; backdrop-filter: blur(2px); }
.account-dialog-wide { width: min(850px, calc(100vw - 32px)); }
.account-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 23px 25px 18px; border-bottom: 1px solid #e6eeea; }
.account-dialog-header h2 { font-size: 21px; }
.account-dialog-header .eyebrow { letter-spacing: 1.2px; }
.account-dialog-header .icon-button { font-size: 20px; line-height: 1; }
.account-dialog-body { padding: 22px 25px 25px; }
.account-dialog-body > .account-intro:first-child { margin-top: 0; }
.account-dialog-body > .account-feedback { margin-bottom: 16px; }
.account-users-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.account-users-heading .account-intro { max-width: 540px; margin-top: 0; }
.account-users-heading > button { flex-shrink: 0; }
.account-users-list { display: grid; gap: 9px; }
.account-user-row { display: flex; align-items: center; gap: 14px; padding: 13px; border: 1px solid #e1eae5; border-radius: 8px; background: #fcfdfc; }
.account-user-info { flex: 1 1 auto; display: grid; gap: 3px; min-width: 0; }
.account-user-info strong { font-size: 12px; overflow-wrap: anywhere; }
.account-user-info > span { color: #8b9d94; font-size: 11px; overflow-wrap: anywhere; }
.account-self { display: inline-block; margin-left: 5px; color: #8b9d94; font-size: 9px; font-weight: 400; }
.account-user-state { flex: 0 0 auto; display: grid; gap: 3px; justify-items: start; font-size: 10px; }
.account-role-badge { padding: 2px 6px; border-radius: 4px; background: #eaf3ef; color: #578374; }
.account-status { color: #6c9986; }
.account-status.disabled { color: #b37d57; }
.account-user-actions { flex: 0 0 auto; display: flex; gap: 3px; }
.account-user-actions .button { min-height: 32px; padding: 6px 8px; font-size: 11px; }
.account-form > .account-checkbox { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid #e1eae5; border-radius: 7px; font-weight: 400; line-height: 1.7; }
.account-checkbox input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--teal); flex-shrink: 0; }
@media (max-width: 700px) {
  .account-user-row { flex-wrap: wrap; gap: 10px; }
  .account-user-info { flex-basis: calc(100% - 80px); }
  .account-user-actions { flex-basis: 100%; justify-content: flex-end; border-top: 1px solid #edf2ee; padding-top: 8px; }
  .account-users-heading { flex-wrap: wrap; gap: 0; margin-bottom: 17px; }
}
@media (max-width: 420px) {
  .account-gate { padding: 20px 14px; }
  .account-login-card { padding: 27px 23px; border-radius: 13px; }
  .account-login-card h1 { font-size: 23px; }
  .account-user-label { max-width: 105px; }
  .account-menu > summary { gap: 5px; }
  .account-dialog, .account-dialog-wide { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .account-dialog-header { padding: 19px 17px 15px; }
  .account-dialog-body { padding: 18px 17px 20px; }
  .account-form input:not([type=checkbox]), .account-form select { font-size: 16px; }
  .account-user-actions .button { min-height: 37px; padding: 8px 11px; }
}
