:root {
  color-scheme: dark;
  --bg: #080c12;
  --bg-soft: #0d131d;
  --panel: rgba(17, 24, 35, 0.88);
  --panel-solid: #111823;
  --panel-light: #172131;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #9aa7b8;
  --muted-strong: #c1cad6;
  --accent: #ff8a3d;
  --accent-bright: #ffad66;
  --accent-soft: rgba(255, 138, 61, 0.13);
  --green: #62d9a5;
  --green-soft: rgba(98, 217, 165, 0.12);
  --yellow: #f2c96d;
  --red: #ff7373;
  --red-soft: rgba(255, 115, 115, 0.11);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --page-width: 1180px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --lava-scroll-y: 0px;
  --lava-seed-x-one: 0px;
  --lava-seed-y-one: 0px;
  --lava-seed-x-two: 0px;
  --lava-seed-y-two: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #080c12;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 1;
  inset: 0;
  background: rgba(4, 8, 13, 0.26);
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
.file-drop,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

:where(
  .brand-mark,
  .language-switcher select,
  .accounts-menu-button,
  .accounts-dropdown,
  .ghost-link,
  .app-card,
  .auth-card,
  .manage-card,
  .mode-tabs,
  .mode-tab,
  input[type="text"],
  input[type="password"],
  input[type="search"],
  select,
  .inline-button,
  .primary-button,
  .secondary-button,
  .copy-code-button,
  .copy-button,
  .form-status,
  .file-drop,
  .secret-row,
  .saved-profile-row,
  .saved-profile-drag-handle,
  .saved-profile-remove-button,
  .saved-profile-pin-panel,
  .profile-pin-warning,
  .api-detail-card,
  .api-detail-card pre,
  .benefit-card,
  .benefit-icon,
  .max-security-note,
  .deploy-check-panel,
  .deploy-check-status,
  .deploy-file-row,
  .inline-disclosure-button,
  .flow-details-panel,
  .flow-mini-list.expanded li,
  .flow-list li > span,
  .toast
) {
  corner-shape: squircle;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

code {
  font-family: var(--mono);
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(255, 138, 61, 0.35);
  color: white;
}

.page-glow {
  position: fixed;
  z-index: 0;
  inset: -82vh -24vmax;
  filter: blur(48px) saturate(155%);
  mix-blend-mode: screen;
  opacity: 0.68;
  pointer-events: none;
  will-change: transform, opacity;
}

.page-glow-one {
  background:
    radial-gradient(ellipse 15rem 22rem at 13% 22%, rgba(255, 89, 24, 0.72), transparent 64%),
    radial-gradient(ellipse 24rem 31rem at 47% 30%, rgba(255, 138, 61, 0.48), transparent 66%),
    radial-gradient(ellipse 18rem 26rem at 84% 18%, rgba(255, 188, 86, 0.38), transparent 64%),
    radial-gradient(ellipse 13rem 19rem at 28% 58%, rgba(255, 116, 35, 0.44), transparent 62%),
    radial-gradient(ellipse 17rem 23rem at 72% 48%, rgba(255, 150, 56, 0.38), transparent 64%),
    radial-gradient(ellipse 12rem 18rem at 36% 8%, rgba(255, 190, 92, 0.3), transparent 61%),
    radial-gradient(ellipse 22rem 32rem at 58% 90%, rgba(255, 101, 34, 0.44), transparent 68%);
  animation: lava-lamp-drift-one 30s ease-in-out infinite alternate;
  animation-delay: var(--lava-delay-one, 0s);
}

.page-glow-two {
  background:
    radial-gradient(ellipse 18rem 27rem at 18% 78%, rgba(255, 123, 45, 0.54), transparent 67%),
    radial-gradient(ellipse 27rem 36rem at 64% 82%, rgba(189, 49, 25, 0.42), transparent 68%),
    radial-gradient(ellipse 17rem 24rem at 90% 58%, rgba(255, 174, 72, 0.36), transparent 64%),
    radial-gradient(ellipse 14rem 20rem at 34% 44%, rgba(255, 92, 26, 0.42), transparent 62%),
    radial-gradient(ellipse 16rem 23rem at 76% 26%, rgba(255, 128, 41, 0.36), transparent 63%),
    radial-gradient(ellipse 13rem 19rem at 8% 34%, rgba(255, 187, 84, 0.3), transparent 61%),
    radial-gradient(ellipse 21rem 31rem at 42% 12%, rgba(255, 78, 22, 0.4), transparent 66%);
  animation: lava-lamp-drift-two 38s ease-in-out infinite alternate;
  animation-delay: var(--lava-delay-two, 0s);
}

@keyframes lava-lamp-drift-one {
  0% {
    transform:
      translate3d(
        calc(var(--lava-seed-x-one) - 5vw),
        calc(var(--lava-scroll-y) + var(--lava-seed-y-one) - 4vh),
        0
      )
      scale(1)
      rotate(0deg);
    opacity: 0.28;
  }

  40% {
    transform:
      translate3d(
        calc(var(--lava-seed-x-one) + 4vw),
        calc(var(--lava-scroll-y) + var(--lava-seed-y-one) + 6vh),
        0
      )
      scale(1.08)
      rotate(8deg);
    opacity: 0.4;
  }

  75% {
    transform:
      translate3d(
        calc(var(--lava-seed-x-one) + 9vw),
        calc(var(--lava-scroll-y) + var(--lava-seed-y-one) - 2vh),
        0
      )
      scale(0.96)
      rotate(-6deg);
    opacity: 0.32;
  }

  100% {
    transform:
      translate3d(
        calc(var(--lava-seed-x-one) - 1vw),
        calc(var(--lava-scroll-y) + var(--lava-seed-y-one) + 7vh),
        0
      )
      scale(1.12)
      rotate(5deg);
    opacity: 0.38;
  }
}

@keyframes lava-lamp-drift-two {
  0% {
    transform:
      translate3d(
        calc(var(--lava-seed-x-two) + 7vw),
        calc(var(--lava-scroll-y) + var(--lava-seed-y-two) + 5vh),
        0
      )
      scale(1.08)
      rotate(-5deg);
    opacity: 0.22;
  }

  45% {
    transform:
      translate3d(
        calc(var(--lava-seed-x-two) - 6vw),
        calc(var(--lava-scroll-y) + var(--lava-seed-y-two) - 3vh),
        0
      )
      scale(0.98)
      rotate(7deg);
    opacity: 0.34;
  }

  80% {
    transform:
      translate3d(
        calc(var(--lava-seed-x-two) + 2vw),
        calc(var(--lava-scroll-y) + var(--lava-seed-y-two) + 9vh),
        0
      )
      scale(1.12)
      rotate(-8deg);
    opacity: 0.28;
  }

  100% {
    transform:
      translate3d(
        calc(var(--lava-seed-x-two) - 8vw),
        calc(var(--lava-scroll-y) + var(--lava-seed-y-two) + 1vh),
        0
      )
      scale(1.03)
      rotate(4deg);
    opacity: 0.36;
  }
}

.section-shell,
.site-header {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.site-layout,
.site-main {
  min-width: 0;
}

.site-layout,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  border-bottom: 0;
  background: transparent;
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -6px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.9), rgba(6, 10, 16, 0.78));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  content: "";
  pointer-events: none;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 16px;
  min-width: 0;
  flex-wrap: wrap;
}

