@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-052F,U+1C80-1C8F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F,U+1E00-1EFF,U+20A0-20CF;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0400-052F,U+1C80-1C8F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-024F,U+1E00-1EFF,U+20A0-20CF;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0400-052F,U+1C80-1C8F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-024F,U+1E00-1EFF,U+20A0-20CF;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0400-052F,U+1C80-1C8F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-024F,U+1E00-1EFF,U+20A0-20CF;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0400-052F,U+1C80-1C8F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-024F,U+1E00-1EFF,U+20A0-20CF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-cyrillic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-052F,U+1C80-1C8F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F,U+1E00-1EFF,U+20A0-20CF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-cyrillic-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0400-052F,U+1C80-1C8F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-024F,U+1E00-1EFF,U+20A0-20CF;
}

:root {
  --color-navy-950: #08101f;
  --color-navy-900: #0d1729;
  --color-navy-800: #17243a;
  --color-signal-blue: #3978f6;
  --color-signal-blue-soft: #79a7ff;
  --color-verified: #58d692;
  --color-paper: #f6f8fb;
  --color-ink: #142033;
  --color-muted: #a8b8cc;
  --color-border: #dbe2ec;
  --color-focus: #79a7ff;
  --font-sans: "Onest", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-focus) 38%, transparent);
}

html[data-theme="light"] {
  --color-muted: #637289;
  --color-focus: #245dcc;
}

:root {
  --product-header-bg: #08101f;
  --product-header-text: #f6f8fb;
  --product-header-muted: #a8b8cc;
  --product-header-line: #263754;
  --product-header-active: #79a7ff;
}
html[data-theme="light"] {
  --product-header-bg: #ffffff;
  --product-header-text: #142033;
  --product-header-muted: #637289;
  --product-header-line: #dbe2ec;
  --product-header-active: #245dcc;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  min-height: 68px;
  background: color-mix(in srgb, var(--product-header-bg) 96%, transparent);
  color: var(--product-header-text);
  border-bottom: 1px solid var(--product-header-line);
  backdrop-filter: blur(14px);
}
.product-header-inner {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--product-header-text);
  text-decoration: none;
  flex: 0 0 auto;
}
.product-brand img { width: 34px; height: 34px; flex: 0 0 auto; }
.product-brand b { display: block; font-size: 15px; line-height: 1.25; }
.product-brand small { display: block; margin-top: 2px; color: var(--product-header-muted); font-size: 11px; line-height: 1.25; }
.product-brand > span { min-width: 0; overflow-wrap: anywhere; }
.product-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}
.product-nav a,
.product-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--product-header-muted);
  font: 500 14px/1.35 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
}
.product-nav a:hover,
.product-nav button:hover { color: var(--product-header-text); background: color-mix(in srgb, var(--product-header-text) 7%, transparent); }
.product-nav [aria-current="page"] { color: var(--product-header-text); background: color-mix(in srgb, var(--product-header-active) 15%, transparent); }
.product-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.product-header .theme-toggle,
.product-header [data-theme-toggle] {
  box-sizing: border-box;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  font: 500 14px/1.35 var(--font-sans);
  border: 1px solid var(--product-header-line);
  border-radius: 12px;
  background: var(--product-header-bg);
  color: var(--product-header-text);
  cursor: pointer;
}
.product-home-link { font-weight: 600 !important; color: var(--product-header-text) !important; }

@media (max-width: 760px) {
  .product-header { position: sticky; }
  .product-header-inner { width: 100%; min-height: 0; padding: 10px 12px 0; flex-wrap: wrap; gap: 8px 10px; }
  .product-brand { flex: 1 1 120px; }
  .product-brand img { width: 30px; height: 30px; }
  .product-header-actions { margin-left: auto; }
  .product-nav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    gap: 2px;
    overflow: visible;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .product-nav::-webkit-scrollbar { display: none; }
  .product-nav a,
  .product-nav button { min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 13px; white-space: normal; text-align: center; overflow-wrap: anywhere; }
  .product-header ~ main :is(section,[id]) { scroll-margin-top:230px; }
}

