:root {
  --bg: #11141b;
  --panel: #181c25;
  --panel-2: #1f2430;
  --line: #2a3142;
  --text: #eef1f6;
  --muted: #98a1b3;
  --accent: #2f7bd6;
  --accent-ink: #ffffff;
  --link: #6aa9ee;
  --ok: #57f287;
  --bad: #f2565b;
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5f9;
    --panel: #ffffff;
    --panel-2: #eef1f6;
    --line: #d9dfe8;
    --text: #1b2230;
    --muted: #5b6577;
    --accent: #1565c0;
    --link: #1565c0;
    --bad: #c62828;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.top {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.1rem;
  padding: 1rem clamp(16px, 2vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; }
#account { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.who { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--muted); font-size: 0.95rem; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); object-fit: cover; flex: none; }

main { max-width: 960px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin: 0 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
h2 .i { color: var(--accent); }
.lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, .card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0.3rem 0.8rem; font-size: 0.9rem; }

.hero { padding: 3rem 0 1rem; }
.features { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2.5rem; }
.feature, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.feature p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

.grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.card:hover { border-color: var(--accent); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--panel-2); object-fit: cover; display: grid; place-items: center; font-weight: 700; color: var(--muted); flex: none; }
.card .meta { min-width: 0; }
.card .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }

.crumbs { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.title-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.25rem; }
.title-row .icon { width: 56px; height: 56px; border-radius: 14px; }

.layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; } .sticky { position: sticky; top: 1rem; } }
.stack { display: grid; gap: 1rem; }