.language-switcher {
  flex: none;
}

.language-switcher select {
  width: 132px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(5, 9, 14, 0.58);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.language-switcher select:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: white;
}

.language-switcher select:focus {
  border-color: rgba(255, 138, 61, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.09);
}

.language-switcher select option {
  background: white;
  color: #111823;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 138, 61, 0.34);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 138, 61, 0.18), rgba(255, 138, 61, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--accent-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.015em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-page-links,
.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.header-page-links {
  justify-content: flex-start;
  gap: 8px;
}

.header-actions {
  flex: 1 1 0;
  justify-content: flex-end;
  gap: 14px;
}

.accounts-menu {
  position: relative;
  z-index: 60;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
}

.accounts-menu::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1120px, calc(100vw - 40px));
  height: 14px;
  transform: translateX(-50%);
  content: "";
}

.accounts-menu-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.accounts-menu-icon {
  display: grid;
  width: 15px;
  gap: 3px;
}

.accounts-menu-icon::before,
.accounts-menu-icon::after,
.accounts-menu-icon span {
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.accounts-menu-icon::before,
.accounts-menu-icon::after {
  display: block;
  content: "";
}

.accounts-menu-button:hover,
.accounts-menu.has-accounts:focus-within .accounts-menu-button,
.accounts-menu.is-open .accounts-menu-button {
  border-color: rgba(255, 138, 61, 0.34);
  background: rgba(255, 138, 61, 0.08);
  color: white;
}

.accounts-menu-button.has-accounts {
  border-color: rgba(255, 138, 61, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.08);
  color: var(--accent-bright);
}

.accounts-menu-button.has-accounts::after {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.22);
  content: "";
  pointer-events: none;
  animation: accounts-pulse 2.1s ease-out infinite;
}

.accounts-count {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  padding-inline: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.accounts-menu-button.has-accounts .accounts-count {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.accounts-dropdown {
  --accounts-dropdown-shift-x: -50%;

  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(1120px, calc(100vw - 40px));
  max-height: min(680px, calc(100vh - 118px));
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(11, 16, 24, 0.97);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--accounts-dropdown-shift-x), -6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
}

.accounts-menu.is-open .accounts-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(var(--accounts-dropdown-shift-x), 0);
  visibility: visible;
}

.accounts-menu.is-panel-intro .accounts-dropdown {
  animation: accounts-dropdown-intro 320ms cubic-bezier(0.2, 1, 0.22, 1) both;
}

.accounts-menu:not(.has-accounts)::after {
  display: none;
}

.accounts-dropdown-slot {
  min-width: 0;
  min-height: 0;
}

@keyframes accounts-pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(255, 138, 61, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 61, 0);
  }
}

@keyframes accounts-dropdown-intro {
  0% {
    opacity: 0;
    transform: translate(var(--accounts-dropdown-shift-x), -18px) scale(0.975);
  }

  64% {
    opacity: 1;
    transform: translate(var(--accounts-dropdown-shift-x), 4px) scale(1.008);
  }

  100% {
    opacity: 1;
    transform: translate(var(--accounts-dropdown-shift-x), 0) scale(1);
  }
}

.header-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.header-mode-button:hover,
.header-mode-button.is-active,
.header-mode-button[aria-current="page"] {
  border-color: rgba(255, 138, 61, 0.28);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.service-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(242, 201, 109, 0.08);
  content: "";
}

.service-status[data-kind="ready"] {
  color: var(--muted-strong);
}

