/* Approved first-prototype composition, with the complete source configurator. */
@media screen {
:root {--studio-stage:var(--surface-2);--studio-choice:var(--y-06);--studio-border:var(--line)}
:root[data-theme="light"] #kf {
  --bg:#f8f9f6;--surface:#fff;--surface-2:#f0f2ed;--fg:#222823;--fg-2:#4c554d;--white:#222823;
  --muted:#626b62;--accent:#53694a;--cta:#e9c74a;--cta-hover:#daba35;--cta-ink:#222823;--sel:#222823;
  --line:#dde1d9;--rule:#dde1d9;--rule-soft:#dde1d9;--studio-border:#dde1d9;--studio-stage:#eaece5;--studio-choice:#f5f5eb;
}
#kf.studio-kf {
  display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,3fr);
  grid-template-areas:"track track" "stage steps" "stage actions" "summary summary";
  grid-template-rows:76px minmax(0,552px) 88px 84px;gap:0;
  height:auto;min-height:0;max-height:none;overflow:clip;
  background:var(--surface);border:1px solid var(--studio-border);border-radius:18px;
  font:400 14px/1.6 var(--sans);scroll-margin-top:18px;
}
#kf.studio-kf .kf-track {padding:0 26px;margin:0;border-bottom:1px solid var(--studio-border);background:var(--surface);scrollbar-width:none}
#kf.studio-kf .kf-tr-l {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:75px;gap:12px;padding:0}
#kf.studio-kf .kf-tr-l li+li::before {display:none}
#kf.studio-kf .kf-tr-b {position:relative;display:flex;align-items:center;gap:9px;height:75px;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none;background:none;color:var(--muted)}
#kf.studio-kf .kf-tr-im,#kf.studio-kf .kf-tr-b small,#kf.studio-kf .kf-tr-n {display:none}
#kf.studio-kf .kf-tr-tx {display:block;min-width:0}
#kf.studio-kf .kf-tr-b b {font:500 12px/1.5 var(--sans);color:var(--muted)}
.studio-step-number {width:25px;height:25px;display:flex;flex:none;align-items:center;justify-content:center;border:1px solid var(--studio-border);border-radius:50%;color:var(--muted);font:400 12px/1 var(--sans);font-variant-numeric:tabular-nums}
#kf.studio-kf .kf-tr-b[aria-current="step"] {background:none;box-shadow:none}
#kf.studio-kf .kf-tr-b[aria-current="step"] b {color:var(--fg);font-weight:750}
#kf.studio-kf .kf-tr-b[aria-current="step"] .studio-step-number {background:var(--fg);border-color:var(--fg);color:var(--surface)}
#kf.studio-kf .kf-tr-b[aria-current="step"]::after {content:"";position:absolute;height:3px;bottom:0;left:0;right:0;background:var(--cta)}
#kf.studio-kf .kf-stage {position:relative;grid-area:stage;display:flex;flex-direction:column;gap:0;min-height:0;height:100%;max-height:100%;align-self:stretch;overflow:hidden;padding:14px 12px 16px;margin:0;background:var(--studio-stage);border:0;border-right:1px solid var(--studio-border);border-radius:0}
#kf.studio-kf .kf-stage>.sheet-tag {display:none}
#kf.studio-kf .kf-stop {display:flex;flex:none;flex-direction:column;flex-wrap:nowrap;gap:8px;align-items:stretch;padding:0 0 10px;position:relative;z-index:4}
#kf.studio-kf .kf-bar {display:flex;flex:none;width:100%;border:0;border-radius:7px;padding:4px;background:color-mix(in srgb,var(--fg) 7%,transparent)}
#kf.studio-kf .kf-bar button {flex:1;min-width:0;min-height:38px;padding:7px 6px;font:600 10px/1.4 var(--sans);color:var(--fg-2);text-transform:none;letter-spacing:0;border:0;border-radius:5px;background:none;box-shadow:none}
#kf.studio-kf .kf-bar button[aria-pressed="true"] {color:var(--fg);background:var(--surface)}
#kf.studio-kf .kf-stools {display:flex;flex:none;flex-wrap:wrap;width:100%;gap:5px;justify-content:center;align-items:center}
#kf.studio-kf .kf-hist6 {display:flex;gap:4px}
#kf.studio-kf .kf-hist6 .btn {width:32px;min-width:32px;min-height:36px;padding:6px;border:0;background:color-mix(in srgb,var(--surface) 72%,transparent);border-radius:5px}
#kf.studio-kf .kf-hist6 svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#kf.studio-kf .kf-tb {padding:6px 8px;min-height:36px;border:0;background:color-mix(in srgb,var(--surface) 72%,transparent);border-radius:5px;color:var(--fg);font:600 10px/1.4 var(--sans);white-space:nowrap}
#kf.studio-kf .kf-view-box {flex:1 1 0;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative}
#kf.studio-kf #kf-svgbox {flex:1;min-height:0;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
#kf.studio-kf #kf-svgbox svg {width:100%;height:100%;max-height:none}
#kf.studio-kf #kf-3d {height:100%;flex:1;min-height:0;overflow:auto}
#kf.studio-kf #kf-photo {height:100%;max-height:100%;flex:1;min-height:0;overflow:auto}
#kf.studio-kf .kf-3d-bar {display:flex;flex-wrap:wrap;gap:5px}
#kf.studio-kf .kf-3d-bar .btn {min-height:34px;padding:6px 8px;font-size:10px}
#kf.studio-kf .kf-inter.kf-pop {left:0;right:0;bottom:0;padding:12px;max-height:360px;overflow-y:auto;z-index:9;background:var(--surface);border:1px solid var(--studio-border);box-shadow:0 12px 28px #0002}
#kf.studio-kf .kf-pop-cap {font:400 10px/1.6 var(--sans)}
#kf.studio-kf #dA-lt {left:0;right:0;bottom:0;z-index:9;max-height:min(360px,100%);overflow:auto;padding:14px;background:var(--surface);color:var(--fg);border:1px solid var(--studio-border);border-radius:8px;box-shadow:0 12px 28px #0002}
#kf.studio-kf #dA-lt .kf-itb {color:var(--fg);background:var(--bg);border-color:var(--studio-border);font:500 11px/1.5 var(--sans)}
#kf.studio-kf #dA-lt p {font-family:var(--sans);color:var(--muted);line-height:1.6}
.studio-view-bottom {display:flex;justify-content:center;align-items:center;gap:8px;padding-top:12px;flex:none}
.studio-side-switch {display:flex;gap:3px;padding:4px;background:color-mix(in srgb,var(--fg) 7%,transparent);border-radius:7px;flex:1;max-width:240px}
.studio-side-switch button {flex:1;padding:8px 10px;min-height:38px;font:500 11px/1.4 var(--sans);border:0;border-radius:5px;background:none;color:var(--fg-2);cursor:pointer}
.studio-side-switch button[aria-pressed="true"] {background:var(--surface);color:var(--fg)}
.studio-zoom {display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border:0;border-radius:50%;background:var(--surface);color:var(--fg);cursor:pointer}
.studio-zoom svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.studio-zoom:disabled {opacity:.4;cursor:default}
.studio-view-note {flex:none;margin:12px 5px 0;text-align:center;color:var(--muted);font:400 10px/1.6 var(--sans)}
#kf.studio-kf .kf-steps {container:settings / inline-size;grid-area:steps;align-self:stretch;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:26px 32px 24px;background:var(--surface);border:0;border-radius:0;scrollbar-width:thin;scrollbar-color:var(--studio-border) transparent}
.studio-settings-head {margin:0 0 28px;flex:none}
.studio-settings-meta {display:flex;align-items:center;justify-content:space-between;gap:16px;font:400 11px/1.5 var(--sans);color:var(--muted);margin-bottom:6px}
.studio-save-status {display:flex;align-items:center;gap:5px;white-space:nowrap}
.studio-save-status svg {width:13px;height:13px;fill:none;stroke:var(--accent);stroke-width:1.6}
.studio-settings-head h3 {font:600 26px/1.3 var(--sans);letter-spacing:-.025em;color:var(--fg);margin:0}
.studio-settings-head p {font:400 13px/1.7 var(--sans);color:var(--muted);margin:8px 0 0}
#kf.studio-kf .kf-sh {display:none!important}
#kf.studio-kf .kf-step {padding:0;margin:0;border:0;background:none;flex:none}
#kf.studio-kf .kf-step:has(>.kf-pane[hidden]) {display:none}
#kf.studio-kf #kf-steps .kf-pane {display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:32px;padding:0;background:none}
#kf.studio-kf #kf-steps .kf-pane>* {grid-column:1/-1}
#kf.studio-kf #kf-steps .kf-pane>.kf-fs {grid-column:1/-1}
#kf.studio-kf #kf-steps .kf-fs {margin:0;padding:0;min-width:0;gap:10px}
#kf.studio-kf #kf-steps .kf-fs>legend {margin:0 0 12px;font:650 14px/1.5 var(--sans);text-transform:none;letter-spacing:0;color:var(--fg)}
/* Option widths follow the settings panel, including expanded preview and browser zoom. */
#kf.studio-kf #kf-steps .kf-opts:is(.c2,.c3,.c4,.c5),#kf.studio-kf #kf-steps .kf-opts {grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;align-items:stretch;grid-auto-flow:row;grid-auto-columns:auto}
#kf.studio-kf #kf-p1>.kf-fs:first-child,#kf.studio-kf #kf-steps .kf-fs:has(#kf-models) {grid-column:1/-1}
#kf.studio-kf #kf-p1>.kf-fs:first-child .kf-opts {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
#kf#kf.studio-kf :is(.kf-o,input[type="text"],input[type="number"],input[type="search"],select,textarea):not(:has(input:checked)) {border-color:var(--studio-border)}
#kf.studio-kf #kf-steps .kf-o {position:relative;display:grid;grid-template-columns:minmax(0,1fr) 16px;grid-template-areas:"text control";align-items:start;gap:12px;min-width:0;min-height:56px;padding:16px;border:1px solid var(--studio-border);border-radius:8px;background:var(--surface);box-shadow:none;color:var(--fg)}
#kf.studio-kf #kf-steps .kf-o::before,#kf.studio-kf #kf-steps .kf-o::after {display:none}
#kf.studio-kf #kf-steps .kf-o>input {position:static!important;opacity:1!important;clip:auto!important;clip-path:none!important;appearance:auto;grid-area:control;width:16px;height:16px;min-width:16px;margin:2px 0 0;accent-color:var(--fg)}
#kf.studio-kf #kf-steps .kf-o>span {display:block;grid-area:text;min-width:0;overflow-wrap:anywhere;word-break:normal}
#kf.studio-kf #kf-steps .kf-o b {display:block;font:600 13px/1.5 var(--sans);color:var(--fg)}
#kf.studio-kf #kf-steps .kf-o b:has(>i) {display:flex;align-items:center}
#kf.studio-kf #kf-steps .kf-o small {display:block;white-space:normal;overflow:visible;font:400 12px/1.5 var(--sans);color:var(--muted);margin-top:6px}
#kf.studio-kf #kf-steps .kf-o:has(input:checked) {border-color:color-mix(in srgb,var(--accent) 65%,var(--studio-border));background:var(--studio-choice);box-shadow:none}
#kf.studio-kf #kf-steps .kf-o:has(input:checked) b {color:var(--fg)}
#kf.studio-kf #kf-steps .kf-o:has(input:focus-visible) {outline:2px solid var(--accent);outline-offset:3px}
#kf.studio-kf #kf-steps .kf-o:has(input:disabled) {opacity:1;background:var(--bg);border-style:dashed;cursor:not-allowed}
#kf.studio-kf #kf-steps .kf-o:has(input:disabled) b {color:var(--muted)}
#kf.studio-kf .kf-no {font:400 11px/1.65 var(--sans);letter-spacing:0;text-transform:none}
#kf.studio-kf #kf-steps .kf-pane label:not(.kf-o):not(.kf-sw):not(.kf-fl):not(.kf-ml),#kf.studio-kf #kf-steps .kf-pane .kf-custom label {font-family:var(--sans);text-transform:none;letter-spacing:0}
#kf.studio-kf #kf-steps .kf-note,#kf.studio-kf #kf-steps .kf-why {font:400 12px/1.7 var(--sans);color:var(--muted)}
#kf.studio-kf #kf-steps .kf-fs>.kf-note {margin:12px 0 0;max-width:75ch}
#kf.studio-kf #kf-steps .kf-fs>.kf-mcmp-b {display:block;margin:8px 0 0;padding:0;min-height:32px;text-align:left}
#kf.studio-kf #kf-mcmp {max-width:100%;overflow-x:auto;margin-top:12px}
#kf.studio-kf #kf-steps .kf-size,#kf.studio-kf #kf-steps .kf-brand,#kf.studio-kf #kf-steps .kf-cas-sz {grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:16px}
#kf.studio-kf #kf-steps .kf-size>.f,#kf.studio-kf #kf-steps .kf-brand>.f {min-width:0;display:flex;flex-direction:column;gap:8px}
#kf.studio-kf #kf-steps .kf-size>.f>input {margin-top:auto}
#kf.studio-kf #kf-lts {grid-template-columns:repeat(auto-fit,minmax(min(100%,88px),1fr))}
#kf.studio-kf #kf-steps .kf-opts:has(input[data-k$=".th"]) {grid-template-columns:repeat(auto-fit,minmax(min(100%,88px),1fr))}
#kf.studio-kf #kf-ltfs .kf-ltc {margin-top:12px;max-width:280px}
/* A segmented field mirrors the viewer's outside/inside/3D switch. Native radios stay intact. */
#kf.studio-kf .studio-thickness {display:grid;grid-template-columns:minmax(0,1fr) 132px;align-items:start;gap:24px;max-width:760px}
#kf.studio-kf .studio-thickness:not(.is-editable) {grid-template-columns:minmax(0,1fr)}
#kf.studio-kf .studio-thickness:not(.is-editable) .studio-thickness-caption {display:none}
#kf.studio-kf #kf-ltfs .studio-thickness .kf-ltc {margin:0;max-width:none;display:flex;flex-direction:column;gap:8px}
#kf.studio-kf .studio-thickness .kf-ltc[hidden] {display:none!important}
#kf.studio-kf .studio-thickness .kf-ltc>label,.studio-thickness-caption {display:block;font:500 12px/1.5 var(--sans);color:var(--muted);letter-spacing:0;text-transform:none}
.studio-thickness-caption {margin-bottom:8px}
#kf.studio-kf .studio-thickness.is-editable #kf-lts {position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:4px;border-radius:7px;background:color-mix(in srgb,var(--fg) 7%,transparent)}
#kf.studio-kf .studio-thickness.is-editable #kf-lts::before {content:"";position:absolute;z-index:-1;left:4px;top:4px;width:calc((100% - 8px)/6);height:44px;border-radius:5px;background:var(--surface);transform:translateX(calc(var(--choice-index)*100%));transition:transform .18s cubic-bezier(.16,1,.3,1),opacity .12s ease-out}
#kf.studio-kf .studio-thickness.is-custom #kf-lts::before {opacity:0}
#kf.studio-kf .studio-thickness.is-editable #kf-lts .kf-o {display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;gap:0;border:0;border-radius:5px;background:transparent;box-shadow:none;cursor:pointer;text-align:center}
#kf.studio-kf .studio-thickness.is-editable #kf-lts .kf-o>input {position:absolute!important;width:1px;height:1px;min-width:1px;opacity:0!important;clip-path:inset(50%)!important;margin:0}
#kf.studio-kf .studio-thickness.is-editable #kf-lts .kf-o b {font:600 13px/1.5 var(--sans);color:var(--muted);font-variant-numeric:tabular-nums}
#kf.studio-kf .studio-thickness.is-editable #kf-lts .kf-o:has(input:checked) b {color:var(--fg)}
#kf.studio-kf .studio-thickness.is-editable #kf-lts .kf-o:hover b {color:var(--fg)}
#kf.studio-kf #kf-steps .studio-thickness #kf-lt {min-height:52px}
@container settings (max-width:440px) {
  #kf.studio-kf .studio-thickness {grid-template-columns:minmax(0,1fr);gap:16px}
  #kf.studio-kf #kf-ltfs .studio-thickness .kf-ltc {display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:16px}
}
@container settings (max-width:280px) {
  #kf.studio-kf .studio-thickness.is-editable #kf-lts {grid-template-columns:repeat(3,minmax(0,1fr))}
  #kf.studio-kf .studio-thickness.is-editable #kf-lts::before {width:calc((100% - 8px)/3);transform:translate(calc(var(--choice-column)*100%),calc(var(--choice-row)*100%))}
}
@media(prefers-reduced-motion:reduce) {#kf.studio-kf .studio-thickness.is-editable #kf-lts::before {transition:none}}
/* Two-way choices use the same shared field as the viewer and thickness controls. */
#kf.studio-kf #kf-steps .studio-binary {position:relative;padding:0 0 0 140px;max-width:760px}
#kf.studio-kf #kf-steps .studio-binary>legend {position:absolute;left:0;top:15px;max-width:128px;margin:0}
#kf.studio-kf #kf-steps .studio-binary .kf-opts {position:relative;isolation:isolate;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:4px;border-radius:7px;background:color-mix(in srgb,var(--fg) 7%,transparent)}
#kf.studio-kf #kf-steps .studio-binary .kf-opts::before {content:"";position:absolute;z-index:-1;left:4px;top:4px;bottom:4px;width:calc((100% - 8px)/2);border-radius:5px;background:var(--surface);transform:translateX(calc(var(--choice-index)*100%));transition:transform .18s cubic-bezier(.16,1,.3,1)}
#kf.studio-kf #kf-steps .studio-binary .kf-o {display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;gap:0;border:0;border-radius:5px;background:transparent;box-shadow:none;text-align:center}
#kf.studio-kf #kf-steps .studio-binary .kf-o:has(input:checked),#kf.studio-kf #kf-steps .studio-binary .kf-o:has(input:disabled) {background:transparent}
#kf.studio-kf #kf-steps .studio-binary .kf-o>input {position:absolute!important;width:1px;height:1px;min-width:1px;opacity:0!important;clip-path:inset(50%)!important;margin:0}
#kf.studio-kf #kf-steps .studio-binary .kf-o b {font:600 13px/1.5 var(--sans);color:var(--muted)}
#kf.studio-kf #kf-steps .studio-binary .kf-o:has(input:checked) b {color:var(--fg)}
#kf.studio-kf #kf-steps .studio-binary .kf-o:has(input:disabled) {opacity:.5;cursor:not-allowed}
#kf.studio-kf #kf-steps .studio-binary .kf-o small,#kf.studio-kf #kf-steps .studio-binary .kf-no {display:none}
.studio-binary-note {margin:8px 0 0;font:400 12px/1.6 var(--sans);color:var(--muted)}
@container settings (max-width:600px) {
  #kf.studio-kf #kf-steps .studio-binary {padding:0}
  #kf.studio-kf #kf-steps .studio-binary>legend {position:static;max-width:none;margin:0 0 10px}
}
@container settings (max-width:360px) {
  #kf.studio-kf #kf-steps .studio-binary .kf-o {padding-inline:4px}
  #kf.studio-kf #kf-steps .studio-binary .kf-o b {font-size:12px;white-space:nowrap;overflow-wrap:normal}
}
@media(prefers-reduced-motion:reduce) {#kf.studio-kf #kf-steps .studio-binary .kf-opts::before {transition:none}}
#kf.studio-kf #kf-steps .kf-why {padding:12px 14px;background:var(--bg);border:0;border-radius:7px}
#kf.studio-kf .kf-help {color:var(--muted);font-family:var(--sans)}
#kf.studio-kf .kf-fold {border:1px solid var(--studio-border);border-radius:7px;background:var(--bg);padding:10px 12px}
#kf.studio-kf .kf-fold>summary {color:var(--fg-2);font:500 12px/1.6 var(--sans)}
#kf.studio-kf #kf-steps .kf-pane input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),#kf.studio-kf #kf-steps .kf-pane select {min-height:44px;background:var(--bg);border:1px solid var(--studio-border);color:var(--fg);border-radius:7px;font:400 13px/1.5 var(--sans);padding:10px 12px}
#kf.studio-kf #kf-steps .kf-pane input[type="range"] {min-height:28px;accent-color:var(--accent)}
#kf.studio-kf #kf-steps .kf-size label,#kf.studio-kf .kf-q label {font:500 12px/1.5 var(--sans);color:var(--fg-2)}
#kf.studio-kf #kf-steps [data-show]:not([hidden]) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
#kf.studio-kf #kf-steps [data-show]:not([hidden])>* {grid-column:1/-1}
#kf.studio-kf #kf-steps [data-show$="fin=M"]:not([hidden])>* {grid-column:auto}
#kf.studio-kf #kf-steps [data-show$="fin=M"] .kf-fg {grid-template-columns:repeat(auto-fill,minmax(82px,1fr))}
#kf.studio-kf #kf-steps [data-show$="fin=M"] .kf-mills {grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}
#kf.studio-kf #kf-steps [data-show$="fin=M"] .kf-films {max-height:310px}
#kf.studio-kf #kf-steps [data-show$="fin=M"] .kf-mwrap {max-height:310px}
#kf.studio-kf .kf-fl {border-radius:6px;overflow:hidden}
#kf.studio-kf .kf-fl i {height:56px}
#kf.studio-kf #kf-steps .kf-sws {grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px}
#kf.studio-kf .kf-sw b {font:400 10px/1.4 var(--sans)}
#kf.studio-kf .kf-nav {display:none!important}
.studio-actions {grid-area:actions;display:flex;align-items:center;gap:12px;padding:16px 32px 24px;background:var(--surface);border:0;min-width:0}
.studio-actions button {display:flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 18px;border:0;border-radius:7px;font:650 12px/1.5 var(--sans);cursor:pointer}
.studio-actions svg,.studio-strip svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.studio-prev {color:var(--fg-2);background:var(--surface-2);min-width:112px}
.studio-prev:disabled {opacity:.45;cursor:default}
.studio-next {flex:1;background:var(--cta);color:var(--cta-ink)}
.studio-next:hover {background:var(--cta-hover)}
.studio-strip {grid-area:summary;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 30px;background:var(--surface);border-top:1px solid var(--studio-border);min-width:0}
.studio-strip-info {display:flex;align-items:center;gap:20px;min-width:0}
.studio-strip-info>svg {width:22px;height:28px;color:var(--muted)}
.studio-strip strong {display:block;font:650 12px/1.5 var(--sans);color:var(--fg)}
.studio-strip p {font:400 12px/1.6 var(--sans);color:var(--muted);margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:75ch}
.studio-download {display:flex;align-items:center;gap:10px;border:0;padding:10px 0;background:none;color:var(--fg);font:650 12px/1.5 var(--sans);white-space:nowrap;cursor:pointer}
.studio-download:hover {text-decoration:underline;text-underline-offset:4px}
.studio-final-summary {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;border-top:1px solid var(--studio-border);padding-top:22px}
.studio-final-summary>div {min-width:0}
.studio-final-summary dt {font:400 11px/1.5 var(--sans);color:var(--muted)}
.studio-final-summary dd {margin:4px 0 0;font:500 12px/1.6 var(--sans);color:var(--fg)}
/* Viewer tools stay usable when the model is expanded using the original fullscreen control. */
#kf.studio-kf.kf-app.kf-full {grid-template-columns:minmax(0,1.6fr) minmax(330px,1fr)}
#kf.studio-kf.kf-full:not(.kf-app) .kf-stage {position:fixed;inset:0;z-index:950;width:100%;height:100dvh;max-height:100dvh;padding:16px;border:0;border-radius:0}
#kf.studio-kf.kf-full:not(.kf-app) .kf-stop {max-width:440px;width:100%;margin-inline:auto}
@media(max-width:1199px) {
  #kf.studio-kf {grid-template-columns:minmax(250px,1fr) minmax(0,2.5fr)}
  #kf.studio-kf .kf-steps {padding-inline:24px}.studio-actions {padding-inline:24px}
  #kf.studio-kf #kf-steps .kf-o {padding:12px}.studio-strip p {max-width:55ch}
}
@media(max-width:900px) {
  #kf.studio-kf {grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);grid-template-rows:76px minmax(0,600px) 84px auto}
  #kf.studio-kf .kf-track {padding-inline:16px}#kf.studio-kf .kf-tr-l {gap:8px}
  #kf.studio-kf .kf-tr-b {gap:6px}#kf.studio-kf .kf-tr-b b {font-size:10px}.studio-step-number {width:23px;height:23px;font-size:11px}
  #kf.studio-kf .kf-steps {padding:24px 20px 16px}.studio-actions {padding:16px 20px 20px}.studio-actions button {padding:11px 12px;gap:7px}.studio-prev {min-width:88px}
  #kf.studio-kf #kf-steps .kf-pane,#kf.studio-kf #kf-steps [data-show$="fin=M"]:not([hidden]) {grid-template-columns:minmax(0,1fr)}
  #kf.studio-kf #kf-steps .kf-pane>.kf-fs {grid-column:1/-1!important}
  .studio-strip {padding:18px 20px}.studio-strip-info {gap:12px}.studio-strip p {max-width:36ch}
}
@media(max-width:620px) {
  #kf.studio-kf {grid-template-columns:minmax(0,1fr);grid-template-areas:"track" "stage" "steps" "actions" "summary";grid-template-rows:62px 490px auto auto auto;border-radius:14px}
  #kf.studio-kf .kf-track {padding:0 12px;position:sticky;top:var(--header-h);z-index:6}
  #kf.studio-kf .kf-tr-l {height:61px;gap:3px;grid-template-columns:repeat(7,minmax(0,1fr))}
  #kf.studio-kf .kf-tr-b {height:61px;justify-content:center;flex-direction:column;gap:4px}
  #kf.studio-kf .kf-tr-b b {font-size:8px;white-space:nowrap;line-height:1}.studio-step-number {width:24px;height:24px;font-size:11px}
  #kf.studio-kf .kf-stage {padding:12px 14px 14px;border-right:0;border-bottom:1px solid var(--studio-border);min-height:0;max-height:100%}
  #kf.studio-kf .kf-stop {gap:7px;padding-bottom:7px}.studio-view-bottom {padding-top:8px}.studio-view-note {margin-top:8px}
  #kf.studio-kf #kf-svgbox {height:100%;min-height:0}#kf.studio-kf #kf-svgbox svg {max-height:none}
  #kf.studio-kf .kf-steps {overflow:visible;padding:24px 22px 0;min-height:430px;scroll-margin-top:80px}
  .studio-settings-head {margin-bottom:24px}.studio-settings-head h3 {font-size:24px}.studio-settings-head p {font-size:12px}
  #kf.studio-kf #kf-steps .kf-pane {gap:28px}.studio-settings-meta {font-size:10px}
  #kf.studio-kf #kf-steps .kf-o {padding:14px;min-height:58px}
  .studio-actions {padding:24px 22px;gap:10px}.studio-actions button {min-height:46px;font-size:11px;padding-inline:12px}.studio-prev {min-width:85px}
  .studio-strip {padding:18px;gap:12px;flex-wrap:wrap}.studio-strip-info {width:100%}.studio-strip p {max-width:none;white-space:normal;font-size:11px}.studio-strip-info>svg {width:18px}
  .studio-download {font-size:11px;margin-left:30px;min-height:42px}.studio-final-summary {grid-template-columns:1fr}
  #kf.studio-kf .kf-inter.kf-pop {max-height:280px}
  #kf.studio-kf.kf-app.kf-full {grid-template-columns:minmax(0,1fr);grid-template-rows:62px 620px auto auto auto}
}
@container settings (min-width:720px) {
  #kf.studio-kf #kf-p1>.kf-fs:first-child .kf-opts {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container settings (max-width:640px) {
  #kf.studio-kf #kf-steps [data-show$="fin=M"]:not([hidden]) {grid-template-columns:minmax(0,1fr)}
  #kf.studio-kf #kf-steps [data-show$="fin=M"]:not([hidden])>* {grid-column:1/-1}
  #kf.studio-kf .studio-final-summary {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:360px) {#kf.studio-kf .kf-steps {padding-inline:16px}.studio-actions {padding-inline:16px}.studio-settings-head h3 {font-size:22px}.studio-step-number {width:22px;height:22px}#kf.studio-kf .kf-tr-b b {font-size:7px}}
}
@media print {.studio-settings-head,.studio-actions,.studio-strip,.studio-view-bottom,.studio-view-note {display:none!important}}
