.account-gate {
  display: grid;
  grid-template-columns: minmax(19rem, .88fr) minmax(25rem, 1.12fr);
  min-height: 100dvh;
  background: #f5f8f9;
}

.account-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: clamp(38px, 5.4vw, 82px);
  color: #f4fbfd;
  background: radial-gradient(ellipse farthest-side at 96% 89%, #215359 0, transparent 88%), linear-gradient(145deg, #0d141c 20%, #132c38 100%);
}

.account-brand::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(#a8dedc21 1px, transparent 1px) 50% 50% / 42px 42px, linear-gradient(90deg, #a8dedc21 1px, transparent 1px) 50% 50% / 42px 42px;
  mask-image: radial-gradient(ellipse at 55% 57%, #000 0, transparent 76%);
  pointer-events: none;
}

.account-brand-logo { display: block; width: clamp(145px, 15vw, 224px); height: auto; position: relative; }
.account-brand-graphic { flex: 1; min-height: 235px; position: relative; display: grid; place-items: center; margin: 26px 0; }
.account-brand-graphic img { position: relative; width: clamp(110px, 15vw, 213px); height: auto; filter: drop-shadow(0 16px 32px #040c13a0); }
.account-brand-orbit {
  position: absolute;
  width: min(83%, 330px);
  aspect-ratio: 1;
  border: 1px solid #a7dfda35;
  background: radial-gradient(circle, #83cec21f, transparent 68%);
  box-shadow: 0 0 0 24px #8fcdd00c, 0 0 0 52px #8fcdd00b, 0 0 0 79px #8fcdd009;
  border-radius: 43%;
  transform: rotate(32deg);
}

.account-brand-copy { position: relative; max-width: 430px; }
.account-brand-copy p { margin: 0; color: #dceef0; font-family: Lexend, Geist, sans-serif; font-size: clamp(20px, 2.6vw, 37px); font-weight: 520; letter-spacing: -.055em; line-height: 1.21; }
.account-brand-copy span { display: block; color: #a9c9d2; margin-top: 10px; font-size: 14px; line-height: 1.45; }

.account-gate-main { display: grid; place-items: center; padding: 42px clamp(24px, 6vw, 96px); min-width: 0; }
.account-entry { width: min(100%, 31rem); padding: clamp(25px, 3.45vw, 46px); background: #fff; border: 1px solid #e0e8eb; border-radius: 21px; box-shadow: 0 12px 50px #274c6011; }
.account-entry-header { display: grid; gap: 9px; margin-bottom: 24px; }
.account-entry-header h1 { margin: 0; color: #162735; font-family: Lexend, Geist, sans-serif; font-size: clamp(24px, 3vw, 37px); font-weight: 620; letter-spacing: -.06em; line-height: 1.12; }
.account-entry-header p, .account-empty, .account-note { margin: 0; color: #607180; font-size: .87rem; line-height: 1.53; }
.account-entry-header .account-mark { margin-bottom: 3px; }
.account-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #326176; background: #e9f4f3; }
.account-mark--rounded { border-radius: 50%; }

.account-form { display: grid; gap: 13px; min-width: 0; }
.account-field { display: grid; gap: 6px; min-width: 0; color: #344657; font-size: .82rem; font-weight: 650; }
.account-control { width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; background: white; color: var(--ink, #17212d); border: 1px solid #d9e4ea; border-radius: 9px; outline: none; font: inherit; font-size: .89rem; font-weight: 460; }
.account-control::placeholder { color: #718493; }
.account-control:focus { border-color: #5496ab; box-shadow: 0 0 0 3px #579ea323; outline: 0; }
.account-control[aria-invalid="true"] { border-color: #bd4860; }
.account-error { margin: 0; padding: 9px 11px; color: #9b2e48; background: #fff1f4; border: 1px solid #f7dce4; border-radius: 8px; font-size: .81rem; line-height: 1.45; }
.account-password { display: block; position: relative; }
.account-password .account-control { padding-right: 66px; }
.account-password-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: #476779; font-size: .72rem; font-weight: 620; }
.account-password-toggle:hover { background: #edf4f7; }

.account-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 0 12px; background: #fff; border: 1px solid #dce6eb; border-radius: 8px; color: #314959; font-size: .83rem; font-weight: 630; white-space: nowrap; }
.account-button:hover { background: #eef5f7; border-color: #b5cfd8; }
.account-button--primary { background: #29587c; border-color: #29587c; color: #fff; box-shadow: 0 2px 3px #15344b1a; }
.account-button--primary:hover { background: #204665; border-color: #204665; color: #fff; }
.account-button--danger { color: #a5374d; }
.account-button--danger:hover { background: #fff1f4; border-color: #eccdd6; }
.account-button--quiet { padding: 0 4px; min-height: auto; background: transparent; border: 0; color: #2b627f; }
.account-button--quiet:hover { background: transparent; text-decoration: underline; }
.account-entry-submit { margin-top: 4px; min-height: 43px; }
.account-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 19px 0 0; padding-top: 15px; border-top: 1px solid #eaf0f2; color: #607180; font-size: .83rem; }
.account-entry .account-pending-button { width: 100%; }

.account-profile-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); align-items: start; gap: 16px; max-width: 66rem; }
.account-profile-identity { display: grid; min-width: 0; gap: 16px; }
.account-profile-panel { min-width: 0; padding: clamp(16px, 2vw, 24px); background: #fff; border: 1px solid #dfe9ee; border-radius: 12px; box-shadow: 0 2px 6px #254a6010; }
.account-profile-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.account-profile-head .account-mark { flex: 0 0 42px; }
.account-profile-avatar { color: #2b5c61; background: #e3f1ef; font-family: Lexend, Geist, sans-serif; font-size: .92rem; font-weight: 650; }
.account-profile-panel h2 { margin: 0; color: #253d4d; font-family: Lexend, Geist, sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: -.025em; }
.account-profile-data { margin: 0; }
.account-profile-data div { display: grid; grid-template-columns: minmax(6rem, .62fr) minmax(0, 1fr); align-items: baseline; gap: 6px 12px; border-top: 1px solid #edf1f4; padding: 11px 0; }
.account-profile-data div:last-child { padding-bottom: 0; }
.account-profile-data dt { color: #596d7d; font-size: .81rem; line-height: 1.4; }
.account-profile-data dd { margin: 0; min-width: 0; color: #273f50; font-size: .86rem; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.account-profile-session-bar { display: flex; align-items: center; gap: 9px; justify-content: space-between; flex-wrap: wrap; }
.account-profile-session .account-error { margin-top: 10px; }
.account-profile-password { padding-top: 3px; }

.account-dialog { display: none; flex-direction: column; width: min(39rem, calc(100% - 22px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: hidden; background: #fff; color: var(--ink, #17212d); border: 1px solid #dfe9ee; border-radius: 19px; box-shadow: 0 21px 80px #172d3d47; }
.account-dialog[open] { display: flex; }
.account-dialog::backdrop { background: #101d2b75; backdrop-filter: blur(3px); }
.account-dialog--admin { width: min(53rem, calc(100% - 22px)); }
.account-dialog-head { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 13px; padding: 22px 25px 19px; border-bottom: 1px solid #e7eef2; }
.account-dialog-head .account-mark { flex: 0 0 42px; }
.account-dialog-heading { flex: 1; min-width: 0; }
.account-dialog-heading h2 { margin: 0; font-family: Lexend, Geist, sans-serif; font-size: 1.34rem; font-weight: 620; letter-spacing: -.04em; line-height: 1.25; }
.account-dialog-heading p { color: #607180; font-size: .82rem; line-height: 1.45; margin: 4px 0 0; overflow-wrap: anywhere; }
.account-dialog-close { display: grid; place-items: center; flex: 0 0 34px; height: 34px; color: #516677; background: none; border: none; border-radius: 8px; }
.account-dialog-close:hover { background: #eef4f6; }
.account-dialog-body { min-height: 0; overflow-y: auto; padding: 18px 25px 24px; display: grid; gap: 18px; }
.account-dialog-body section { display: grid; gap: 10px; }
.account-dialog-body section + section { border-top: 1px solid #ecf1f4; padding-top: 17px; }
.account-dialog-body section h3 { margin: 0; color: #304857; font-size: .93rem; font-weight: 670; }
[data-account-admin-list] { display: grid; gap: 16px; }
.account-section-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.account-dialog-foot { display: flex; justify-content: space-between; flex: 0 0 auto; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 25px; border-top: 1px solid #e7eef2; }

.account-list { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.account-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; border: 1px solid #e7eef2; background: #fafcfd; border-radius: 10px; padding: 10px 11px; min-width: 0; }
.account-row-person { display: flex; align-items: center; flex: 1 1 190px; gap: 8px; min-width: 0; }
.account-row .account-mark { flex: 0 0 32px; height: 32px; font-size: .66rem; font-weight: 720; }
.account-person-name { display: block; color: #243d4f; font-size: .84rem; overflow-wrap: anywhere; }
.account-person-email { display: block; color: #607486; font-size: .76rem; overflow-wrap: anywhere; }
.account-row-actions { display: flex; align-items: center; flex: 0 1 auto; gap: 5px; flex-wrap: wrap; min-width: 0; }
.account-row-actions .account-control, .account-row-actions .account-button { min-height: 33px; width: auto; max-width: 100%; padding: 5px 8px; font-size: .78rem; }
.account-status { display: inline-flex; align-items: center; border-radius: 6px; background: #eaf3f6; color: #3b637d; font-size: .72rem; font-weight: 650; padding: 4px 6px; }
.account-row-confirm { width: 100%; margin: 0; color: #953245; font-size: .81rem; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.account-row-confirm .account-button { min-height: 31px; }
.account-admin-count { display: inline-grid; margin-inline-start: 4px; min-width: 19px; min-height: 19px; font-size: .72rem; place-items: center; padding: 1px 5px; background: #edf3f6; border-radius: 5px; color: #48657c; }

@media (max-width: 860px) {
  .account-profile-page { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .account-gate { grid-template-columns: minmax(15rem, .7fr) minmax(23rem, 1.3fr); }
  .account-brand { padding: 29px; }
  .account-gate-main { padding: 29px; }
  .account-brand-copy span { font-size: 12px; }
}

@media (max-width: 650px) {
  .account-gate { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .account-brand { padding: 21px 22px; }
  .account-brand::before { mask-image: linear-gradient(90deg, transparent 30%, #000 95%); }
  .account-brand-logo { width: 133px; }
  .account-brand-graphic, .account-brand-copy { display: none; }
  .account-gate-main { align-items: start; padding: 19px 15px 31px; }
  .account-entry { border-radius: 15px; }
  .account-dialog-head, .account-dialog-body, .account-dialog-foot { padding-left: 16px; padding-right: 16px; }
}