.service-status[data-kind="ready"]::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(98, 217, 165, 0.08);
  animation: service-ready-pulse 1.9s ease-in-out infinite;
}

.service-status[data-kind="warning"]::before {
  background: var(--yellow);
}

@keyframes service-ready-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(98, 217, 165, 0.08);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(98, 217, 165, 0.13);
    transform: scale(1.12);
  }
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.ghost-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ghost-link:hover,
.ghost-link.is-active,
.ghost-link[aria-current="page"] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 0.85fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 84px);
  padding-block: 70px 86px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 26px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.flow-copy h2 {
  margin: 20px 0 0;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 710;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
  font-weight: inherit;
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.72;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
}

.hero-points > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.hero-points i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(98, 217, 165, 0.08);
}

.point-text {
  min-width: 0;
}

.app-card,
.auth-card,
.manage-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 30, 43, 0.96), rgba(13, 19, 29, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.app-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-xl);
}

.vault-card {
  animation: vault-card-green-pulse 3.8s ease-in-out infinite;
}

.vault-card.is-switching-vault-mode {
  will-change: height;
  transition: height 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card::before {
  position: absolute;
  top: -130px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.13), transparent 68%);
  pointer-events: none;
  content: "";
}

@keyframes vault-card-green-pulse {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0 0 0 rgba(98, 217, 165, 0);
  }

  50% {
    border-color: rgba(98, 217, 165, 0.34);
    box-shadow:
      var(--shadow),
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 0 0 2px rgba(98, 217, 165, 0.11),
      0 0 46px rgba(98, 217, 165, 0.18),
      0 0 82px rgba(98, 217, 165, 0.12);
  }
}

.app-card-header,
.auth-meta {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-card h2,
.auth-meta h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

#account-label {
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.zero-knowledge-badge,
.access-kind {
  flex: none;
  padding: 6px 9px;
  border: 1px solid rgba(98, 217, 165, 0.2);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 24px 0 22px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(5, 9, 14, 0.5);
}

.mode-tab {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mode-tab.is-active {
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.16);
  color: white;
}

[data-vault-panel] {
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-vault-panel].is-vault-panel-entering {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
}

[data-vault-panel].is-vault-panel-exiting {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.985);
  transition-duration: 120ms;
}

[data-vault-panel] :is(.primary-button, .secondary-button, .text-button, .copy-button) {
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

[data-vault-panel].is-vault-panel-entering :is(.primary-button, .secondary-button, .text-button, .copy-button),
[data-vault-panel].is-vault-panel-exiting :is(.primary-button, .secondary-button, .text-button, .copy-button) {
  opacity: 0;
  transform: translateY(6px);
}

.stack-form,
.compact-form {
  display: grid;
  gap: 15px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

.field-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(5, 9, 14, 0.58);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #657183;
}

input:focus {
  border-color: rgba(255, 138, 61, 0.62);
  background: rgba(5, 9, 14, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.09);
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.input-with-action {
  position: relative;
}

.input-with-action input {
  padding-right: 58px;
}

.inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  outline: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  transition:
    color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.inline-button::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.055);
  content: "";
  pointer-events: none;
  transition: transform 120ms ease, background 160ms ease;
}

.visibility-toggle svg {
  position: relative;
  z-index: 1;
  flex: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.inline-button:hover:not(:disabled)::before {
  background: rgba(255, 255, 255, 0.095);
}

.inline-button:hover:not(:disabled) {
  color: white;
}

.inline-button[aria-pressed="true"]:not(:disabled)::before {
  background: rgba(255, 138, 61, 0.14);
}

.inline-button[aria-pressed="true"]:not(:disabled) {
  color: var(--accent-bright);
}

.inline-button:active:not(:disabled)::before {
  transform: scale(0.92);
  background: rgba(255, 138, 61, 0.2);
}

.inline-button:active:not(:disabled) {
  color: white;
}

.inline-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}

.inline-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.field-help {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

input + .field-help,
.input-with-action + .field-help {
  margin-top: 9px;
}

.field-help[data-kind="error"] {
  color: var(--red);
}

.field-help[data-kind="success"] {
  color: var(--green);
}

.field-help[data-kind="warning"] {
  color: #f4d98d;
}

#alias-hint {
  margin-top: 6px;
}

