.account-page {
  --account-ivory: #f7f3ed;
  --account-paper: #fffcf8;
  --account-copper: #c54b16;
  --account-copper-hover: #a73e10;
  --account-ink: #211b17;
  --account-muted: #766c64;
  --account-line: #e4dbd1;
  color: var(--account-ink);
  background: var(--account-ivory);
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

.account-page *,
.account-page *::before,
.account-page *::after {
  box-sizing: border-box;
}

.account-page button,
.account-page input,
.account-page select {
  font: inherit;
}

.account-page button,
.account-page summary {
  cursor: pointer;
}

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

.account-page a:focus-visible,
.account-page button:focus-visible,
.account-page summary:focus-visible {
  outline: 3px solid var(--account-copper);
  outline-offset: 4px;
}

.account-skip {
  position: fixed;
  z-index: 200;
  top: -80px;
  left: 20px;
  padding: 12px 20px;
  background: var(--account-paper);
  border: 1px solid var(--account-copper);
}

.account-skip:focus {
  top: 14px;
}

.account-page .account-nav {
  position: relative;
  padding: 22px 0;
  background: var(--account-ivory);
  border-bottom: 1px solid var(--account-line);
  box-shadow: none;
}

.account-page .account-nav .container {
  width: min(100%, 1376px);
  max-width: 1376px;
  padding-inline: 40px;
  margin-inline: auto;
}

.account-page .account-nav .nav-inner {
  display: flex;
  height: auto;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-page .account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  letter-spacing: 0.19em;
  font-weight: 800;
  line-height: 1.2;
}

.account-brand img {
  display: block;
  flex: 0 0 auto;
}

.account-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.36em;
  font-weight: 500;
  margin-top: 7px;
  color: #8c4f30;
}

.account-page .account-nav .nav-links {
  display: flex;
  position: static;
  flex-direction: row;
  padding: 0;
  border: 0;
  box-shadow: none;
  gap: 32px;
  font-size: 13px;
  color: var(--account-muted);
}

.account-page .account-nav .nav-links a {
  padding-block: 12px;
  transition: color 180ms ease;
}

.account-page .account-nav .nav-links a:hover {
  color: var(--account-copper);
}

.account-page .account-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.account-page .account-language {
  min-width: 54px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid var(--account-line);
  border-radius: 7px;
  background: transparent;
  color: var(--account-ink);
}

.account-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  min-height: 44px;
  white-space: nowrap;
}

.account-home > span:first-child {
  font-size: 20px;
}

.account-page .account-main.container {
  width: min(100%, 1376px);
  max-width: 1376px;
  padding: 40px;
  margin-inline: auto;
}

.account-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 732px;
  border: 1px solid var(--account-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px -35px #4e321b40;
  background: var(--account-paper);
}

.account-editorial {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  background: #5d3a23;
  color: #fff7ea;
}

.account-landscape {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/frayqon-alpine-v1.webp") center center/cover
    no-repeat;
}

.account-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #251b12b8 0%,
    #291c1247 49%,
    #251b12eb 100%
  );
}

.account-editorial-copy {
  padding: 48px 48px 80px;
}

.account-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 0.21em;
  font-weight: 650;
  color: #f0d3b4;
}

.account-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f09452;
  box-shadow: 0 0 16px #f0955260;
}

.account-eyebrow b {
  font-weight: inherit;
}

.account-editorial h1 {
  margin: 32px 0 20px;
  font-size: clamp(35px, 3.3vw, 50px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.account-editorial h1 em {
  font-weight: 450;
  font-style: normal;
  color: #ffc69a;
}

.account-editorial-copy > p {
  font-size: 15px;
  line-height: 1.65;
  color: #f4e3d2;
}

.account-editorial-bottom {
  padding: 24px 48px 30px;
}

.account-promise {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 22px;
}

.account-promise-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #f6e9da40;
  border-radius: 50%;
  flex: 0 0 auto;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: #f2c49d;
}

.account-promise strong {
  font-size: 14px;
  font-weight: 600;
}

.account-promise p {
  font-size: 12px;
  color: #d7c6b6;
  line-height: 1.5;
  margin: 2px 0 0;
}

.account-editorial-signoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #f8e4cd30;
  margin-top: 30px;
  padding-top: 20px;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #dcc7b2;
}

.account-editorial-signoff > span:last-child {
  font-size: 24px;
  line-height: 1;
  color: #efbd91;
}

.account-card {
  padding: 52px clamp(28px, 4vw, 64px) 36px;
  min-width: 0;
  align-content: center;
}

.account-card-heading {
  margin-bottom: 30px;
}

.account-card-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.21em;
  color: var(--account-copper);
  margin: 0 0 12px;
}

