* {
  box-sizing: border-box;
}

:root {
  color: var(--gl-text-primary);
  font-family: var(--gl-font-product);
  background: var(--gl-color-black);
  font-synthesis: none;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--gl-color-black);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.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;
}

.account-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(620px, 1.45fr) minmax(430px, 0.82fr);
  background: var(--gl-color-gray-50);
}

.account-visual {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--gl-color-black);
}

.account-gallery {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(190px, 0.82fr);
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.account-shot {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--gl-color-gray-900);
}

.account-shot-primary {
  grid-row: 1 / -1;
}

.account-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-shot-primary img {
  object-position: center 28%;
}

.account-shot-secondary img {
  object-position: center 24%;
}

.account-shot-tertiary img {
  object-position: center 22%;
}

.account-logo {
  position: absolute;
  z-index: 2;
  top: 36px;
  left: 36px;
  width: 144px;
  height: auto;
}

.account-visual-copy {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 36px;
  width: min(54%, 490px);
  color: var(--gl-color-white);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.48);
}

.account-visual-copy p {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-visual-copy h1 {
  margin: 0;
  font-family: var(--gl-font-editorial);
  font-size: 50px;
  font-style: italic;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.account-visual-caption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.account-visual-caption span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gl-color-lime);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.account-workspace {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 32px 48px 22px;
  background: var(--gl-color-gray-50);
}

.account-view {
  width: min(100%, 520px);
  margin: auto;
}

.account-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--gl-text-secondary);
}

.account-loader {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--gl-color-black);
  border-radius: 50%;
  animation: account-spin 0.8s linear infinite;
}

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

.account-heading {
  margin-bottom: 24px;
}

.account-kicker {
  margin: 0 0 9px;
  color: var(--gl-color-gray-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-heading h2 {
  max-width: 460px;
  margin: 0;
  font-family: var(--gl-font-editorial);
  font-size: 52px;
  font-style: italic;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.account-heading > p:last-child {
  max-width: 420px;
  margin: 13px 0 0;
  color: var(--gl-text-secondary);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
}

.context-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.context-option {
  position: relative;
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--gl-color-black);
  border-radius: 6px;
  color: var(--gl-color-white);
  background: var(--gl-color-black);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.context-option[data-context="merchant"] {
  border-color: var(--gl-color-lime);
  color: var(--gl-color-black);
  background: var(--gl-color-lime);
}

.context-option[data-context="staff"] {
  border-color: var(--gl-color-navy);
  background: var(--gl-color-navy);
}

.account-beta {
  max-width: 510px;
}

.account-beta .account-heading {
  margin-bottom: 26px;
}

.beta-actions {
  display: grid;
  gap: 9px;
}

.beta-actions a,
.beta-actions button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: var(--gl-color-white);
  background: var(--gl-color-black);
  border: 1px solid var(--gl-color-black);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.beta-actions a:first-child {
  color: var(--gl-color-black);
  background: var(--gl-color-lime);
  border-color: var(--gl-color-lime);
}

.beta-actions button {
  justify-content: center;
  color: var(--gl-color-black);
  background: transparent;
  cursor: pointer;
}

.beta-actions svg {
  width: 17px;
  height: 17px;
}

.beta-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.beta-signout {
  min-height: 44px;
  margin-top: 16px;
  padding: 0;
  color: var(--gl-text-secondary);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.context-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.context-option:focus-visible,
.google-access:focus-visible,
.email-access button:focus-visible,
.account-identity button:focus-visible {
  outline: 3px solid var(--gl-focus-ring);
  outline-offset: 3px;
}

.context-icon,
.context-arrow {
  display: grid;
  place-items: center;
}

.context-icon svg {
  width: 16px;
  height: 16px;
}

.context-arrow svg {
  width: 14px;
  height: 14px;
}

.context-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.google-access {
  width: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--gl-color-black);
  border-radius: 6px;
  color: var(--gl-color-white);
  background: var(--gl-color-black);
  font-size: 13px;
  font-weight: 600;
}

.google-access svg {
  width: 19px;
  height: 19px;
  padding: 3px;
  border-radius: 50%;
  background: var(--gl-color-white);
}

.google-access:disabled,
.email-access button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.access-divider {
  position: relative;
  width: min(100%, 380px);
  margin: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  text-align: center;
}

.access-divider span {
  position: relative;
  top: -10px;
  padding: 0 10px;
  color: var(--gl-color-gray-500);
  background: var(--gl-color-gray-50);
  font-size: 10px;
}

.email-access {
  width: min(100%, 380px);
}

.email-access label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 600;
}

.email-access-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 7px;
}

.email-access input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  outline: none;
  background: var(--gl-color-white);
  font-size: 13px;
}

.email-access input:focus {
  border-color: var(--gl-color-black);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.42);
}

