/* Azurite Premium — one quiet design system for the site, dashboard and tools. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #090b10;
  --panel: #11141b;
  --panel-2: #171b24;
  --surface-input: #171b24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f6fa;
  --muted: #9298a6;
  --accent: #5865f2;
  --accent-hover: #4e5ae8;
  --accent-text: #8b93ff;
  --accent-dark: #252951;
  --green: #3fb950;
  --red: #f85149;
  --amber: #d29922;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --ui-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

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

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

body {
  min-height: 100vh;
  font-family: "Inter", "Onest", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body :is(h1, h2, h3, h4) {
  font-family: "Inter", "Onest", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.025em;
  color: var(--text);
}

::selection {
  background: rgba(88, 101, 242, 0.35);
  color: #fff;
}

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

/* Shared primitives ------------------------------------------------------- */

.button,
.p-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition-property: background-color, border-color, color, transform,
    box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.button.primary,
.p-button-primary {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.button.primary:hover,
.p-button-primary:hover {
  background: var(--accent-hover);
  border-color: rgba(255, 255, 255, 0.14);
}

.button.secondary,
.p-button-ghost {
  background: #151922;
  border-color: var(--border-strong);
  color: var(--text);
}

.button.secondary:hover,
.p-button-ghost:hover {
  background: #1b202b;
  border-color: rgba(255, 255, 255, 0.2);
}

.button:not(:disabled):active,
.p-button:not(:disabled):active {
  transform: scale(0.96);
}

.button:disabled,
.p-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.text-button,
.p-link {
  border: 0;
  background: transparent;
  color: var(--accent-text);
  padding: 4px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}

.text-button:hover,
.p-link:hover {
  color: #a8aeff;
}

body :is(input:not([type="checkbox"]):not([type="color"]):not([type="range"]),
  select, textarea) {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-input);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms var(--ui-ease),
    box-shadow 160ms var(--ui-ease);
}

body :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.18);
}

body input::placeholder,
body textarea::placeholder {
  color: #6d7484;
}

body :is(input[type="checkbox"]) {
  accent-color: var(--accent);
}

body :is(h1, h2, h3) :is(code, span) {
  color: inherit;
}

body code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-2);
  color: #c7cbe8;
  font-size: 0.92em;
}

.p-container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.p-kicker {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p-skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: top 150ms var(--ui-ease);
}

.p-skip:focus {
  top: 12px;
}

/* Home -------------------------------------------------------------------- */

body.premium-home {
  background:
    radial-gradient(1100px 620px at 74% -12%, rgba(88, 101, 242, 0.18), transparent 62%),
    radial-gradient(760px 420px at 4% 2%, rgba(255, 255, 255, 0.045), transparent 58%),
    var(--bg);
}

html {
  scroll-padding-top: 84px;
}

.p-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 16, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(1.2);
}

.p-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 68px;
}

.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.p-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.p-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.p-nav-links a {
  padding: 8px 0;
  transition: color 160ms var(--ui-ease);
}

.p-nav-links a:hover {
  color: var(--text);
}

.p-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.p-nav-actions .p-button {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 13px;
}

.language-control {
  display: inline-flex;
  margin-left: 4px;
}

.language-control select {
  min-height: 34px;
  padding: 5px 9px;
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.p-menu {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.p-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding-block: 88px 80px;
  overflow: clip;
}

.p-hero::after {
  content: "";
  position: absolute;
  inset: 12px -60px 8px;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 68% 42%, #000 12%, transparent 68%);
  -webkit-mask-image: radial-gradient(
    ellipse at 68% 42%,
    #000 12%,
    transparent 68%
  );
  pointer-events: none;
}

.p-hero > * {
  position: relative;
  z-index: 1;
}

.p-hero-copy h1 {
  max-width: 620px;
  margin: 18px 0 20px;
  font-size: clamp(44px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.042em;
  color: #f7f8fc;
  text-wrap: balance;
}

.p-hero-copy h1 span {
  color: var(--accent-text);
}

.p-hero-copy > p {
  max-width: 48ch;
  margin: 0 0 30px;
  color: #a2a8b5;
  font-size: 16.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.p-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.p-hero-actions .p-button {
  min-height: 44px;
  padding-inline: 18px;
}

.p-note {
  margin-top: 14px !important;
  color: #7d8494 !important;
  font-size: 12px !important;
}

.p-hero-visual {
  position: relative;
  min-width: 0;
}

.p-hero-visual::before {
  content: "";
  position: absolute;
  inset: -16% -12% -20%;
  z-index: -1;
  background: radial-gradient(
    ellipse at 55% 46%,
    rgba(88, 101, 242, 0.28),
    transparent 66%
  );
  filter: blur(24px);
  pointer-events: none;
}

.p-app {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #12161f, #0c1017 72%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 44px 100px -36px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.p-app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #0d1017;
  color: var(--muted);
  font-size: 11px;
}

.p-dots {
  display: flex;
  gap: 5px;
}

.p-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2f3b;
}

.p-app-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #8e94a3;
}

.p-app-live b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.p-app-body {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 372px;
}

.p-app-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  background: #0b0e14;
}

.p-app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px 12px;
  color: #c8ccda;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.p-app-brand img {
  width: 16px;
  height: 16px;
}

.p-app-server {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 8px 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.p-app-nav {
  padding: 7px 9px;
  border-radius: 7px;
  color: #888f9e;
  font-size: 11px;
}

.p-app-nav.is-active {
  background: rgba(88, 101, 242, 0.14);
  color: #c7caf7;
}

.p-app-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  min-width: 0;
}

.p-app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.p-app-heading small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.p-app-heading strong {
  font-size: 16px;
  font-weight: 600;
}

.p-tag {
  padding: 3px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.p-app-tabs {
  display: flex;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.p-app-tabs .is-active {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: -7px;
}

.p-app-module {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-2);
}

.p-app-module div {
  display: grid;
  min-width: 0;
}

.p-app-module strong {
  font-size: 11px;
  font-weight: 550;
}

.p-app-module small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-app-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(88, 101, 242, 0.12);
  color: #9aa2ff;
  font-size: 13px;
}

.p-app-icon.violet {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
}

.p-app-icon.mint {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
}

.p-app-icon.rose {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.1);
}

.p-switch {
  position: relative;
  flex: none;
  width: 30px;
  height: 17px;
  margin-left: auto;
  border-radius: 20px;
  background: #2a2f3b;
}

.p-switch.is-on {
  background: var(--accent);
}

.p-switch.is-on::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}

.p-app-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.p-app-save-button {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.p-section {
  padding-block: 72px;
  border-top: 1px solid var(--border);
}

.p-proof + .p-section {
  border-top: 0;
}

#features {
  position: relative;
  isolation: isolate;
}