.account-card-heading h2 {
  font-size: clamp(26px, 2.5vw, 33px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin: 0 0 13px;
}

.account-card-heading > p:last-child {
  color: var(--account-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.account-page .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #f0ebe4;
  border-radius: 9px;
  margin-bottom: 24px;
  border: 1px solid #e9e0d6;
}

.account-page .auth-tab {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 8px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #817164;
  background: transparent;
  text-align: center;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.account-page .auth-tab:hover {
  color: var(--account-copper);
}

.account-page .auth-tab.active {
  background: var(--account-paper);
  color: var(--account-ink);
  box-shadow: 0 2px 5px #3c241512;
}

.account-page #auth-error {
  margin-bottom: 16px;
  color: #a52e23;
  font-size: 12px;
  line-height: 1.5;
}

.account-page #auth-error:empty {
  display: none;
}

.account-page .form-group {
  margin-bottom: 18px;
}

.account-page .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4a3b31;
  margin-bottom: 7px;
}

.account-page .form-control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid #ddd2c7;
  border-radius: 7px;
  background: #fffcf9;
  color: var(--account-ink);
  font-size: 14px;
  line-height: 1.45;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.account-page .form-control::placeholder {
  color: #a19488;
}

.account-page .form-control:focus {
  outline: none;
  border-color: var(--account-copper);
  box-shadow: 0 0 0 3px #c54b1615;
}

.account-password {
  position: relative;
}

.account-password .form-control {
  padding-right: 52px;
}

.account-password-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 45px;
  height: 45px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #8a7a6c;
}

.account-password-toggle:hover,
.account-password-toggle[aria-pressed="true"] {
  color: var(--account-copper);
  background: #f5ece3;
}

.account-password-toggle svg,
.account-app-note svg,
.account-avatar svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-page .account-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding: 13px 18px;
  background: var(--account-copper);
  color: #fffaf5;
  border: 1px solid var(--account-copper);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 5px 16px -7px #c54b1680;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.account-page .account-submit:hover {
  background: var(--account-copper-hover);
  border-color: var(--account-copper-hover);
  box-shadow: 0 7px 20px -7px #c54b1680;
}

.account-app-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
  margin: 24px 0;
  color: #88786a;
}

.account-app-note svg {
  margin-top: 3px;
  flex: 0 0 auto;
}

.account-app-note p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}

.account-app-note a {
  color: #99451f;
  text-underline-offset: 3px;
}

.account-app-note a:hover {
  text-decoration: underline;
}

.account-page .test-accounts-box {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--account-line);
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.test-accounts-box summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: #8a7869;
  list-style: none;
}

.test-accounts-box summary::-webkit-details-marker {
  display: none;
}

.test-accounts-box summary::after {
  content: "+";
  margin-left: auto;
  font-family: ui-monospace, monospace;
  font-size: 18px;
  color: #987d66;
}

.test-accounts-box[open] summary::after {
  content: "−";
}

.test-accounts-box summary > span {
  font-size: 7px;
  letter-spacing: 0.09em;
  padding: 2px 5px;
  border: 1px solid #dfcfbf;
  border-radius: 3px;
  color: #93704f;
}

.account-demo-content {
  padding: 0 0 18px;
}

.account-page .account-demo-content p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--account-muted);
  margin: 0 0 12px;
}

.account-demo-buttons {
  display: grid;
  gap: 8px;
}

.account-page .test-chip {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--account-line);
  border-radius: 5px;
  font-size: 11px;
  color: var(--account-ink);
  background: #f8f2eb;
  text-align: left;
}

.account-page .test-chip:hover {
  background: #f1e5d9;
  border-color: #ceb8a2;
}

.test-chip > span {
  font-size: 9px;
  color: #8a7159;
}

.account-page .account-demo-content .account-demo-hint {
  font-size: 10px;
  margin: 10px 0 0;
}

.account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 23px;
  color: #9c8e81;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.account-footer > span:last-child {
  letter-spacing: 0.14em;
  font-size: 8px;
}

.account-profile-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 18px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #b4653d;
  background: #f3e5d6;
  border: 1px solid #e5cbb6;
}

.account-profile-name {
  min-width: 0;
}

.account-profile-name h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  margin: 0 0 3px;
}

