/* Shared STORM theme for the homepage, products and personal account. */
body:is(.home-page, .account-page, .product-page) {
  --bg: #171819;
  --bg-deep: #111213;
  --panel: #1b1c1f;
  --white: #f5f5ef;
  --muted: #a6a7a6;
  --muted-2: #858785;
  --line: rgba(255, 255, 255, .13);
  --line-soft: rgba(255, 255, 255, .07);
  --action: #f4f4ed;
  --action-ink: #111213;
  --accent: #8f2cff;
  --accent-bright: #b463ff;
  --accent-soft: rgba(143, 44, 255, .12);
  --accent-line: rgba(180, 99, 255, .45);
  --max: 1340px;
  --header: 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 77% 7%, rgba(20, 224, 209, .035), transparent 28rem),
    radial-gradient(circle at 12% 20%, rgba(151, 36, 255, .045), transparent 34rem),
    var(--bg);
}

body:is(.home-page, .account-page, .product-page) :is(.scene, .nav-shell, .footer-shell) {
  width: min(calc(100% - 64px), var(--max));
}

body:is(.home-page, .account-page, .product-page) .site-header {
  height: var(--header);
  border-bottom-color: rgba(255, 255, 255, .055);
  background: rgba(23, 24, 25, .9);
  backdrop-filter: blur(16px);
}
body:is(.home-page, .account-page, .product-page) .skip-link { left: max(32px, calc((100vw - var(--max)) / 2)); }

body:is(.home-page, .account-page, .product-page) .brand { gap: 10px; font-size: 11px; }
body:is(.home-page, .account-page, .product-page) .brand > img {
  width: 48px;
  height: 29px;
  filter: saturate(1.45) contrast(1.15);
}
body:is(.home-page, .account-page, .product-page) .desktop-nav { gap: 32px; }
body:is(.home-page, .account-page, .product-page) :is(.desktop-nav a, .header-login) {
  color: #e0e0da;
  font-size: 11px;
}
body:is(.home-page, .account-page, .product-page) .header-actions { gap: 18px; }

body:is(.home-page, .account-page, .product-page) .storm-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 23px;
  color: var(--action-ink);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: var(--action);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body:is(.home-page, .account-page, .product-page) .storm-button:hover {
  transform: translateY(-2px);
  color: #0d0e0f;
  background: #fff;
  box-shadow: 0 0 34px rgba(244, 244, 237, .14);
}
body:is(.home-page, .account-page, .product-page) .storm-button:active { transform: translateY(1px) scale(.99); }
body:is(.home-page, .account-page, .product-page) .storm-button-secondary:not(.active) {
  color: var(--white);
  border-color: var(--line);
  background: transparent;
}
body:is(.home-page, .account-page, .product-page) .storm-button-secondary:not(.active):hover {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}
body:is(.home-page, .account-page, .product-page) .storm-button-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  font-size: 18px;
}
body.account-page .account-nav button .account-nav-number { color: inherit; }
body.account-page :is(.account-user-card > div > span, .account-state small) { color: #a6a7a6; }
body.account-page :is(#accountDownloadFiles, #accountDownloadsEmpty)[hidden] { display: none; }
body.account-page .account-avatar { overflow: hidden; flex-shrink: 0; }
body.account-page .account-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.account-page .avatar-shortcut { padding: 0; cursor: pointer; }
body.account-page .avatar-shortcut:hover { border-color: var(--action); }
.account-avatar-editor {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  padding-bottom: 24px;
}
body.account-page .account-profile-avatar { width: 64px; height: 64px; border-radius: 16px; }
.avatar-editor-controls { min-width: 0; }
.avatar-label { display: block; margin-bottom: 8px; color: var(--white); font-size: 14px; }
.avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.account-page .avatar-actions .storm-button { min-height: 44px; padding-inline: 16px; }
.avatar-hint, .avatar-status { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; }
.avatar-hint { color: var(--muted); }
.avatar-status { color: #a8dbc1; overflow-wrap: anywhere; }
.avatar-status.error { color: #ffaaa5; }
body.account-page :is(#avatarFile, #avatarRemove, #avatarStatus)[hidden] { display: none; }
body.account-page .avatar-actions button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
  .avatar-actions { flex-direction: column; align-items: stretch; }
  .avatar-actions .storm-button { width: 100%; }
}
.account-download-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.account-download-file h3 { margin: 0 0 12px; font-size: 24px; font-weight: 600; }
.account-download-file p { margin: 0; color: var(--muted); font-size: 14px; }
body:is(.home-page, .account-page, .product-page) .pill-small {
  min-height: 36px;
  padding-inline: 17px;
  gap: 14px;
  font-size: 10px;
}
body:is(.home-page, .account-page, .product-page) .underlink { color: #f0f0eb; font-size: 11px; }
body:is(.home-page, .account-page, .product-page) .underlink:hover { color: #fff; }
body:is(.home-page, .account-page, .product-page) .micro-label {
  color: #aaa7b1;
  font-size: 9px;
  letter-spacing: .11em;
}

body:is(.home-page, .account-page, .product-page) .site-footer {
  border-top-color: var(--line);
  background: #131416;
}
body:is(.home-page, .account-page, .product-page) .footer-shell { padding-top: 64px; }
body:is(.home-page, .account-page, .product-page) .footer-main { min-height: 230px; }
body:is(.home-page, .account-page, .product-page) .footer-identity img { filter: saturate(1.5) contrast(1.1); }

@media (max-width: 860px) {
  body:is(.home-page, .account-page, .product-page) .skip-link { left: 18px; }
  body:is(.home-page, .account-page, .product-page) :is(.scene, .nav-shell, .footer-shell) { width: calc(100% - 36px); }
  body:is(.home-page, .account-page, .product-page) :is(.site-header.nav-open, .site-header.nav-open .desktop-nav) { background: var(--bg); }
}
@media (max-width: 600px) {
  body:is(.home-page, .account-page, .product-page) .skip-link { left: 15px; }
  body:is(.home-page, .account-page, .product-page) :is(.scene, .nav-shell, .footer-shell) { width: calc(100% - 30px); }
  .account-download-file { align-items: stretch; flex-direction: column; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.home-page, .account-page, .product-page) .storm-button:is(:hover, :active) { transform: none; }
}
