:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy-950: #071321;
  --navy-900: #0a192a;
  --navy-850: #102238;
  --navy-800: #142b43;
  --navy-700: #29425d;
  --ink: #f4f8ff;
  --muted: #bed0e4;
  --ice: #a8d7f5;
  --violet: #9472ff;
  --blue: #4e8cff;
  --cyan: #38c6e4;
  --mint: #65e4c0;
  --green: #8aefca;
  --amber: #ffd18a;
  --red: #ffb8ad;
  --line: rgba(174, 202, 232, .17);
  --line-strong: rgba(174, 202, 232, .30);
  --focus: #a8d7ff;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(850px 520px at 7% -10%, rgba(119, 89, 247, .19), transparent 66%),
    radial-gradient(760px 500px at 96% 8%, rgba(37, 172, 218, .14), transparent 63%),
    radial-gradient(660px 520px at 72% 96%, rgba(47, 180, 164, .08), transparent 70%),
    var(--navy-950);
  line-height: 1.5;
}
[hidden] { display: none !important; }
::selection { color: #071321; background: #9fe8ef; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 19, 33, .94);
}
.topbar-inner {
  width: min(1200px, 100% - 48px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 720;
  text-decoration: none;
}
.topbar-tools { display: flex; align-items: center; gap: 14px; }
.private-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.private-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(101, 228, 192, .1);
}
.language-picker { display: block; }
select {
  min-height: 46px;
  min-width: 142px;
  padding: 0 38px 0 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: rgba(16, 34, 56, .92);
}
select:hover { border-color: rgba(168, 215, 245, .62); }
select option { color: var(--ink); background: var(--navy-900); }

main {
  width: min(1200px, 100% - 48px);
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 48px 0 80px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { margin-bottom: 12px; font-size: 36px; line-height: 1.16; letter-spacing: -.032em; font-weight: 690; }
h2 { margin-bottom: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
h3 { margin-bottom: 8px; font-size: 17px; line-height: 1.35; font-weight: 650; }
p { color: var(--muted); line-height: 1.7; }
.section-description { max-width: 75ch; margin: 9px 0 0; font-size: 14px; }

.login-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: clamp(40px, 9vw, 116px);
  min-height: min(610px, calc(100vh - 210px));
  padding: 30px 2.5%;
}
.login-copy { max-width: 580px; animation: arrive .52s cubic-bezier(.2, .75, .25, 1) both; }
.login-copy h1 { max-width: 12ch; font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -.045em; }
.login-copy > p { max-width: 42ch; margin-bottom: 26px; font-size: 17px; }
.login-facts { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--ice); font-size: 13px; }
.login-facts span { display: inline-flex; align-items: center; gap: 8px; }
.login-facts span::before { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); content: ""; }
.login-panel {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 43, 67, .97), rgba(10, 25, 42, .98));
  box-shadow: 0 22px 64px rgba(0, 0, 0, .24);
}
.login-panel h2 { margin-bottom: 8px; font-size: 21px; }
.login-panel > p { margin-bottom: 26px; font-size: 14px; }
#loginForm { display: grid; gap: 13px; }

.dashboard-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 222px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(158, 195, 237, .26);
  border-radius: 20px;
  background:
    radial-gradient(390px 220px at 83% -4%, rgba(55, 193, 231, .24), transparent 72%),
    radial-gradient(460px 260px at 63% 106%, rgba(103, 81, 223, .26), transparent 73%),
    linear-gradient(115deg, #10233a 0%, #0e1d31 54%, #10283b 100%);
  animation: arrive .48s cubic-bezier(.2, .75, .25, 1) both;
}
.dashboard-hero::after {
  position: absolute;
  z-index: -1;
  right: 12%;
  bottom: -93px;
  width: 280px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(148, 114, 255, .18), rgba(56, 198, 228, .2), rgba(101, 228, 192, .1));
  filter: blur(46px);
  content: "";
}
.hero-copy { max-width: 590px; }
.hero-copy h1 { margin-bottom: 10px; }
.hero-copy p { margin: 0; font-size: 15px; }
.hero-status { display: flex; align-items: center; gap: 24px; }
.current-release { display: grid; gap: 3px; min-width: 130px; }
.current-release > span { color: var(--ice); font-size: 12px; }
.current-release strong { font-size: 20px; letter-spacing: -.02em; }
.current-release small { color: var(--muted); font-size: 12px; }