#features::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #0b0e14, #090b10);
}

.p-proof {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.p-proof-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 18px;
}

.p-proof-inner > div {
  display: grid;
  gap: 2px;
  padding-inline: 24px;
  border-inline-start: 1px solid var(--border);
}

.p-proof-inner > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.p-proof-inner strong {
  color: #f1f3f9;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.p-proof-inner span {
  color: #858c9c;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.p-section-head {
  max-width: 620px;
  margin-bottom: 32px;
}

.p-section-head h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.p-section-head p {
  margin: 0;
  max-width: 56ch;
  color: #9299a8;
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.p-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.p-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    transparent 42%
  ),
    #10131a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 48px -34px rgba(0, 0, 0, 0.9);
  transition-property: border-color, background-color, transform, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.p-feature::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.16), transparent 70%);
  pointer-events: none;
}

@media (hover: hover) {
  .p-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 147, 255, 0.3);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      transparent 42%
    ),
      #12151d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 30px 56px -30px rgba(0, 0, 0, 0.95);
  }
}

.p-feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border: 1px solid rgba(139, 147, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(88, 101, 242, 0.22),
    rgba(88, 101, 242, 0.08)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #b9bfff;
}

.p-feature-icon svg {
  width: 20px;
  height: 20px;
}

.p-feature h3 {
  margin: 0;
  color: #eef0f7;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.p-feature p {
  margin: 0;
  color: #9299a8;
  font-size: 13px;
  line-height: 1.6;
}

.p-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  padding-top: 11px;
}

.p-feature h3,
.p-feature p,
.p-feature-tags,
.p-feature-link,
.p-feature-icon {
  position: relative;
  z-index: 1;
}

.p-feature-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #939aa9;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.p-feature-link {
  margin-top: 10px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 550;
}

.p-more {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #10131a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.p-more > summary,
.p-compare > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}

.p-more > summary::-webkit-details-marker,
.p-compare > summary::-webkit-details-marker,
.p-faq-list summary::-webkit-details-marker {
  display: none;
}

.p-more > summary span,
.p-compare > summary span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform 180ms var(--ui-ease);
}

.p-more[open] > summary span,
.p-compare[open] > summary span {
  transform: rotate(45deg);
}

.p-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 24px;
  padding: 4px 18px 18px;
}

.p-more-grid a {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.p-more-grid a:hover {
  color: var(--text);
}

.p-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 48px -36px rgba(0, 0, 0, 0.9);
}

.p-steps article {
  position: relative;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #10131a;
}

.p-steps article > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 24px;
  margin-bottom: 14px;
  border: 1px solid rgba(139, 147, 255, 0.28);
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.1);
  color: #aeb4ff;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.p-steps h3 {
  margin: 0 0 8px;
  color: #eef0f7;
  font-size: 16px;
  font-weight: 600;
}

.p-steps p {
  margin: 0;
  color: #9299a8;
  font-size: 13px;
  line-height: 1.6;
}

.p-panel-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: center;
  gap: 36px;
  overflow: hidden;
  margin-top: 14px;
  padding: 30px;
  border: 1px solid rgba(139, 147, 255, 0.2);
  border-radius: 14px;
  background: radial-gradient(
      700px 260px at 92% 110%,
      rgba(88, 101, 242, 0.2),
      transparent 70%
    ),
    linear-gradient(180deg, #121722, #0e1219);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.p-panel-copy .p-button {
  margin-top: 20px;
}

.p-workflow {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, #11151e, #0b0e14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 50px -30px #000;
}

.p-wf-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.p-wf-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.p-wf-top div {
  display: grid;
  min-width: 0;
}

.p-wf-top small {
  color: #7f8696;
  font-size: 9px;
}

.p-wf-top strong {
  font-size: 12px;
  font-weight: 600;
}

.p-wf-state {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 5px;
  background: rgba(63, 185, 80, 0.08);
  color: #8fd99a;
  font-size: 9px;
}

.p-wf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #10141c;
}

.p-wf-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(88, 101, 242, 0.12);
  color: #aeb4ff;
  font-size: 12px;
}

.p-wf-row div {
  display: grid;
  min-width: 0;
}

.p-wf-row strong {
  font-size: 10.5px;
  font-weight: 550;
}

.p-wf-row small {
  color: #7f8696;
  font-size: 9px;
}

.p-wf-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  color: #7f8696;
  font-size: 9px;
}

.p-wf-save-button {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.p-panel-strip h3 {
  margin: 8px 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.p-panel-strip p {
  max-width: 62ch;
  margin: 0;
  color: #9aa1b0;
  font-size: 13.5px;
  line-height: 1.6;
}

#pro {
  position: relative;
  isolation: isolate;
  padding-block: 78px;
}

#pro::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  border-block: 1px solid rgba(139, 147, 255, 0.14);
  background: radial-gradient(
      800px 380px at 82% 0,
      rgba(88, 101, 242, 0.18),
      transparent 68%
    ),
    linear-gradient(180deg, #0b0e17, #090b10);
}

.p-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.p-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    #10131a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 48px -36px rgba(0, 0, 0, 0.9);
}

.p-plan-pro {
  border-color: rgba(139, 147, 255, 0.36);
  background: radial-gradient(
      480px 260px at 90% -10%,
      rgba(88, 101, 242, 0.24),
      transparent 65%
    ),
    linear-gradient(180deg, #151a2b, #0f1320);
}

.p-plan-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.p-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.p-plan-head strong {
  font-size: 19px;
  font-weight: 600;
}

.p-plan-head span {
  color: #8f96a5;
  font-size: 12px;
}

.p-plan li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.p-plan li::before {
  content: "✓";
  flex: none;
  color: var(--accent-text);
  font-size: 12px;
  line-height: 1.6;
}

.p-plan-price {
  margin: 12px 0 18px;
  color: #f4f5fa;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.p-plan ul {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: #9299a8;
  font-size: 13px;
}

.p-plan li::before {
  color: var(--accent-text);
}

.p-plan .p-button {
  margin-top: auto;
}

.p-compare {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #10131a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  max-width: 100%;
  overflow: hidden;
}

.p-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 18px 18px;
}

.p-table-wrap table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 13px;
}

.p-table-wrap th,
.p-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.p-table-wrap th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.p-table-wrap td:first-child {
  color: var(--text);
}

.p-table-wrap td:not(:first-child) {
  color: var(--muted);
}

.p-faq-list {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

#faq {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
}

#faq .p-section-head {
  position: sticky;
  top: 96px;
  margin: 0;
}

#faq .p-faq-list {
  max-width: none;
}

.p-faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #10131a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.p-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}

.p-faq-list summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--muted);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px
      no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 180ms var(--ui-ease);
}

.p-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.p-faq-list p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.p-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
}

