/* Common progress and choice layout for all seven assembly steps. */
@media screen {
#kf.studio-kf {grid-template-rows:76px minmax(0,552px) auto}
#kf.studio-kf .studio-actions {position:sticky;bottom:0;z-index:8;align-self:end;flex-wrap:wrap;min-height:88px;border-top:1px solid var(--studio-border)}
#kf.studio-kf .studio-actions .flow-local-actions {flex:1 0 100%;margin:0;padding:0 0 16px;border-top:0;border-bottom:1px solid var(--studio-border);justify-content:flex-end}
#kf.studio-kf .studio-actions .flow-local-actions[hidden] {display:none}
#kf.studio-kf .studio-actions .flow-result-count {flex:1 1 160px;margin:0}
#kf.studio-kf .studio-actions .flow-done {border:1px solid var(--studio-border);background:transparent;color:var(--fg)}
#kf.studio-kf .studio-actions .flow-continue {border:1px solid var(--studio-border);background:var(--surface-2);color:var(--fg)}
#kf.studio-kf .studio-actions .flow-local-actions button {min-height:44px}
#kf.studio-kf .studio-actions :is(.flow-done,.flow-continue):disabled {background:var(--surface-2);color:var(--muted);border-color:var(--studio-border);cursor:not-allowed}
@media (min-width:621px) {
  #kf.studio-kf .kf-steps {padding-bottom:calc(24px + var(--assembly-actions-overlap,0px))}
}
#kf.studio-kf .assembly-progress {position:sticky;top:-32px;z-index:6;margin:-4px 0 24px;padding:16px 0 14px;background:var(--surface);border-bottom:1px solid var(--studio-border)}
#kf.studio-kf .assembly-progress-label {display:flex;justify-content:space-between;gap:16px;font:500 13px/1.5 var(--sans);color:var(--fg)}
#kf.studio-kf .assembly-progress-label b {font-variant-numeric:tabular-nums}
#kf.studio-kf .assembly-progress progress {display:block;width:100%;height:5px;margin:12px 0;appearance:none;border:0;background:var(--surface-2);accent-color:var(--accent)}
#kf.studio-kf .assembly-progress progress::-webkit-progress-bar {background:var(--surface-2);border-radius:3px}
#kf.studio-kf .assembly-progress progress::-webkit-progress-value {background:var(--accent);border-radius:3px}
#kf.studio-kf .assembly-progress progress::-moz-progress-bar {background:var(--accent)}
#kf.studio-kf .assembly-progress p {margin:0;color:var(--muted);font:400 12px/1.6 var(--sans)}
#kf.studio-kf .assembly-settings :is(.assembly-unavailable,.studio-disabled-info,.kf-why,.studio-binary-note,.kf-chk:has([data-flt="av"])) {display:none!important}
#kf.studio-kf .assembly-settings button[data-set]:disabled {display:none!important}
#kf.studio-kf .assembly-confirmed > svg {color:var(--accent)}
#kf.studio-kf .assembly-confirmed > span::after {content:'Подтверждено';display:block;margin-top:5px;font:500 11px/1.5 var(--sans);color:var(--accent)}
#kf.studio-kf .assembly-settings .flow-pane:is([data-flow-view="film"],[data-flow-view="mill"]) > .flow-ui {position:sticky;top:calc(var(--assembly-progress-height,110px) - 32px);padding-top:12px}
#kf.studio-kf .assembly-settings .frame-full-palette > .kf-all {display:block;border:0;padding:0;max-height:none!important;overflow:visible}
#kf.studio-kf .assembly-settings .frame-full-palette > .kf-all > summary {display:none}
#kf.studio-kf .assembly-settings .frame-full-palette .kf-all-b {max-height:none!important;height:auto!important;overflow:visible;padding:0}
#kf.studio-kf .assembly-settings .frame-full-palette .kf-rall {display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:10px}
#kf.studio-kf .assembly-settings .frame-full-palette .kf-rall[hidden] {display:none!important}
#kf.studio-kf .assembly-settings .frame-full-palette .kf-gl {margin:24px 0 12px}
#kf.studio-kf .assembly-settings .frame-palette-search {display:grid;gap:8px;margin-bottom:16px}
#kf.studio-kf .assembly-settings .frame-palette-search label {font:500 12px/1.5 var(--sans);color:var(--muted)}
#kf.studio-kf .assembly-settings .frame-palette-search .kf-note {margin:0}
#kf.studio-kf .assembly-field-error {flex-basis:100%;margin:0;color:var(--fg);font:400 12px/1.6 var(--sans)}
#kf.studio-kf .assembly-field-error:empty {display:none}
#kf.studio-kf :is(.studio-next,.flow-done,.flow-continue):disabled {background:var(--surface-2);color:var(--muted);border-color:var(--studio-border);cursor:not-allowed}
#kf.studio-kf #kf-track [data-st]:disabled {color:var(--muted);cursor:not-allowed;opacity:.6}
#kf.studio-kf .assembly-settings .flow-active.kf-size {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:24px}
#kf.studio-kf .assembly-settings details.kf-calc.flow-active > summary {display:list-item}
#kf.studio-kf .assembly-settings .flow-active > legend {margin-bottom:20px}
@media (max-width:620px) {
  #kf.studio-kf,#kf.studio-kf.kf-app.kf-full {grid-template-rows:62px 490px auto auto}
  #kf.studio-kf.kf-app.kf-full {grid-template-rows:62px 620px auto auto}
  #kf.studio-kf .studio-actions {padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:10px}
  #kf.studio-kf .studio-actions .flow-local-actions {gap:8px;padding-bottom:10px}
  #kf.studio-kf .studio-actions .flow-local-actions button {flex:1 1 auto;font-size:11px;padding-inline:8px;gap:5px}
  #kf.studio-kf .studio-actions .flow-result-count {flex-basis:100%;font-size:11px}
  #kf.studio-kf .assembly-progress {top:calc(var(--header-h) + 62px);padding:12px 0;margin-top:0}
  #kf.studio-kf .assembly-progress-label {font-size:12px}
  #kf.studio-kf .assembly-settings .flow-pane:is([data-flow-view="film"],[data-flow-view="mill"]) > .flow-ui {top:calc(var(--header-h) + 62px + var(--assembly-progress-height,110px))}
  body.assembly-working .mbar {display:none}
}
}