.content-section {
  margin-top: 32px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(13, 29, 47, .96), rgba(10, 24, 40, .94));
}
.product-panel { border-color: rgba(119, 181, 229, .26); }
.product-context-heading, .product-picker-row, .release-product-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.product-context-heading { align-items: flex-start; }
.product-name { margin: 0 0 5px; font-size: 23px; overflow-wrap: anywhere; }
.product-id-line { margin: 0; font-size: 13px; }
.product-id-line code, .product-context-heading code, .release-product-context code {
  color: var(--ice);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.product-context-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.public-key-link { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.product-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.product-status.enabled { color: var(--green); border-color: rgba(138, 239, 202, .28); background: rgba(54, 133, 106, .14); }
.product-status.disabled { color: var(--amber); border-color: rgba(255, 209, 138, .32); background: rgba(132, 91, 39, .16); }
.product-picker-row {
  align-items: end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.product-picker-row label { flex: 0 1 420px; }
#productSelect { width: 100%; }
.product-select-hint { max-width: 42ch; margin: 0 0 3px; font-size: 12px; }
.product-disabled-note { margin: 18px 0 0; padding: 12px 14px; color: var(--amber); border: 1px solid rgba(255, 209, 138, .28); border-radius: 9px; background: rgba(132, 91, 39, .12); font-size: 13px; }
.product-empty, .product-loading { padding: 16px 0 4px; }
.product-management { margin-top: 22px; }
.product-settings { padding: 0 0 8px; }
.product-metadata-form { padding-bottom: 16px; }
.product-create-form { padding-top: 18px; border-top: 1px solid var(--line); }
.product-create-form .notes-field, .product-metadata-form .notes-field { grid-column: 1 / -1; }
.product-settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.release-product-context {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: -2px 0 20px;
  padding: 13px 15px;
  border: 1px solid rgba(119, 181, 229, .2);
  border-radius: 10px;
  background: rgba(48, 83, 118, .12);
}
.release-product-context .eyebrow { margin: 0 4px 0 0; }
.release-product-context strong { font-size: 14px; overflow-wrap: anywhere; }
.release-product-context-label { color: var(--ice); font-size: 13px; font-weight: 630; }
.product-loading { text-align: center; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.section-heading > div { min-width: 0; }
.seat-count {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--ice);
  border: 1px solid rgba(119, 181, 229, .28);
  border-radius: 999px;
  background: rgba(59, 111, 160, .12);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.users-list { min-height: 0; }
.user {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(230px, 1fr) minmax(280px, 1.25fr);
  gap: 26px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.user h3 { margin: 0 0 9px; font-size: 18px; overflow-wrap: anywhere; }
.user p { margin: 6px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.status::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.allowed { color: var(--green); }
.paused { color: var(--amber); }
.offline { color: #b8c9dd; }
.user-actions { display: grid; align-content: start; gap: 13px; }
.button-row, .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.expiry { display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: end; gap: 10px; }
.expiry label { min-width: 0; }
.expiry details { grid-column: 1 / -1; }
.meta { font-variant-numeric: tabular-nums; }

label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 550; }
input, select { min-width: 0; }
input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid rgba(174, 202, 232, .3);
  border-radius: 10px;
  outline: none;
  background: #09192a;
  caret-color: var(--cyan);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
input:hover { border-color: rgba(174, 202, 232, .55); }
input:focus { border-color: var(--cyan); background: #0b1d31; box-shadow: 0 0 0 3px rgba(56, 198, 228, .16); }
input::placeholder { color: #a8bad0; opacity: 1; }
input[type="file"] { padding: 7px; color: var(--muted); }
input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 12px;
  padding: 5px 11px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--navy-800);
  font: inherit;
  cursor: pointer;
}
input[type="datetime-local"] { color-scheme: dark; }
textarea {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid rgba(174, 202, 232, .3);
  border-radius: 10px;
  background: #09192a;
  font: inherit;
  resize: vertical;
}
textarea:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 198, 228, .16); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 17px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--navy-800);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(183, 216, 246, .48); background-color: #1c3855; }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .56; cursor: wait; transform: none; }
.button-primary {
  color: #071321;
  border-color: rgba(194, 246, 255, .55);
  background: linear-gradient(108deg, #ae92ff 0%, #78aaff 48%, #6de3da 100%);
  box-shadow: 0 8px 22px rgba(67, 119, 224, .17);
}
.button-primary:hover { border-color: #d7f6ff; background: linear-gradient(108deg, #bca6ff 0%, #8ab7ff 48%, #82eee5 100%); box-shadow: 0 10px 26px rgba(67, 119, 224, .28); }
.button-outline { border-color: var(--line-strong); background: rgba(12, 28, 47, .44); }
.button-outline:hover { background: rgba(39, 67, 98, .66); }
.button-quiet { border-color: transparent; background: transparent; }
.button-quiet:hover { border-color: var(--line); background: rgba(133, 168, 201, .1); }
.button-danger { color: var(--red); border-color: rgba(255, 184, 173, .3); background: rgba(110, 42, 47, .14); }
.button-danger:hover { border-color: rgba(255, 184, 173, .62); background: rgba(140, 53, 57, .25); }

.form-disclosure { margin-top: 4px; border-top: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  min-height: 54px;
  color: var(--ice);
  font-size: 14px;
  font-weight: 630;
  list-style-position: inside;
}
summary:hover { color: #d7efff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 10px 0 22px; }
.form-actions { grid-column: 1 / -1; }
.credential-panel {
  max-width: 700px;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(101, 228, 192, .3);
  border-radius: 13px;
  background: linear-gradient(130deg, rgba(25, 72, 73, .42), rgba(18, 39, 58, .75));
}
.credential-panel p { margin-bottom: 18px; font-size: 13px; }
.credential-panel input { font-variant-numeric: tabular-nums; }
.credential-panel .button-row { margin-top: 14px; }

.release-form {
  display: grid;
  grid-template-columns: minmax(140px, .52fr) minmax(240px, 1.35fr) auto;
  align-items: end;
  gap: 16px;
  margin: 4px 0 20px;
}
.release-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.release-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.release-label { display: block; color: var(--ice); font-weight: 620; }
.release-row .active-release { color: var(--green); }
.audit-section { padding-bottom: 22px; }
.audit-list { margin: 2px 0 0; padding: 0; list-style: none; }
.audit-list li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13px; }
.audit-list time { color: var(--ice); font-variant-numeric: tabular-nums; }
.empty { margin: 0; padding: 22px 0 26px; color: var(--muted); font-size: 14px; }
.notice {
  margin-bottom: 24px;
  padding: 14px 18px;
  color: #dff8ef;
  border: 1px solid rgba(101, 228, 192, .27);
  border-radius: 10px;
  background: rgba(26, 83, 77, .32);
  overflow-wrap: anywhere;
}
.notice.error { color: #ffe1dc; border-color: rgba(255, 184, 173, .34); background: rgba(106, 41, 45, .34); }
footer { padding: 0 24px 28px; color: #aebfd3; font-size: 12px; text-align: center; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@keyframes arrive {
  from { opacity: .7; transform: translateY(8px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 860px) {
  .login-view { grid-template-columns: 1fr minmax(300px, .9fr); gap: 36px; padding-right: 0; padding-left: 0; }
  .user { grid-template-columns: minmax(150px, .9fr) minmax(190px, 1fr); gap: 20px; }
  .user-actions { grid-column: 1 / -1; grid-template-columns: minmax(280px, 1.2fr) auto; align-items: end; }
  .release-form { grid-template-columns: minmax(120px, .5fr) minmax(200px, 1fr); }
  .release-form button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .topbar-inner, main { width: min(100% - 32px, 1200px); }
  .topbar-inner { min-height: 68px; gap: 12px; }
  .brand { font-size: 20px; }
  .topbar-tools { gap: 8px; }
  .private-label { display: none; }
  select { min-width: 118px; min-height: 44px; padding-right: 30px; }
  main { padding-top: 24px; padding-bottom: 48px; }
  .login-view { min-height: 0; grid-template-columns: 1fr; gap: 32px; padding: 42px 0 28px; }
  .login-copy h1 { max-width: 14ch; font-size: 40px; }
  .login-copy > p { margin-bottom: 20px; font-size: 15px; }
  .login-facts { gap: 8px 15px; font-size: 12px; }
  .login-panel { padding: 24px; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; gap: 22px; min-height: 0; padding: 26px 22px; border-radius: 16px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-copy p { font-size: 14px; }
  .hero-status { width: 100%; align-items: end; justify-content: space-between; gap: 12px; }
  .current-release strong { font-size: 18px; }
  .content-section { margin-top: 18px; padding: 22px 18px; border-radius: 14px; }
  .product-context-heading, .product-picker-row { align-items: stretch; flex-direction: column; gap: 14px; }
  .product-context-actions { justify-content: flex-start; }
  .product-picker-row label { flex: auto; }
  .product-select-hint { max-width: none; }
  .product-name { font-size: 21px; }
  .product-status { white-space: normal; }
  .release-product-context { align-items: flex-start; flex-direction: column; gap: 8px; }
  .release-product-context-label { margin: 0; }
  .section-heading { flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .section-heading h2 { font-size: 20px; }
  .seat-count { min-height: 30px; }
  .user { grid-template-columns: 1fr; gap: 15px; }
  .user-actions { grid-column: auto; grid-template-columns: 1fr; }
  .form-grid, .release-form { grid-template-columns: 1fr; }
  .form-actions, .release-form button { grid-column: auto; justify-self: stretch; }
  .release-row { align-items: flex-start; }
  .release-row .button { white-space: normal; }
  .audit-list li { grid-template-columns: 1fr; gap: 4px; }
  .credential-panel { padding: 19px; }
  footer { max-width: 34ch; margin: 0 auto; line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Compact users: scan people first, then reveal accounts and management on demand. */
.customer-toolbar { display: flex; align-items: end; gap: 16px; margin: 20px 0 16px; }
.customer-search { flex: 1; }
.customer-toolbar > label:last-child { flex: 0 0 144px; }
.customer-group { border-top: 1px solid var(--line-strong); margin-top: 16px; }
.customer-group:first-child { margin-top: 0; }
.customer-group[open] { padding-bottom: 16px; }
.customer-group[open] > .customer-account-heading,
.customer-group[open] > .account-row { margin-left: 20px; padding-left: 16px; padding-right: 16px; background: rgba(174, 202, 232, .04); }
.customer-group[open] > .customer-account-heading { padding-top: 12px; }
.customer-group[open] > .account-row { border-top-color: rgba(174, 202, 232, .09); }
.release-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.release-protected { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .customer-group[open] > .customer-account-heading,
  .customer-group[open] > .account-row { margin-left: 8px; padding-left: 12px; padding-right: 12px; }
  .release-actions { justify-content: flex-start; }
}
.customer-summary { display: grid; grid-template-columns: minmax(120px, 1fr) 110px minmax(220px, 1.4fr) auto; gap: 20px; min-height: 64px; }
.customer-summary strong { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.customer-account-count, .customer-presence { color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.customer-expand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.customer-expand::after { width: 7px; height: 7px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); content: ''; }
.customer-group[open] > summary .customer-expand::after { transform: rotate(225deg); }
.customer-account-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 12px; }
.customer-account-heading p { margin: 0; font-size: 12px; }
.account-row { padding: 12px 0; border-top: 1px solid var(--line); }
.account-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; }
.account-identity strong { min-width: 100px; font-variant-numeric: tabular-nums; }
.account-server { flex: 1; min-width: 160px; color: var(--muted); overflow-wrap: anywhere; }
.account-management > summary { min-height: 44px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.account-management-content { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.4fr); gap: 24px; padding: 4px 0 16px; }
.account-device p { margin: 0 0 8px; font-size: 12px; overflow-wrap: anywhere; }
.customer-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.customer-pagination .button, .customer-account-heading .button { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.customer-pagination .button:disabled { cursor: default; }
#userPage { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
#credential { max-width: none; margin-top: 32px; }
#credential .credential-context { color: var(--green); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .customer-summary { grid-template-columns: minmax(120px, 1fr) auto; gap: 4px 16px; padding: 12px 0; }
  .customer-presence { grid-column: 1; }
  .customer-expand { grid-column: 2; grid-row: 2; justify-self: end; }
  .customer-account-count { justify-self: end; }
  .account-management-content { grid-template-columns: 1fr; gap: 12px; }
  .account-management .user-actions { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .customer-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .customer-toolbar > label:last-child { flex: auto; }
  .customer-pagination { align-items: flex-start; flex-direction: column; gap: 12px; }
  .customer-account-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .account-server { flex-basis: 100%; }
  .account-management .expiry { grid-template-columns: 1fr; }
  .account-management .button-row { align-items: stretch; flex-direction: column; }
  .account-management .button { white-space: normal; }
  .customer-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .customer-presence { overflow-wrap: anywhere; }
}

/* Explicit broker review belongs to the account creation transaction. */
.account-create-review { padding: 0; }
.account-review-confirmation { display: flex; align-items: center; gap: 10px; }
.account-review-confirmation input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; flex: 0 0 20px; margin: 0; }