.p-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.p-footer-brand p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.p-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.p-footer nav a:hover {
  color: var(--text);
}

.p-footer-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
}

/* Dashboard --------------------------------------------------------------- */

body.dashboard-page {
  background: var(--bg);
}

body.dashboard-page .layout {
  grid-template-columns: 248px minmax(0, 1fr);
}

body.dashboard-page .sidebar {
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: #0b0e14;
}

body.dashboard-page .sidebar .wordmark {
  margin: 0 8px 16px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.14em;
}

body.dashboard-page .sidebar .gem {
  width: 28px;
  height: 28px;
  border: 0;
  background: url("/assets/brand-mark.svg?v=20261105-logo-alpha1") center/contain no-repeat;
  font-size: 0;
}

body.dashboard-page .server-label,
body.dashboard-page .nav-heading {
  padding: 0 8px;
  color: #7d8494;
  font-size: 10px;
  letter-spacing: 0.1em;
}

body.dashboard-page #server-select {
  min-height: 38px;
  margin-bottom: 14px;
  border-color: var(--border);
  background: var(--panel);
  font-size: 13px;
}

body.dashboard-page .all-servers {
  padding: 2px 8px 10px;
  font-size: 12px;
}

body.dashboard-page .nav-toggle {
  min-height: 38px;
  border-color: var(--border);
  background: var(--panel);
}

body.dashboard-page .sidebar-navigation {
  gap: 2px;
  overscroll-behavior: contain;
}

body dialog {
  overscroll-behavior: contain;
}

body.dashboard-page .nav-drawer-head {
  display: none;
}

body.dashboard-page .nav-drawer-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body.dashboard-page .dashboard-home,
body.dashboard-page #section-nav button,
body.dashboard-page .sidebar-economy .text-button,
body.dashboard-page .sidebar-tools .text-button {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #9aa1b1;
  font-size: 12.5px;
}

body.dashboard-page .dashboard-home:hover,
body.dashboard-page #section-nav button:hover,
body.dashboard-page .sidebar-economy .text-button:hover,
body.dashboard-page .sidebar-tools .text-button:hover {
  background: var(--panel);
  color: var(--text);
}

body.dashboard-page #section-nav button.active,
body.dashboard-page .dashboard-home.active {
  background: rgba(88, 101, 242, 0.13);
  color: #c7caf7;
  box-shadow: none;
}

body.dashboard-page .nav-search {
  margin-block: 6px;
  padding-block: 4px;
  background: transparent;
}

body.dashboard-page .nav-search input {
  min-height: 34px;
  background: var(--panel);
  font-size: 12px;
}

body.dashboard-page .nav-category {
  margin: 14px 9px 4px;
  color: #6f7686;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.dashboard-page .nav-category-group:first-of-type .nav-category {
  margin-top: 4px;
}

body.dashboard-page .sidebar-collapse {
  position: absolute;
  top: 18px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

body.dashboard-page .sidebar-collapse:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

body.dashboard-page .sidebar-collapse svg {
  transition: transform 180ms var(--ui-ease);
}

body.sidebar-collapsed .sidebar-collapse svg {
  transform: rotate(180deg);
}

body.dashboard-page .sidebar-overlay {
  display: none;
}

@media (min-width: 861px) {
  body.site-lounge.dashboard-page.sidebar-collapsed .layout {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }

  body.sidebar-collapsed .sidebar {
    width: 72px !important;
    padding: 10px 8px !important;
  }

  body.sidebar-collapsed .sidebar .wordmark {
    justify-content: center;
    margin: 0 0 8px;
    font-size: 0 !important;
    letter-spacing: 0;
    color: transparent;
  }

  body.sidebar-collapsed .sidebar .wordmark .gem {
    display: inline-block !important;
  }

  body.sidebar-collapsed .server-label,
  body.sidebar-collapsed #server-select,
  body.sidebar-collapsed .all-servers,
  body.sidebar-collapsed #invite-bot,
  body.sidebar-collapsed .nav-heading,
  body.sidebar-collapsed .nav-search,
  body.sidebar-collapsed .sidebar-economy,
  body.sidebar-collapsed .sidebar-tools,
  body.sidebar-collapsed .sidebar-footer,
  body.sidebar-collapsed .nav-category,
  body.sidebar-collapsed .nav-access,
  body.sidebar-collapsed #section-nav button > span:not(.module-icon):not(.nav-dirty) {
    display: none;
  }

  body.sidebar-collapsed .sidebar-navigation .dashboard-home {
    justify-content: center;
    font-size: 0 !important;
    padding: 8px;
  }

  body.sidebar-collapsed .sidebar-navigation .dashboard-home > span {
    font-size: 15px;
  }

  body.sidebar-collapsed #section-nav {
    overflow: visible;
  }

  body.sidebar-collapsed #section-nav button {
    justify-content: center;
    padding: 9px;
    min-height: 38px;
  }

  body.sidebar-collapsed .module-icon {
    display: grid !important;
  }

  body.sidebar-collapsed .nav-category-group + .nav-category-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }

  body.sidebar-collapsed .sidebar-collapse {
    position: static;
    width: 100%;
    height: 30px;
    margin: auto 0 4px;
    order: 0;
  }
}

body.dashboard-page .nav-group,
body.dashboard-page .nav-access {
  margin-top: 2px;
}

body.dashboard-page .nav-group > summary,
body.dashboard-page .nav-access > summary {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #9aa1b1;
  font-size: 12.5px;
}

body.dashboard-page .nav-group > summary:hover,
body.dashboard-page .nav-access > summary:hover {
  background: var(--panel);
  color: var(--text);
}

body.dashboard-page .sidebar-economy,
body.dashboard-page .sidebar-tools {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

body.dashboard-page .sidebar-footer {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding: 12px 8px 0;
  color: #7d8494;
  font-size: 11px;
}

body.dashboard-page .status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
}

body.dashboard-page .topbar {
  min-height: 58px;
  height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.92);
  backdrop-filter: blur(12px);
}

body.dashboard-page .breadcrumb {
  color: #7d8494;
  font-size: 12px;
}

body.dashboard-page .breadcrumb strong {
  color: var(--text);
  font-weight: 550;
}

body.dashboard-page .workspace {
  max-width: 1220px;
  padding: 28px 32px 90px;
}

body.dashboard-page .page-heading {
  align-items: flex-start;
  margin-bottom: 20px;
}

body.dashboard-page .page-heading h1,
body.dashboard-page h1 {
  margin: 0 0 6px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

body.dashboard-page .page-heading p,
body.dashboard-page .page-heading .muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

body.dashboard-page .page-heading .eyebrow,
body.dashboard-page .section-intro .eyebrow,
body.dashboard-page .analytics-kicker {
  display: none;
}

body.dashboard-page .panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
  margin-bottom: 14px;
}

