html.ge-account-lock,
html.ge-account-lock body {
  min-height: 100%;
  overflow: hidden;
}

html.ge-account-lock body > *:not(#ge-account-root) {
  visibility: hidden !important;
}

#ge-account-root {
  --ge-navy: #14213d;
  --ge-blue: #2563eb;
  --ge-blue-dark: #1d4ed8;
  --ge-mint: #6ee7c7;
  --ge-border: #dbe4f0;
  --ge-muted: #60708a;
  --ge-danger: #b91c1c;
  color: var(--ge-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

#ge-account-root *,
#ge-account-root *::before,
#ge-account-root *::after {
  box-sizing: border-box;
}

.ge-account-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 14px
    max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 8% 4%, rgba(191, 219, 254, 0.92), transparent 37%),
    radial-gradient(circle at 92% 96%, rgba(167, 243, 208, 0.72), transparent 34%),
    #f7faff;
}

.ge-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 14px
    max(18px, env(safe-area-inset-bottom));
  background: rgba(10, 20, 42, 0.6);
  backdrop-filter: blur(5px);
}

.ge-account-card {
  width: min(100%, 500px);
  overflow: hidden;
  border: 1px solid var(--ge-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 80px rgba(20, 33, 61, 0.2);
}

.ge-account-card--wide {
  width: min(100%, 720px);
}

.ge-account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  color: white;
  background: var(--ge-navy);
}

.ge-account-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
}

.ge-account-mark span {
  border-radius: 999px;
  background: white;
}

.ge-account-mark span:first-child,
.ge-account-mark span:last-child {
  background: var(--ge-mint);
}

.ge-account-brand strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
}

.ge-account-brand small {
  display: block;
  margin-top: 2px;
  color: #bfdbfe;
  font-size: 0.82rem;
}

.ge-account-content {
  padding: 22px;
}

.ge-account-content h1,
.ge-account-content h2,
.ge-admin-shell h1,
.ge-admin-shell h2 {
  margin: 0;
  color: var(--ge-navy);
  letter-spacing: -0.025em;
}

.ge-account-content h1 {
  font-size: clamp(1.55rem, 6vw, 2rem);
}

.ge-account-intro {
  margin: 7px 0 18px;
  color: var(--ge-muted);
  line-height: 1.6;
}

.ge-account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 14px;
  background: #edf2f8;
}

.ge-account-tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: #526079;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.ge-account-tab[aria-selected="true"] {
  color: var(--ge-navy);
  background: white;
  box-shadow: 0 3px 12px rgba(20, 33, 61, 0.1);
}

.ge-account-form {
  display: grid;
  gap: 14px;
}

.ge-account-field {
  display: grid;
  gap: 7px;
}

.ge-account-field label {
  font-size: 0.9rem;
  font-weight: 800;
}

.ge-account-field input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 2px solid #d8e1ee;
  border-radius: 12px;
  outline: 0;
  color: var(--ge-navy);
  background: white;
  font: inherit;
}

.ge-account-field input:focus {
  border-color: var(--ge-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ge-account-field small {
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.45;
}

.ge-account-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #526079;
  font-size: 0.88rem;
  cursor: pointer;
}

.ge-account-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ge-blue);
}

.ge-account-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--ge-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ge-account-button:hover {
  background: var(--ge-blue-dark);
}

.ge-account-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.ge-account-button--secondary {
  border: 1px solid #cbd5e1;
  color: var(--ge-navy);
  background: white;
  box-shadow: none;
}

.ge-account-button--secondary:hover {
  background: #f1f5f9;
}

.ge-account-button--danger {
  color: var(--ge-danger);
  background: #fef2f2;
  box-shadow: none;
}

.ge-account-button--danger:hover {
  background: #fee2e2;
}

.ge-account-button--small {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.ge-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.ge-account-actions > * {
  flex: 1 1 150px;
}

.ge-account-message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 0.9rem;
}

.ge-account-message--info {
  border-color: #bfdbfe;
  color: #1e3a8a;
  background: #eff6ff;
}

.ge-account-message--success {
  border-color: #a7f3d0;
  color: #065f46;
  background: #ecfdf5;
}

.ge-account-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ge-muted);
}

.ge-account-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid #dbeafe;
  border-top-color: var(--ge-blue);
  border-radius: 999px;
  animation: ge-account-spin 0.75s linear infinite;
}

@keyframes ge-account-spin {
  to { transform: rotate(360deg); }
}

.ge-account-security {
  margin: 16px 0 0;
  color: #718096;
  font-size: 0.78rem;
  text-align: center;
}

