/* ==========================================================================
   ODYSSEY SIGNING STATION — theme
   Companion to the rebuilt template (template/body.new.html).

   Loaded after bootstrap.css, which stays responsible for the collapse widget
   and the grid. This sheet owns every pixel of the presentation: deep-space
   background, glass panels, and the cyan / violet / pink ramp used across the
   other stations.
   ========================================================================== */

:root {
  --void: #05060c;
  --void-2: #0a0c17;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --glass-3: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.17);

  --fg: #eef0f6;
  --fg-dim: #a6adbe;
  --fg-faint: #6d7486;

  --cyan: #5eead4;
  --cyan-deep: #22d3ee;
  --violet: #a78bfa;
  --pink: #f472b6;
  --amber: #fbbf24;
  --green: #4ade80;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 34px -14px rgba(0, 0, 0, 0.75);
  --shadow-3: 0 30px 70px -22px rgba(0, 0, 0, 0.9);
  --glow-cyan: 0 12px 36px -14px rgba(94, 234, 212, 0.55);
  --glow-violet: 0 12px 36px -14px rgba(167, 139, 250, 0.55);

  --bar-h: 74px;
  --shell: 900px;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--void);
}

body,
body.theme-light {
  margin: 0;
  color: var(--fg);
  background: var(--void);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------------ background -- */

#changebg,
.page-content {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 22px calc(var(--bar-h) + 40px);
  background:
    radial-gradient(120% 70% at 10% -10%, rgba(94, 234, 212, 0.17), transparent 56%),
    radial-gradient(110% 66% at 96% 2%, rgba(167, 139, 250, 0.19), transparent 58%),
    radial-gradient(130% 80% at 50% 106%, rgba(244, 114, 182, 0.12), transparent 60%),
    linear-gradient(180deg, var(--void-2) 0%, var(--void) 48%, #04050a 100%) !important;
  min-height: 100vh;
}

#changebg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 72% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 44% 58%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.3px 1.3px at 86% 44%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 8% 74%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.1px 1.1px at 60% 88%, rgba(255, 255, 255, 0.45), transparent);
  background-size: 520px 520px, 640px 640px, 480px 480px, 720px 720px, 560px 560px, 600px 600px;
}

#changebg > * {
  position: relative;
  z-index: 1;
}

#page {
  position: relative;
  z-index: 1;
  min-height: 100vh !important;
}

/* ---------------------------------------------------------------- header -- */

.st-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px 22px 0;
}

.st-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.st-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--cyan), var(--violet) 62%, var(--pink));
  color: #05060c;
  font-size: 19px;
  font-weight: 900;
  box-shadow: var(--glow-cyan);
}

.st-brand-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.st-brand-txt b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.st-brand-txt small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
}

.st-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  white-space: nowrap;
}

.st-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: st-pulse 2.6s ease-out infinite;
}

@keyframes st-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ------------------------------------------------------------------ hero -- */

.st-hero {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 38px 22px 26px;
}

.st-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.st-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6.6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(118deg, #ffffff 6%, #d5e6ff 44%, var(--violet) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.st-hero p {
  margin: 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-dim);
}

.st-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.st-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-deep) 46%, var(--violet) 100%);
  color: #05060c;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--glow-cyan);
  transition: transform 0.18s ease, box-shadow 0.24s ease, filter 0.2s ease;
}

.st-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 44px -14px rgba(94, 234, 212, 0.62);
}

.st-cta b {
  transition: transform 0.2s ease;
}

.st-cta:hover b {
  transform: translateX(3px);
}

.st-meta {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--fg-faint);
  line-height: 1.35;
}

.st-meta b {
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
}

.st-meta small {
  font-size: 11px;
}

.st-track {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
}

.st-track i {
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.st-track .on {
  color: var(--cyan);
}

/* ---------------------------------------------------------------- notice -- */

.st-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.st-notice-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.13);
}

.st-notice-txt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--fg-dim);
  font-size: 13.5px;
  white-space: nowrap;
}

.scroll-text {
  overflow: hidden;
  white-space: nowrap;
}

