:root {
  color-scheme: dark;
  --bg: #08100f;
  --bg-elevated: #0d1716;
  --surface: #111d1b;
  --surface-strong: #182522;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(208, 232, 224, 0.14);
  --line-strong: rgba(208, 232, 224, 0.25);
  --text: #f4f7f5;
  --muted: #9daaa6;
  --muted-strong: #c1cbc7;
  --accent: #55e6b2;
  --accent-strong: #8cf4ce;
  --accent-ink: #042118;
  --accent-red: #ff6b6b;
  --accent-amber: #f5bd5b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f4f6f2;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-strong: #e9efeb;
    --surface-soft: rgba(8, 35, 28, 0.035);
    --line: rgba(8, 35, 28, 0.12);
    --line-strong: rgba(8, 35, 28, 0.2);
    --text: #10231e;
    --muted: #5f6f69;
    --muted-strong: #374b44;
    --accent: #087e59;
    --accent-strong: #056744;
    --accent-ink: #ffffff;
    --shadow: 0 24px 60px rgba(25, 55, 45, 0.12);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f2;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-strong: #e9efeb;
  --surface-soft: rgba(8, 35, 28, 0.035);
  --line: rgba(8, 35, 28, 0.12);
  --line-strong: rgba(8, 35, 28, 0.2);
  --text: #10231e;
  --muted: #5f6f69;
  --muted-strong: #374b44;
  --accent: #087e59;
  --accent-strong: #056744;
  --accent-ink: #ffffff;
  --shadow: 0 24px 60px rgba(25, 55, 45, 0.12);
}

:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 76% 8%, rgba(85, 230, 178, 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 70%);
  opacity: 0.17;
  pointer-events: none;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.auth-header .nav { width: calc(100% - 48px); max-width: none; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand-logo { width: 174px; height: 64px; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a { padding: 9px 12px; border-radius: 9px; color: var(--muted-strong); font-size: 14px; font-weight: 650; }
.nav-links a:hover { background: var(--surface-soft); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions--push { margin-left: auto; }
.icon-button, .locale-button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
}
.icon-button:hover, .locale-button:hover { border-color: var(--line-strong); background: var(--surface-strong); }
.locale-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; }
.locale-button { min-width: 36px; min-height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; opacity: 0.58; transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 160ms ease; }
.locale-button[data-locale] { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding-inline: 8px; }
.locale-button[data-locale]::before { width: 18px; height: 12px; display: inline-block; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); background-position: center; background-size: cover; content: ""; }
.locale-button[data-locale="en"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='m0 0 60 30m0-30L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='2' d='m0 0 60 30m0-30L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E"); }
.locale-button[data-locale="ru"]::before { background: linear-gradient(to bottom, #fff 0 33.33%, #1c57a7 33.33% 66.66%, #d52b1e 66.66% 100%); }
.locale-button:hover { opacity: 0.82; }
.locale-button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 68%, var(--line)), 0 6px 18px color-mix(in srgb, var(--accent) 22%, transparent); opacity: 1; }
.theme-moon, .theme-sun { width: 18px; height: 18px; align-items: center; justify-content: center; font-size: 0; line-height: 1; }
.theme-moon::before { content: "\263D"; font-size: 19px; }
.theme-sun { display: none; }
.theme-sun::before { content: "\2600"; font-size: 19px; }
[data-theme="light"] .theme-sun { display: inline; }
[data-theme="light"] .theme-moon { display: none; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { border-color: var(--accent); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button--primary:hover { background: var(--accent-strong); }
.button--ghost { background: transparent; }
.nav-sign-in {
  padding-inline: 20px;
  border-color: var(--accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.nav-sign-in:hover {
  box-shadow: 0 11px 30px color-mix(in srgb, var(--accent) 40%, transparent);
}
.nav-sign-in-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-sign-in-label { white-space: nowrap; }

.button--wide { width: 100%; }
.button[disabled], .button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.58; transform: none; }

.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 10vw, 132px) 0 74px;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 16, 15, 0.94) 0%, rgba(8, 16, 15, 0.82) 34%, rgba(8, 16, 15, 0.34) 72%, rgba(8, 16, 15, 0.14) 100%), linear-gradient(0deg, rgba(8, 16, 15, 0.74), transparent 48%);
  content: "";
  pointer-events: none;
}
.hero-visual {
  position: absolute;
  z-index: -2;
  inset: -24px;
  overflow: hidden;
  background: #06110e;
  pointer-events: none;
}
.hero-visual__image,
.hero-visual__mesh,
.hero-visual__glow {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  transform: translate3d(var(--layer-x, 0), var(--layer-y, 0), 0) scale(1.05);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: transform;
}
.hero-visual__image {
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.96;
  filter: saturate(0.9) contrast(1.04);
}
.hero-visual__mesh {
  background-image: linear-gradient(rgba(85, 230, 178, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(85, 230, 178, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.38;
  mask-image: radial-gradient(circle at 73% 58%, #000, transparent 62%);
  animation: hero-mesh-drift 22s linear infinite;
}
.hero-visual__glow {
  background: radial-gradient(circle at 74% 60%, rgba(85, 230, 178, 0.24), transparent 35%);
  mix-blend-mode: screen;
  animation: hero-glow-breathe 7s ease-in-out infinite;
}
:root[data-theme="light"] .hero::before { background: linear-gradient(90deg, rgba(244, 246, 242, 0.92) 0%, rgba(244, 246, 242, 0.72) 34%, rgba(244, 246, 242, 0.24) 72%, rgba(244, 246, 242, 0.1) 100%), linear-gradient(0deg, rgba(244, 246, 242, 0.58), transparent 48%); }
:root[data-theme="light"] .hero-visual { background: #dcebe4; }
:root[data-theme="light"] .hero-visual__image { opacity: 0.78; filter: saturate(0.72) contrast(0.86) brightness(1.18); }
:root[data-theme="light"] .hero-visual__mesh { opacity: 0.18; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .hero::before { background: linear-gradient(90deg, rgba(244, 246, 242, 0.92) 0%, rgba(244, 246, 242, 0.72) 34%, rgba(244, 246, 242, 0.24) 72%, rgba(244, 246, 242, 0.1) 100%), linear-gradient(0deg, rgba(244, 246, 242, 0.58), transparent 48%); }
  :root:not([data-theme]) .hero-visual { background: #dcebe4; }
  :root:not([data-theme]) .hero-visual__image { opacity: 0.78; filter: saturate(0.72) contrast(0.86) brightness(1.18); }
  :root:not([data-theme]) .hero-visual__mesh { opacity: 0.18; }
}
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr); align-items: center; gap: clamp(36px, 7vw, 88px); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(43px, 6.2vw, 78px); font-weight: 780; letter-spacing: -0.062em; line-height: 0.99; }
.hero h1 span { color: var(--accent); }
.hero-copy { max-width: 650px; margin: 26px 0 0; color: var(--muted-strong); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.hero-note span::before { margin-right: 7px; color: var(--accent); content: "✓"; font-weight: 900; }


.proof-strip { border-block: 1px solid var(--line); }
.proof-grid { min-height: 104px; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { display: flex; flex-direction: column; justify-content: center; padding: 19px 24px; border-right: 1px solid var(--line); }
.proof-item:last-child { border: 0; }
.proof-item strong { font-size: 19px; }
.proof-item span { color: var(--muted); font-size: 12px; }

.section { padding: clamp(78px, 9vw, 122px) 0; }
.section--tight { padding-block: 68px; }
.section--bordered { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.045em; line-height: 1.05; }
.section-head p { margin: 18px 0 0; color: var(--muted-strong); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); }
.feature { min-height: 220px; padding: 30px; background: var(--bg-elevated); }
.feature-number { color: var(--accent); font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.feature h3 { margin: 52px 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.price-card--featured { border-color: color-mix(in srgb, var(--accent) 62%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); box-shadow: 0 18px 70px rgba(29, 137, 99, 0.11); }
.price-badge { position: absolute; top: 18px; right: 18px; padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.price-card h3 { margin: 0; font-size: 19px; }
.price-copy { min-height: 47px; margin: 10px 0 24px; color: var(--muted); font-size: 13px; }
.price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 22px; }
.price strong { font-size: 40px; letter-spacing: -0.045em; }
.price span { color: var(--muted); font-size: 12px; }
.price-card ul { flex: 1; display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--muted-strong); font-size: 13px; }
.price-card li::before { margin-right: 9px; color: var(--accent); content: "✓"; font-weight: 900; }
.payment-mark { margin-top: 12px; color: var(--muted); font-size: 11px; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: steps; }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--line-strong); counter-increment: steps; }
.step::before { position: absolute; top: -14px; left: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--accent); content: counter(steps); font: 800 11px ui-monospace, monospace; }
.step h3 { margin: 20px 0 7px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 730; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--accent); content: "+"; font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq p { max-width: 780px; margin: -4px 0 24px; color: var(--muted); }

.cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 650px; margin: 0; font-size: clamp(29px, 4vw, 48px); letter-spacing: -0.045em; line-height: 1.05; }
.cta-panel p { margin: 12px 0 0; color: var(--muted); }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--text); }