body.dashboard-page .panel-heading {
  margin-bottom: 16px;
}

body.dashboard-page .panel-heading h2 {
  font-size: 15px;
  font-weight: 600;
}

body.dashboard-page .editor-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

body.dashboard-page .configuration-panel {
  padding: 20px 22px;
}

body.dashboard-page .configuration-panel .panel-heading {
  display: none;
}

body.dashboard-page .field {
  padding: 13px 0;
  border-color: var(--border);
}

body.dashboard-page .field-label {
  margin-bottom: 7px;
  color: #c9cbd5;
  font-size: 12.5px;
}

body.dashboard-page .field-help {
  margin-top: 5px;
  color: #7d8494;
  font-size: 11px;
  line-height: 1.55;
}

body.dashboard-page .field input:not([type="checkbox"]):not([type="color"]),
body.dashboard-page .field select,
body.dashboard-page .field textarea {
  min-height: 38px;
  font-size: 13px;
}

body.dashboard-page .field-group-label {
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.dashboard-page .field-group-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.dashboard-page .field input[type="checkbox"] {
  width: 32px;
  height: 18px;
  border-color: var(--border-strong);
  background: #262a35;
}

body.dashboard-page .field input[type="checkbox"]:before {
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
}

body.dashboard-page .field input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

body.dashboard-page .field input[type="checkbox"]:checked:before {
  transform: translateX(14px);
  background: #fff;
}

body.dashboard-page .choice-picker,
body.dashboard-page .readonly-value {
  border-color: var(--border);
  border-radius: 9px;
  background: var(--panel-2);
}

body.dashboard-page .choice-row {
  background: var(--panel);
  border-radius: 7px;
}

body.dashboard-page .summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

body.dashboard-page .summary {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

body.dashboard-page .summary span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

body.dashboard-page .summary strong {
  font-size: 19px;
  font-weight: 600;
}

body.dashboard-page .details-column {
  gap: 12px;
}

body.dashboard-page .details-column .panel {
  padding: 16px;
}

body.dashboard-page .details-column .panel-heading h2 {
  font-size: 13px;
}

body.dashboard-page .savebar {
  position: sticky;
  bottom: 12px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(17, 20, 27, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

body.dashboard-page .savebar strong {
  font-size: 13px;
}

body.dashboard-page .savebar > div > span {
  font-size: 11px;
}

body.dashboard-page .save-actions .button {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 12px;
}

body.dashboard-page .module-grid {
  gap: 10px;
}

body.dashboard-page .module-grid .module-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: none;
}

body.dashboard-page .module-grid .module-card:hover {
  border-color: var(--border-strong);
  transform: none;
}

body.dashboard-page .module-grid .module-card h3 {
  font-size: 15px;
}

body.dashboard-page .module-grid .module-card p {
  font-size: 12px;
}

body.dashboard-page .module-grid .module-art {
  display: none;
}

body.dashboard-page .section-visual,
body.dashboard-page .starter-banner img,
body.dashboard-page .ticket-example img {
  display: none;
}

body.dashboard-page .starter-banner,
body.dashboard-page .automatic-card,
body.dashboard-page .workspace-pro,
body.dashboard-page .readiness-notice {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}

body.dashboard-page .starter-banner {
  padding: 20px;
}

body.dashboard-page .starter-banner h2 {
  font-size: 20px;
}

body.dashboard-page .workspace-tabs {
  margin-bottom: 16px;
  gap: 18px;
}

body.dashboard-page .workspace-tabs button {
  padding-block: 10px;
  font-size: 13px;
}

body.dashboard-page #notice.notice,
body.dashboard-page .notice {
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 12px;
}

body.dashboard-page .notice {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}

body.dashboard-page .notice.error {
  border-color: rgba(248, 81, 73, 0.35);
  background: rgba(248, 81, 73, 0.08);
  color: #ffb3ad;
}

body.dashboard-page .notice:is([data-tone="success"], .success) {
  border-color: rgba(63, 185, 80, 0.32);
  background: rgba(63, 185, 80, 0.08);
  color: #9be3a5;
}

body.dashboard-page .owner-nav {
  gap: 4px;
  margin-bottom: 18px;
}

body.dashboard-page .owner-nav a {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

body.dashboard-page .owner-nav a[aria-current="page"] {
  background: rgba(88, 101, 242, 0.13);
  color: #c7caf7;
}

body.dashboard-page .server-grid {
  gap: 10px;
}

body.dashboard-page .server-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: none;
}

body.dashboard-page .server-card:hover {
  border-color: var(--border-strong);
  transform: none;
}

body.dashboard-page .server-card .guild-avatar,
body.dashboard-page .server-card .server-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 16px;
}

body.dashboard-page .server-card-info h2 {
  font-size: 15px;
}

body.dashboard-page .server-card-info p {
  font-size: 11px;
}

body.dashboard-page .empty-card {
  min-height: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

body.dashboard-page .empty-card h1 {
  margin-top: 8px;
  font-size: 24px;
}

body.dashboard-page .empty-card p {
  font-size: 13px;
}

/* Other pages ------------------------------------------------------------- */

body.site-lounge:not(.dashboard-page) {
  background: var(--bg);
  color: var(--text);
}

body.site-lounge .topbar,
body .appearance-top,
body .studio-header {
  min-height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.92);
  backdrop-filter: blur(12px);
}

body.site-lounge .topbar .wordmark,
body .appearance-top .wordmark,
body .studio-header .wordmark {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.14em;
}

body.site-lounge .topbar .gem,
body .appearance-top .gem,
body .studio-header .gem {
  width: 28px;
  height: 28px;
  border: 0;
  background: url("/assets/brand-mark.svg?v=20261105-logo-alpha1") center/contain no-repeat;
  font-size: 0;
}

body.site-lounge .workspace,
body .appearance-shell,
body .pro-studio-shell,
body .legal-shell {
  max-width: 1160px;
  margin-inline: auto;
  padding: 28px 28px 80px;
}

body.site-lounge .page-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

body.site-lounge .page-heading h1,
body .appearance-heading h1,
body .studio-intro h1,
body .legal-shell h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

body.site-lounge .page-heading p,
body .appearance-heading p,
body .studio-intro p,
body .legal-shell .muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

body.site-lounge .eyebrow,
body .appearance-heading .eyebrow,
body .studio-kicker,
body .analytics-kicker {
  display: none;
}

body.site-lounge .panel,
body.site-lounge .builder-editor,
body.site-lounge .builder-catalog,
body.site-lounge .builder-preview,
body.site-lounge .economy-card,
body.site-lounge .case-card,
body.site-lounge .queue-card,
body.site-lounge .analytics-panel,
body .appearance-grid .panel,
body .studio-feature,
body .studio-server {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}

body.site-lounge .panel-heading {
  margin-bottom: 14px;
}

body.site-lounge .panel-heading h2 {
  font-size: 14px;
  font-weight: 600;
}

body.site-lounge .server-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

body.site-lounge .server-picker select {
  min-height: 36px;
  font-size: 12px;
}

body.site-lounge .notice {
  margin-bottom: 14px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

body.site-lounge .notice.error {
  border-color: rgba(248, 81, 73, 0.35);
  background: rgba(248, 81, 73, 0.08);
  color: #ffb3ad;
}

body.site-lounge .builder-layout,
body.site-lounge .catalogue-layout,
body.site-lounge .journal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body.site-lounge .builder-editor {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.site-lounge .journal-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

body.site-lounge .case-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

body.site-lounge .case-filters label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

body.site-lounge .case-filters :is(input, select) {
  width: 100%;
  min-height: 36px;
  font-size: 12px;
}

body.site-lounge .case-filters .button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}

body.site-lounge .case-table {
  min-width: 640px;
}

body.site-lounge .case-table :is(th, td) {
  white-space: normal;
  vertical-align: top;
}

body.site-lounge .builder-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  width: fit-content;
}

body.site-lounge .builder-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

body.site-lounge .builder-tabs button.active {
  background: var(--panel-2);
  color: var(--text);
}

body.site-lounge .field {
  padding: 11px 0;
  border-color: var(--border);
}

body.site-lounge .field-label {
  margin-bottom: 6px;
  color: #c9cbd5;
  font-size: 12.5px;
}

body.site-lounge .field-help,
body.site-lounge .form-note {
  color: #7d8494;
  font-size: 11px;
}

body.site-lounge .field > :is(input, select, textarea) {
  width: 100%;
}

body.site-lounge .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

body.site-lounge table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.site-lounge table th,
body.site-lounge table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

body.site-lounge table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.site-lounge table tr:last-child td {
  border-bottom: 0;
}

body.site-lounge .owner-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

body.site-lounge .owner-nav a {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

body.site-lounge .owner-nav a[aria-current="page"] {
  background: rgba(88, 101, 242, 0.13);
  color: #c7caf7;
}

body.site-lounge .analytics-summary {
  gap: 10px;
}

body.site-lounge .analytics-panel {
  padding: 16px;
}

body.site-lounge .analytics-panel h2 {
  font-size: 14px;
}

body.site-lounge .analytics-controls {
  gap: 8px;
}

body.site-lounge .analytics-controls :is(select, button) {
  min-height: 36px;
  font-size: 12px;
}

body .appearance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body .appearance-heading {
  margin-bottom: 18px;
}

body .appearance-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body .appearance-palette button {
  width: auto !important;
  min-width: 78px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

body .appearance-palette button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

body .appearance-heading h1 {
  font-size: 30px !important;
}

body :is(input[type="file"]) {
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-input);
  color: var(--muted);
  font-size: 12px;
}

body input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

body .studio-intro h1 {
  font-size: 34px !important;
}

body .appearance-top,
body .studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  min-height: 58px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: rgba(9, 11, 16, 0.92);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body .studio-intro {
  max-width: 620px;
  margin-bottom: 18px;
}

body .studio-intro h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

body .studio-feature {
  margin-bottom: 12px;
}

body .studio-upgrade {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

body .legal-shell {
  max-width: 900px;
}

body .legal-header {
  width: 100%;
  max-width: none;
  min-height: 58px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: rgba(9, 11, 16, 0.92);
  box-shadow: none;
}

body .legal-header .wordmark {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.14em;
}

body .legal-header .gem {
  width: 28px;
  height: 28px;
  border: 0;
  background: url("/assets/brand-mark.svg?v=20261105-logo-alpha1") center/contain no-repeat;
  font-size: 0;
}

body.site-lounge.dashboard-page .workspace-pro {
  --lounge-pro: var(--accent);
}

body.site-lounge.dashboard-page .workspace-pro :is(.workspace-pro-level, .workspace-pro-title) {
  color: #b9beff !important;
}

body.site-lounge.dashboard-page .workspace-pro .pro-sample-badge {
  border-color: var(--border-strong) !important;
  background: var(--panel-2) !important;
  color: var(--muted) !important;
}

body.site-lounge.dashboard-page .quick-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.site-lounge.dashboard-page .quick-start > * {
  padding: 16px !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

body.site-lounge.dashboard-page .quick-start > :is([aria-pressed="true"], .selected) {
  border-color: rgba(88, 101, 242, 0.55) !important;
}

body.site-lounge.dashboard-page .quick-start h2,
body.site-lounge.dashboard-page .quick-start h3 {
  font-size: 15px !important;
}

body.site-lounge.dashboard-page .quick-start p {
  font-size: 12px !important;
}

body .legal-nav {
  gap: 4px;
}

body .legal-nav a {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

body .legal-nav a[aria-current="page"] {
  background: rgba(88, 101, 242, 0.13);
  color: #c7caf7;
}

body .legal-shell article {
  color: #c9cbd5;
  font-size: 14px;
  line-height: 1.7;
}

body .legal-shell h2 {
  margin-top: 28px;
  font-size: 18px;
}

body .legal-shell h1 {
  font-size: 30px;
}

body .feedback-launch {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* High-specificity reset for legacy spatial surfaces. */

body.site-lounge.panel-spatial,
body.site-lounge.dashboard-page,
body.premium-home {
  --bg: #090b10;
  --panel: #11141b;
  --panel-2: #171b24;
  --surface-input: #171b24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f6fa;
  --muted: #9298a6;
  --desk-line: rgba(255, 255, 255, 0.07);
  --desk-glow: transparent;
  --az-glass: #11141b;
  background: var(--bg) !important;
}

:root[data-accent="sky"] {
  --accent: #5865f2 !important;
  --accent-dark: #252951 !important;
}

body.site-lounge.panel-spatial :is(
  .panel,
  .module-workspace,
  .editor-panel,
  .builder-editor,
  .builder-catalog,
  .builder-preview,
  .analytics-panel,
  .economy-card,
  .case-card,
  .queue-card,
  .module-card,
  .server-card,
  .summary,
  .starter-banner,
  .workspace-pro,
  .automatic-card,
  .readiness-notice,
  .tool-record,
  .tool-preview,
  .economy-card,
  .catalogue-card,
  .studio-feature,
  .studio-server,
  .studio-upgrade
) {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      transparent 38%
    ),
    #10131a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 44px -36px rgba(0, 0, 0, 0.9) !important;
}

body.site-lounge.dashboard-page #section-nav button.active,
body.site-lounge.dashboard-page .dashboard-home.active {
  border-left: 0 !important;
  border-inline-start: 0 !important;
  box-shadow: none !important;
  background: rgba(88, 101, 242, 0.14) !important;
  color: #d4d7ff !important;
  font-weight: 600 !important;
}

body.site-lounge.dashboard-page #section-nav button {
  position: relative;
}

body.site-lounge.dashboard-page #section-nav button.active:before {
  content: "";
  display: block !important;
  position: absolute;
  top: calc(50% - 8px);
  left: 0;
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
}

body.site-lounge :is(.badge, .subtle-tag) {
  padding: 4px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.site-lounge .badge.pro {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.12);
  color: #b9beff;
}

body.site-lounge.dashboard-page .field {
  padding: 12px 0 !important;
}

body.site-lounge.dashboard-page .field-label {
  font-size: 12.5px !important;
}

body.site-lounge.dashboard-page .field-group-label {
  margin: 14px 0 4px !important;
  padding: 12px 0 0 !important;
  font-size: 10px !important;
}

body.site-lounge.dashboard-page .field select,
body.site-lounge.dashboard-page .field input:not([type="checkbox"]):not([type="color"]),
body.site-lounge.dashboard-page .field textarea {
  min-height: 38px !important;
  font-size: 13px !important;
}

body.site-lounge.dashboard-page .field-help {
  font-size: 11px !important;
}

body.site-lounge.dashboard-page .welcome {
  background: var(--bg) !important;
}

body.site-lounge.dashboard-page .welcome::before {
  display: none !important;
}

body.site-lounge.dashboard-page .sidebar {
  padding: 16px 12px !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #0d1118, #090b10 68%) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02) !important;
}

body.site-lounge.dashboard-page .topbar {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  background: rgba(9, 11, 16, 0.78) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(16px) saturate(1.2);
}

body.site-lounge.dashboard-page .workspace h1 {
  font-size: 27px !important;
  font-weight: 650 !important;
  letter-spacing: -0.03em !important;
}

body.site-lounge.dashboard-page .configuration-panel {
  padding: 20px 22px !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

body.site-lounge.dashboard-page .workspace-tabs {
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.site-lounge.dashboard-page .workspace-tabs button {
  min-height: 38px !important;
  padding: 8px 2px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
}

body.site-lounge.dashboard-page .workspace-tabs button[aria-selected="true"] {
  color: var(--text) !important;
  border-bottom: 2px solid var(--accent) !important;
}

body.site-lounge.dashboard-page .section-module-bar {
  padding: 14px 18px !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

body.site-lounge.dashboard-page .section-module-bar strong {
  font-size: 14px !important;
}

body.site-lounge.dashboard-page .section-module-bar p {
  font-size: 12px !important;
}

body.site-lounge.dashboard-page .panel-heading h2 {
  font-size: 15px !important;
  font-weight: 600 !important;
}

body.site-lounge.dashboard-page .details-column .panel {
  padding: 16px !important;
  border-radius: 12px !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

body.site-lounge.dashboard-page .savebar {
  border-radius: 11px !important;
  padding: 12px 16px !important;
}

body.site-lounge.dashboard-page .module-card {
  border-radius: 11px !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

body.site-lounge:not(.dashboard-page) .topbar {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: rgba(9, 11, 16, 0.92) !important;
  box-shadow: none !important;
}

body.site-lounge:not(.dashboard-page) .workspace h1 {
  font-size: 28px !important;
  font-weight: 650 !important;
}

body.site-lounge:not(.dashboard-page) .panel {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1000px) {
  .p-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-block: 56px 64px;
  }

  .p-hero-copy h1 {
    font-size: clamp(38px, 8vw, 56px);
  }

  .p-hero-copy > p {
    font-size: 15px;
  }

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

  body.dashboard-page .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.dashboard-page .editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-page .details-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-lounge .builder-layout,
  body.site-lounge .catalogue-layout,
  body.site-lounge .journal-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  #faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  #faq .p-section-head {
    position: static;
  }

  #pro {
    padding-block: 56px;
  }

  .p-panel-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .p-workflow {
    width: 100%;
    max-width: 420px;
  }

  .p-proof-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
  }

  .p-proof-inner > div:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .p-nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 18px 16px;
    border-bottom: 1px solid var(--border);
    background: #0b0e14;
  }

  .p-nav-links.is-open {
    display: flex;
  }

  .p-nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .p-nav-links .language-control {
    margin: 8px 0 0;
  }

  .p-menu {
    display: grid;
    place-items: center;
  }

  .p-nav-actions .p-button {
    display: inline-flex;
    min-height: 36px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .p-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-panel-strip {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .p-footer-inner {
    flex-direction: column;
    gap: 18px;
  }

  .p-footer-side {
    justify-items: start;
  }

  body.dashboard-page .layout {
    display: block;
  }

  body.dashboard-page .sidebar {
    position: static;
    height: auto;
    padding: 12px 16px;
    backdrop-filter: none !important;
  }

  body.dashboard-page .sidebar .wordmark {
    margin-bottom: 10px;
  }

  body.dashboard-page .sidebar-collapse {
    display: none;
  }

  body.dashboard-page #server-select {
    margin-bottom: 8px;
  }

  body.dashboard-page .sidebar-navigation {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: block;
    width: min(300px, 86vw);
    height: 100dvh;
    max-height: 100dvh !important;
    padding: 16px;
    border-right: 1px solid var(--border);
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 200ms var(--ui-ease), visibility 200ms;
  }

  body.dashboard-page .sidebar-navigation.expanded {
    visibility: visible;
    transform: none;
  }

  body.dashboard-page .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
  }

  body.dashboard-page .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
  }

  body.dashboard-page #app-view:has(.sidebar-navigation.expanded) .sidebar-overlay {
    display: block;
  }

  body.dashboard-page #section-nav {
    display: block;
    max-height: none;
    padding: 0;
    overflow: visible;
    white-space: normal;
  }

  body.dashboard-page .nav-category {
    margin-top: 14px;
  }

  body.dashboard-page .nav-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  body.dashboard-page .sidebar-footer {
    display: none;
  }

  body.dashboard-page .topbar {
    height: 52px;
    min-height: 52px;
    padding: 0 16px;
  }

  body.dashboard-page .workspace {
    padding: 20px 16px 80px;
  }

  body.dashboard-page .details-column {
    display: block;
  }

  body.dashboard-page .savebar {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.dashboard-page .save-actions {
    width: 100%;
  }

  body.dashboard-page .save-actions .button {
    flex: 1;
  }

  body.site-lounge .builder-layout,
  body.site-lounge .catalogue-layout,
  body.site-lounge .journal-layout,
  body .appearance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.site-lounge .case-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .p-container {
    width: calc(100% - 32px);
  }

  .p-table-wrap table {
    table-layout: fixed;
  }

  .p-table-wrap :is(th, td) {
    overflow-wrap: anywhere;
  }

  .p-proof-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .p-proof-inner > div {
    padding: 12px 0;
    border-inline-start: 0;
    border-top: 1px solid var(--border);
  }

  .p-proof-inner > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .p-proof-inner > div:last-child {
    padding-bottom: 0;
  }

  body :is(input:not([type="checkbox"]):not([type="color"]):not([type="range"]),
    select, textarea) {
    font-size: 16px;
  }

  .feedback-launch.feedback-floating {
    display: none !important;
  }

  .p-nav {
    gap: 12px;
  }

  .p-hero {
    padding-block: 40px 48px;
  }

  .p-hero-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .p-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .p-hero-actions .p-button {
    width: 100%;
  }

  .p-app-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-app-side {
    display: none;
  }

  .p-more-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-section {
    padding-block: 52px;
  }

  .p-section-head h2 {
    font-size: 28px;
  }

  body.site-lounge .topbar,
  body .appearance-top,
  body .studio-header,
  body .legal-header {
    padding: 0 16px;
  }

  body.site-lounge .workspace,
  body .appearance-shell,
  body .pro-studio-shell,
  body .legal-shell {
    padding: 20px 16px 64px;
  }

  body.site-lounge .page-heading {
    flex-direction: column;
    gap: 10px;
  }

  body.site-lounge .case-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  body.site-lounge .case-filters .button {
    width: 100%;
  }

  body.dashboard-page .page-heading {
    flex-direction: column;
  }

  body.dashboard-page .summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .p-hero-shot,
  .p-hero-copy h1 {
    transform: none !important;
  }

  .p-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Home v2: product evidence and a module ledger. ------------------------- */

body.premium-home {
  background: var(--bg);
}

body.premium-home .feedback-launch.feedback-floating {
  display: none;
}

.p-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  pointer-events: none;
}

.p-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 550ms var(--ui-ease), transform 550ms var(--ui-ease);
}

.p-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.p-js .p-ledger > .p-ledger-group:nth-child(2),
.p-js .p-permissions,
.p-js .p-plan:nth-child(2),
.p-js .p-compare {
  transition-delay: 70ms;
}

body:has(#login-view:not([hidden])) .feedback-launch.feedback-floating {
  display: none;
}

body.premium-home .p-button {
  min-height: 44px;
}

body.premium-home .p-menu {
  width: 44px;
  height: 44px;
}

.p-hero {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  padding-block: 72px 64px;
  overflow: clip;
}

.p-hero::after {
  content: none;
}

.p-hero {
  --rx: 0deg;
  --ry: 0deg;
  --tx: 0px;
  --ty: 0px;
  --sy: 0px;
}

.p-hero-stage {
  position: relative;
  min-width: 0;
  padding-top: 220px;
}

.p-hero-atmosphere,
.p-hero-canvas {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -6%;
  width: 108%;
  height: 480px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse at 55% 45%,
    #000 0%,
    #000 45%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse at 55% 45%,
    #000 0%,
    #000 45%,
    transparent 78%
  );
}

