/* ==========================================================================
   StreamWID documentation theme
   Shared by every StreamWID plugin wiki (VinciFlow, Fly Scoreboard, Live
   Weather). Keep this file identical in each repository: docs/assets/streamwid/
   ========================================================================== */
:root {
  --sw-bg: #fbf9f5;
  --sw-surface: #ffffff;
  --sw-ink: #1b1a3a;
  --sw-text: #33324f;
  --sw-muted: #65647f;
  --sw-line: rgba(27, 26, 58, .1);
  --sw-accent: #5046e5;
  --sw-accent-strong: #3f35cf;
  --sw-accent-soft: #ecebff;
  --sw-lilac: #e7e6ff;
  --sw-lilac-soft: #f1eeff;
  --sw-peach: #ffe0d2;
  --sw-mint: #dff1be;
  --sw-butter: #fff4ba;
  --sw-dark: #262339;
  --sw-lime: #d5f6a6;
  --sw-radius: 22px;
  --sw-shadow: 0 1px 2px rgba(27, 26, 58, .04), 0 10px 26px -12px rgba(27, 26, 58, .18);
  --sw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sw-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --sw-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sw-header: 74px;
}

body.sw-docs {
  margin: 0;
  background: var(--sw-bg);
  color: var(--sw-text);
  font-family: var(--sw-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.sw-docs *, body.sw-docs *::before, body.sw-docs *::after { box-sizing: border-box; }
body.sw-docs a { color: var(--sw-accent-strong); }
body.sw-docs .skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--sw-dark); color: #fff; }
body.sw-docs .skip-link:focus { top: 12px; }
body.sw-docs .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Top bar ---------- */
.sw-topbar { position: sticky; top: 0; z-index: 40; padding: 10px 14px 0; pointer-events: none; }
.sw-topbar__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--sw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: var(--sw-shadow);
}
.sw-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--sw-ink) !important; font-family: var(--sw-display); font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.sw-brand img { width: 32px; height: 32px; border-radius: 10px; }
.sw-brand b { color: var(--sw-accent); font-weight: 700; }
.sw-crumb { color: #b9b6cc; font-size: 1.2rem; }
.sw-product { display: inline-flex; align-items: center; gap: 8px; color: var(--sw-ink) !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sw-product__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--sw-lilac); font-size: .95rem; }
.sw-product small { padding: 2px 8px; border-radius: 20px; background: var(--sw-accent-soft); color: var(--sw-accent-strong); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sw-topnav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.sw-topnav > a, .sw-switcher > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--sw-text) !important; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.sw-topnav > a:hover, .sw-switcher > summary:hover { background: var(--sw-lilac-soft); color: var(--sw-accent-strong) !important; }
.sw-switcher { position: relative; }
.sw-switcher > summary::-webkit-details-marker { display: none; }
.sw-switcher > summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateY(-2px) rotate(45deg); }
.sw-switcher__menu { position: absolute; right: 0; top: calc(100% + 10px); display: grid; gap: 4px; width: 300px; padding: 8px; border: 1px solid var(--sw-line); border-radius: 20px; background: #fff; box-shadow: 0 22px 50px -18px rgba(27, 26, 58, .35); }
.sw-switcher__menu a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; align-items: center; padding: 9px 10px; border-radius: 14px; color: var(--sw-ink) !important; text-decoration: none; }
.sw-switcher__menu a:hover, .sw-switcher__menu a[aria-current] { background: var(--sw-lilac-soft); }
.sw-switcher__menu span { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--tone, var(--sw-lilac)); font-size: 1rem; }
.sw-switcher__menu strong { font-size: .88rem; }
.sw-switcher__menu small { color: var(--sw-muted); font-size: .74rem; line-height: 1.3; }
.sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.sw-btn:hover { transform: translateY(-1px); }
.sw-btn--primary { background: var(--sw-dark); color: #fff !important; }
.sw-btn--primary:hover { background: var(--sw-accent); }
.sw-btn--ghost { border-color: var(--sw-line); background: #fff; color: var(--sw-ink) !important; }
.sw-btn--lime { background: var(--sw-lime); color: var(--sw-dark) !important; }
.sw-menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--sw-line); border-radius: 50%; background: #fff; color: var(--sw-ink); font-size: 1.1rem; cursor: pointer; }

/* ---------- Layout ---------- */
.sw-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1280px; margin: 0 auto; padding: 24px 14px 0; }
.sw-sidebar { display: grid; gap: 16px; align-content: start; }
.sw-card { padding: 14px; border: 1px solid #ebe7f3; border-radius: 24px; background: #fff; box-shadow: 0 14px 34px -24px rgba(36, 34, 54, .4); }
.sw-search { position: relative; }
.sw-search input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid #e0deeb; border-radius: 16px; background: #fcfbfe; color: var(--sw-ink); font: inherit; font-size: .88rem; }
.sw-search input:focus { outline: none; border-color: var(--sw-accent); box-shadow: 0 0 0 4px rgba(80, 70, 229, .14); }
.sw-search::before { content: ""; position: absolute; left: 14px; top: 50%; width: 11px; height: 11px; border: 2px solid #8e86a5; border-radius: 50%; transform: translateY(-62%); }
.sw-search::after { content: ""; position: absolute; left: 24px; top: 56%; width: 6px; height: 2px; background: #8e86a5; transform: rotate(45deg); }
.sw-sidebar .nav { display: grid; gap: 3px; margin-top: 14px; }
.sw-sidebar .nav__section { margin: 18px 12px 6px; color: #6a637c; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sw-sidebar .nav__link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 13px; color: #2c2942 !important; font-size: .87rem; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background .15s ease; }
.sw-sidebar .nav__link:hover { background: #f6f4fb; }
.sw-sidebar .nav__link.is-active { background: var(--sw-dark); color: #fff !important; }
.sw-sidebar .nav__link.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #b8e88a; }
.sw-sidebar .nav__link span { padding: 1px 7px; border-radius: 20px; background: var(--sw-lime); color: var(--sw-dark); font-size: .62rem; font-weight: 800; }
.sw-sidebar .nav__link[hidden], .sw-sidebar .nav__section[hidden] { display: none; }
.sw-eco { display: grid; gap: 6px; padding: 16px; border-radius: 24px 24px 24px 8px; background: var(--sw-mint); }
.sw-eco p { margin: 0 0 4px; color: #3f6b14; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sw-eco a { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(63, 107, 20, .18); color: var(--sw-dark) !important; font-size: .84rem; font-weight: 650; text-decoration: none; }
.sw-eco a:first-of-type { border-top: 0; }
.sw-eco a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Main column ---------- */
.sw-main { min-width: 0; padding-bottom: 30px; }
.sw-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 44px);
  border-radius: 28px 80px 28px 28px;
  background: var(--sw-lilac);
}
.sw-hero::before { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -110px; width: 240px; height: 240px; border-radius: 50%; background: #ffb8a2; opacity: .55; }
.sw-hero::after { content: ""; position: absolute; z-index: -1; right: 150px; top: -40px; width: 110px; height: 110px; border: 18px solid rgba(255, 255, 255, .6); border-radius: 50%; }
.sw-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #4b4672; font-size: .76rem; font-weight: 700; }
.sw-hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5142c9; }
.sw-hero h1, .sw-hero [data-page-title] { margin: 0; color: var(--sw-ink); font-family: var(--sw-display); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.05; }
.sw-hero [data-page-subtitle] { max-width: 640px; margin: 14px 0 0; color: #504d69; font-size: 1rem; }
.sw-hero .pillRow, .sw-hero .pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.sw-hero .pill { display: inline-block; padding: 6px 12px; border: 0; border-radius: 30px; background: rgba(255, 255, 255, .85); color: var(--sw-ink); font-size: .74rem; font-weight: 650; }

/* ---------- Article ---------- */
.sw-doc { width: auto; max-width: none; margin-inline: 0; margin-top: 22px; padding: clamp(22px, 3.5vw, 40px); border: 1px solid #ebe7f3; border-radius: 28px; background: #fff; color: var(--sw-text); font-size: 1rem; line-height: 1.75; box-shadow: 0 18px 44px -32px rgba(36, 34, 54, .45); overflow-wrap: anywhere; }
.sw-doc > :first-child { margin-top: 0; }
.sw-doc h1 { font-size: 1.9rem; }
.sw-doc h1, .sw-doc h2, .sw-doc h3, .sw-doc h4 { color: var(--sw-ink); font-family: var(--sw-display); letter-spacing: -.035em; line-height: 1.2; scroll-margin-top: calc(var(--sw-header) + 20px); }
.sw-doc h2 { margin: 2.2rem 0 .8rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.sw-doc h3 { margin: 1.6rem 0 .6rem; font-size: 1.15rem; }
.sw-doc p, .sw-doc ul, .sw-doc ol { margin: .85rem 0; }
.sw-doc .lead { color: #504d69; font-size: 1.08rem; }
.sw-doc li::marker { color: var(--sw-accent); font-weight: 700; }
.sw-doc :not(pre) > code { padding: .12rem .42rem; border-radius: 6px; background: var(--sw-accent-soft); color: var(--sw-accent-strong); font-family: var(--sw-mono); font-size: .86em; }
.sw-doc pre { position: relative; overflow: auto; padding: 18px 20px; border-radius: 18px; background: #161a2b; color: #e6e9f5; font-family: var(--sw-mono); font-size: .86rem; line-height: 1.6; }
.sw-doc pre code { background: none; color: inherit; padding: 0; }
.sw-doc .copy-btn { position: absolute; top: 10px; right: 10px; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.sw-doc .copy-btn:hover { background: var(--sw-lime); color: var(--sw-dark); }
.sw-doc table { display: block; width: 100%; max-width: 100%; margin: 1.2rem 0; overflow-x: auto; border: 1px solid var(--sw-line); border-radius: 16px; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.sw-doc th { background: var(--sw-lilac-soft); color: var(--sw-ink); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.sw-doc th, .sw-doc td { padding: 10px 14px; border-bottom: 1px solid var(--sw-line); vertical-align: top; }
.sw-doc tr:last-child td { border-bottom: 0; }
.sw-doc blockquote { margin: 1.2rem 0; padding: 14px 18px; border-left: 4px solid var(--sw-accent); border-radius: 0 16px 16px 0; background: var(--sw-lilac-soft); }
.sw-doc img, .sw-doc video { max-width: 100%; height: auto; border-radius: 16px; }
.sw-doc hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--sw-line); }
.sw-doc .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.4rem 0; overflow: visible; border: 0; background: none; }
.sw-doc .card { padding: 18px 20px; border: 0; border-radius: 22px 22px 22px 8px; background: var(--sw-lilac-soft); box-shadow: none; }
.sw-doc .card + .card { border-top: 0; }
.sw-doc .card-grid:has(> .card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sw-doc .card-grid:has(> .card:only-child) { grid-template-columns: 1fr; }
.sw-doc .card h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.sw-doc .card p { margin: 0; color: #4f4c68; font-size: .94rem; line-height: 1.6; }
.sw-doc .card:nth-child(3n + 2) { background: #f1f9e3; border-radius: 8px 22px 22px 22px; }
.sw-doc .card:nth-child(3n + 3) { background: #fff1ea; }
.sw-doc .card h3 { margin-top: 0; }
.sw-doc .card p:last-child, .sw-doc .card ul:last-child, .sw-doc .card ol:last-child { margin-bottom: 0; }
.sw-doc .card ul, .sw-doc .card ol { padding-left: 1.25rem; }
.sw-doc .btn, .sw-doc a.button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--sw-dark); color: #fff; font-weight: 700; text-decoration: none; }
.sw-doc .btn--ghost { border: 1px solid var(--sw-line); background: #fff; color: var(--sw-ink); }
.sw-doc iframe { max-width: 100%; border: 0; border-radius: 18px; }

/* ---------- Callouts, steps, embeds ---------- */
.sw-doc .note, .sw-doc .warn { margin: 1.4rem 0; padding: 14px 18px 14px 50px; position: relative; border: 0; border-radius: 18px 18px 18px 6px; background: var(--sw-lilac-soft); color: var(--sw-text); font-size: .95rem; line-height: 1.65; }
.sw-doc .note::before, .sw-doc .warn::before { content: "i"; position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sw-accent); color: #fff; font: 800 .75rem/1 var(--sw-font); }
.sw-doc .warn { background: #fff6d8; }
.sw-doc .warn::before { content: "!"; background: #d18a00; }
.sw-doc .note > :first-child, .sw-doc .warn > :first-child { margin-top: 0; }
.sw-doc .note > :last-child, .sw-doc .warn > :last-child { margin-bottom: 0; }
.sw-doc .note strong, .sw-doc .warn strong { color: var(--sw-ink); }
.sw-doc .step-list { display: grid; gap: 10px; margin: 1.2rem 0; padding: 0 !important; list-style: none; counter-reset: sw-step; }
.sw-doc .step-list > li { position: relative; min-height: 0; margin: 0; padding: 12px 16px 12px 58px; border-radius: 16px; background: #faf9fd; counter-increment: sw-step; }
.sw-doc .step-list > li::before { content: counter(sw-step); position: absolute; left: 14px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 10px; background: var(--sw-dark); color: #fff; font: 800 .82rem/1 var(--sw-font); }
.sw-doc .step-list > li::marker { content: ""; }
.sw-doc .video-embed { overflow: hidden; border: 0; border-radius: 20px; background: #161a2b; }
.sw-doc .status { padding: 2px 9px; border-radius: 20px; font-size: .72rem; }
.sw-doc table { border-collapse: separate; background: #fff; }

/* ---------- Interactive tools (Live Weather theme creator) ---------- */
.sw-doc .builder { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr); margin: 1.6rem 0; overflow: hidden; border: 0; border-radius: 26px; background: #faf9fd; box-shadow: inset 0 0 0 1px #ebe7f3; }
.sw-doc .builder__controls { padding: 22px; border-right: 1px solid #ebe7f3; }
.sw-doc .builder__preview { min-width: 0; padding: 22px; background: var(--sw-lilac-soft); }
.sw-doc .builder h2 { margin: 0 0 16px; padding: 0; color: var(--sw-ink); font-family: var(--sw-font); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sw-doc .builder__field { display: grid; gap: 6px; margin: 0 0 14px; }
.sw-doc .builder__field label { color: #4f4c68; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.sw-doc .builder__field input:not([type="checkbox"]):not([type="range"]), .sw-doc .builder__field select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #e0deeb; border-radius: 12px; background: #fff; color: var(--sw-ink); font: inherit; font-size: .9rem; }
.sw-doc .builder__field select { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233f35cf' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center; cursor: pointer; }
.sw-doc .builder__field input[type="color"] { padding: 4px; cursor: pointer; }
.sw-doc .builder__field input:focus, .sw-doc .builder__field select:focus { outline: none; border-color: var(--sw-accent); box-shadow: 0 0 0 4px rgba(80, 70, 229, .14); }
.sw-doc .builder input[type="range"], .sw-doc .builder input[type="checkbox"] { accent-color: var(--sw-accent); }
.sw-doc .builder__field input[type="range"] { width: 100%; margin: 4px 0 0; }
.sw-doc .builder__inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sw-doc .builder__check { display: flex; align-items: center; gap: 9px; margin: 6px 0; color: var(--sw-text); font-size: .86rem; }
.sw-doc .builder__check input { width: 17px; height: 17px; }
.sw-doc .builder__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #ebe7f3; }
.sw-doc .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 18px; border: 1px solid #e0deeb; border-radius: 999px; background: #fff; color: var(--sw-ink); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.sw-doc .button:hover { transform: translateY(-1px); text-decoration: none; }
.sw-doc .button--primary { border-color: var(--sw-dark); background: var(--sw-dark); color: #fff; }
.sw-doc .button--primary:hover { border-color: var(--sw-accent); background: var(--sw-accent); }
.sw-doc .builder-message { min-height: 20px; margin-top: 10px; color: #3f6b14; font-size: .8rem; font-weight: 600; }
.sw-doc .preview-stage { min-height: 340px; border: 0; border-radius: 20px; }

/* ---------- Ads ---------- */
.sw-ad { position: relative; margin: 22px 0; padding: 12px; border: 1px dashed #e0dcea; border-radius: 22px; background: #fcfbfe; text-align: center; }
.sw-ad::before { content: "Advertisement"; display: block; margin-bottom: 6px; color: #9b94ad; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sw-ad ins { display: block; min-height: 90px; }
.sw-ad--side ins { min-height: 250px; }
.sw-doc .sw-ad { margin: 2rem 0; }
.sw-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.sw-ad:not(:has(ins[data-ad-status="filled"])) { margin-block: 0; padding: 0; border: 0; background: none; }
.sw-ad:not(:has(ins[data-ad-status="filled"]))::before { display: none; }
.sw-ad:not(:has(ins[data-ad-status="filled"])) ins { min-height: 0; }

/* ---------- Right rail ---------- */
.sw-support { display: grid; gap: 10px; padding: 18px; border-radius: 24px 24px 24px 8px; background: var(--sw-dark); color: #e9e6f5; }
.sw-support strong { color: #fff; font-family: var(--sw-display); font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.25; }
.sw-support p { margin: 0; color: #c9c4da; font-size: .82rem; line-height: 1.55; }
.sw-support .sw-btn { justify-self: start; min-height: 38px; padding: 8px 16px; font-size: .82rem; }

/* ---------- More from StreamWID ---------- */
.sw-more { margin-top: 30px; }
.sw-more h2 { margin: 0 0 14px; color: var(--sw-ink); font-family: var(--sw-display); font-size: 1.5rem; letter-spacing: -.04em; }
.sw-more__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 14px; }
.sw-more__grid a { display: grid; gap: 6px; min-height: 150px; padding: 20px; border-radius: 24px 24px 24px 8px; background: var(--tone, var(--sw-lilac)); color: var(--sw-ink) !important; text-decoration: none; transition: transform .2s ease; }
.sw-more__grid a:hover { transform: translateY(-3px); }
.sw-more__grid span { font-size: 1.4rem; }
.sw-more__grid strong { font-family: var(--sw-display); font-size: 1.1rem; letter-spacing: -.03em; }
.sw-more__grid small { color: #514b5f; font-size: .82rem; line-height: 1.5; }

/* ---------- Footer ---------- */
.sw-footer { max-width: 1252px; margin: 40px auto 0; padding: 30px clamp(20px, 3vw, 40px); border-radius: 32px 32px 0 0; background: var(--sw-dark); color: #cac5db; }
.sw-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.sw-footer .sw-brand { color: #fff !important; }
.sw-footer .sw-brand b { color: var(--sw-lime); }
.sw-footer p { margin: 8px 0 0; max-width: 420px; font-size: .84rem; }
.sw-social { display: flex; gap: 10px; }
.sw-social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff !important; font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .2s ease; }
.sw-social a:hover { background: rgba(255, 255, 255, .18); }
.sw-social svg { width: 16px; height: 16px; fill: currentColor; }
.sw-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.sw-footer__links a { color: #e2def0 !important; text-decoration: none; }
.sw-footer__links a:hover { color: var(--sw-lime) !important; }
.sw-footer__links span { margin-left: auto; color: #9b94ad; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sw-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
  .sw-menu-btn { display: inline-grid; place-items: center; }
  .sw-topnav > a, .sw-crumb { display: none; }
  .sw-layout { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .sw-sidebar { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(320px, 88vw); overflow-y: auto; padding: 14px; background: var(--sw-bg); box-shadow: 0 0 40px rgba(0, 0, 0, .25); transform: translateX(-105%); transition: transform .25s ease; }
  .sw-sidebar.is-open { transform: none; }
  .sw-doc .builder { grid-template-columns: 1fr; }
  .sw-doc .builder__controls { border-right: 0; border-bottom: 1px solid #ebe7f3; }
  .sw-footer { margin-inline: 14px; }
  .sw-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(27, 26, 58, .4); }
  .sw-backdrop[hidden] { display: none; }
}
@media (max-width: 600px) {
  .sw-brand span { display: none; }
  .sw-product small { display: none; }
  .sw-topnav { display: none; }
  .sw-topbar__bar { gap: 8px; }
  .sw-topbar__bar > .sw-btn { margin-left: auto; flex: none; }
  .sw-product__icon { display: none; }
  .sw-product { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .sw-topbar__bar .sw-btn { padding: 8px 14px; min-height: 38px; }
  .sw-hero { border-radius: 24px 56px 24px 24px; }
  .sw-footer__links span { margin-left: 0; width: 100%; }
  .sw-doc .step-list > li { padding-left: 52px; }
  .sw-doc .card-grid, .sw-doc .card-grid:has(> .card:nth-child(3):last-child) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-btn, .sw-more__grid a, .sw-sidebar { transition: none; }
}