.field { display: grid; gap: 0.35rem; margin-top: 0.9rem; }
.field > label, .field > .label { font-weight: 600; font-size: 0.95rem; }
.hint { color: var(--muted); font-size: 0.85rem; }
input[type="text"], select, textarea {
  width: 100%; min-height: 44px; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input[type="number"] { width: 7rem; min-height: 44px; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
input[type="color"] { width: 56px; height: 44px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.preview { background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 0.8rem 1rem; display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.75rem; }
.preview .p-title { font-weight: 700; }
.preview .p-body { grid-column: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview .p-foot { grid-column: 1 / -1; color: var(--muted); font-size: 0.8rem; margin-top: 0.4rem; }
.preview .p-thumb { grid-column: 2; grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 10px; background: var(--line); object-fit: cover; }

.bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.8rem 0; margin-top: 1rem; background: linear-gradient(transparent, var(--bg) 35%); }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
.notice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.notice .i { color: var(--accent); margin-top: 0.15rem; }

@media (prefers-reduced-motion: no-preference) {
  .card, .btn { transition: border-color 0.12s, filter 0.12s; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.shell { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .shell { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.side { display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.25rem; }
@media (min-width: 820px) { .side { flex-direction: column; overflow: visible; position: sticky; top: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem; } }
.side a { display: flex; align-items: center; gap: 0.6rem; min-height: 42px; padding: 0.5rem 0.8rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.side a:hover { background: var(--panel-2); color: var(--text); }
.side a.active { background: var(--accent); color: var(--accent-ink); }
.side-back { font-weight: 500 !important; }
@media (min-width: 820px) { .side-back { border-bottom: 1px solid var(--line); border-radius: 0 !important; margin-bottom: 0.35rem; } }
.content { min-width: 0; display: grid; gap: 1rem; }
.content > .title-row { margin-bottom: 0; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.panel > .toggle-row:first-of-type { border-top: 0; }
.toggle-text { display: grid; gap: 0.1rem; min-width: 0; }
.toggle-label { font-weight: 600; }
input.sw { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; display: block; min-height: 0; padding: 0; margin: 0; width: 46px; height: 26px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background 0.15s; }
input.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.15s, background 0.15s; }
input.sw:checked { background: var(--accent); border-color: var(--accent); }
input.sw:checked::after { transform: translateX(20px); background: var(--accent-ink); }
input.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.checks { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.check-grid { display: grid; gap: 0.25rem 1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 0.4rem; }
.check { display: flex; align-items: center; gap: 0.5rem; min-height: 36px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.stats { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.stat-n { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.modules { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.module { display: grid; gap: 0.4rem; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--text); }
.module:hover { border-color: var(--accent); }
.module p { margin: 0; }
.module-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.module .link { color: var(--link); font-weight: 600; font-size: 0.9rem; }
.pill { font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.on { color: var(--ok); border-color: var(--ok); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pill.on { color: #1b7f3b; border-color: #1b7f3b; } :root:not([data-theme="dark"]) .status.ok { color: #1b7f3b; } }
.bar[hidden] { display: none; }

.topnav { display: flex; align-items: center; gap: 0.15rem; order: 2; }
.topnav a { padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.topnav a:hover { background: var(--panel-2); }
.topnav a[aria-current="page"] { color: var(--link); }
.free-badge { order: 3; padding: 0.3rem 0.8rem; border-radius: 8px; background: #f5b82e; color: #231a00; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
#account { order: 4; margin-left: auto; }
.brand { order: 1; }
@media (max-width: 760px) {
  .free-badge { display: none; }
  .topnav { order: 5; width: 100%; overflow-x: auto; margin-left: -0.7rem; }
  #account .btn:not(.primary):not(.ghost) { display: none; }
}

.btn.big { min-height: 52px; padding: 0.7rem 1.5rem; font-size: 1.05rem; border-radius: 10px; }
.btn.accent { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn.accent:hover { border-color: var(--link); }

.hero-wrap { position: relative; margin: 0 calc(50% - 50vw); padding: 4rem max(16px, calc(50vw - 480px)) 3rem; overflow: hidden; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); pointer-events: none; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; margin: 0 0 1.1rem; }
.hero-text .lead { font-size: 1.05rem; margin-bottom: 1.1rem; }
.hero-stats { color: var(--muted); margin: 0 0 1.5rem; max-width: 52ch; }
.hero-stats strong { color: #22d3ee; font-size: 1.1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-art { display: grid; place-items: center; }

.hero-shot { display: block; width: 100%; max-width: 600px; height: auto; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.35)); }

.platform { padding: 2rem 0 1rem; }
.platform-head { display: grid; gap: 0.6rem; justify-items: start; margin-bottom: 1.5rem; }
.platform-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); display: block; margin: 0; }
.platform-head .lead { margin: 0; }
.features { margin-top: 0; }
.feature { display: grid; gap: 0.4rem; align-content: start; }
.feature h3 { margin: 0.2rem 0 0; font-size: 1.1rem; }
.feature p { margin: 0; }
.feature-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--link); border: 1px solid var(--line); }
.feature-icon .i { width: 1.3em; height: 1.3em; }
.cta { margin-top: 3rem; padding: 2rem 1.5rem; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 1rem; justify-items: center; }
.cta h2 { display: block; font-size: 1.5rem; margin: 0; }
.cta .hero-actions { justify-content: center; }
.foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.mark { height: 44px; width: auto; }

.page-head { margin-bottom: 1.25rem; }
.page-head .lead { margin-bottom: 0; }
.cmd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.cmd-tools input { flex: 1 1 260px; max-width: 420px; min-height: 44px; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.cmd-tools .chips { flex-basis: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { min-height: 36px; padding: 0.3rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip:focus-visible, .cs-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.callout { border-left: 4px solid var(--accent); background: var(--panel); border-radius: 0 12px 12px 0; padding: 0.8rem 1.1rem; margin-top: 0.75rem; }
.callout p { margin: 0; color: var(--muted); }

.docs { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .docs { grid-template-columns: minmax(0, 1fr) 200px; } }
.docs-side { display: none; }
@media (min-width: 1040px) { .docs-side { display: block; } }
.toc { position: sticky; top: 1rem; display: grid; gap: 0.15rem; border-left: 1px solid var(--line); padding-left: 1rem; }
.toc h3 { margin: 0 0 0.4rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 0.2rem 0; }
.toc a:hover { color: var(--link); }

.cmd-group { margin-bottom: 1.5rem; scroll-margin-top: 1rem; }
.cs-heading { display: flex; align-items: center; gap: 0.5rem; font-size: 1.35rem; margin: 0 0 0.7rem; }
.cs-heading .count { font-size: 0.75rem; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.55rem; }
.cs-toggle { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--link); cursor: pointer; padding: 0; }
.cs-toggle:hover { border-color: var(--link); }
.cs-toggle .i { transition: transform 0.15s; }
.cs-toggle[aria-expanded="false"] .i { transform: rotate(-90deg); }

.cmd-grid { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cmd { display: flex; align-items: center; gap: 0.7rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; min-width: 0; }
.cmd:hover { border-color: var(--link); }
.cmd-icon { flex: none; color: var(--link); display: grid; place-items: center; }
.cmd-icon .i { width: 1.4em; height: 1.4em; }
.cmd-body { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.cmd code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--text); }
.cmd-desc { color: var(--muted); font-size: 0.9rem; font-style: italic; overflow-wrap: anywhere; }
.cmd .badge { flex: none; }

.status-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); margin-bottom: 1rem; }
.status-card .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bad); flex: none; }
.status-card.up .dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(87, 242, 135, 0.18); }

body { overflow-x: hidden; }

.platform-head { justify-items: center; text-align: center; }
.platform-head .lead { margin-inline: auto; }

.prose { max-width: 720px; margin: 1.5rem auto 0; }
.prose h1 { margin-bottom: 0.4rem; }
.prose section { margin-top: 1.75rem; }
.prose h2 { display: block; font-size: 1.2rem; margin-bottom: 0.4rem; }
.prose p, .prose li { color: var(--muted); line-height: 1.65; }
.prose p { margin: 0 0 0.75rem; }
.prose ul { margin: 0 0 0.75rem; padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.prose ol { padding-left: 1.25rem; }

.site-foot { margin-top: 3rem; padding: 2.5rem clamp(16px, 2vw, 40px) 1.25rem; background: var(--panel); border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem 4rem; }
.foot-brand { display: grid; gap: 0.6rem; justify-items: start; }
.foot-brand img { height: 36px; width: auto; display: block; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 2rem 4.5rem; }
.foot-col { display: grid; gap: 0.6rem; align-content: start; min-width: 9rem; }
.site-foot h3 { margin: 0 0 0.2rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.foot-col a:hover { color: var(--link); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; width: 100%; }
.site-foot { flex: none; }


/* Loader: three pulsing dots. From Uiverse.io by adamgiebl */
.dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.dots-container.loading { min-height: 40vh; }
.dots-container .dot {
  height: 20px;
  width: 20px;
  margin-right: 10px;
  border-radius: 10px;
  background-color: #b3d4fc;
  animation: pulse 1.5s infinite ease-in-out;
}
.dots-container .dot:last-child { margin-right: 0; }
.dots-container .dot:nth-child(1) { animation-delay: -0.3s; }
.dots-container .dot:nth-child(2) { animation-delay: -0.1s; }
.dots-container .dot:nth-child(3) { animation-delay: 0.1s; }
@keyframes pulse {
  0% { transform: scale(0.8); background-color: #b3d4fc; box-shadow: 0 0 0 0 rgba(178, 212, 252, 0.7); }
  50% { transform: scale(1.2); background-color: #6793fb; box-shadow: 0 0 0 10px rgba(178, 212, 252, 0); }
  100% { transform: scale(0.8); background-color: #b3d4fc; box-shadow: 0 0 0 0 rgba(178, 212, 252, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .dots-container .dot { animation: none; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .dots-container .dot { background-color: #7aa7e8; }
}