.p-hero-atmosphere {
  background: radial-gradient(
    ellipse at 55% 45%,
    rgba(88, 101, 242, 0.26),
    rgba(88, 101, 242, 0.07) 44%,
    transparent 72%
  );
  filter: blur(30px);
  opacity: 0.9;
}

.p-hero-canvas {
  display: block;
  opacity: 0.95;
  mix-blend-mode: screen;
  transform: translate3d(0, calc(var(--sy) * -1.2), 0);
  will-change: transform;
}

.p-hero-canvas[hidden] {
  display: none;
}

.p-hero > :not(.p-hero-atmosphere):not(.p-hero-canvas) {
  position: relative;
  z-index: 1;
}

.p-hero-shot {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  transform: perspective(1400px) rotateX(var(--srx, 0deg))
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translate3d(var(--tx, 0px), calc(var(--ty, 0px) + var(--sy) * 0.5), 0);
  transform-style: preserve-3d;
  will-change: transform;
}

.p-hero-copy h1 {
  transform: translate3d(0, calc(var(--sy) * 0.25), 0);
  will-change: transform;
}

.p-hero-copy h1 {
  max-width: 10ch;
  margin: 0 0 22px;
  font-size: clamp(44px, 5.2vw, 74px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.048em;
  color: #f7f8fc;
  text-wrap: balance;
}

.p-hero-count {
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.p-hero-copy > p {
  max-width: 44ch;
  margin: 0 0 30px;
  color: #a2a8b5;
  font-size: 16.5px;
  line-height: 1.62;
  text-wrap: pretty;
}

.p-hero-actions {
  gap: 10px;
}

.p-hero-actions .p-button {
  padding-inline: 18px;
}

.p-hero-shot {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0b0e14;
  box-shadow: 0 44px 90px -46px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.p-hero-shot::before {
  content: "";
  position: absolute;
  inset: -10% -8% -14%;
  z-index: -1;
  background: radial-gradient(
    ellipse at 55% 48%,
    rgba(88, 101, 242, 0.2),
    transparent 68%
  );
  filter: blur(28px);
  pointer-events: none;
}

.p-hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.p-hero-shot figcaption {
  padding: 10px 4px 2px;
  color: #8a91a0;
  font-size: 12px;
  line-height: 1.5;
}

#home-navigation > .language-control {
  margin-inline-start: 4px;
}

#home-navigation > .language-control select {
  width: auto;
  min-height: 34px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #11141b;
  color: #9298a6;
  font-size: 12px;
}

#home-navigation > .language-control select:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.p-section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 48px;
  max-width: none;
  margin-bottom: 36px;
}

