.kb-jump { display: inline-block; margin-top: 16px; font-weight: 800; }
.kb-section { scroll-margin-top: 20px; }
.kb-disclaimer { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--panel); line-height: 1.8; }
.kb-section summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 24px; align-items: start; margin-top: 10px; }
.kb-swatch { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 1px solid #b8bec7; }
.kb-static-colors, .kb-colors { list-style: none; margin: 0; padding: 0; }
.kb-static-colors li { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.kb-static-colors small { margin-left: auto; color: var(--muted); }
.kb-name { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.kb-name input, .kb-name select, .kb-name textarea, .kb-channels input { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--panel); font: inherit; }
.kb-name textarea { font-family: monospace; font-size: 13px; resize: vertical; }
.kb-section button, .kb-download { padding: 9px 12px; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.kb-section button:disabled, .kb-download[aria-disabled="true"] { opacity: .5; cursor: default; }
.kb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.kb-colors li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kb-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.kb-selection input { width: 20px; height: 20px; margin: 0; }
.kb-selection small { color: var(--muted); font-size: 11px; }
.kb-row-actions { display: flex; align-items: center; gap: 4px; }
.kb-row-actions button { padding: 8px; }
.kb-channels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kb-channels label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.kb-channels input { font-size: 16px; color: var(--ink); }
.kb-channels input[aria-invalid="true"] { border-color: #b42318; }
.kb-output { min-width: 0; }
.kb-output img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: white; image-rendering: pixelated; }
.kb-download { display: block; margin-top: 12px; text-align: center; text-decoration: none; }
.kb-output [role="status"] { font-size: 13px; line-height: 1.6; min-height: 42px; }
.kb-help { margin-top: 10px; }
.kb-help li { margin-bottom: 8px; line-height: 1.6; }
.kb-section [hidden] { display: none !important; }
.kb-section :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
  .kb-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kb-output { width: min(100%, 320px); justify-self: center; }
  .kb-static-colors li { padding-left: 0; padding-right: 0; }
}