.page-main { padding: 62px 0 96px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.05em; }
.page-heading p { max-width: 580px; margin: 10px 0 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr); gap: 18px; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0; font-size: 19px; }
.panel-copy { margin: 7px 0 22px; color: var(--muted); font-size: 13px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.status-line:last-child { border: 0; }
.status-line span { color: var(--muted); font-size: 13px; }
.status-line strong { font-size: 13px; text-align: right; }
.access-purchase { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.access-purchase__label { margin: 0 0 5px; color: var(--text); font-size: 14px; font-weight: 850; }
.access-purchase__copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-wrap: pretty; }
.access-purchase .button { min-height: 44px; transition-property: transform, background-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.access-purchase .button:active { transform: scale(.98); }

.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent-amber) 12%, transparent); color: var(--accent-amber); font-size: 11px; font-weight: 800; }
.status-chip::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-chip--good { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.status-chip--danger { background: color-mix(in srgb, var(--accent-red) 12%, transparent); color: var(--accent-red); }
.connection-list { display: grid; gap: 10px; }
.connection-card { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-elevated); }
.connection-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.connection-card h3 { margin: 0; font-size: 14px; }
.connection-card p { margin: 6px 0 13px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.connection-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--muted-strong); font-size: 12px; font-weight: 720; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--bg-elevated);
  color: var(--text);
}
.field textarea { min-height: 92px; resize: vertical; }
.password-input { position: relative; }
.password-input input { width: 100%; padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 7px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { background: var(--surface-strong); color: var(--text); }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .password-eye-off { display: none; }
.password-toggle[aria-pressed="true"] .password-eye { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-off { display: block; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.field-hint { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.form-message { min-height: 20px; color: var(--muted); font-size: 12px; }
.profile-summary { display: flex; align-items: center; gap: 15px; margin: 8px 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.profile-avatar { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); font-size: 19px; font-weight: 850; }
.profile-name, .profile-email { display: block; }
.profile-name { font-size: 18px; }
.profile-email { margin-top: 4px; color: var(--muted); font-size: 13px; }
.secure-note { display: flex; gap: 10px; margin-top: 18px; padding: 13px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--muted-strong); font-size: 11px; }

.auth-layout { min-height: calc(100vh - 77px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-pitch { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 8vw, 110px); border-right: 1px solid var(--line); }
.auth-pitch h1 { max-width: 610px; margin: 0; font-size: clamp(38px, 5vw, 65px); letter-spacing: -0.055em; line-height: 1.02; }
.auth-pitch p { max-width: 540px; color: var(--muted-strong); font-size: 17px; }
.auth-list { display: grid; gap: 13px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted-strong); font-size: 13px; }
.auth-list li::before { margin-right: 10px; color: var(--accent); content: "✓"; }
.auth-card-wrap { position: relative; z-index: 0; isolation: isolate; display: grid; overflow: hidden; place-items: center; padding: 32px; background: #07110f; }
.auth-card-wrap::before { position: absolute; z-index: -2; inset: -5%; background: url("/assets/polymaria-hero-horizon-v1.webp") 58% center / cover no-repeat; content: ""; opacity: 0.9; filter: saturate(0.92) contrast(1.08); animation: auth-scene-drift 20s ease-in-out infinite alternate; pointer-events: none; will-change: transform; }
.auth-card-wrap::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(4, 12, 10, 0.82) 0%, rgba(4, 12, 10, 0.42) 42%, rgba(4, 12, 10, 0.68) 100%), radial-gradient(circle at 68% 40%, rgba(74, 226, 176, 0.2), transparent 45%); content: ""; pointer-events: none; }
.auth-card { position: relative; width: min(100%, 420px); padding: 32px; border: 1px solid color-mix(in srgb, var(--line-strong) 80%, white 8%); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38); backdrop-filter: blur(18px) saturate(1.08); }
.auth-card h2 { margin: 0; font-size: 27px; letter-spacing: -0.03em; }
.auth-card > p { margin: 10px 0 25px; color: var(--muted); font-size: 13px; }
.google-mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: white; font-size: 10px; font-weight: 900; }
.auth-fineprint { margin-top: 17px; color: var(--muted); font-size: 11px; text-align: center; }
.auth-card > .auth-create-account { margin: 16px 0 0; color: var(--muted-strong); font-size: 12px; text-align: center; }
.auth-create-account button { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-create-account button:hover { color: var(--text); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.auth-tab { min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.auth-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16); }
.auth-panel[hidden] { display: none; }
.otp-form { display: grid; gap: 13px; }
.otp-form .button { width: 100%; }
.otp-verify { display: grid; gap: 13px; padding-top: 4px; }
.otp-verify[hidden] { display: none; }

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: pointer;
}
.settings-toggle input {
  width: 42px;
  height: 23px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.settings-toggle:has(input:disabled) { cursor: not-allowed; opacity: 0.65; }
.settings-toggle input:disabled { cursor: not-allowed; }
.local-preview-button { margin-top: 12px; }
.local-preview-button[hidden] { display: none; }
.billing-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.metric { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.metric span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.metric strong { display: block; margin-top: 8px; font-size: 21px; }
.donation-form { display: flex; gap: 8px; margin-top: auto; }
.donation-form input { min-width: 0; width: 100%; padding: 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg-elevated); color: var(--text); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.admin-table th, .admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.admin-table th { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-empty { padding: 42px 18px; color: var(--muted); text-align: center; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.admin-action-button { min-height: 34px; padding: 7px 10px; font-size: 10px; white-space: nowrap; }

.toast-region { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: min(390px, calc(100vw - 40px)); padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted-strong); font-size: 12px; animation: toast-in 180ms ease; }
.toast--error { border-color: color-mix(in srgb, var(--accent-red) 45%, var(--line)); }
@keyframes hero-mesh-drift {
  from { background-position: 0 0; }
  to { background-position: 84px 42px; }
}
@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.62; filter: blur(3px); }
  50% { opacity: 1; filter: blur(14px); }
}
@keyframes auth-scene-drift {
  from { transform: translate3d(-0.8%, -0.4%, 0) scale(1.025); }
  to { transform: translate3d(0.9%, 0.5%, 0) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax-layer] { transform: none !important; transition: none !important; }
}

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes detail-hero-drift {
  from { transform: translate3d(-0.5%, -0.5%, 0) scale(1.02); }
  to { transform: translate3d(0.7%, 0.5%, 0) scale(1.055); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .auth-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-stage { width: 100%; max-width: 650px; min-height: 500px; justify-content: flex-start; }
  .terminal-card { max-width: 650px; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature { min-height: 170px; }
  .feature h3 { margin-top: 32px; }
  .price-copy { min-height: auto; }
  .auth-layout { min-height: calc(100vh - 77px); min-height: calc(100svh - 77px); }
  .auth-pitch { display: none; }
  .auth-card-wrap { min-height: calc(100vh - 77px); min-height: calc(100svh - 77px); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 66px; gap: 8px; }
  .brand-logo { width: 148px; height: auto; }
  .nav-actions > .button { display: none; }
  .landing-nav { flex-wrap: nowrap; padding-block: 8px; }
  .landing-nav .brand { width: auto; min-width: 0; }
  .landing-nav .brand-logo { width: 126px; }
  .landing-nav .nav-actions { width: auto; margin-left: auto; gap: 6px; justify-content: flex-end; }
  .landing-nav .locale-switch { padding: 2px; }
  .landing-nav .locale-button[data-locale] { min-width: 44px; padding-inline: 5px; gap: 3px; }
  .landing-nav .locale-button[data-locale]::before { width: 16px; }
  .landing-nav .nav-actions > .nav-sign-in { width: 40px; min-width: 40px; min-height: 40px; display: inline-flex; padding: 0; }
  .landing-nav .nav-sign-in-label { display: none; }
  .hero { padding-top: 62px; }
  .hero-stage .terminal-card { width: 100%; }
  .hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .steps, .billing-summary { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-grid, .page-heading { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .auth-card-wrap { min-height: calc(100vh - 66px); min-height: calc(100svh - 66px); padding: 28px 14px 60px; }
  .auth-card-wrap::before { background-position: 64% center; opacity: 0.72; }
  .auth-card-wrap::after { background: linear-gradient(rgba(4, 12, 10, 0.72), rgba(4, 12, 10, 0.86)), radial-gradient(circle at 70% 28%, rgba(74, 226, 176, 0.16), transparent 48%); }
  .auth-pitch { padding: 56px 20px; }
  .auth-card { padding: 24px; }
  .page-main { padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Standalone public detail pages */
.detail-main { overflow: hidden; }
.detail-hero { position: relative; z-index: 0; isolation: isolate; overflow: hidden; padding: clamp(76px, 10vw, 132px) 0 82px; border-bottom: 1px solid var(--line); }
.detail-hero::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 43%, color-mix(in srgb, var(--bg) 36%, transparent) 100%), radial-gradient(circle at 76% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 42%); content: ""; pointer-events: none; }
.detail-hero::after { position: absolute; z-index: -2; inset: -4%; background: url("/assets/polymaria-hero-horizon-v1.webp") center 58% / cover no-repeat; content: ""; opacity: 0.82; filter: saturate(0.88) contrast(1.05); animation: detail-hero-drift 18s ease-in-out infinite alternate; pointer-events: none; will-change: transform; }
.detail-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); align-items: end; gap: clamp(36px, 8vw, 110px); }
:root[data-theme="light"] .detail-hero::after { opacity: 0.68; filter: saturate(0.68) contrast(0.84) brightness(1.24); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .detail-hero::after { opacity: 0.68; filter: saturate(0.68) contrast(0.84) brightness(1.24); } }
.detail-hero h1 { max-width: 850px; margin: 0; font-size: clamp(48px, 7vw, 92px); letter-spacing: -0.065em; line-height: 0.96; }
.detail-lede { max-width: 720px; margin: 27px 0 0; color: var(--muted-strong); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.detail-summary { padding: 25px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); }
.detail-summary-label { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.detail-summary strong { display: block; margin-top: 14px; font-size: 27px; letter-spacing: -0.04em; }
.detail-summary p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.detail-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.detail-proof { min-height: 132px; padding: 30px; border-right: 1px solid var(--line); }
.detail-proof:last-child { border-right: 0; }
.detail-proof strong, .detail-proof span { display: block; }
.detail-proof strong { font-size: 22px; }
.detail-proof span { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.detail-section { padding: 92px 0; }
.detail-section--bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 55%, transparent); }
.detail-section-head { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.5fr); align-items: end; gap: 36px; margin-bottom: 42px; }
.detail-section-head h2 { max-width: 760px; margin: 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.055em; line-height: 1.02; }
.detail-section-head p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.detail-card { min-height: 245px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.detail-card-number { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: 0.13em; }
.detail-card h3 { margin: 48px 0 10px; font-size: 21px; letter-spacing: -0.025em; }
.detail-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: workflow; }
.workflow-step { position: relative; min-height: 230px; padding: 27px; border: 1px solid var(--line); border-right: 0; counter-increment: workflow; }
.workflow-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.workflow-step:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.workflow-step::before { color: var(--accent); font-size: 11px; font-weight: 850; content: "0" counter(workflow); }
.workflow-step h3 { margin: 42px 0 10px; font-size: 18px; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.boundary-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 34px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: var(--radius-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, var(--surface)), var(--surface)); }
.boundary-callout h2 { margin: 0; font-size: clamp(27px, 4vw, 42px); letter-spacing: -0.045em; }
.boundary-callout p { max-width: 750px; margin: 10px 0 0; color: var(--muted-strong); line-height: 1.65; }
.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.comparison-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th { color: var(--muted); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.comparison-table td:not(:first-child), .comparison-table th:not(:first-child) { text-align: center; }
.comparison-yes { color: var(--accent); font-weight: 850; }
.detail-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.detail-faq { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.detail-faq h3 { margin: 0 0 10px; font-size: 17px; }
.detail-faq p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

@keyframes detail-hero-drift {
  from { transform: translate3d(-0.5%, -0.5%, 0) scale(1.02); }
  to { transform: translate3d(0.7%, 0.5%, 0) scale(1.055); }
}

@media (max-width: 900px) {
  .detail-hero-grid, .detail-section-head { grid-template-columns: 1fr; }
  .detail-summary { max-width: 560px; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .workflow-step, .workflow-step:first-child, .workflow-step:last-child { border: 1px solid var(--line); border-radius: var(--radius); }
  .detail-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-proof:nth-child(2) { border-right: 0; }
  .detail-proof:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .detail-hero { padding: 62px 0; }
  .detail-grid, .detail-faq-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .detail-proof { padding: 23px 18px; }
  .boundary-callout { grid-template-columns: 1fr; padding: 26px; }
}/* Professional account workspace */
.account-page {
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 32rem),
    var(--bg);
}
.account-page .page-main { min-height: calc(100vh - 150px); }
.account-heading { margin-bottom: 24px; }
.account-heading h1 { font-size: clamp(36px, 4vw, 52px); }
.account-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(220px, 280px);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  margin-bottom: 20px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)) 0%, var(--surface) 52%, color-mix(in srgb, var(--accent-blue) 6%, var(--surface)) 100%);
  box-shadow: var(--shadow);
}
.account-profile-hero::after {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: -120px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.avatar-editor { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.avatar-editor__image {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 28%, var(--surface)), color-mix(in srgb, var(--accent-blue) 18%, var(--surface)));
  color: var(--accent);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent) 18%, transparent);
  font-size: 36px;
  font-weight: 900;
}
.avatar-editor__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar-editor__image img[hidden], .avatar-editor__image span[hidden] { display: none; }

