:root {
  --header-h: 68px;
  --sidebar-w: 286px;
  --toc-w: 228px;
  --bg: #07110f;
  --bg-soft: #0a1512;
  --surface: #0e1c18;
  --surface-raised: #12231e;
  --surface-glass: rgba(9, 22, 18, 0.92);
  --text: #edf5f0;
  --text-strong: #ffffff;
  --muted: #899e95;
  --muted-strong: #b4c5be;
  --line: rgba(213, 235, 226, 0.1);
  --line-strong: rgba(213, 235, 226, 0.17);
  --lime: #b8f34a;
  --lime-soft: rgba(184, 243, 74, 0.1);
  --blue: #4bc8ff;
  --orange: #ff9b63;
  --red: #ff7e79;
  --radius: 14px;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f6f9f6;
  --bg-soft: #eef4ef;
  --surface: #ffffff;
  --surface-raised: #f6faf6;
  --surface-glass: rgba(250, 253, 250, 0.94);
  --text: #17241d;
  --text-strong: #0d1812;
  --muted: #677970;
  --muted-strong: #4e6258;
  --line: rgba(24, 57, 42, 0.1);
  --line-strong: rgba(24, 57, 42, 0.17);
  --lime: #78ad1f;
  --lime-soft: rgba(121, 176, 31, 0.1);
  --shadow: 0 25px 70px rgba(45, 71, 56, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 22px); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--lime);
  color: #142200;
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.docs-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  height: var(--header-h);
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
  grid-template-columns: var(--sidebar-w) minmax(260px, 560px) 1fr;
  gap: 28px;
}