.primary-button,
.secondary-button,
.copy-code-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.primary-button {
  gap: 10px;
  min-height: 50px;
  margin-top: 2px;
  border: 1px solid rgba(255, 173, 102, 0.25);
  background: linear-gradient(135deg, #ff7b2d, #ff994f);
  box-shadow: 0 14px 34px rgba(255, 123, 45, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #160b04;
  font-size: 13px;
}

.primary-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff8a3d, #ffad66);
}

.primary-button:hover svg {
  transform: translateX(2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.form-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.55;
}

.form-status[data-kind="error"] {
  border-color: rgba(255, 115, 115, 0.22);
  background: var(--red-soft);
  color: #ffaaaa;
}

.form-status[data-kind="success"] {
  border-color: rgba(98, 217, 165, 0.2);
  background: var(--green-soft);
  color: #9cebc9;
}

.form-status[data-kind="warning"] {
  border-color: rgba(242, 201, 109, 0.24);
  background: rgba(242, 201, 109, 0.08);
  color: #f4d98d;
}

.saved-profiles.saved-profiles-menu-panel {
  min-height: 0;
  max-height: min(652px, calc(100vh - 146px));
  margin-top: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.saved-profiles-menu-panel .saved-profile-list {
  display: grid;
  min-height: 0;
  max-height: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 2px 4px 4px;
  scrollbar-gutter: stable;
}

.saved-profiles-menu-panel .saved-profiles-header {
  min-height: 34px;
  padding-inline: 2px 4px;
}

.saved-profiles-menu-panel .saved-profiles-header strong {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.saved-profiles-menu-panel .saved-profiles-header .text-button {
  font-size: 13px;
  font-weight: 750;
}

.saved-profiles-menu-panel .saved-profile-search {
  display: flex;
  justify-content: center;
  padding: 0 4px 10px;
}

.saved-profiles-menu-panel .saved-profile-search input {
  width: min(360px, 100%);
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  outline: none;
  background:
    radial-gradient(circle at 18% 50%, rgba(98, 217, 165, 0.08), transparent 48%),
    rgba(5, 9, 14, 0.58);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.saved-profiles-menu-panel .saved-profile-search input::placeholder {
  color: var(--muted);
}

.saved-profiles-menu-panel .saved-profile-search input:hover {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.055);
}

.saved-profiles-menu-panel .saved-profile-search input:focus {
  border-color: rgba(98, 217, 165, 0.52);
  box-shadow: 0 0 0 4px rgba(98, 217, 165, 0.09), 0 0 28px rgba(98, 217, 165, 0.1);
  background: rgba(7, 13, 18, 0.72);
}

.saved-profiles-menu-panel .saved-profile-row {
  position: relative;
  display: grid;
  min-height: 74px;
  align-items: stretch;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  overflow: hidden;
  padding: 7px 34px 7px 9px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.saved-profiles-menu-panel .saved-profile-row:hover,
.saved-profiles-menu-panel .saved-profile-row:focus-visible,
.saved-profiles-menu-panel .saved-profile-row:focus-within {
  border-color: rgba(255, 138, 61, 0.3);
  background: rgba(255, 138, 61, 0.065);
}

.saved-profiles-menu-panel .saved-profile-row.is-active {
  border-color: rgba(98, 217, 165, 0.48);
  background:
    radial-gradient(circle at 18% 18%, rgba(98, 217, 165, 0.15), transparent 48%),
    rgba(98, 217, 165, 0.08);
  box-shadow: inset 0 0 0 1px rgba(98, 217, 165, 0.12), 0 0 24px rgba(98, 217, 165, 0.14);
}

.saved-profiles-menu-panel .saved-profile-row.is-active:hover,
.saved-profiles-menu-panel .saved-profile-row.is-active:focus-visible,
.saved-profiles-menu-panel .saved-profile-row.is-active:focus-within {
  border-color: rgba(98, 217, 165, 0.62);
  background:
    radial-gradient(circle at 18% 18%, rgba(98, 217, 165, 0.2), transparent 50%),
    rgba(98, 217, 165, 0.1);
}

.saved-profiles-menu-panel .saved-profile-row.is-active strong {
  color: #dffbed;
}

.saved-profiles-menu-panel .saved-profile-row.is-active .saved-profile-drag-handle {
  border-color: rgba(98, 217, 165, 0.32);
  background: linear-gradient(180deg, rgba(98, 217, 165, 0.15), rgba(98, 217, 165, 0.05));
  color: var(--green);
}

.saved-profiles-menu-panel .saved-profile-details {
  align-self: center;
  min-width: 0;
}

.saved-profiles-menu-panel .saved-profile-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-profiles-menu-panel .saved-profile-actions {
  position: absolute;
  right: 8px;
  bottom: 7px;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.saved-profiles-menu-panel .saved-profile-row:hover .saved-profile-actions,
.saved-profiles-menu-panel .saved-profile-row:focus-within .saved-profile-actions {
  opacity: 1;
  pointer-events: auto;
}

.saved-profiles-menu-panel .saved-profile-drag-handle {
  position: relative;
  align-self: center;
  width: 24px;
  min-width: 24px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  color: rgba(255, 255, 255, 0.58);
  cursor: grab;
  opacity: 0.88;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    opacity 150ms ease,
    transform 150ms ease;
}

.saved-profiles-menu-panel .saved-profile-drag-handle::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 138, 61, 0.42), transparent);
  content: "";
  opacity: 0.64;
}

.saved-profiles-menu-panel .saved-profile-drag-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 23px;
  transform: translate(-43%, -50%);
  background:
    radial-gradient(circle at 3px 4px, currentColor 1.45px, transparent 1.65px),
    radial-gradient(circle at 10px 4px, currentColor 1.45px, transparent 1.65px),
    radial-gradient(circle at 3px 11.5px, currentColor 1.45px, transparent 1.65px),
    radial-gradient(circle at 10px 11.5px, currentColor 1.45px, transparent 1.65px),
    radial-gradient(circle at 3px 19px, currentColor 1.45px, transparent 1.65px),
    radial-gradient(circle at 10px 19px, currentColor 1.45px, transparent 1.65px);
  content: "";
}

.saved-profiles-menu-panel .saved-profile-drag-handle:hover,
.saved-profiles-menu-panel .saved-profile-drag-handle:focus-visible {
  border-color: rgba(255, 138, 61, 0.44);
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.18), rgba(255, 138, 61, 0.075));
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.08), 0 0 22px rgba(255, 138, 61, 0.14);
  color: var(--accent-bright);
  opacity: 1;
  transform: translateY(-1px);
}

