/* Shared fields, compact choices and independent toggles across steps 1–7. */
@media screen {
#kf.studio-kf #kf-steps .kf-pane {gap:24px}
#kf.studio-kf #kf-steps .studio-option-field {min-width:0}
#kf.studio-kf #kf-steps .studio-inline-field {position:relative;padding-left:168px;max-width:760px}
#kf.studio-kf #kf-steps .studio-inline-field>legend {position:absolute;top:14px;left:0;max-width:148px;margin:0}
#kf.studio-kf #kf-steps .studio-choice-set {display:flex;flex-wrap:wrap;align-items:stretch;gap:4px;padding:4px;border:0;border-radius:7px;background:color-mix(in srgb,var(--fg) 7%,transparent)}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o {display:flex;flex:1 1 auto;align-items:center;justify-content:center;min-width:min-content;max-width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:5px;background:transparent;box-shadow:none;text-align:center;gap:0;cursor:pointer}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o:has(input:checked) {background:var(--surface);border:0;box-shadow:none}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o:has(input:disabled) {background:transparent;opacity:.5;cursor:not-allowed}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o>input {position:absolute!important;inset:0;width:100%;height:100%;min-width:0;opacity:0!important;clip:auto!important;clip-path:none!important;margin:0;cursor:inherit}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o>span {overflow-wrap:normal;word-break:normal}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o b {font:600 13px/1.5 var(--sans);color:var(--muted)}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o b:has(>i) {justify-content:center;gap:8px}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o:has(input:checked) b,#kf.studio-kf #kf-steps .studio-choice-set .kf-o:hover:not(:has(input:disabled)) b {color:var(--fg)}
#kf.studio-kf #kf-steps .studio-choice-set .kf-o small,#kf.studio-kf #kf-steps .studio-choice-set .kf-no {display:none}
.studio-control-note {margin:8px 0 0;max-width:75ch;font:400 12px/1.65 var(--sans);color:var(--muted)}
.studio-control-note[hidden] {display:none!important}
.studio-control-note>p {margin:0;font:inherit}
.studio-disabled-info {margin-top:4px}
.studio-disabled-info>summary {width:fit-content;min-height:28px;align-content:center;font:500 11px/1.5 var(--sans);cursor:pointer;color:var(--muted)}
.studio-disabled-info ul {margin:6px 0 0;padding-left:18px;font:400 12px/1.65 var(--sans)}
#kf.studio-kf #kf-steps .studio-mixed {display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#kf.studio-kf #kf-steps .studio-toggle-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:0 24px;background:none}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o {display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;min-height:56px;gap:16px;padding:12px 0;border:0;border-bottom:1px solid var(--studio-border);border-radius:0;background:transparent;box-shadow:none;text-align:left}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o:has(input:checked),#kf.studio-kf #kf-steps .studio-toggle-list .kf-o:has(input:disabled) {background:transparent;box-shadow:none}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o b {font:600 13px/1.5 var(--sans)}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o small {margin-top:3px;font:400 12px/1.5 var(--sans)}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o .kf-no {display:none}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o>input {position:relative!important;appearance:none;display:block;opacity:1!important;width:36px;height:22px;min-width:36px;margin:0;border:1px solid var(--studio-border);border-radius:12px;background:var(--surface-2);cursor:pointer}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o>input::before {content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;border-radius:50%;background:var(--muted);transition:transform .16s cubic-bezier(.16,1,.3,1)}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o>input:checked {background:var(--accent);border-color:var(--accent)}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o>input:checked::before {transform:translateX(14px);background:var(--surface)}
#kf.studio-kf #kf-steps .studio-toggle-list .kf-o>input:disabled {opacity:.4!important;cursor:not-allowed}
#kf.studio-kf #kf-steps .studio-control-catalogue {grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
#kf.studio-kf #kf-steps .studio-control-catalogue .kf-o {padding:12px;min-height:64px;background:var(--surface-2)}
#kf.studio-kf #kf-steps .studio-control-catalogue .kf-o:has(input:checked) {background:var(--studio-choice);border-color:var(--accent)}
/* Inputs and catalog toolbars use the same calm surfaces; color and image samples remain real. */
#kf.studio-kf #kf-steps .kf-pane :is(input[type="text"],input[type="number"],input[type="search"],select,textarea) {background:var(--surface-2);border-color:transparent;caret-color:var(--accent)}
#kf.studio-kf #kf-steps .kf-pane :is(input[type="text"],input[type="number"],input[type="search"],select,textarea):focus {border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px}
#kf.studio-kf #kf-steps :is(.kf-fold,.kf-calc) {padding:12px 0;border:0;border-top:1px solid var(--studio-border);border-radius:0;background:none}
#kf.studio-kf #kf-steps :is(.kf-fold,.kf-calc)>summary {min-height:36px;align-content:center;font:600 13px/1.5 var(--sans);color:var(--fg-2)}
#kf.studio-kf #kf-steps :is(.kf-fold,.kf-calc)[open]>summary {margin-bottom:16px}
#kf.studio-kf #kf-steps .kf-mbar {display:flex;flex-wrap:wrap;gap:4px;padding:4px;margin-bottom:12px;border-radius:7px;background:color-mix(in srgb,var(--fg) 7%,transparent);scrollbar-width:thin}
#kf.studio-kf #kf-steps .kf-mbar:has(button:nth-of-type(9)) {flex-wrap:nowrap;overflow-x:auto}
#kf.studio-kf #kf-steps .kf-mbar button {flex:0 0 auto;min-height:36px;padding:6px 10px;border:0;border-radius:5px;background:transparent;font:500 12px/1.4 var(--sans);color:var(--muted);white-space:nowrap}
#kf.studio-kf #kf-steps .kf-mbar button[aria-pressed="true"] {background:var(--surface);color:var(--fg)}
#kf.studio-kf #kf-steps .kf-mtools {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px}
#kf.studio-kf #kf-steps .kf-mtools .kf-chk {font:400 12px/1.5 var(--sans)}
#kf.studio-kf #kf-steps .kf-sws {gap:8px}
#kf.studio-kf #kf-steps .kf-sw {min-height:60px;padding:4px;border-radius:6px;background:var(--surface-2)}
#kf.studio-kf #kf-steps .kf-fg {gap:8px}
#kf.studio-kf #kf-steps .kf-fl {padding:4px;background:var(--surface-2)}
#kf.studio-kf #kf-steps :is(.kf-upl button,.kf-upl-b,.kf-ed-b,.kf-calc>.btn) {min-height:40px;padding:8px 12px;border:1px solid var(--studio-border);border-radius:6px;background:var(--surface-2);color:var(--fg);font:600 12px/1.5 var(--sans)}
#kf.studio-kf #kf-steps .kf-brand .kf-lbl {font:500 12px/1.5 var(--sans);text-transform:none;letter-spacing:0}
#kf.studio-kf #kf-steps .kf-brand .hint,#kf.studio-kf #kf-steps .kf-brand .kf-upl {font:400 12px/1.6 var(--sans);color:var(--muted)}
#kf.studio-kf #kf-steps .studio-final-summary {gap:0 24px}
#kf.studio-kf #kf-steps .studio-final-summary>div {padding:12px 0;border-bottom:1px solid var(--studio-border)}
@container settings (max-width:640px) {
  #kf.studio-kf #kf-steps .studio-inline-field {padding:0}
  #kf.studio-kf #kf-steps .studio-inline-field>legend {position:static;max-width:none;margin:0 0 10px}
}
@container settings (max-width:360px) {
  #kf.studio-kf #kf-steps .studio-choice-set {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #kf.studio-kf #kf-steps .studio-choice-set .kf-o {padding:8px;min-width:0;flex-basis:calc(50% - 4px)}
  #kf.studio-kf #kf-steps .studio-choice-set .kf-o b {font-size:12px;overflow-wrap:normal}
  #kf.studio-kf #kf-steps .studio-choice-set .kf-o b:has(>i) {flex-wrap:wrap}
  #kf.studio-kf #kf-steps #kf-models,#kf.studio-kf #kf-steps .studio-choice-set:has(input[data-k="type"]) {grid-template-columns:minmax(0,1fr)}
  #kf.studio-kf #kf-steps .studio-choice-set:has(input[data-k$=".th"]) {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container settings (max-width:280px) {#kf.studio-kf #kf-steps .studio-choice-set:has(input[data-k="br.fn"]) {grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce) {#kf.studio-kf #kf-steps .studio-toggle-list input::before {transition:none}}
}