.docs-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.docs-brand strong { font-weight: 760; }
.docs-brand > i { width: 1px; height: 21px; margin-inline: 2px; background: var(--line-strong); }
.brand-section { color: var(--muted); font-size: 12px; font-weight: 600; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--lime) 32%, transparent);
  border-radius: 10px;
  background: var(--lime-soft);
  color: var(--lime);
}
.brand-mark svg { width: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search > svg,
.mobile-search > svg {
  position: absolute;
  left: 13px;
  z-index: 1;
  width: 17px;
  color: var(--muted);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.header-search input,
.mobile-search input {
  width: 100%;
  height: 40px;
  padding: 0 46px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--text);
  font-size: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.header-search input:focus,
.mobile-search input:focus {
  border-color: color-mix(in srgb, var(--lime) 45%, transparent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.header-search kbd {
  position: absolute;
  right: 10px;
  display: grid;
  width: 24px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
}
.search-results {
  position: absolute;
  top: 48px;
  right: 0;
  left: 0;
  z-index: 160;
  max-height: min(520px, calc(100vh - 90px));
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.mobile-search-results {
  max-height: 42vh;
  margin: -8px 0 17px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}
.search-heading { padding: 8px 10px 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.search-result {
  display: block;
  padding: 10px 11px;
  border-radius: 9px;
  transition: background-color .15s ease;
}
.search-result:hover, .search-result:focus-visible { background: var(--lime-soft); }
.search-result strong { display: block; font-size: 12px; }
.search-result p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.search-result mark { border-radius: 2px; background: color-mix(in srgb, var(--lime) 30%, transparent); color: var(--text); }
.search-empty { padding: 22px 15px; color: var(--muted); font-size: 11px; text-align: center; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-link {
  display: flex;
  height: 37px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 650;
}
.header-link:hover { border-color: var(--line-strong); color: var(--text); }
.header-link svg { width: 16px; fill: currentColor; }
.icon-button {
  display: grid;
  width: 37px;
  height: 37px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
}
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
.icon-button svg { width: 17px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.language-toggle { font-size: 10px; font-weight: 780; }
.moon-icon, html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }
.mobile-menu { display: none; position: relative; }
.mobile-menu span { position: absolute; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
.mobile-menu span:first-child { transform: translateY(-3px); }
.mobile-menu span:last-child { transform: translateY(3px); }
.mobile-menu[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.mobile-menu[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.reading-progress { position: fixed; top: var(--header-h); right: 0; left: 0; z-index: 110; height: 2px; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--lime), var(--blue)); transition: width .08s linear; }

.docs-layout { display: grid; min-height: 100vh; padding-top: var(--header-h); grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); }
.docs-sidebar {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  width: var(--sidebar-w);
  overflow-y: auto;
  padding: 25px 21px 20px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.mobile-search { display: none; margin-bottom: 17px; }
.mobile-search input { padding-right: 12px; }

.nav-group { margin-bottom: 23px; }
.nav-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.nav-group-title svg { width: 13px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item {
  position: relative;
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 560;
  transition: background-color .15s ease, color .15s ease;
}
.nav-item:hover { background: color-mix(in srgb, var(--surface-raised) 75%, transparent); color: var(--text); }
.nav-item.is-active { background: var(--lime-soft); color: var(--lime); font-weight: 680; }
.nav-item.is-active::before { position: absolute; top: 8px; bottom: 8px; left: 0; width: 2px; border-radius: 3px; background: var(--lime); content: ""; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-status {
  display: flex;
  margin-top: auto;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  flex-direction: column;
}
.sidebar-status span { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.sidebar-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.sidebar-status small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.sidebar-overlay { display: none; }

.docs-main { min-width: 0; max-width: 940px; margin: 0 auto; padding: 35px clamp(28px, 4vw, 68px) 30px; grid-column: 2; }
.article-toolbar { display: flex; min-height: 32px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.breadcrumbs { display: flex; min-width: 0; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs span { overflow: hidden; color: var(--muted-strong); text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs i { color: var(--line-strong); font-style: normal; }
.article-tools { display: flex; align-items: center; gap: 8px; }
.article-tools a, .content-language {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}
.article-tools a:hover { border-color: var(--line-strong); color: var(--text); }
.article-tools svg { width: 13px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.content-language { border-color: color-mix(in srgb, var(--orange) 20%, var(--line)); color: var(--orange); }
.content-language[hidden] { display: none; }

.article-content { min-height: calc(100vh - 260px); }
.article-content > :first-child { margin-top: 0; }
.article-content h1 {
  position: relative;
  margin: 0 0 25px;
  padding-bottom: 22px;
  font-size: clamp(36px, 5vw, 55px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.article-content h1::after { position: absolute; bottom: 0; left: 0; width: 58px; height: 3px; border-radius: 99px; background: var(--lime); content: ""; }
.article-content h2 {
  margin: 58px 0 18px;
  padding-top: 3px;
  font-size: 25px;
  font-weight: 730;
  letter-spacing: -.035em;
  line-height: 1.25;
}
.article-content h3 { margin: 34px 0 13px; font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.article-content h4 { margin: 26px 0 10px; font-size: 14px; }
.article-content h2[id], .article-content h3[id], .article-content h4[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.heading-anchor { margin-left: 8px; color: transparent; font-size: .72em; font-weight: 500; }
.article-content h2:hover .heading-anchor, .article-content h3:hover .heading-anchor { color: var(--muted); }
.article-content p { margin: 0 0 18px; color: var(--muted-strong); }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content em { color: var(--muted-strong); }
.article-content a { color: var(--lime); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--lime) 35%, transparent); text-underline-offset: 3px; }
.article-content a:hover { text-decoration-color: currentColor; }
.article-content ul, .article-content ol { margin: 12px 0 22px; padding-left: 24px; color: var(--muted-strong); }
.article-content li { margin: 7px 0; padding-left: 4px; }
.article-content li::marker { color: var(--lime); }
.article-content hr { height: 1px; margin: 42px 0; border: 0; background: var(--line); }
.article-content blockquote {
  position: relative;
  margin: 24px 0;
  padding: 18px 21px 18px 50px;
  border: 1px solid color-mix(in srgb, var(--lime) 20%, var(--line));
  border-radius: 13px;
  background: var(--lime-soft);
}
.article-content blockquote::before { position: absolute; top: 17px; left: 18px; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--lime); color: #162500; content: "i"; font-size: 11px; font-weight: 850; }
.article-content blockquote p { margin: 0; color: var(--muted-strong); }
.table-wrap { margin: 22px 0 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.article-content table { width: 100%; border-collapse: collapse; background: color-mix(in srgb, var(--surface) 72%, transparent); font-size: 11px; }
.article-content th { padding: 11px 14px; border-bottom: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--text); font-size: 9px; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.article-content td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted-strong); vertical-align: top; }
.article-content tr:last-child td { border-bottom: 0; }
.article-content tr:hover td { background: color-mix(in srgb, var(--lime) 3%, transparent); }
.article-content code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-raised);
  color: color-mix(in srgb, var(--lime) 85%, var(--text));
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .84em;
}
.code-wrap { position: relative; margin: 22px 0 28px; }
.article-content pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #06100d;
  color: #dce9e2;
  line-height: 1.65;
  tab-size: 2;
}
html[data-theme="light"] .article-content pre { background: #14231c; color: #e8f1ec; }
.article-content pre code { padding: 0; border: 0; background: transparent; color: inherit; font-size: 11px; }
.copy-code { position: absolute; top: 9px; right: 9px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); font-size: 8px; cursor: pointer; }
.copy-code:hover { color: var(--lime); }
.article-content img { display: block; max-width: 100%; height: auto; margin: 25px auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.article-content details { margin: 18px 0; padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.article-content summary { color: var(--text); font-weight: 700; cursor: pointer; }

.article-loading { display: flex; min-height: 330px; align-items: center; justify-content: center; gap: 11px; color: var(--muted); font-size: 11px; }
.article-loading i { width: 17px; height: 17px; border: 2px solid var(--line-strong); border-top-color: var(--lime); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.article-error { padding: 28px; border: 1px solid color-mix(in srgb, var(--red) 25%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--red) 5%, transparent); }
.article-error strong { display: block; margin-bottom: 5px; }

.page-navigation { display: grid; margin-top: 65px; padding-top: 25px; border-top: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); gap: 12px; }
.page-nav-link { display: flex; min-height: 72px; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease, transform .2s ease; }
.page-nav-link:hover { border-color: color-mix(in srgb, var(--lime) 28%, var(--line)); transform: translateY(-2px); }
.page-nav-link.next { justify-content: flex-end; text-align: right; }
.page-nav-link > span:first-child { color: var(--lime); font-size: 18px; }
.page-nav-link p { display: flex; margin: 0; flex-direction: column; }
.page-nav-link small { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.page-nav-link strong { color: var(--muted-strong); font-size: 10px; }

.docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 70px; padding: 25px 0 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.docs-footer p { margin: 0; }
.docs-footer div { display: flex; gap: 16px; }
.docs-footer a:hover { color: var(--lime); }

.docs-toc {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: var(--toc-w);
  overflow-y: auto;
  padding: 37px 23px 24px;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.docs-toc > strong { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.docs-toc nav { position: relative; display: grid; gap: 2px; margin-top: 13px; padding-left: 12px; border-left: 1px solid var(--line); }
.toc-link { position: relative; padding: 5px 0; color: var(--muted); font-size: 9px; line-height: 1.45; transition: color .15s ease; }
.toc-link[data-level="3"] { padding-left: 9px; font-size: 8px; }
.toc-link:hover, .toc-link.is-active { color: var(--lime); }
.toc-link.is-active::before { position: absolute; top: 5px; bottom: 5px; left: -13px; width: 2px; border-radius: 2px; background: var(--lime); content: ""; }
.toc-support { display: flex; align-items: center; gap: 9px; margin-top: 30px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.toc-support > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--lime-soft); color: var(--lime); font-weight: 800; }
.toc-support p { display: flex; min-width: 0; margin: 0; flex-direction: column; }
.toc-support strong { font-size: 9px; }
.toc-support small { color: var(--muted); font-size: 7px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; padding: 9px 13px; border: 1px solid color-mix(in srgb, var(--lime) 25%, transparent); border-radius: 9px; background: var(--surface-raised); box-shadow: var(--shadow); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  :root { --toc-w: 205px; --sidebar-w: 260px; }
  .docs-header { gap: 18px; }
  .docs-main { padding-inline: 42px; }
}

@media (max-width: 980px) {
  :root { --sidebar-w: 270px; }
  .docs-header { grid-template-columns: auto minmax(240px, 1fr) auto; }
  .brand-section, .docs-brand > i, .header-link span { display: none; }
  .docs-layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .docs-main { grid-column: 2; padding-inline: 35px; }
  .docs-toc { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .docs-header { padding-inline: 14px; grid-template-columns: 1fr auto; }
  .header-search, .header-link { display: none; }
  .mobile-menu { display: grid; }
  .docs-layout { display: block; }
  .docs-sidebar { width: min(86vw, 320px); padding-top: 18px; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
  .docs-sidebar.is-open { transform: translateX(0); }
  .mobile-search { display: flex; }
  .sidebar-overlay { position: fixed; inset: var(--header-h) 0 0; z-index: 50; display: block; width: 100%; border: 0; background: rgba(0,0,0,.52); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-overlay.is-visible { opacity: 1; pointer-events: auto; }
  .docs-main { max-width: 760px; padding: 25px 20px 25px; }
  .article-toolbar { margin-bottom: 24px; }
  .article-tools a span { display: none; }
  .article-content h1 { font-size: 40px; }
  .article-content h2 { margin-top: 46px; font-size: 23px; }
  .article-content table { min-width: 560px; }
  .docs-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .docs-brand { font-size: 14px; }
  .brand-mark { width: 31px; height: 31px; }
  .header-actions { gap: 5px; }
  .icon-button { width: 34px; height: 34px; }
  .docs-main { padding-inline: 15px; }
  .breadcrumbs a:first-child, .breadcrumbs i:first-of-type { display: none; }
  .article-content h1 { font-size: 35px; }
  .article-content h2 { font-size: 21px; }
  .article-content blockquote { padding: 16px 16px 16px 46px; }
  .page-navigation { grid-template-columns: 1fr; }
  .page-nav-link.next { grid-row: 1; }
  .docs-footer div { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* KNX group address generator (docs page knx-generator) */
.knx-gen { display: grid; gap: 16px; margin: 26px 0 32px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 72%, transparent); }
.knx-gen-field { display: grid; gap: 6px; justify-items: start; }
.knx-gen-field > label { font-weight: 650; color: var(--text-strong); }
.knx-gen-field input { width: 170px; padding: 9px 12px; font: inherit; color: var(--text); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 9px; }
.knx-gen-field input[aria-invalid="true"] { border-color: var(--red); }
.knx-gen-help { margin: 0; font-size: 12px; color: var(--muted); }
.knx-gen-error { margin: 0; font-size: 13px; color: var(--red); }
.knx-gen-presets, .knx-gen-groups { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 12px 16px 14px; border: 1px solid var(--line); border-radius: 11px; }
.knx-gen-presets legend, .knx-gen-groups legend { padding: 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-strong); }
.knx-gen-groups[disabled] { opacity: .55; }
.knx-gen input[type="radio"], .knx-gen input[type="checkbox"] { accent-color: var(--lime); }
.knx-gen-summary { margin: 0; font-weight: 650; color: var(--text-strong); }
.knx-gen-preview summary { cursor: pointer; color: var(--blue); }
.knx-gen-preview .table-wrap { margin: 12px 0 0; }
.knx-gen-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.knx-gen-download { padding: 10px 18px; font: inherit; font-weight: 650; color: #0d1a08; background: var(--lime); border: 0; border-radius: 10px; cursor: pointer; }
.knx-gen-download:hover { filter: brightness(1.06); }
.knx-gen-download:disabled { opacity: .45; cursor: not-allowed; }
.knx-gen-download-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