.scroll-auto {
  display: inline-block;
  padding-right: 44px;
  animation: st-marquee 24s linear infinite;
}

@keyframes st-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------------------------------------------------------------ quick grid -- */

.st-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: var(--shell);
  margin: 14px auto 0;
}

.st-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 82px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--fg-dim);
  font-size: 12px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.st-quick-item i {
  font-size: 17px;
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.st-quick-item:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.4);
  background: var(--glass-2);
  color: var(--fg);
}

.st-quick-item:hover i {
  transform: scale(1.12);
}

#allcode {
  display: block;
  width: 100%;
  max-width: var(--shell);
  margin: 12px auto 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--fg-faint);
  text-align: center;
  word-break: break-all;
}

#allcode:empty {
  display: none;
}

/* --------------------------------------------------------------- section -- */

.st-section {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-top: 30px;
}

/* Home is a two column stage: mission route on the left, console on the right */
#Home.st-section {
  display: grid;
  grid-template-columns: minmax(0, 292px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 880px) {
  #Home.st-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.st-route {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: var(--shadow-2);
}

.st-route-head {
  margin-bottom: 18px;
}

.st-route-head span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
}

.st-route-head h3 {
  margin: 7px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
}

.st-route-head p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--fg-faint);
}

/* ------------------------------------------------------------ flow steps -- */

.flow-steps {
  margin-bottom: 16px;
}

.flow-step {
  position: relative;
  display: flex;
  gap: 13px;
  padding-bottom: 18px;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}

.flow-step:last-child::before {
  display: none;
}

.flow-step > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.16), rgba(167, 139, 250, 0.16));
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.flow-step strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}

.flow-step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-faint);
}

/* ------------------------------------------------------------- accordion -- */

.accordion {
  border-radius: var(--r-md);
}

.st-fold {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  margin-bottom: 10px;
}

.st-fold:last-child {
  margin-bottom: 0;
}

.st-inline-accordion .st-fold {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-btn,
.st-fold-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-btn:hover,
.st-fold-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accordion-btn span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.accordion-btn span i {
  color: var(--amber);
  font-size: 12px;
}

.accordion-icon {
  flex: 0 0 auto;
  color: var(--fg-faint);
  font-size: 11px;
  transition: transform 0.26s ease, color 0.2s ease;
}

.st-fold-btn[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
  color: var(--cyan);
}

.st-fold-body {
  padding: 15px 17px;
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.8;
  background: rgba(4, 5, 10, 0.35);
}

.st-fold-body p {
  margin: 0 0 10px;
}

.st-fold-body p:last-child {
  margin-bottom: 0;
}

/* bootstrap collapse: keep the widget working, just guarantee visibility */
.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

/* --------------------------------------------------------------- console -- */

.panel-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding-left: 2px;
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.panel-title span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.card {
  border: 0;
  background: transparent;
}

.card.sign-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--glass);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.card.sign-card .content {
  padding: 20px;
}

/* --------------------------------------------------------- form controls -- */

.input-style {
  margin-bottom: 16px;
}

.input-style:last-child {
  margin-bottom: 0;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding-left: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.field-label i {
  cursor: pointer;
  color: var(--amber);
}

.field-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.field-row .form-control {
  flex: 1;
  min-width: 0;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(4, 5, 10, 0.52);
  color: var(--fg);
  font-size: 14.5px;
  line-height: 1.5;
  outline: 0;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control::placeholder {
  color: var(--fg-faint);
}

.form-control:focus {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(4, 5, 10, 0.72);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.13);
}

.field-select {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--fg-dim);
}

.st-icon-pick {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--glass-2);
  cursor: pointer;
  object-fit: cover;
  transition: border-color 0.2s ease, transform 0.18s ease;
}

.st-icon-pick:hover {
  border-color: rgba(94, 234, 212, 0.5);
  transform: translateY(-1px);
}