.p-section-head-split h2 {
  margin: 0;
}

.p-section-head-split p {
  max-width: 58ch;
  margin: 0;
}

.p-modules {
  padding-block: 80px 88px;
}

.p-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}

.p-ledger-col {
  display: grid;
  gap: 40px;
  align-content: start;
}

.p-ledger-group header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.p-ledger-group h3 {
  margin: 0;
  color: #eef0f7;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.p-ledger-group header span {
  color: #7f8796;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 861px) {
  .p-ledger-group > header {
    position: sticky;
    top: 84px;
    z-index: 2;
    padding-top: 6px;
    background: var(--bg);
  }
}

.p-ledger-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 8px;
  margin-inline: -8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  transition: background-color 150ms ease-out;
}

.p-ledger-row:hover,
.p-ledger-row:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 2px 0 var(--accent);
}

.p-ledger-row:hover strong {
  color: #ffffff;
}

.p-ledger-row:hover .p-ledger-num {
  color: var(--accent-text);
}

.p-ledger-num {
  padding-top: 1px;
  color: #7f8796;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.p-ledger-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.p-ledger-body strong {
  color: #dde0e8;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.p-ledger-body small {
  color: #8a91a0;
  font-size: 12.5px;
  line-height: 1.45;
}

.p-start {
  padding-block: 84px;
}

