/* ============================================================================
   AI Skill Builder — standalone tool skin. Loaded only by
   pages/ai_tool_templates/ai-skill-builder.php, standalone (no
   assets/styles.css dependency). Scoped under .skb. Aesthetic: an
   approachable build-kit workbench — warm slate/graphite ground, one
   amber-orange accent marking active/assembled state. Deliberately
   low-chrome: soft shadows and background-color shifts do most of the
   separating work, hairline borders are used sparingly (inputs, dividers)
   rather than framing every panel. Mobile-first: base rules are the
   small-screen (stacked) layout; the two-column form/preview layout only
   appears from the lg breakpoint up.
   ========================================================================== */

html, body { overflow-x: hidden; }

.skb {
  --bg:        #15141a;
  --bg-2:      #1b1a22;
  --panel:     #201f28;
  --field:     #262530;
  --field-soft:#211f29;
  --line:      #34323f;
  --line-soft: #2a2833;
  --text:      #efeceb;
  --text-dim:  #a9a5b3;
  --text-faint: #7c7889;
  --accent:    #f2a33d;   /* amber-orange "assembled" accent */
  --accent-2:  #d98a24;
  --accent-ink: #2a1904;  /* text-on-accent */
  --accent-soft: rgba(242,163,61,.14);
  --link:      #f0b567;   /* secondary warm tone for kicker/links, no purple/blue */
  --danger:    #f0715f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.28);
  --shadow-lg: 0 20px 48px -22px rgba(0,0,0,.6);

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-sans:    "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

.skb *, .skb *::before, .skb *::after { box-sizing: border-box; min-width: 0; }

.skb-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skb-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

@media (min-width: 640px) {
  .skb-wrap { padding: 24px 24px 64px; }
}

/* ── Masthead ─────────────────────────────────────────────────────────── */
.skb-masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 20px;
  flex-wrap: wrap;
}

.skb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.skb-back:hover { color: var(--text); background: var(--field); }

.skb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  order: 3;
  width: 100%;
  justify-content: center;
}
.skb-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.skb-brand__name { font-weight: 600; font-size: 14px; color: var(--text-dim); }

.skb-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .skb-brand { order: 0; width: auto; margin: 0 auto; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.skb-hero {
  text-align: center;
  padding: 8px 0 28px;
  max-width: 680px;
  margin: 0 auto;
}
.skb-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--link);
}
.skb-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 42px);
  letter-spacing: -.01em;
  line-height: 1.05;
}
.skb-lede {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.skb-notice {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 18px;
  text-align: left;
  line-height: 1.5;
  background: var(--panel);
  color: var(--text-faint);
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
}
.skb-notice svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.skb-notice span { min-width: 0; }
.skb-notice a { color: var(--link); font-weight: 600; }

/* ── Admin "backend not configured" notice (reuses the shared .ai-tools-notice
   classes app.js/other templates emit, reskinned to .skb) ─────────────────── */
.skb-admin-notice {
  max-width: 640px;
  margin: 0 auto 18px;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 13px;
}
.skb-admin-notice code {
  font-family: var(--font-mono);
  font-size: .9em;
  color: var(--text);
}

/* ── Console shell ────────────────────────────────────────────────────── */
.skb-console {
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 20px 14px;
}
@media (min-width: 640px) { .skb-console { padding: 26px; } }

/* ── Two-column layout ───────────────────────────────────────────────── */
.skb-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 980px) {
  .skb-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
}

.skb-form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Basic / Advanced tabs ───────────────────────────────────────────── */
.skb-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-2);
  padding: 5px;
  border-radius: 12px;
}
.skb-tabbtn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text-faint);
}
.skb-tabbtn__title { font-size: 13.5px; font-weight: 700; color: inherit; }
.skb-tabbtn__sub { font-size: 11px; color: inherit; opacity: .8; }
.skb-tabbtn:hover { color: var(--text-dim); }
.skb-tabbtn.is-active {
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.skb-tabbtn.is-active .skb-tabbtn__title { color: var(--accent); }
.skb-tabbtn.is-active .skb-tabbtn__sub { color: var(--text-faint); }

/* ── Form ─────────────────────────────────────────────────────────────── */
.skb-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skb-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-2);
  border-radius: 14px;
  padding: 16px 14px;
}
.skb-panel.is-active { display: flex; }

.skb-field { display: flex; flex-direction: column; gap: 6px; }
.skb-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.skb-optional { font-weight: 400; color: var(--text-faint); }