.account-profile-name > span {
  color: var(--account-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-page #user-plan-badge {
  display: inline-flex;
  font-size: 10px;
  padding: 5px 10px;
  margin-bottom: 24px;
  border: 1px solid #ddc2ab;
  border-radius: 5px;
  color: #9b431a;
  background: #f5e7d9;
  font-weight: 600;
}

.account-license {
  background: #f6f1ea;
  border: 1px solid var(--account-line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}

.account-license h3 {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 16px;
}

.account-license-period {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 14px;
  font-size: 11px;
  color: var(--account-muted);
  border-bottom: 1px solid #e7dcd0;
  padding-bottom: 15px;
}

.account-license-period strong {
  color: var(--account-ink);
  font-weight: 600;
}

.account-key-label {
  margin: 16px 0 8px;
  font-size: 11px;
  color: var(--account-muted);
}

.account-key-row {
  display: grid;
  gap: 8px;
}

.account-key-row code {
  display: block;
  padding: 12px;
  background: var(--account-paper);
  border: 1px dashed #d8bfaa;
  border-radius: 5px;
  color: #9d461e;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.account-page .account-key-row .btn {
  justify-self: start;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dbccbe;
  border-radius: 5px;
  color: #5c493b;
  background: transparent;
  font-size: 11px;
}

.account-page .account-key-row .btn:hover {
  background: #f0e4d7;
}

.account-tg-card {
  background: #f1f7fa;
  border: 1px solid #c7e0ea;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.account-tg-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.account-tg-icon {
  font-size: 20px;
  line-height: 1.2;
}

.account-tg-header strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #1a597a;
  margin-bottom: 4px;
}

.account-tg-header p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #3b5c6e;
}

.account-tg-note {
  font-size: 11px;
  line-height: 1.45;
  color: #4f6a79;
  background: #e4eff4;
  border-radius: 6px;
  padding: 8px 12px;
}

.account-guide {

  margin: 22px 0;
  font-size: 12px;
}

.account-guide strong {
  font-size: 13px;
}

.account-guide ol {
  padding-left: 18px;
  margin-top: 10px;
  color: var(--account-muted);
}

.account-guide li {
  padding-left: 3px;
  margin-bottom: 7px;
  line-height: 1.6;
}

.account-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  font-size: 11px;
}

.account-profile-actions a,
.account-profile-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #8b5f3d;
}

.account-profile-actions button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: #83766a;
}

.account-profile-actions a:hover,
.account-profile-actions button:hover {
  color: var(--account-copper);
}

@media (min-width: 1500px) {
  .account-page .account-main.container {
    padding-top: 62px;
  }
  .account-shell {
    min-height: 772px;
  }
}

@media (max-width: 1050px) {
  .account-page .account-main.container {
    padding: 30px;
  }
  .account-page .account-nav .container {
    padding-inline: 30px;
  }
  .account-shell {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .account-editorial-copy {
    padding: 40px 32px 70px;
  }
  .account-editorial-bottom {
    padding: 24px 32px;
  }
  .account-card {
    padding: 40px 32px 28px;
  }
  .account-editorial h1 {
    font-size: 39px;
  }
}

@media (max-width: 760px) {
  .account-page .account-main.container {
    padding: 20px;
  }
  .account-page .account-nav {
    padding: 15px 0;
  }
  .account-page .account-nav .container {
    padding-inline: 20px;
  }
  .account-page .account-nav .nav-links {
    display: none;
  }
  .account-page .account-nav .nav-actions {
    gap: 14px;
  }
  .account-page .account-brand {
    font-size: 16px;
    gap: 9px;
  }
  .account-brand img {
    width: 28px;
    height: 33px;
  }
  .account-brand small {
    font-size: 7px;
  }
  .account-shell {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .account-editorial {
    min-height: 245px;
  }
  .account-landscape {
    background-position: center 55%;
  }
  .account-editorial::before {
    background: linear-gradient(90deg, #251b12dd, #291c122b);
  }
  .account-editorial-copy {
    padding: 28px;
  }
  .account-editorial h1 {
    font-size: 34px;
    margin: 18px 0 12px;
  }
  .account-editorial-copy > p {
    font-size: 12px;
  }
  .account-editorial-bottom {
    display: none;
  }
  .account-card {
    padding: 32px 28px 24px;
  }
  .account-card-heading {
    margin-bottom: 24px;
  }
  .account-card-heading h2 {
    font-size: 28px;
  }
  .account-page .form-control {
    font-size: 16px;
  }
  .account-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
  }
}

@media (max-width: 410px) {
  .account-page .account-main.container {
    padding: 14px;
  }
  .account-page .account-nav .container {
    padding-inline: 17px;
  }
  .account-page .account-nav .nav-actions {
    gap: 10px;
  }
  .account-home {
    font-size: 11px;
    gap: 5px;
  }
  .account-page .account-language {
    min-width: 44px;
    padding: 7px;
  }
  .account-editorial-copy {
    padding: 25px;
  }
  .account-editorial h1 {
    font-size: 31px;
  }
  .account-card {
    padding: 28px 22px 20px;
  }
  .account-card-heading h2 {
    font-size: 26px;
  }
  .account-license {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-page *,
  .account-page *::before,
  .account-page *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