.p-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}

.p-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 0 0 26px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  list-style: none;
}

.p-steps li {
  position: relative;
  padding: 0 0 30px;
}

.p-steps li:last-child {
  padding-bottom: 0;
}

.p-steps li > span {
  position: absolute;
  top: -2px;
  left: -39px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--bg);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.p-steps h3 {
  margin: 0 0 6px;
  color: #eef0f7;
  font-size: 16px;
  font-weight: 600;
}

.p-steps p {
  max-width: 46ch;
  margin: 0;
  color: #9299a8;
  font-size: 13.5px;
  line-height: 1.6;
}

.p-permissions {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0e1117;
}

.p-permissions h3 {
  margin: 0 0 14px;
  color: #eef0f7;
  font-size: 15px;
  font-weight: 600;
}

.p-permissions ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-permissions li {
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #a2a8b5;
  font-size: 13px;
  line-height: 1.5;
}

.p-permissions li:first-child {
  padding-top: 0;
  border-top: 0;
}

.p-permissions p {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #7f8796;
  font-size: 12px;
  line-height: 1.55;
}

#pro {
  padding-block: 92px;
}

#pro::before {
  content: none;
}

.p-plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.p-plan {
  padding: 28px 32px 30px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.p-plan + .p-plan {
  padding-right: 0;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.p-plan-pro {
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.07), transparent 58%);
}

