body.account-page.z4-signed-in {
  --account-width: min(1254px, calc(100% - clamp(40px, 9vw, 136px)));
  --account-ink: #f5f6f8;
  --account-muted: #b5b5ba;
  --account-border: #ffffff2b;
  --account-accent: #0188ff;
  --account-link: #afd4fa;
  --account-gap: clamp(26px, 2.76vw, 48px);
  --account-split: 48.75%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  color-scheme: dark;
  background: var(--z4-ascii-background);
  color: var(--account-ink);
  font: 400 16px/1.45 "Z4 Inter Latin", "Segoe UI", sans-serif;
  --text-primary: var(--account-ink);
  --text-secondary: var(--account-muted);
  --border: var(--account-border);
  --border-hover: #858991;
  --focus: var(--account-accent);
  --field-background: #0e1013;
}

body.account-page.z4-signed-in #field { display: block; }

 
.account-page .z4-site-footer .z4-footer-brand { margin-bottom: 0; }

body.account-page.z4-signed-in #main-content {
  display: block;
  flex: 1;
  width: var(--account-width);
  max-width: none;
  min-height: 0;
  padding: 0 0 37px;
}

body.account-page.z4-signed-in .account-layout .account-card {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

#profile-panel [hidden] { display: none !important; }

.account-hero {
  position: relative;
  min-height: clamp(359px, 23.46vw, 408px);
  padding: clamp(56px, 4.21vw, 74px) 0 47px;
}

.account-hero-copy { position: relative; z-index: 1; width: min(61%, 736px); }

#account-view-title {
  margin: 0;
  color: var(--account-ink);
  font-size: clamp(62px, 5.13vw, 89px);
  font-weight: 760;
  line-height: .99;
  letter-spacing: -.010em;
  margin-left: -2px;
}

#profile-panel #account-description {
  margin: 2px 0 0;
  color: var(--account-muted);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 26px;
  letter-spacing: -.006em;
}

.account-keys-art {
  position: absolute;
  top: 17px;
  right: clamp(0px, 3vw, 52px);
  width: min(35%, 416px);
  aspect-ratio: 416 / 362;
  user-select: none;
}

.account-keys-art canvas { display: block; width: 100%; height: 100%; pointer-events: none; }

#profile-panel .account-status {
  display: grid;
  grid-template-columns: minmax(0, 262fr) minmax(0, 223fr) minmax(0, 251fr);
  min-height: 68px;
  margin: 30px 0 0;
}

#profile-panel .account-status > div {
  position: relative;
  min-width: 0;
  padding-right: 14px;
}

#profile-panel .account-status > div:first-child { padding-left: 2px; }

#profile-panel .account-status > div + div { padding-left: clamp(16px, 1.55vw, 27px); }

#profile-panel .account-status > div + div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: #34363a;
  content: "";
}

#profile-panel .account-status dt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--account-muted);
  font-size: 15px;
  line-height: 19px;
  white-space: nowrap;
}

#profile-panel .account-status dd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  color: var(--account-ink);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.004em;
  overflow-wrap: anywhere;
}

#profile-panel .account-status .ui-icon { flex: none; width: 17px; height: 17px; color: #d2d7e1; }
#profile-panel .account-status .ui-icon:has(use[href="#icon-discord"]) { stroke: none; }
#profile-panel .account-discord-info { min-width: 0; }
#profile-panel .account-caption {
  display: block;
  color: var(--account-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -.018em;
}

#profile-panel #account-access-status { align-items: center; }
#profile-panel #premium-expiry {
  flex-basis: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
}
#profile-panel #premium-expiry:empty { display: none; }
#profile-panel #logout { margin-top: 28px; border-color: #45464a; }

.account-dashboard-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, var(--account-split)) minmax(0, 1fr);
  min-height: 313px;
  padding-top: 32px;
}

.account-dashboard-grid::before,
#profile-panel .account-premium-links::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--account-border);
  content: "";
}

.account-dashboard-grid::after {
  position: absolute;
  inset: 32px auto 0 var(--account-split);
  width: 1px;
  background: var(--account-border);
  content: "";
  pointer-events: none;
}

#profile-panel .dashboard-card {
  min-width: 0;
  scroll-margin-top: 18px;
}

