@font-face {
  font-family: Montserrat;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/subscription-assets/79948e5ba669ec1a.woff2") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/subscription-assets/9c2bdf4e982538cc.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: dark;
  --bg: #121018;
  --panel: #1c1925;
  --panel-hi: #252131;
  --line: #353044;
  --text: #f6f3fb;
  --muted: #b5acc5;
  --accent: #c1adff;
  --accent-bg: #bca4ff;
  --accent-ink: #21123d;
  --green: #8be5b9;
  --amber: #ffce8f;
  --red: #ffa7b0;
  --radius: 20px;
  --space: 16px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-synthesis: none;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Montserrat, Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.15; letter-spacing: -.045em; }
p + p { margin-block-start: .65em; }
small { font-size: .8em; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-family: "IBM Plex Mono", Consolas, monospace; }
.stack { display: grid; gap: var(--space); min-width: 0; }
.stack.tight { gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.end { justify-content: flex-end; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space); min-width: 0; }
.panel h2 { font-size: 1.13rem; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 1.12rem; font-weight: 730; letter-spacing: -.045em; }
.brand img { object-fit: cover; border-radius: 12px; border: 1px solid #69558c; }
.brand small { display: block; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.brand:hover { text-decoration: none; }
.btn, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%; border: 1px solid transparent; border-radius: 12px;
  padding: 9px 14px; color: var(--text); background: var(--panel-hi); font-weight: 650;
  text-align: center; text-decoration: none; line-height: 1.25;
  transition: background-color .16s ease, border-color .16s ease;
}
.btn:hover, .icon-button:hover { background: #322945; border-color: #57496f; text-decoration: none; }
.btn.primary { color: var(--accent-ink); background: var(--accent-bg); }
.btn.primary:hover { background: #d0bcff; border-color: transparent; }
.btn.danger { color: var(--red); }
.btn.outline, .icon-button { background: transparent; border-color: var(--line); }
.btn.small { min-height: 40px; padding-inline: 11px; font-size: .85rem; }
.icon-button { flex: none; width: 44px; padding: 0; }
.full { width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; border-radius: 100px; color: var(--muted); background: var(--panel-hi); font-size: .77rem; font-weight: 620; }
.badge.good { color: var(--green); background: #243a36; }
.badge.warn { color: var(--amber); background: #403326; }
.badge.bad { color: var(--red); background: #3e2936; }
.badge.violet { color: var(--accent); background: #302445; }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.field { display: grid; gap: 6px; min-width: 0; font-size: .9rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); color: var(--text); padding: 10px 12px; min-width: 0; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 98px; }
.field input::placeholder, .field textarea::placeholder { color: #a096b0; }
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-bg); }
.form-error { color: var(--red); overflow-wrap: anywhere; font-size: .91rem; }
.placeholder { display: grid; justify-items: center; gap: 12px; padding: 46px 16px; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
dialog { padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 23px; width: min(calc(100% - 28px), 520px); max-height: calc(100dvh - 36px); overflow: auto; }
dialog::backdrop { background: #0b0716b8; }
.dialog-body { padding: clamp(16px, 4vw, 24px); }
.dialog-body h2 { font-size: 1.25rem; }
.toast {
  position: fixed; inset-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 5; width: max-content; max-width: min(520px, calc(100% - 28px)); margin-inline: auto; padding: 12px 17px;
  background: #322a46; color: var(--text); border: 1px solid #685682; border-radius: 13px; box-shadow: 0 10px 35px #0805107a;
  font-size: .92rem; overflow-wrap: anywhere;
}
.toast.error { border-color: var(--red); }
.flow-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