.email-access button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--gl-color-black);
  background: var(--gl-color-lime);
}

.email-access button svg {
  width: 18px;
}

.email-access small {
  display: block;
  margin-top: 8px;
  color: var(--gl-text-secondary);
  font-size: 10px;
  line-height: 1.4;
}

.account-identity {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.11);
}

.identity-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gl-color-black);
  background: var(--gl-color-lime);
  font-size: 12px;
  font-weight: 700;
}

.account-identity strong,
.account-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity strong {
  font-size: 11px;
}

.account-identity small {
  margin-top: 2px;
  color: var(--gl-text-secondary);
  font-size: 9px;
}

.account-identity button {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  color: var(--gl-color-gray-700);
  background: transparent;
  font-size: 10px;
}

.account-identity button svg {
  width: 14px;
}

.account-status {
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 12px;
  color: var(--gl-text-secondary);
  font-size: 10px;
  line-height: 1.35;
}

.account-status svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.account-footer {
  width: min(100%, 520px);
  display: flex;
  gap: 14px;
  margin: 20px auto 0;
  color: var(--gl-text-secondary);
  font-size: 9px;
}

.account-footer a {
  color: inherit;
  text-decoration: none;
}

.account-footer a:hover {
  color: var(--gl-color-black);
}

.account-footer span {
  margin-left: auto;
}

.account-toast {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  max-width: min(340px, calc(100vw - 32px));
  padding: 11px 14px;
  border-radius: 6px;
  color: var(--gl-color-white);
  background: var(--gl-color-black);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}

.account-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1500px) {
  .account-shell {
    grid-template-columns: minmax(760px, 1.55fr) minmax(480px, 0.8fr);
  }

  .account-heading h2 {
    font-size: 54px;
  }

  .account-visual-copy h1 {
    font-size: 50px;
  }
}

@media (max-width: 1080px) {
  .account-shell {
    grid-template-columns: minmax(520px, 1.15fr) minmax(390px, 0.85fr);
  }

  .account-workspace {
    padding-right: 34px;
    padding-left: 34px;
  }

  .account-heading h2 {
    font-size: 42px;
  }

  .account-visual-copy h1 {
    font-size: 38px;
  }
}

@media (max-width: 820px) {
  body {
    background: var(--gl-color-gray-50);
  }

  .account-shell {
    display: block;
  }

  .account-visual {
    position: relative;
    height: 43dvh;
    min-height: 300px;
    max-height: 390px;
  }

  .account-gallery {
    grid-template-columns: minmax(0, 1.62fr) minmax(118px, 0.92fr);
    gap: 3px;
  }

  .account-shot-primary img {
    object-position: 42% 25%;
  }

  .account-shot-secondary img {
    object-position: center 20%;
  }

  .account-shot-tertiary img {
    object-position: center 19%;
  }

  .account-logo {
    top: max(20px, env(safe-area-inset-top));
    left: max(18px, env(safe-area-inset-left));
    width: 98px;
  }

  .account-visual-copy {
    bottom: 18px;
    left: max(18px, env(safe-area-inset-left));
    width: min(54%, 230px);
  }

  .account-visual-copy p {
    margin: 0 0 7px;
    font-size: 9px;
    line-height: 1.35;
  }

  .account-visual-copy h1 {
    display: block;
    font-size: 34px;
    line-height: 0.94;
  }

  .account-visual-caption {
    display: none;
  }

  .account-workspace {
    min-height: 57dvh;
    padding: 18px max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }

  .account-status {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .account-view {
    margin: 0 auto;
  }

  .account-heading {
    margin-bottom: 18px;
  }

  .account-heading h2 {
    max-width: 350px;
    font-size: 36px;
  }

  .account-heading > p:last-child {
    margin-top: 10px;
    font-size: 13px;
  }

  .context-list {
    display: flex;
    flex-wrap: wrap;
  }

  .context-option {
    width: auto;
    min-height: 46px;
    padding: 0 11px;
  }

  .context-label {
    font-size: 12px;
  }

  .account-identity {
    margin-top: 18px;
    padding-top: 14px;
  }

  .account-footer {
    margin-top: 16px;
  }

  .google-access {
    min-height: 46px;
  }

  .email-access input {
    height: 46px;
  }
}

@media (max-width: 430px) {
  .account-heading h2 {
    font-size: 34px;
  }

  .context-option {
    gap: 6px;
    padding: 0 9px;
  }

  .context-arrow {
    display: none;
  }
}

@media (max-height: 720px) and (max-width: 820px) {
  .account-visual {
    height: 36dvh;
    min-height: 240px;
    max-height: 290px;
  }

  .account-workspace {
    min-height: 64dvh;
  }

  .account-heading h2 {
    font-size: 32px;
  }

  .account-heading > p:last-child {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