#profile-panel #premium { padding-right: var(--account-gap); }
#profile-panel #keys { padding-left: calc(var(--account-gap) + 1px); }
#profile-panel #keys h2 { margin-left: -4px; }

#profile-panel h2 {
  margin: -6px 0 15px;
  color: var(--account-ink);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 740;
  line-height: 1.1;
  letter-spacing: -.009em;
  margin-left: -1px;
}

#profile-panel :is(h3, .redeem-label) {
  margin: 0;
  color: var(--account-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: -.012em;
}

#profile-panel :is(.premium-panel, .license-row) {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

#profile-panel #keys:has(#client-code-panel[hidden]) .account-key { display: none; }
#profile-panel :is(.account-muted, .verification-note, .key-empty, #license-row p) {
  margin: 2px 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--account-muted);
  font-size: 16px;
  line-height: 21px;
}

#profile-panel #premium-state {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

#profile-panel #premium-state[data-active="true"] {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

#profile-panel #premium-state[data-active="true"]::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ec6f5;
  content: "";
}

#profile-panel #premium-key-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(10px, 1.1vw, 19px);
  row-gap: 16px;
  margin-top: 22px;
}

#profile-panel .redeem-label { grid-column: 1 / -1; letter-spacing: -.002em; }
#profile-panel #premium-key-submit { min-width: 118px; }

#profile-panel .account-premium-links {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 23px;
  padding-top: 18px;
  color: var(--account-muted);
  font-size: 15px;
}

#profile-panel .account-premium-links::before { background: #3c3d40; }

#profile-panel .account-premium-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--account-link);
  font-size: 17px;
  text-decoration: none;
}

#profile-panel .account-premium-links .account-store-link {
  color: var(--account-ink);
  font-size: 16px;
}

#profile-panel .account-premium-links a:is(:hover, :focus-visible) { color: #eef4ff; }
#profile-panel .account-premium-links .ui-icon { width: 18px; height: 18px; }

#profile-panel .dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--account-border);
  border-radius: 7px;
  background: #0a0909;
  color: var(--account-ink);
  box-shadow: none;
  font: 650 14px/1.3 "Z4 Inter Latin", "Segoe UI", sans-serif;
  letter-spacing: -.014em;
  cursor: pointer;
  white-space: nowrap;
}

#profile-panel .dashboard-button-accent {
  border-color: var(--account-accent);
  color: var(--account-ink);
  background-color: #0b1520aa;
}

#profile-panel .dashboard-button:hover { border-color: #77777e; background-color: #ffffff08; }
#profile-panel .dashboard-button:disabled { opacity: .53; cursor: default; }
#profile-panel .dashboard-button .ui-icon { width: 15px; height: 15px; }

#profile-panel :is(#premium-key-form, .license-controls) input {
  grid-column: auto;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--account-border);
  border-radius: 7px;
  background: var(--field-background);
  color: var(--account-ink);
  box-shadow: inset 0 0 0 1px #ffffff09;
  font: 400 16px/1.3 "Z4 Inter Latin", "Segoe UI", sans-serif;
}

#profile-panel :is(#premium-key-form, .license-controls) input:focus { border-color: var(--account-accent); }
#profile-panel input::placeholder { color: #b2b6be; }
#profile-panel :is(a, button, input):focus-visible { outline: 2px solid var(--account-accent); outline-offset: 3px; }
#profile-panel .license-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14.5px; }
#profile-panel .license-controls input { font-size: 15px !important; }
#profile-panel #profile-license[type="password"] { letter-spacing: .045em; }
#profile-panel #license-reveal { min-width: 70px; }
#profile-panel #license-copy { min-width: 69px; }

#profile-panel #client-code-start { min-width: 160px; }

.account-code-result {
  display: grid;
  grid-template-rows: 0fr;
  margin-inline: -5px;
  opacity: 0;
}

.account-code-result:has(#client-code-row:not([hidden]), #client-code-status:not(:empty)) {
  grid-template-rows: 1fr;
  opacity: 1;
}

.account-code-result-content {
  min-height: 0;
  overflow: hidden;
  padding-inline: 5px;
}