.input-group {
  display: block;
  width: 100%;
  margin: 0;
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.2s ease,
    border-color 0.2s ease, filter 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

/* the small inline action next to a field */
.btn-mini {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  background: var(--glass-2);
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-mini:hover {
  background: var(--glass-3);
  border-color: rgba(94, 234, 212, 0.45);
  color: #fff;
}

/* the primary install / query action */
.st-install {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.st-multi {
  flex: 0 0 30%;
  min-width: 0;
}

.st-multi .field-label {
  margin-bottom: 6px;
}

.st-multi .form-control {
  height: 52px;
  text-align: center;
}

.st-install-btn {
  flex: 1;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-deep) 48%, var(--violet) 100%);
  color: #05060c;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: var(--glow-cyan);
}

.st-install-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 44px -14px rgba(94, 234, 212, 0.6);
}

.st-query {
  width: 100%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  box-shadow: var(--glow-violet);
}

.st-query-result {
  margin-top: 14px;
}

/* ------------------------------------------------------------ bottom bar -- */

.st-bar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(94vw, 430px);
  height: var(--bar-h);
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(8, 10, 18, 0.8);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.st-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 54px;
  border-radius: var(--r-pill);
  color: var(--fg-faint);
  font-size: 10.5px;
  transition: color 0.2s ease, background 0.2s ease;
}

.st-bar a i {
  font-size: 16px;
}

.st-bar a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

/* the centre tab carries the brand ramp */
.st-bar a#Tab-Home {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  margin-top: -22px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--cyan), var(--violet) 62%, var(--pink));
  color: #05060c;
  box-shadow: var(--glow-cyan), 0 12px 30px -10px rgba(0, 0, 0, 0.85);
}

.st-bar a#Tab-Home span {
  font-size: 9.5px;
  font-weight: 700;
}

.st-bar a#Tab-Home i {
  font-size: 18px;
}

.st-bar a#Tab-Home:hover {
  background: linear-gradient(140deg, var(--cyan), var(--violet) 62%, var(--pink));
  color: #05060c;
}

/* ------------------------------------------------------- success overlay -- */

.menu-hider {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(2, 3, 7, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.menu-hider.show {
  opacity: 1;
  visibility: visible;
}

.st-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 1200;
  width: min(92vw, 400px);
  max-height: 84vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(10, 12, 22, 0.94);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: var(--shadow-3);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.st-modal.show,
.st-modal.menu-active,
.st-modal[style*="display: block"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.st-modal .card-top {
  padding: 16px 18px 0;
}

.close-menu {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass-2);
  color: var(--fg-dim);
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.close-menu:hover {
  background: var(--glass-3);
  color: #fff;
}

.st-modal .content {
  padding: 6px 20px 22px;
}

.st-modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
}

.st-modal-title i {
  color: var(--cyan);
}

.divider {
  height: 1px;
  margin: 14px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.st-modal-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
}

.st-modal-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--fg-dim);
  word-break: break-all;
}

/* ------------------------------------------------------------- preloader -- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.preloader-hide {
  opacity: 0;
  visibility: hidden;
}

.spinner-border {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: st-spin 0.8s linear infinite;
}

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

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 640px) {
  :root {
    --bar-h: 68px;
  }

  #changebg,
  .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .st-head {
    padding: 20px 16px 0;
  }

  .st-hero {
    padding: 30px 16px 22px;
  }

  .st-hero h1 {
    font-size: clamp(28px, 8.4vw, 40px);
  }

  .st-actions {
    gap: 14px;
    margin-top: 20px;
  }

  .st-cta {
    width: 100%;
    justify-content: center;
  }

  .st-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .st-meta b {
    font-size: 18px;
  }

  .st-quick {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 8px;
  }

  .st-quick-item {
    min-height: 74px;
    font-size: 11px;
  }

  .st-install {
    flex-direction: column;
  }

  .st-multi {
    flex: 1 1 auto;
  }

  .card.sign-card .content {
    padding: 16px;
  }

  .st-modal {
    width: min(94vw, 400px);
  }
}

@media (max-width: 380px) {
  .btn-mini {
    padding: 0 12px;
    font-size: 11.5px;
  }

  .st-bar {
    width: min(96vw, 430px);
  }
}

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