/* bundle.unfolded.tools — follows the unfolded.tools look (app.css: integrations page, navbar, cta-pill). */
:root {
  --bg: #0b1220;
  --bg-deep: #0b1020;
  --card: #0f172a;
  --accent-1: #7c3aed;
  --accent-1-soft: #a78bfa;
  --accent-2: #06b6d4;
  --text: #e2e8f0;
  --text-strong: #ffffff;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .10);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --e-out: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg-deep); }
body {
  margin: 0;
  color: var(--text);
  font: 400 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(124, 58, 237, .2); color: #fff; }
a { color: var(--accent-1-soft); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-1-soft); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* background: same glow + masked grid as unfolded.tools */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.backdrop-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px circle at 20% 20%, rgba(124, 58, 237, .18), transparent 55%),
    radial-gradient(900px circle at 80% 30%, rgba(6, 182, 212, .14), transparent 55%);
}
.backdrop-grid {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.page-wrap {
  position: relative; z-index: 1;
  max-width: 1800px; margin: 0 auto; padding: 0 24px;
  min-height: 100vh; display: flex; flex-direction: column;
}

/* navbar */
.site-header { position: sticky; top: 16px; z-index: 50; }
.site-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 1rem;
  background: #0a111f; border: 1px solid var(--line-2);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .38);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; letter-spacing: .025em; flex: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand b { font-weight: 700; }
.site-nav { justify-content: space-between; }
.nav-title {
  margin: 0; font-size: 1.15rem; line-height: 1.2; font-weight: 900; letter-spacing: -.015em; color: #fff;
  white-space: nowrap; text-align: right;
}

/* main panel (integrations-panel) */
.builder-panel {
  margin-top: 1.5rem; flex: 1;
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(124, 58, 237, .10), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(11, 18, 32, .74));
  box-shadow: 0 12px 32px rgba(2, 6, 23, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.builder-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem;
  padding: 1.25rem; border-bottom: 1px solid var(--line);
}
.grad { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 0; max-width: 48rem; color: var(--muted); }
.source { margin: .5rem 0 0; color: var(--faint); font-size: .82rem; }
.source a { color: var(--muted); }

/* stepper */
.stepper { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.stepper li {
  display: flex; align-items: center; gap: .55rem; min-width: 128px;
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .035); color: var(--faint); font-weight: 700; font-size: .85rem;
}
.stepper .num {
  width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--line-2); font-size: .8rem; font-weight: 900;
}
.stepper li.is-current { color: #fff; border-color: rgba(124, 58, 237, .55); background: rgba(124, 58, 237, .14); }
.stepper li.is-current .num { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.stepper li.is-done { color: #cbd5e1; }
.stepper li.is-done .num { background: rgba(124, 58, 237, .18); border-color: rgba(124, 58, 237, .4); color: #c4b5fd; }

.step { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* step 1 toolbar */
.toolbar {
  display: grid; grid-template-columns: minmax(260px, 520px) 1fr; gap: .75rem; align-items: center;
  padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); background: rgba(2, 6, 23, .18);
}
.toolbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem;
  border: 1px solid var(--line-2); border-radius: 9999px; background: rgba(255, 255, 255, .045);
}
.search i { font-size: 1.25rem; color: var(--accent-1-soft); }
.search input { width: 100%; border: 0; outline: none; background: transparent; color: var(--text); font-weight: 600; }
.search input::placeholder { color: var(--faint); font-weight: 400; }
.check-toggle { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .85rem; }
.check-toggle input { accent-color: var(--accent-1); }
.category-strip { grid-column: 1 / -1; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line-2); border-radius: 9999px; background: rgba(255, 255, 255, .035);
  color: #cbd5e1; padding: .5rem .8rem; font-size: .8rem; font-weight: 700;
  transition: background .18s var(--e-out), border-color .18s var(--e-out), color .18s var(--e-out);
}
.filter-chip:hover, .filter-chip[aria-pressed="true"] { border-color: rgba(124, 58, 237, .55); background: rgba(124, 58, 237, .18); color: #fff; }

/* cards */
.grid-wrap { padding: 1.25rem; flex: 1; }
.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .85rem; }
.integration-card {
  position: relative; display: flex; flex-direction: column; text-align: left; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: inherit;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(124, 58, 237, .09), transparent 54%),
    linear-gradient(180deg, rgba(15, 23, 42, .84), rgba(11, 18, 32, .74));
  box-shadow: 0 10px 28px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .18s var(--e-out), border-color .18s var(--e-out), box-shadow .18s var(--e-out), background .18s var(--e-out);
}
.integration-card:hover:not([aria-disabled="true"]) {
  transform: translateY(-2px); border-color: rgba(124, 58, 237, .5);
  box-shadow: 0 16px 38px rgba(2, 6, 23, .44), 0 0 0 1px rgba(124, 58, 237, .14), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.integration-card[aria-checked="true"] {
  border-color: rgba(124, 58, 237, .75);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(124, 58, 237, .24), transparent 60%),
    linear-gradient(180deg, rgba(23, 22, 60, .92), rgba(11, 18, 32, .82));
  box-shadow: 0 0 0 1px rgba(124, 58, 237, .35), 0 14px 34px rgba(76, 29, 149, .25);
}
.integration-card[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.card-section { padding: .9rem 1rem; }
.card-divider { height: 1px; background: var(--line); }
.card-header { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.card-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 900; color: #fff; }
.integration-icon {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 13px; font-size: 1.35rem; color: #c4b5fd;
  background: linear-gradient(135deg, rgba(124, 58, 237, .28), rgba(6, 182, 212, .13));
}
.pick {
  width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, .22); color: transparent; font-size: 1.1rem;
  transition: background .18s var(--e-out), border-color .18s var(--e-out), color .18s var(--e-out);
}
.integration-card[aria-checked="true"] .pick { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: .55rem; }
.author { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .78rem; min-width: 0; }
.author i { color: var(--accent-1-soft); font-size: 1rem; }
.description { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reason { margin: 0; color: var(--warn); font-size: .85rem; }
.card-footer { display: flex; gap: .4rem; flex-wrap: wrap; }
.meta-badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .58rem; border-radius: 9999px;
  font-size: .72rem; font-weight: 800; line-height: 1; color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .04);
}
.meta-badge.official { color: #a7f3d0; background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .26); }
.meta-badge.custom { color: #bfdbfe; background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .24); }
.meta-badge.upload { color: #fde68a; background: rgba(245, 158, 11, .11); border-color: rgba(245, 158, 11, .23); }

.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, .055); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.empty-state { margin: 1rem 0; padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed rgba(255, 255, 255, .16); border-radius: 18px; }
.empty-state i { font-size: 2.25rem; color: var(--accent-1-soft); }
.empty-state h3 { margin: .75rem 0 .25rem; color: #f1f5f9; font-size: 1.1rem; }
.empty-state p { margin: 0; }

/* selection bar */
.selection-bar {
  position: sticky; bottom: 16px; z-index: 5; margin: 0 1.25rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem .9rem .8rem 1rem; border-radius: 16px;
  background: #0a111f; border: 1px solid rgba(124, 58, 237, .35);
  box-shadow: 0 18px 48px rgba(2, 6, 23, .62);
}
.sel-info { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.sel-info strong { display: block; color: #fff; font-weight: 800; }
.sel-info span { display: block; color: var(--muted); font-size: .85rem; }
.slots { display: grid; grid-template-columns: repeat(10, 12px); gap: 4px; flex: none; }
.slots i { display: block; height: 22px; border-radius: 4px; background: rgba(255, 255, 255, .09); font-style: normal; }
.sel-info > div:last-child { min-width: 0; }
.size-meter { display: flex; align-items: center; gap: .6rem; margin-top: .45rem; }
.size-track { width: 160px; height: 6px; flex: none; border-radius: 9999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.size-track span { display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); transition: width .3s var(--e-out); }
.size-meter.is-high .size-track span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.size-meter.is-over .size-track span { background: #f87171; }
.size-meter span#sizeText { display: inline; color: var(--muted); font-size: .8rem; }
.size-meter.is-over span#sizeText { color: var(--danger); }
.meta-badge.size { color: #c4b5fd; background: rgba(124, 58, 237, .12); border-color: rgba(124, 58, 237, .3); }
.meta-badge.node { color: #bbf7d0; background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .28); }
.sel-info span.node-note { margin-top: .35rem; color: #fde68a; font-size: .8rem; }
.sel-info span.node-note i { vertical-align: -2px; margin-right: .25rem; }
.summary-list li.node-row .s-name small { color: #fde68a; }
.meta-badge.size.unknown { color: #94a3b8; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); }
.sum-size { margin: 0 0 .25rem; }
.slots i.used { background: linear-gradient(180deg, var(--accent-1-soft), var(--accent-1)); box-shadow: 0 0 10px rgba(124, 58, 237, .55); }

/* buttons */
.cta-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: .65rem; color: #fff; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(124, 58, 237, .35);
  background: radial-gradient(120% 120% at 20% 20%, rgba(124, 58, 237, .55) 0%, rgba(124, 58, 237, .22) 60%, transparent 100%);
  box-shadow: 0 6px 16px rgba(124, 58, 237, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .2s var(--e-out), box-shadow .2s var(--e-out), filter .2s var(--e-out), opacity .2s;
}
.cta-pill:hover:not(:disabled) { filter: saturate(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(124, 58, 237, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }
.cta-pill:active:not(:disabled) { transform: scale(.98); }
.cta-pill:disabled { opacity: .45; cursor: not-allowed; }
.cta-pill.big { width: 100%; padding: .9rem 1rem; font-size: 1.05rem; background: linear-gradient(135deg, #7c3aed, #6d28d9); border-color: rgba(167, 139, 250, .5); }
.cta-pill i { font-size: 1.15rem; }
.ghost-pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: .65rem;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: #cbd5e1; font-weight: 700; font-size: .9rem;
  transition: background .18s var(--e-out), border-color .18s var(--e-out), color .18s var(--e-out);
}
.ghost-pill:hover { color: #fff; border-color: rgba(124, 58, 237, .45); background: rgba(124, 58, 237, .12); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-1-soft); font-weight: 700; font-size: .85rem; }
.link-btn:hover { text-decoration: underline; }

/* steps 2-4 */
.step-body { padding: 1.25rem; display: grid; gap: 1rem; align-items: start; }
.step-body.two-col { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); max-width: 1100px; width: 100%; }
.step-body.narrow { max-width: 760px; width: 100%; }
.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(124, 58, 237, .09), transparent 54%),
    linear-gradient(180deg, rgba(15, 23, 42, .84), rgba(11, 18, 32, .74));
  box-shadow: 0 10px 28px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.card h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.card h3 { margin: 0; font-size: 1rem; font-weight: 800; color: #fff; }
.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; margin-bottom: .4rem; color: #cbd5e1; font-weight: 700; font-size: .9rem; }
.field input {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .045); color: #fff; font-weight: 600; outline: none;
  transition: border-color .18s var(--e-out), box-shadow .18s var(--e-out);
}
.field input:focus { border-color: rgba(124, 58, 237, .65); box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); }
.field input[aria-invalid="true"] { border-color: rgba(248, 113, 113, .7); }
#driverId { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; }
.field small { display: block; margin-top: .4rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.field .field-error { color: var(--danger); }
.field .field-error:empty { display: none; }
.form-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.form-error { margin: .75rem 0 0; color: var(--danger); font-size: .9rem; }
.form-error:empty { display: none; }
.summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li { display: flex; align-items: center; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.summary-list li:last-child { border-bottom: 0; }
.summary-list .integration-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 1.05rem; }
.summary-list .s-name { flex: 1; min-width: 0; }
.summary-list .s-name b { display: block; color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-list .s-name small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-btn { border: 0; background: none; color: var(--faint); font-size: 1.25rem; padding: .2rem; border-radius: 8px; line-height: 1; }
.remove-btn:hover { color: var(--danger); background: rgba(248, 113, 113, .08); }

.progress-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.progress-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.progress-list li:last-child { border-bottom: 0; }
.p-state { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border-radius: 9999px; border: 1px solid var(--line-2); color: var(--faint); font-size: 1.1rem; }
.p-name { flex: 1; min-width: 0; }
.p-name b { display: block; color: #fff; font-weight: 700; }
.p-name small { display: block; color: var(--muted); font-size: .8rem; }
.progress-list li[data-state="ready"] .p-state { color: #fff; background: rgba(16, 185, 129, .25); border-color: rgba(52, 211, 153, .5); }
.progress-list li[data-state="error"] .p-state { color: #fff; background: rgba(248, 113, 113, .25); border-color: rgba(248, 113, 113, .5); }
.progress-list li[data-state="downloading"] .p-state,
.progress-list li[data-state="extracting"] .p-state,
.progress-list li[data-state="assembling"] .p-state { color: #c4b5fd; border-color: rgba(124, 58, 237, .55); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.build-error { margin-top: 1rem; padding: 1rem; border-radius: 14px; border: 1px solid rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .07); }
.build-error p { margin: 0; color: #fecaca; }

.done-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.done-head h2 { margin: 0; }
.done-head p { margin: .2rem 0 0; }
.done-icon {
  width: 52px; height: 52px; flex: none; display: inline-grid; place-items: center; border-radius: 16px; font-size: 1.8rem; color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); box-shadow: 0 10px 30px rgba(124, 58, 237, .4);
}
.done-card .summary-list { margin: 1rem 0; }
.lang-badge { font-size: .7rem; font-weight: 800; padding: .3rem .5rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .12); color: #cbd5e1; text-transform: lowercase; }
.warn-box { display: flex; gap: .6rem; margin-top: .75rem; padding: .75rem .85rem; border-radius: 12px; font-size: .88rem;
  color: #fde68a; background: rgba(245, 158, 11, .09); border: 1px solid rgba(245, 158, 11, .25); }
.warn-box i { font-size: 1.15rem; flex: none; margin-top: .1rem; }
.install-steps { margin: .9rem 0; padding-left: 1.25rem; color: #cbd5e1; }
.install-steps li { margin-bottom: .65rem; padding-left: .25rem; }
.install-steps li::marker { color: var(--accent-1-soft); font-weight: 800; }

/* footer: same as unfolded.tools (views/partials/footer.ejs) */
#siteFooter { position: relative; z-index: 10; margin-top: 2.5rem; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .10); background: #080d18; }
#siteFooter .site-footer-glow { pointer-events: none; position: absolute; border-radius: 9999px; filter: blur(72px); opacity: .55; }
#siteFooter .site-footer-glow-left { left: -8rem; top: -5rem; width: 18rem; height: 18rem; background: rgba(139, 92, 246, .16); }
#siteFooter .site-footer-glow-right { right: -8rem; bottom: -7rem; width: 18rem; height: 18rem; background: rgba(34, 211, 238, .12); }
#siteFooter .site-footer-inner { position: relative; width: min(100%, 1800px); margin: 0 auto; padding: 2.25rem 1rem 1.25rem; }
#siteFooter .site-footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
#siteFooter .site-footer-brand { min-width: 0; max-width: 36rem; }
.footer-brand-link { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.footer-brand-link img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand-link span { font-size: 1.125rem; letter-spacing: .025em; }
.footer-about { margin: 1rem 0 0; color: #94a3b8; font-size: .875rem; line-height: 1.5rem; }
.footer-note { margin: .75rem 0 0; color: #475569; font-size: .75rem; line-height: 1.25rem; }
.footer-heading { margin: 0; color: #64748b; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
#siteFooter .site-footer-links { display: grid; gap: .75rem; margin-top: 1rem; }
#siteFooter .site-footer-link {
  display: inline-flex; align-items: center; gap: .5rem; width: fit-content; color: #94a3b8;
  font-size: .875rem; line-height: 1.4; text-decoration: none; transition: color .18s ease, transform .18s ease;
}
#siteFooter .site-footer-link i { color: var(--accent-1); }
#siteFooter .site-footer-link:hover { color: #fff; transform: translateX(2px); }
#siteFooter .site-footer-community-card {
  display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem;
  border: 1px solid rgba(129, 140, 248, .25); border-radius: 1rem; background: rgba(129, 140, 248, .08);
  color: inherit; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
#siteFooter .site-footer-community-card:hover { border-color: rgba(165, 180, 252, .5); background: rgba(129, 140, 248, .14); transform: translateY(-1px); }
#siteFooter .site-footer-forum { border-color: rgba(34, 211, 238, .24); background: rgba(34, 211, 238, .07); }
#siteFooter .site-footer-forum:hover { border-color: rgba(103, 232, 249, .48); background: rgba(34, 211, 238, .13); }
.community-icon { display: flex; width: 2.75rem; height: 2.75rem; flex: none; align-items: center; justify-content: center; border-radius: .75rem; font-size: 1.5rem; }
.community-icon.discord { background: rgba(129, 140, 248, .15); color: #c7d2fe; }
.community-icon.forum { background: rgba(34, 211, 238, .15); color: #a5f3fc; }
.community-text { min-width: 0; flex: 1; }
.community-text strong { display: block; color: #fff; font-size: .875rem; }
.community-text span { display: block; margin-top: .25rem; color: #94a3b8; font-size: .75rem; line-height: 1.25rem; }
.community-ext { flex: none; color: #64748b; transition: color .18s ease; }
.site-footer-community-card:hover .community-ext { color: #fff; }
#siteFooter .site-footer-bottom {
  display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .10); color: #475569; font-size: .75rem; line-height: 1.5;
}
@media (min-width: 640px) {
  #siteFooter .site-footer-inner { padding: 2.5rem 1.5rem 1.5rem; }
  #siteFooter .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #siteFooter .site-footer-brand, #siteFooter .site-footer-community { grid-column: 1 / -1; }
  #siteFooter .site-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  #siteFooter .site-footer-grid { grid-template-columns: minmax(18rem, 1.35fr) repeat(4, minmax(8rem, .62fr)); gap: clamp(2rem, 3vw, 3.5rem); }
  #siteFooter .site-footer-brand { grid-column: auto; }
  #siteFooter .site-footer-community { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  #siteFooter .site-footer-grid { grid-template-columns: minmax(18rem, 1.3fr) repeat(4, minmax(8rem, .58fr)) minmax(18rem, 1.15fr); gap: clamp(1.75rem, 2.5vw, 3rem); }
  #siteFooter .site-footer-community { grid-column: auto; }
}

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 380px;
  padding: .8rem 1rem; border-radius: 12px; background: #1e1b4b; color: #fff; border: 1px solid rgba(167, 139, 250, .4);
  box-shadow: 0 18px 48px rgba(2, 6, 23, .6); font-size: .9rem;
}
.toast.is-error { background: #3b1219; border-color: rgba(248, 113, 113, .45); }
.toast.is-warn { background: #2d2006; border-color: rgba(245, 158, 11, .5); color: #fef3c7; }

/* responsive */
@media (max-width: 420px) {
  .brand span { display: none; }
}
@media (max-width: 1100px) {
  .builder-hero { grid-template-columns: 1fr; }
  .stepper li { min-width: 0; flex: 1; }
}
@media (max-width: 860px) {
  .toolbar { grid-template-columns: 1fr; }
  .toolbar-actions { justify-content: flex-start; }
  .step-body.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-wrap { padding: 0 16px; }
  .site-nav { padding: 10px 12px; }
  .nav-title { font-size: 1rem; }
  .sel-info > div > span#selHint { display: none; }
  .size-track { width: 90px; }
  .selection-bar { padding: .65rem .65rem .65rem .9rem; }
  .builder-hero, .toolbar, .grid-wrap, .step-body { padding-left: 1rem; padding-right: 1rem; }
  .stepper .lbl { display: none; }
  .stepper li.is-current .lbl { display: inline; }
  .stepper li { justify-content: center; padding: .55rem; }
  .stepper li.is-current { flex: 3; white-space: nowrap; }
  .integration-grid { grid-template-columns: 1fr; }
  .selection-bar { margin: 0 1rem 1rem; }
  .slots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