.skb-field input[type="text"],
.skb-field select,
.skb-field textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  padding: 10px 12px;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.skb-field textarea { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; }
@media (min-width: 640px) {
  .skb-field textarea { font-size: 12.5px; }
}
.skb-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='12' height='12' fill='none' stroke='%23a9a5b3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.skb-field input[type="text"]:focus,
.skb-field select:focus,
.skb-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.skb-field input::placeholder,
.skb-field textarea::placeholder { color: var(--text-faint); }

.skb-field__followup {
  margin-top: 6px;
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
}
.skb-field__followup:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.skb-hint { margin: 0; font-size: 11.5px; color: var(--text-faint); }
.skb-hint--tight { margin-top: -3px; }
.skb-hint code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--field);
  padding: 1px 5px;
  border-radius: 4px;
}

.skb-form__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Chips (framework picker) ────────────────────────────────────────── */
.skb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skb-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--field);
  border: 1px solid transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.skb-chip__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
  transition: background-color .15s ease;
}
.skb-chip:hover { color: var(--text); }
.skb-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}
.skb-chip.is-active .skb-chip__dot { background: var(--accent); }

/* ── Checkbox grid (connectors / tools) ──────────────────────────────── */
.skb-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}
@media (min-width: 480px) {
  .skb-check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.skb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--field);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.skb-check:hover { color: var(--text); }
.skb-check input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.skb-check:has(input:checked) {
  background: var(--accent-soft);
  color: var(--text);
}
/* A single checkbox used outside .skb-check-grid (e.g. the advanced-scaffold
   toggle) — full width, roomier text since it isn't sharing a grid cell. */
.skb-check--standalone {
  width: 100%;
  font-size: 13px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.skb-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border: 0;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.skb-btn:active { transform: translateY(1px); }
.skb-btn--ghost {
  background: var(--field);
  color: var(--text-dim);
}
.skb-btn--ghost:hover { color: var(--text); background: var(--line-soft); }
.skb-btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.skb-btn--primary:hover { background: var(--accent-2); }
.skb-btn--primary:disabled { opacity: .6; cursor: default; }
.skb-btn--icon {
  padding: 7px 10px;
  background: var(--field);
  color: var(--text-dim);
}
.skb-btn--icon:hover { color: var(--text); background: var(--line-soft); }
.skb-btn--icon.is-copied { color: var(--accent); }

/* ── Preview panel ────────────────────────────────────────────────────── */
.skb-preview {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-radius: 14px;
  overflow: hidden;
  min-height: 0;
}

/* ── Generate button (form actions row) ──────────────────────────────── */
.skb-btn--generate { margin-left: auto; }

/* ── Idle state ───────────────────────────────────────────────────────── */
/* .skb-idle/.skb-generating/.skb-ready/.skb-error are toggled via the
   `hidden` attribute in JS (setPaneState()); the bare-element `display`
   these each set below would otherwise beat `[hidden]`'s default
   display:none the moment ANY class rule sets display, since a class
   selector always outranks the attribute alone — so every one of the four
   needs its own `[hidden]` override here, or all of them render stacked at
   once regardless of which one JS intends to show (see the stuck-spinner +
   duplicated content bug this fixed). */
.skb-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 48px 24px;
  min-height: 320px;
  color: var(--text-faint);
}
.skb-idle[hidden],
.skb-generating[hidden],
.skb-ready[hidden],
.skb-error[hidden] {
  display: none;
}
.skb-idle__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 6px;
}
.skb-idle__title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text-dim); }
.skb-idle__sub { margin: 0; font-size: 12.5px; max-width: 320px; line-height: 1.55; }
.skb-idle__sub strong { color: var(--text-dim); }

/* ── Generating state ─────────────────────────────────────────────────── */
.skb-generating {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px;
  min-height: 320px;
}
.skb-generating__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.skb-generating__spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--line);
  border-top-color: var(--accent);
  flex-shrink: 0;
  animation: skb-spin 0.8s linear infinite;
}
@keyframes skb-spin { to { transform: rotate(360deg); } }
.skb-generating__title { margin: 0; font-size: 14px; font-weight: 700; }
.skb-generating__sub { margin: 2px 0 0; font-size: 12px; color: var(--text-faint); }

.skb-genbar {
  height: 5px;
  border-radius: 999px;
  background: var(--field);
  overflow: hidden;
}
.skb-genbar span {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .5s ease;
}

.skb-genlog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  overflow-y: auto;
  max-height: 260px;
}
.skb-genlog li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(3px);
  animation: skb-log-in .3s ease forwards;
}
@keyframes skb-log-in { to { opacity: 1; transform: translateY(0); } }
.skb-genlog li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--line);
}
.skb-genlog li.is-active { color: var(--text-dim); }
.skb-genlog li.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.skb-genlog li.is-done::before { background: var(--accent-2); }