.ge-account-chip {
  position: fixed;
  z-index: 800;
  top: calc(76px + env(safe-area-inset-top));
  right: 12px;
  display: flex;
  min-height: 42px;
  max-width: min(235px, calc(100vw - 24px));
  align-items: center;
  gap: 9px;
  padding: 7px 11px 7px 8px;
  border: 1px solid rgba(20, 33, 61, 0.15);
  border-radius: 999px;
  color: var(--ge-navy);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 25px rgba(20, 33, 61, 0.16);
  backdrop-filter: blur(8px);
  font: inherit;
  cursor: pointer;
}

.ge-account-chip-initial {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--ge-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.ge-account-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 800;
}

.ge-account-chip-status {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #10b981;
}

.ge-account-chip-status[data-state="saving"] {
  background: #f59e0b;
}

.ge-account-chip-status[data-state="error"] {
  background: #ef4444;
}

.ge-account-chip-status[data-state="local"] {
  background: #f59e0b;
}

.ge-account-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--ge-border);
  border-radius: 16px;
  background: #f8fafc;
}

.ge-account-profile-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--ge-blue);
  font-weight: 900;
}

.ge-account-profile strong,
.ge-account-profile span {
  display: block;
}

.ge-account-profile span {
  margin-top: 2px;
  color: var(--ge-muted);
  font-size: 0.85rem;
}

.ge-admin-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  color: var(--ge-navy);
  background: #f4f7fb;
}

.ge-admin-header {
  position: sticky;
  z-index: 2;
  top: 0;
  color: white;
  background: var(--ge-navy);
  box-shadow: 0 8px 28px rgba(20, 33, 61, 0.18);
}

.ge-admin-header-inner {
  width: min(1180px, calc(100% - 28px));
  margin: auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ge-admin-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ge-admin-title strong,
.ge-admin-title span {
  display: block;
}

.ge-admin-title span {
  color: #bfdbfe;
  font-size: 0.8rem;
}

.ge-admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ge-admin-header .ge-account-button--secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.ge-admin-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 40px;
}

.ge-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ge-admin-stat,
.ge-admin-panel {
  border: 1px solid var(--ge-border);
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 25px rgba(39, 61, 115, 0.07);
}

.ge-admin-stat {
  padding: 17px;
}

.ge-admin-stat span,
.ge-admin-stat strong {
  display: block;
}

.ge-admin-stat span {
  color: var(--ge-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ge-admin-stat strong {
  margin-top: 3px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.ge-admin-panel {
  margin-top: 16px;
  overflow: hidden;
}

.ge-admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--ge-border);
}

.ge-admin-panel-head p {
  margin: 3px 0 0;
  color: var(--ge-muted);
  font-size: 0.85rem;
}

.ge-admin-table-wrap {
  overflow-x: auto;
}

.ge-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ge-admin-table th,
.ge-admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8edf4;
  text-align: left;
  vertical-align: middle;
}

.ge-admin-table th {
  color: #526079;
  background: #f8fafc;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.ge-admin-table tr:last-child td {
  border-bottom: 0;
}

.ge-admin-person strong,
.ge-admin-person span {
  display: block;
}

.ge-admin-person span {
  color: var(--ge-muted);
  font-size: 0.78rem;
}

.ge-admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: 0.75rem;
  font-weight: 800;
}

.ge-admin-badge--off {
  color: #991b1b;
  background: #fee2e2;
}

.ge-admin-badge--admin {
  color: #1e40af;
  background: #dbeafe;
}

.ge-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ge-admin-empty {
  padding: 40px 20px;
  color: var(--ge-muted);
  text-align: center;
}

.ge-admin-feedback {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--ge-muted);
  font-size: 0.85rem;
}

.ge-admin-feedback[data-tone="error"] {
  color: var(--ge-danger);
}

.ge-admin-feedback[data-tone="success"] {
  color: #047857;
}

@media (max-width: 850px) {
  .ge-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ge-account-card {
    border-radius: 21px;
  }

  .ge-account-brand,
  .ge-account-content {
    padding: 18px;
  }

  .ge-account-chip {
    top: calc(73px + env(safe-area-inset-top));
  }

  .ge-admin-header-inner {
    align-items: flex-start;
  }

  .ge-admin-title span {
    display: none;
  }

  .ge-admin-header-actions .ge-account-button {
    min-height: 40px;
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .ge-admin-shell {
    margin-top: 16px;
  }

  .ge-admin-stats {
    gap: 8px;
  }

  .ge-admin-stat {
    padding: 13px;
  }

  .ge-admin-stat strong {
    font-size: 1.45rem;
  }

  .ge-admin-table th,
  .ge-admin-table td {
    padding: 11px;
  }
}