.saved-profiles-menu-panel .saved-profile-drag-handle:active {
  cursor: grabbing;
  transform: translateY(0) scale(0.96);
}

.saved-profile-list.is-reordering .saved-profile-drag-handle {
  border-color: rgba(255, 138, 61, 0.38);
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.16), rgba(255, 138, 61, 0.06));
  color: var(--accent-bright);
  opacity: 1;
}

.saved-profile-pin-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 138, 61, 0.28);
  border-radius: 8px;
  background: rgba(255, 138, 61, 0.1);
  color: var(--accent-bright);
  pointer-events: none;
}

.saved-profile-pin-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.saved-profiles-menu-panel .saved-profile-pin-panel {
  max-height: 180px;
  overflow-y: auto;
}

.saved-profile-list.is-reordering .saved-profile-row {
  animation: saved-profile-wiggle 220ms ease-in-out infinite;
}

.saved-profile-list.is-reordering .saved-profile-row:nth-child(2n) {
  animation-delay: -110ms;
}

.saved-profile-row.is-dragging {
  border-color: rgba(255, 138, 61, 0.45);
  opacity: 0.72;
}

.saved-profile-row.is-drag-over {
  border-color: var(--accent);
  background: rgba(255, 138, 61, 0.12);
}

.saved-profiles-menu-panel .saved-profile-row.is-new-profile {
  animation:
    saved-profile-drop-in 760ms cubic-bezier(0.18, 0.88, 0.24, 1.08) var(--profile-intro-delay, 0ms) both,
    saved-profile-new-glow 1000ms ease-out var(--profile-intro-delay, 0ms) both;
  will-change: transform, opacity, box-shadow;
}

@keyframes saved-profile-drop-in {
  0% {
    opacity: 0;
    transform: translate3d(0, -58px, 0) scale(0.94);
  }

  58% {
    opacity: 1;
    transform: translate3d(0, 7px, 0) scale(1.012);
  }

  78% {
    transform: translate3d(0, -3px, 0) scale(0.998);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes saved-profile-new-glow {
  0% {
    border-color: rgba(98, 217, 165, 0.76);
    background: rgba(98, 217, 165, 0.11);
    box-shadow: 0 0 0 0 rgba(98, 217, 165, 0.28), 0 0 0 rgba(98, 217, 165, 0);
  }

  36% {
    border-color: rgba(98, 217, 165, 0.62);
    background: rgba(98, 217, 165, 0.085);
    box-shadow: 0 0 0 6px rgba(98, 217, 165, 0.16), 0 0 26px rgba(98, 217, 165, 0.22);
  }

  100% {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 0 0 12px rgba(98, 217, 165, 0), 0 0 0 rgba(98, 217, 165, 0);
  }
}

@keyframes saved-profile-wiggle {
  0%,
  100% {
    transform: translate(-0.375px, -0.25px);
  }

  50% {
    transform: translate(0.375px, 0.25px);
  }
}

.saved-profiles {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.saved-profiles-header,
.saved-profile-row,
.saved-profile-actions {
  display: flex;
  align-items: center;
}

.saved-profiles-header {
  justify-content: space-between;
  gap: 12px;
}

.saved-profiles-header strong {
  color: var(--muted-strong);
  font-size: 12px;
}

.saved-profile-list {
  display: grid;
  gap: 8px;
}

.saved-profile-row {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 8, 13, 0.42);
}

.saved-profile-row > div:first-child,
.saved-profile-details {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.saved-profile-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-profile-row span {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-profile-actions {
  flex: none;
  gap: 9px;
}

.saved-profile-remove-button {
  width: 31px;
  min-width: 31px;
  height: 31px;
  min-height: 31px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.saved-profile-remove-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.saved-profile-remove-button {
  color: #df8a8a;
  font-size: 18px;
}

.saved-profile-remove-button:hover:not(:disabled) {
  border-color: rgba(255, 115, 115, 0.3);
  background: var(--red-soft);
  color: var(--red);
}

.saved-profiles-menu-panel .saved-profile-remove-button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  border-radius: 8px;
  font-size: 16px;
}

.saved-profile-pin-panel {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 138, 61, 0.2);
  border-radius: 12px;
  background: rgba(255, 138, 61, 0.055);
}

.saved-profile-pin-panel > strong {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-profile-pin-panel input {
  max-width: 160px;
}

.pin-input-with-action {
  max-width: 180px;
}

.pin-input-with-action input {
  max-width: none;
}

.saved-profile-pin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-pin-input {
  width: 76px !important;
  min-height: 33px !important;
  padding-inline: 9px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}

.profile-no-pin-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  padding: 0 9px;
  border: 1px solid rgba(242, 201, 109, 0.2);
  border-radius: 9px;
  background: rgba(242, 201, 109, 0.07);
  color: #f4d98d !important;
  font-family: var(--mono);
  font-size: 9px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.file-drop {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  outline: none;
  background: rgba(5, 9, 14, 0.33);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.file-drop:hover,
.file-drop:focus-visible,
.file-drop.is-dragging {
  border-color: rgba(255, 138, 61, 0.65);
  background: rgba(255, 138, 61, 0.055);
}

.file-drop.is-dragging {
  transform: scale(1.01);
}

.file-drop.has-file {
  border-style: solid;
  border-color: rgba(98, 217, 165, 0.28);
  background: rgba(98, 217, 165, 0.045);
}

.file-drop strong {
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 13px;
}

.file-drop > span:not(.upload-icon) {
  margin-top: -8px;
  font-size: 10px;
}

.file-drop small {
  max-width: 100%;
  margin-top: -7px;
  overflow: hidden;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.upload-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 2px;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(5, 9, 14, 0.5);
}

.check-row input:checked + .custom-check {
  border-color: var(--accent);
  background: var(--accent);
}

.check-row input:checked + .custom-check::after {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #1b0b02;
  border-bottom: 2px solid #1b0b02;
  transform: rotate(45deg);
  content: "";
}

.check-row input:focus-visible + .custom-check {
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.1);
}

.check-row > span:last-child {
  display: grid;
  gap: 2px;
}

.check-row strong {
  color: var(--muted-strong);
  font-size: 11px;
}

.check-row small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.security-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(98, 217, 165, 0.15);
  border-radius: 11px;
  background: rgba(98, 217, 165, 0.045);
}

.security-callout svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.security-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.security-callout code {
  color: var(--muted-strong);
}

.import-result {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 17px;
  border: 1px solid rgba(98, 217, 165, 0.2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(98, 217, 165, 0.075), rgba(98, 217, 165, 0.025));
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}

.success-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #07170f;
  font-size: 16px;
  font-weight: 900;
}

.result-heading > div {
  display: grid;
}

.result-heading strong {
  font-size: 12px;
}

.result-heading small {
  color: var(--muted);
  font-size: 9.5px;
}

.result-list {
  display: grid;
  gap: 10px;
}

.secret-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 8, 13, 0.48);
}