body.admin-auth-mode .auth-layout { grid-template-columns: minmax(0, 1fr); }
body.admin-auth-mode .auth-card-wrap { min-height: calc(100vh - 77px); min-height: calc(100svh - 77px); }
.avatar-editor__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.button--small { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.avatar-editor__help, .avatar-editor__message { margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.avatar-editor__message { min-height: 15px; color: var(--muted-strong); }
.avatar-editor__message[data-type="error"] { color: var(--accent-red); }
.avatar-editor__message[data-type="success"] { color: var(--accent); }
.account-profile-identity { position: relative; z-index: 1; min-width: 0; }
.account-profile-identity h2 {
  margin: 4px 0 7px;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 4vw, 45px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.account-profile-email { margin: 0; color: var(--muted-strong); font-size: 14px; overflow-wrap: anywhere; }
.account-profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.identity-badge--muted { border-color: var(--line); background: var(--surface-soft); color: var(--muted-strong); }
.identity-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.account-profile-side { position: relative; z-index: 1; display: grid; align-self: stretch; align-content: start; gap: 14px; }
.account-settings-launch { justify-self: end; min-height: 42px; box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 24%, transparent); }
.account-settings-launch span { font-size: 17px; line-height: 1; }
.account-profile-session {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
}
.account-profile-session__icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-weight: 900; }
.account-profile-session strong, .account-profile-session span { display: block; }
.account-profile-session strong { font-size: 12px; }
.account-profile-session div span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.account-dashboard { align-items: start; }
.account-dashboard .panel { background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05); }
.account-details .status-line strong { max-width: 66%; overflow-wrap: anywhere; }
.account-settings-dialog {
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}
.account-settings-dialog::backdrop { background: rgba(3, 12, 10, .72); backdrop-filter: blur(7px); }
.account-settings-dialog__surface {
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .38);
}
.account-settings-dialog__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  backdrop-filter: blur(16px);
}
.account-settings-dialog__header .eyebrow { margin-bottom: 7px; }
.account-settings-dialog__header h2 { margin: 0; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.035em; }
.account-settings-dialog__header p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.account-settings-dialog__close { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.account-settings-dialog__close:hover { border-color: var(--accent); background: var(--surface-strong); }
.account-settings-dialog__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px 28px 28px; }
.account-settings-dialog__grid .panel { margin: 0; background: var(--surface); box-shadow: none; }
.account-settings-card { min-width: 0; height: 100%; }
.account-settings-card--notice { grid-column: 1 / -1; }
.account-settings-form { display: grid; gap: 11px; margin-top: 22px; }
.account-settings-form .button { justify-self: start; margin-top: 4px; }
.field-label { color: var(--muted-strong); font-size: 12px; font-weight: 760; }
.settings-field { display: grid; gap: 7px; }
.account-settings-form > input,
.password-field input {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--bg-elevated);
  color: var(--text);
}
.account-settings-form > input:focus,
.password-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-visibility {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}
.password-visibility:hover { background: var(--surface-strong); color: var(--text); }
.field-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.form-message { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; }
.form-message[data-type="success"] { color: var(--accent); }
.form-message[data-type="error"] { color: var(--accent-red); }
.paper-workspace-card {
  position: relative;
  overflow: hidden;
  padding-right: clamp(24px, 5vw, 210px);
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, var(--surface) 68%) !important;
}
.paper-workspace-card::after { position: absolute; width: 150px; height: 150px; right: 30px; top: 50%; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-radius: 50%; content: ""; transform: translateY(-50%); }
.paper-workspace-card .button, .paper-workspace-card .paper-safety { position: relative; z-index: 1; }
.paper-workspace-actions { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.paper-safety { display: inline-flex; align-items: center; gap: 7px; margin: 0 12px 12px 0; color: var(--muted-strong); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.paper-safety > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.account-dashboard__aside { position: sticky; top: 94px; }
.access-card { border-color: color-mix(in srgb, var(--accent) 16%, var(--line)); }
.access-card > .eyebrow { margin-bottom: 7px; }

@media (max-width: 900px) {
  .account-profile-hero { grid-template-columns: 150px minmax(0, 1fr); }
  .account-profile-side { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
  .account-settings-launch { justify-self: start; }
  .account-settings-dialog__grid { grid-template-columns: 1fr; }
  .account-dashboard__aside { position: static; }
}
@media (max-width: 680px) {
  .account-page .page-main { padding-top: 34px; }
  .account-heading { margin-bottom: 18px; }
  .account-heading .status-chip { align-self: flex-start; }
  .account-profile-hero { grid-template-columns: 1fr; justify-items: center; padding: 26px 20px; text-align: center; }
  .account-profile-identity { width: 100%; }
  .account-profile-badges { justify-content: center; }
  .account-profile-side { width: 100%; grid-template-columns: 1fr; }
  .account-settings-launch { width: 100%; }
  .account-profile-session { width: 100%; text-align: left; }
  .account-settings-dialog__header { padding: 22px 20px 17px; }
  .account-settings-dialog__grid { padding: 18px; }
  .avatar-editor__image { width: 104px; height: 104px; }
  .account-details .status-line { align-items: flex-start; flex-direction: column; gap: 6px; }
  .account-details .status-line strong { max-width: 100%; text-align: left; }
  .account-settings-form .button { width: 100%; }
  .paper-workspace-card { padding-right: 25px; }
  .paper-workspace-card::after { display: none; }
  .paper-workspace-card .button { width: 100%; }
  .paper-workspace-actions { display: grid; width: 100%; }
}