/* ── Error state (run failed, or login/saved-key required) ──────────────── */
.skb-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 48px 24px;
  min-height: 320px;
}
.skb-error__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(240, 113, 95, .14);
  color: var(--danger);
  margin-bottom: 6px;
}
.skb-error__title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text-dim); }
.skb-error__sub { margin: 0; font-size: 12.5px; max-width: 320px; line-height: 1.55; color: var(--text-faint); }
.skb-error__actions {
  margin: 2px 0 6px;
  font-size: 12.5px;
}
.skb-error__actions a { color: var(--link); font-weight: 600; }
.skb-error__actions:empty { display: none; }

/* ── Ready state ──────────────────────────────────────────────────────── */
.skb-ready {
  display: flex;
  flex-direction: column;
  animation: skb-fade-in .35s ease;
}
@keyframes skb-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.skb-ready__flag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 10px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}
.skb-ready__flag.is-stale { color: var(--text-faint); }

.skb-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}
.skb-preview__tabs {
  display: flex;
  gap: 4px;
}
.skb-preview__tab {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-faint);
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
}
.skb-preview__tab:hover { color: var(--text-dim); }
.skb-preview__tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.skb-code {
  margin: 0;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 360px;
  min-height: 200px;
  background: var(--panel);
}
.skb-code:focus { outline: none; }
.skb-code mark {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
}

.skb-preview__files {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  max-height: 130px;
  overflow-y: auto;
}
.skb-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 4px 4px;
  border-radius: 6px;
}
.skb-file-row svg { color: var(--text-faint); flex-shrink: 0; }
.skb-file-row__path { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skb-file-row__size { color: var(--text-faint); font-size: 10.5px; flex-shrink: 0; }

.skb-preview__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  flex-wrap: wrap;
}
.skb-preview__summary {
  font-size: 11.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}
.skb-preview__sep { opacity: .5; }

.skb-lower { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 36px; align-items: start; }
@media (min-width: 960px) { .skb-lower { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } }
.skb-lower__main { min-width: 0; }
.skb-lower__main .skb-guide:first-child { margin-top: 0; }
.skb-side { display: grid; gap: 16px; }
@media (min-width: 960px) { .skb-side { position: sticky; top: 24px; } }
.skb-side__card { background: var(--panel); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.skb-side__card h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.skb-side__card p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.skb-side__card code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.skb-works { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skb-works li { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: var(--text-dim); background: rgba(255,255,255,.05); }
.skb-related { display: grid; gap: 4px; }
.skb-rel { display: flex; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .15s; }
.skb-rel:hover { background: rgba(255,255,255,.05); }
.skb-rel__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--accent); background: rgba(255,255,255,.05); }
.skb-rel__txt { min-width: 0; display: grid; gap: 2px; }
.skb-rel__txt strong { font-size: 14px; color: var(--text); }
.skb-rel__txt span { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skb-side__all { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; }
.skb-guide { margin-top: 28px; }
.skb-guide h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.skb-guide h2:not(:first-child) { margin-top: 26px; }
.skb-guide p, .skb-guide li { font-size: 14px; line-height: 1.65; color: var(--text-dim); }
.skb-guide strong { color: var(--text); }
.skb-steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.skb-steps__ok { display: block; margin-top: 4px; font-size: 13px; color: var(--text-faint); }
.skb-faq details { background: var(--panel); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.skb-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); }
.skb-faq details p { margin: 8px 0 0; }
.skb-guide__links { margin-top: 16px; }
.skb-guide a { color: var(--link); font-weight: 600; }

/* ── Feature strip ────────────────────────────────────────────────────── */
.skb-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}
@media (min-width: 780px) {
  .skb-features { grid-template-columns: repeat(3, 1fr); }
}
.skb-feature {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.skb-feature__n {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 7px;
  margin-bottom: 10px;
}
.skb-feature h2 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.skb-feature p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.skb-feature code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--field);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.skb-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding: 18px 0 4px;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
}
.skb-footer a { color: var(--text-dim); text-decoration: none; }
.skb-footer a:hover { color: var(--accent); }
.skb-footer__sep { opacity: .5; }

/* ── Toast (download confirmation) ───────────────────────────────────── */
.skb-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}
.skb-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .skb-btn, .skb-chip, .skb-toast, .skb-dropzone { transition: none; }
  .skb-generating__spinner { animation-duration: 1.6s; }
  .skb-genlog li { animation: none; opacity: 1; transform: none; }
  .skb-ready { animation: none; }
}