.secret-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.secret-row span {
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secret-row code {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secret-row[data-kind="error"] {
  border-color: rgba(255, 115, 115, 0.22);
  background: rgba(255, 115, 115, 0.055);
}

.secret-row[data-kind="error"] code {
  color: #ffaaaa;
  white-space: normal;
}

.copy-button {
  flex: none;
  min-height: 33px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-size: 9.5px;
}

.copy-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
}

.result-warning {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.site-info-panels {
  padding-block: 0 70px;
  scroll-margin-top: 18px;
}

body[data-page="api"] .site-info-panels {
  min-height: calc(100vh - 84px);
  padding-block: clamp(42px, 7vw, 76px) 92px;
}

.site-tab-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.09), transparent 44%),
    linear-gradient(160deg, rgba(18, 26, 38, 0.94), rgba(10, 15, 23, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.info-panel {
  display: grid;
  gap: 18px;
}

.panel-intro {
  display: grid;
  gap: 8px;
}

.panel-intro h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.panel-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.compact-list summary {
  padding-block: 18px;
  font-size: 12px;
}

.compact-list details p {
  margin-bottom: 18px;
  font-size: 10.5px;
  line-height: 1.65;
}

.endpoint-list {
  display: grid;
  gap: 8px;
}

.endpoint-row {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 8, 13, 0.48);
}

.endpoint-row code {
  color: var(--text);
  font-size: 11px;
}

.endpoint-row span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

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

.api-info-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 8, 13, 0.4);
}

.api-info-card strong {
  color: var(--muted-strong);
  font-size: 12px;
}

.api-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.api-info-card code {
  color: var(--muted-strong);
}

.api-detail-list {
  display: grid;
  gap: 12px;
}

.api-detail-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 8, 13, 0.44);
}

.api-detail-card > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.api-detail-card > div > code {
  color: white;
  font-size: 12px;
}

.api-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.api-doc-block {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.api-doc-block > strong {
  color: var(--muted-strong);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.api-field-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.api-field-list li::marker {
  color: var(--accent-bright);
}

.api-detail-card p code {
  color: var(--muted-strong);
}

.api-field-list code {
  color: var(--muted-strong);
}

.api-type {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding-inline: 6px;
  border: 1px solid rgba(255, 138, 61, 0.18);
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.07);
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.api-detail-card pre {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.api-detail-card pre code {
  color: #d9e2ee;
  font-size: 10.5px;
  line-height: 1.65;
  white-space: pre;
}

.auth-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 20px;
  padding-block: 24px 110px;
  scroll-margin-top: 20px;
}

.auth-card,
.manage-card {
  border-radius: var(--radius-lg);
}

.auth-card {
  padding: clamp(24px, 4vw, 40px);
}

.auth-section.is-scroll-highlight .auth-card {
  animation: auth-card-scroll-green-pulse 2s ease-out both;
}

@keyframes auth-card-scroll-green-pulse {
  0% {
    border-color: rgba(98, 217, 165, 0.72);
    box-shadow:
      var(--shadow),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 0 rgba(98, 217, 165, 0.34),
      0 0 0 rgba(98, 217, 165, 0);
  }

  32% {
    border-color: rgba(98, 217, 165, 0.58);
    box-shadow:
      var(--shadow),
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 0 0 8px rgba(98, 217, 165, 0.16),
      0 0 46px rgba(98, 217, 165, 0.34);
  }

  100% {
    border-color: var(--line);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0 0 18px rgba(98, 217, 165, 0);
  }
}

.access-kind[data-kind="alias"] {
  border-color: rgba(255, 138, 61, 0.23);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.code-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  margin-top: 38px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 138, 61, 0.09), transparent 45%),
    rgba(5, 9, 14, 0.42);
}