.p-plan-pro::after {
  content: none;
}

.p-plan-head h3 {
  margin: 0;
  color: #f1f3f9;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.p-plan-head span {
  color: #8f96a5;
  font-size: 12px;
}

.p-plan-price {
  margin: 8px 0 22px;
  color: #f4f5fa;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.p-plan ul {
  gap: 10px;
  margin: 0 0 26px;
  color: #9aa1b0;
  font-size: 13px;
}

.p-plan li::before {
  color: var(--accent-text);
}

.p-plan .p-button {
  margin-top: auto;
}

.p-compare {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.p-compare > summary {
  padding: 14px 16px;
}

.p-table-wrap {
  padding: 0 16px 16px;
}

.p-table-wrap th {
  color: #7f8796;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.p-table-wrap :is(th, td) {
  padding: 9px 10px;
}

.p-faq-list {
  gap: 0;
  max-width: none;
}

.p-faq-list details {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

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

.p-faq-list summary {
  padding: 16px 0;
  font-size: 14.5px;
}

.p-faq-list p {
  max-width: 70ch;
  padding: 0 0 18px;
  font-size: 13px;
}

.p-footer {
  padding-block: 32px;
}

@media (max-width: 1000px) {
  .p-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 60px 68px;
  }

  .p-hero-copy h1 {
    font-size: clamp(42px, 8vw, 64px);
  }

  .p-hero-shot {
    max-width: 760px;
  }

  .p-section-head-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .p-start-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .p-ledger {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .p-ledger-col {
    gap: 36px;
  }

  .p-modules,
  #pro {
    padding-block: 64px;
  }

  .p-start {
    padding-block: 64px;
  }

  .p-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-plan {
    padding: 24px 0;
  }

  .p-plan + .p-plan {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .p-plan-pro {
    background: none;
  }

  .p-hero-stage {
    padding-top: 150px;
  }

  .p-hero-atmosphere,
  .p-hero-canvas {
    top: 0;
    right: -4%;
    width: 108%;
    height: 340px;
    opacity: 0.8;
  }

  .p-hero-shot,
  .p-hero-copy h1 {
    transform: none;
  }
}

@media (max-width: 560px) {
  .p-hero {
    padding-block: 36px 48px;
  }

  .p-hero-copy h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .p-hero-copy > p {
    font-size: 15px;
  }

  .p-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .p-hero-actions .p-button {
    width: 100%;
  }

  .p-hero-stage {
    padding-top: 110px;
  }

  .p-hero-atmosphere,
  .p-hero-canvas {
    height: 260px;
  }

  .p-section {
    padding-block: 52px;
  }

  .p-section-head h2 {
    font-size: 30px;
  }

  .p-ledger-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .p-permissions {
    padding: 20px;
  }

  .p-faq-list summary {
    padding: 14px 0;
  }

  .p-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  #home-navigation > .language-control select {
    min-height: 44px;
  }
}

/* Login: one solid surface, no decorative rings. -------------------------- */

body.site-lounge.dashboard-page #login-view {
  min-height: 100dvh;
  padding: 36px 6vw;
  background: var(--bg);
}

body.site-lounge.dashboard-page #login-view::after {
  content: none !important;
}

body.site-lounge.dashboard-page #login-view .welcome-main {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  margin: auto 0;
}

body.site-lounge.dashboard-page #login-view .welcome-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0e1117;
  box-shadow: none;
}

body.site-lounge.dashboard-page #login-view .welcome-shot {
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #0b0e14;
  box-shadow: 0 36px 80px -50px #000;
}

body.site-lounge.dashboard-page #login-view .welcome-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

body.site-lounge.dashboard-page #login-view .welcome-shot figcaption {
  padding: 9px 4px 2px;
  color: #8a91a0;
  font-size: 12px;
}

body.site-lounge.dashboard-page #login-view .welcome-content h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

body.site-lounge.dashboard-page #login-view .welcome-content > p {
  max-width: 42ch;
  margin: 0 0 26px;
  color: #a2a8b5;
  font-size: 15.5px;
  line-height: 1.65;
}

body.site-lounge.dashboard-page #login-view .welcome-content .button.primary {
  min-height: 44px;
}

body.site-lounge.dashboard-page #login-view .welcome-footer {
  color: #7f8796;
  font-size: 11px;
  letter-spacing: 0.12em;
}

@media (max-width: 1000px) {
  body.site-lounge.dashboard-page #login-view .welcome-main {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  body.site-lounge.dashboard-page #login-view .welcome-shot {
    display: none;
  }

  body.site-lounge.dashboard-page #login-view .welcome-content {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  body.site-lounge.dashboard-page #login-view {
    padding: 24px 16px;
  }

  body.site-lounge.dashboard-page #login-view .welcome-content {
    padding: 28px 22px;
  }

  body.site-lounge.dashboard-page #login-view .welcome-content h1 {
    font-size: 40px;
  }

  body.site-lounge.dashboard-page #login-view .language-control select {
    min-height: 44px;
  }
}

@media (max-width: 860px) {
  #home-navigation > .language-control select {
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .appearance-top > .language-control {
    margin-left: auto;
  }
}
