@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Hiragino Sans", "Yu Gothic UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --bg: #ffffff;
  --bg2: #f8f6fe;
  --bg3: #f0ecfb;
  --hover: rgba(91, 33, 182, .06);
  --press: rgba(91, 33, 182, .1);
  --line: #e9e4f5;
  --line2: #d9d0ee;
  --text: #1c1830;
  --text2: #5f5a73;
  --text3: #918ba5;
  --brand: #7c3aed;
  --brand-ink: #ffffff;
  --brand-2: #8b5cf6;
  --brand-soft: #f3eefe;
  --brand-line: #ddd0fb;
  --grad: linear-gradient(135deg, #c084fc 0%, #8b5cf6 50%, #6d28d9 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --danger: #d93025;
  --danger-soft: #fdecea;
  --warn-soft: #fff6e0;
  --shadow-1: 0 1px 2px rgba(46, 16, 101, .05), 0 1px 3px rgba(46, 16, 101, .07);
  --shadow-2: 0 8px 28px rgba(46, 16, 101, .12), 0 2px 6px rgba(46, 16, 101, .06);
  --shadow-3: 0 20px 56px rgba(46, 16, 101, .2);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #13111a;
  --bg2: #1b1825;
  --bg3: #252131;
  --hover: rgba(255, 255, 255, .06);
  --press: rgba(255, 255, 255, .1);
  --line: #2e2a3b;
  --line2: #3d374d;
  --text: #ece9f5;
  --text2: #aaa3bf;
  --text3: #7a7390;
  --brand: #a78bfa;
  --brand-ink: #1b0b3a;
  --brand-2: #a78bfa;
  --brand-soft: rgba(167, 139, 250, .12);
  --brand-line: rgba(167, 139, 250, .35);
  --danger: #f28b82;
  --danger-soft: rgba(242, 139, 130, .12);
  --warn-soft: rgba(251, 191, 36, .12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-3: 0 18px 50px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--brand); }
svg { display: block; width: 100%; height: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.ib { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--text2); transition: background .15s, color .15s; flex: none; }
.ib > svg { width: 20px; height: 20px; }
.ib:hover { background: var(--hover); color: var(--text); }
.ib:active { background: var(--press); }
.ib.sm { width: 30px; height: 30px; }
.ib.sm > svg { width: 18px; height: 18px; }

.btn { min-height: 40px; padding: 8px 18px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, box-shadow .15s, transform .1s; white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { box-shadow: 0 2px 10px rgba(124, 58, 237, .3); filter: brightness(1.05); }
.btn.ghost { color: var(--text); background: transparent; border: 1px solid var(--line2); }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--danger); border-color: transparent; }
.btn.danger-bg { background: var(--danger); color: #fff; }
.btn > svg, .btn [data-icon] > svg { width: 18px; height: 18px; }
.btn [data-icon] { width: 18px; height: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip:hover { background: var(--hover); }
.chip [data-icon], .chip [data-app] { width: 16px; height: 16px; flex: none; }
.chip [data-icon] { color: var(--text2); }

.kbd { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--text2); background: var(--bg2); }

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