.code-display > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-display > strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-family: var(--mono);
  font-size: clamp(48px, 7vw, 74px);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.12;
  text-shadow: 0 8px 32px rgba(255, 138, 61, 0.12);
}

.copy-code-button {
  gap: 8px;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
  font-size: 10px;
}

.copy-code-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.copy-code-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.countdown {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 128px;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.countdown-ring {
  width: 78px;
  height: 78px;
  transform: rotate(-90deg);
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 3;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-value {
  stroke: var(--accent);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  stroke-linecap: round;
  transition: stroke-dashoffset 180ms linear;
}

.countdown > div {
  display: grid;
  justify-items: center;
}

.countdown span {
  color: var(--muted);
  font-size: 9px;
}

.countdown strong {
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 13px;
}

.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.auth-note svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 23px;
}

.secondary-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
  font-size: 11px;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.full-width {
  width: 100%;
}

.manage-card {
  padding: 28px;
}

.manage-card h3 {
  margin: 5px 0 8px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.manage-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.compact-form {
  gap: 10px;
}

.manage-card .form-status {
  margin-top: 12px;
}

.manage-links {
  display: grid;
  justify-items: start;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 3px;
}

.text-button:hover {
  color: white;
}

.text-button.danger {
  color: #df8a8a;
}

.text-button.danger:hover {
  color: var(--red);
}

.benefits,
.how-it-works,
.faq {
  padding-block: 110px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 52px;
}

.section-heading h2,
.flow-copy h2 {
  font-size: clamp(40px, 5vw, 66px);
}

.section-heading.compact h2 {
  font-size: clamp(38px, 4vw, 54px);
}

.max-security-note {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(98, 217, 165, 0.18);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(98, 217, 165, 0.1), transparent 48%),
    rgba(4, 8, 13, 0.34);
}

.max-security-note strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.max-security-note p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.5px;
  line-height: 1.75;
}

.max-security-note code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.max-security-note a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(98, 217, 165, 0.42);
  text-underline-offset: 3px;
}

.max-security-note a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.deploy-check-panel {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 15px;
  border: 1px solid rgba(98, 217, 165, 0.16);
  border-radius: var(--radius-md);
  background: rgba(5, 10, 16, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.deploy-check-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.max-security-note .deploy-check-header strong {
  color: var(--text);
  font-size: 15px;
}

.deploy-check-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 760;
}

.deploy-check-status[data-kind="success"] {
  border-color: rgba(98, 217, 165, 0.28);
  color: var(--green);
  background: rgba(98, 217, 165, 0.08);
}

.deploy-check-status[data-kind="warning"] {
  border-color: rgba(255, 180, 94, 0.3);
  color: var(--amber);
  background: rgba(255, 180, 94, 0.08);
}

.deploy-check-status[data-kind="error"] {
  border-color: rgba(255, 104, 112, 0.32);
  color: var(--red);
  background: rgba(255, 104, 112, 0.08);
}

.deploy-check-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.deploy-check-row,
.deploy-file-row {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.deploy-check-row {
  display: grid;
  gap: 4px;
}

.deploy-check-label,
.deploy-file-path,
.deploy-file-size {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.deploy-check-value,
.deploy-file-hash {
  min-width: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.deploy-check-files {
  display: grid;
  gap: 8px;
}

.deploy-files-title {
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.deploy-file-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 12px;
}

.deploy-file-label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
}

.deploy-file-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deploy-file-hash code {
  color: inherit;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .deploy-check-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .deploy-check-meta,
  .deploy-file-row {
    grid-template-columns: 1fr;
  }

  .deploy-file-size {
    justify-self: start;
  }
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.benefit-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20, 28, 40, 0.78), rgba(11, 17, 25, 0.86));
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(24, 34, 48, 0.9), rgba(12, 18, 27, 0.95));
}

.benefit-card.featured {
  border-color: rgba(255, 138, 61, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.13), transparent 55%),
    linear-gradient(160deg, rgba(25, 31, 42, 0.9), rgba(13, 18, 26, 0.95));
}

.benefit-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(255, 255, 255, 0.17);
  font-family: var(--mono);
  font-size: 11px;
}