.ui-shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.ui-status {
  min-height: 22px;
  color: var(--color-muted);
}

.ui-icon-button {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
}

.ui-mobile-only {
  display: none;
}

.ui-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;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

@media (max-width: 760px) {
  .ui-mobile-only {
    display: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.launch-footer { width: min(1120px, calc(100% - 32px)); margin: 2rem auto; padding-top: 1rem; border-top: 1px solid var(--color-muted); }
.launch-footer .reading-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.launch-footer a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }

/* Keep shared navigation typography consistent on reading pages. */
.product-header { font-family: var(--font-sans); }


/* First-use navigation shared by the device and AI setup screens. */
.setup-path{max-width:1180px;margin:18px auto 0;padding:16px 20px;border:1px solid var(--border,#334155);border-radius:16px;background:var(--panel,#111c2e);color:var(--text,#e8edf7)}
.setup-path p{margin:0 0 12px;display:flex;gap:16px;flex-wrap:wrap;font-size:14px}
.setup-path p span{color:var(--muted,#aab8cf)}
.setup-path ol{margin:0;padding:0;list-style:none;display:flex;gap:10px;flex-wrap:wrap}
.setup-path li{flex:1;min-width:190px}
.setup-path a{display:block;padding:12px 14px;border:1px solid var(--border,#334155);border-radius:10px;text-decoration:none;color:inherit;font-weight:650}
.setup-path a:hover,.setup-path a:focus-visible{border-color:var(--accent,#759dff);outline:2px solid var(--accent,#759dff);outline-offset:2px}
.mj-step-action{display:inline-block;margin:10px 0;padding:10px 14px;border:1px solid currentColor;border-radius:10px;font-weight:650}
.install-run-steps{padding-left:24px;line-height:1.65}
.install-run-steps li{margin:8px 0}
.setup-next h2{margin:10px 0}
html[data-theme="light"] .setup-path{background:#fff;color:#152238;border-color:#c9d4e3}
html[data-theme="light"] .setup-path p span{color:#475569}
@media(min-width:901px){.setup-path+main .hero{padding-top:42px;min-height:0}}
@media(max-width:700px){.setup-path{margin:12px 16px 0;padding:14px}.setup-path ol{gap:8px}.setup-path li{flex-basis:100%;min-width:0}.setup-path p{gap:4px}.setup-path a{padding:10px 12px}}

.setup-path a[aria-current="step"]{background:var(--surface-soft,rgba(117,157,255,.12));border-color:var(--accent,#759dff)}

/* Optional explanations remain readable at any viewport size. */
button.term-help{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;margin-inline-start:4px;padding:2px 7px;border:1px solid var(--product-header-line);border-radius:50%;background:var(--product-header-bg);color:var(--product-header-active);font:700 14px/1 var(--font-sans);cursor:pointer;vertical-align:middle}
button.term-help:focus-visible{outline:2px solid var(--color-focus);outline-offset:3px}
.term-help-text{display:block;box-sizing:border-box;max-width:100%;margin-block:8px;padding:12px 14px;border:1px solid var(--product-header-line);border-radius:8px;background:var(--product-header-bg);color:var(--product-header-text);font:400 14px/1.6 var(--font-sans);overflow-wrap:anywhere}
.term-help-text[hidden]{display:none}
.reading-content details,.plugin-card>details{margin-block:16px}
.reading-content details>summary,.plugin-card>details>summary{cursor:pointer;font-weight:600;padding-block:10px}


button:not(:disabled):not([aria-disabled="true"]):active,
.btn:not([disabled]):not([aria-disabled="true"]):active {
  transform: translateY(2px) scale(.98);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .30);
  filter: brightness(.93);
}

@media (prefers-reduced-motion: reduce) {
  button:not(:disabled):not([aria-disabled="true"]):active,
  .btn:not([disabled]):not([aria-disabled="true"]):active {
    transform: none;
  }
}