#profile-panel .account-key { margin-top: 21px; }
#profile-panel .account-key h3 { margin-bottom: 7px; }
#profile-panel #license-row p { margin: 9px 0 0; }
#profile-panel #client-code-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
  row-gap: 8px;
}

#profile-panel #premium-message:empty { display: none; }
#profile-panel #client-code-status { margin: 10px 0 2px; }
#profile-panel #client-code-status:empty { margin: 0; }
#profile-panel #premium-message { grid-column: 1 / -1; margin: 14px 0 0; color: var(--account-muted); }
#account-code-countdown { grid-column: 1 / -1; color: var(--account-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
body.account-page.z4-signed-in #account-message { margin-top: 16px; }

@media (prefers-reduced-motion: no-preference) {
  #profile-panel .account-status > div + div::before {
    transform-origin: bottom;
    animation: account-divider-up 320ms cubic-bezier(.22,.7,.27,1) 35ms backwards;
  }

  #profile-panel .account-status > div:nth-child(3)::before { animation-delay: 95ms; }
  #profile-panel .account-dashboard-grid::after {
    transform-origin: top;
    animation: account-divider-up 340ms cubic-bezier(.22,.7,.27,1) 150ms backwards;
  }

  #profile-panel .account-dashboard-grid::before,
  #profile-panel .account-premium-links::before {
    transform-origin: left;
    animation: account-divider-across 380ms cubic-bezier(.22,.7,.27,1) 65ms backwards;
  }

  #profile-panel .account-premium-links::before { animation-delay: 160ms; }

  .account-code-result {
    transition: grid-template-rows 240ms cubic-bezier(.22,.7,.27,1), opacity 180ms ease-out;
  }
}

@keyframes account-divider-up {
  from { transform: scaleY(0); }
}

@keyframes account-divider-across {
  from { transform: scaleX(0); }
}

@media (max-width: 1130px) {
  .account-keys-art { right: 0; }
  .account-hero-copy { width: 64%; }
  #profile-panel .account-status dd { font-size: 17px; }
  #profile-panel .account-status dt { gap: 6px; }
}

@media (max-width: 950px) {
  .account-hero { min-height: 0; padding: 46px 0 37px; }
  .account-hero-copy { width: 100%; }
  .account-keys-art { position: relative; top: auto; right: auto; width: min(100%, 360px); margin: -22px auto -13px; }
  #profile-panel .account-status { width: min(100%, 736px); }
}

@media (max-width: 760px) {
  body.account-page.z4-signed-in { --account-width: calc(100% - 36px); }
  .account-keys-art {
    width: min(57%, 224px);
    margin: 8px auto -9px;
    opacity: .55;
  }

  .account-dashboard-grid { grid-template-columns: 1fr; min-height: 0; gap: 29px; }
  .account-dashboard-grid::after { display: none; }
  #profile-panel #premium { padding-right: 0; }
  #profile-panel #keys { padding: 27px 0 0; border-top: 1px solid var(--account-border); }
  #profile-panel #keys h2 { margin-left: -1px; }
  #profile-panel h2 { font-size: 37px; }
}

@media (max-width: 540px) {
  .account-hero { padding-top: 34px; }
  #account-view-title { font-size: clamp(52px, 12vw, 62px); }
  #profile-panel .account-status { grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); gap: 15px 12px; }
  #profile-panel .account-status > div { padding-right: 0; }
  #profile-panel .account-status > div + div { padding-left: 12px; }
  #profile-panel .account-status > div:last-child { grid-column: 1 / -1; padding-left: 0; }
  #profile-panel .account-status > div:last-child::before { display: none; }
  #profile-panel #logout { margin-top: 22px; }
}

@media (max-width: 420px) {
  #profile-panel #premium-key-submit { min-width: 88px; }
  #profile-panel #license-row .license-controls { grid-template-columns: 1fr 1fr; gap: 8px; }
  #profile-panel #license-row input { grid-column: 1 / -1; }
}

@media (max-width: 370px) {
  #profile-panel .account-status { grid-template-columns: 1fr; }
  #profile-panel .account-status > div,
  #profile-panel .account-status > div:first-child,
  #profile-panel .account-status > div + div { padding-left: 0; }
  #profile-panel .account-status > div + div::before { display: none; }
}