.benefit-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.benefit-card h3 {
  margin: 64px 0 12px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.benefit-card p code {
  color: var(--muted-strong);
}

.inline-disclosure-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.inline-disclosure-button:hover,
.inline-disclosure-button[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.flow-details-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(22px, 4vw, 42px);
  margin-top: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.1), transparent 48%),
    rgba(4, 8, 13, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.flow-details-intro {
  display: grid;
  align-content: start;
  gap: 10px;
}

.flow-details-intro h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.flow-details-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.flow-mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-mini-list.expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flow-mini-list li {
  display: grid;
  gap: 3px;
}

.flow-mini-list.expanded li {
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.flow-mini-list strong {
  color: var(--muted-strong);
  font-size: 10px;
}

.flow-mini-list span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.flow-mini-list.expanded strong {
  font-size: 14px;
  line-height: 1.2;
}

.flow-mini-list.expanded span {
  font-size: 12.5px;
  line-height: 1.72;
}

.benefit-card a {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.benefit-card a:hover {
  color: var(--accent-bright);
}

.how-it-works {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-copy {
  position: sticky;
  top: 50px;
}

.flow-copy p {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.flow-list li:first-child {
  padding-top: 6px;
}

.flow-list li:last-child {
  border-bottom: 0;
}

.flow-list li > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 138, 61, 0.25);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 12px;
}

.flow-list strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 25px 48px 25px 0;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 14px;
  height: 1px;
  background: var(--muted);
  transform: translateY(-50%);
  transition: transform 180ms ease;
  content: "";
}

.faq-list summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-list details[open] summary {
  color: white;
}

.faq-list details p {
  max-width: 820px;
  margin: -4px 0 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.faq-list details code {
  color: var(--muted-strong);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-block: 36px 42px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  font-size: 13px;
}

.site-footer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9.5px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
}

.footer-links a {
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: white;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(20, 28, 40, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: var(--muted-strong);
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .site-header,
  .site-footer,
  .site-main .section-shell {
    width: min(calc(100% - 40px), var(--page-width));
    margin-inline: auto;
  }

  .accounts-dropdown {
    width: min(874px, calc(100vw - 40px));
  }

  .accounts-menu::after {
    width: min(874px, calc(100vw - 40px));
  }

  .saved-profiles-menu-panel .saved-profile-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 80px 110px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .app-card {
    width: min(100%, 620px);
  }

  .auth-section {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .api-overview-grid,
  .api-detail-card,
  .flow-details-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-main .section-shell {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .section-shell,
  .site-header,
  .site-footer {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .app-card-header {
    flex-direction: column;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding-block: 12px;
  }

  .header-left {
    gap: 10px;
  }

  .header-page-links,
  .header-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .accounts-menu {
    justify-content: flex-start;
    width: 100%;
  }

  .accounts-dropdown {
    --accounts-dropdown-shift-x: 0;

    left: 0;
    width: min(calc(100vw - 28px), 644px);
    transform: translate(var(--accounts-dropdown-shift-x), -6px);
  }

  .accounts-menu::after {
    left: 0;
    width: min(calc(100vw - 28px), 644px);
    transform: none;
  }

  .accounts-menu.is-open .accounts-dropdown {
    transform: translate(var(--accounts-dropdown-shift-x), 0);
  }

  .saved-profiles-menu-panel .saved-profile-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-mode-button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .language-switcher select {
    width: 108px;
    min-height: 34px;
    font-size: 11px;
  }

  .service-status {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .ghost-link {
    padding: 8px 10px;
  }

  .hero {
    gap: 48px;
    padding-block: 58px 80px;
  }

  .hero h1,
  .section-heading h2,
  .flow-copy h2 {
    letter-spacing: -0.045em;
  }

  .hero-lead {
    font-size: 16px;
  }

  .app-card {
    padding: 20px;
    border-radius: 22px;
  }

  .app-card-header {
    align-items: center;
  }

  .zero-knowledge-badge {
    display: none;
  }

  .auth-section {
    padding-bottom: 80px;
  }

  .site-info-panels {
    padding-bottom: 54px;
  }

  .auth-card,
  .manage-card {
    padding: 22px;
  }

  .code-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .countdown {
    grid-template-columns: auto 1fr;
    justify-items: start;
    min-width: 0;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .countdown-ring {
    width: 58px;
    height: 58px;
  }

  .countdown > div {
    align-self: center;
    justify-items: start;
  }

  .benefits,
  .how-it-works,
  .faq {
    padding-block: 80px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 270px;
  }

  .flow-mini-list.expanded {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .flow-copy {
    position: static;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 10px;
  }

  .language-switcher select {
    width: 82px;
    padding-inline: 8px;
  }

  .header-mode-button {
    padding-inline: 8px;
    font-size: 10px;
  }

  .brand small {
    display: none;
  }

  .ghost-link svg {
    display: none;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-points {
    display: grid;
  }

  .app-card h2 {
    font-size: 18px;
  }

  .mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-tab {
    font-size: 11px;
  }

  .secret-row {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-profile-row {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-profile-actions {
    width: 100%;
  }

  .saved-profiles-menu-panel .saved-profile-actions {
    width: auto;
  }

  .profile-pin-input {
    flex: 0 0 82px;
  }

  .saved-profile-actions .copy-button {
    flex: 1;
  }

  .copy-button {
    width: 100%;
  }

  .auth-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-display > strong {
    font-size: 44px;
    letter-spacing: 0.13em;
  }

  .auth-actions .secondary-button {
    width: 100%;
  }

  .flow-list li {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }
}

@media (hover: none) {
  .saved-profiles-menu-panel .saved-profile-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

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

:is(.app-card, .auth-card, .manage-card, .benefit-card, .flow-details-panel, .api-detail-card) {
  border-radius: var(--radius-xl);
}

:is(.accounts-dropdown, .code-layout, .file-drop, .saved-profile-pin-panel, .toast, .api-detail-card pre) {
  border-radius: var(--radius-lg);
}

:is(
  .brand-mark,
  .language-switcher select,
  .accounts-menu-button,
  .ghost-link,
  .mode-tabs,
  input[type="text"],
  input[type="password"],
  input[type="search"],
  select,
  .primary-button,
  .secondary-button,
  .copy-code-button,
  .copy-button,
  .form-status,
  .secret-row,
  .saved-profile-row,
  .saved-profile-drag-handle,
  .saved-profile-remove-button,
  .benefit-icon,
  .inline-disclosure-button,
  .flow-mini-list.expanded li,
  .flow-list li > span
) {
  border-radius: var(--radius-md);
}

:is(.mode-tab, .inline-button, .saved-profile-pin-badge, .profile-pin-input, .profile-pin-warning) {
  border-radius: var(--radius-sm);
}
