@font-face{font-family:'Alba Mono';src:url('assets/Alba-MonoRegular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
html,body{margin:0;background:var(--fst-page-bg)}
.machine-main-surface{position:absolute;z-index:1;pointer-events:none;display:block}
body,button,input,select,.fst-ui *,.fst-editor-drawer *,.fst-progress *,.fst-preview-quality *,#folder-scan-loader{font-family:'Alba Mono',monospace!important;font-weight:400!important;font-synthesis:none;letter-spacing:0!important}
*{box-sizing:border-box}
button{cursor:pointer} button:focus-visible,input:focus-visible{outline:2px solid var(--fst-thumb-bg)!important;outline-offset:3px}
[hidden]{display:none!important}
.fst-ui{position:fixed!important;inset:0 auto 0 0!important;width:calc(var(--machine-side-width) + 1.2vw)!important;padding:.6vw!important;display:flex;flex-direction:column;gap:.45vw;pointer-events:none}
.fst-ui>*{pointer-events:auto;flex-shrink:0}
.fst-card{overflow:auto;order:0;border:0!important;border-radius:var(--machine-round);min-height:0;height:var(--machine-panel-height);padding:5px 8px;gap:0;display:flex;font-size:var(--machine-ui-font);line-height:1.15}
.machine-inline{display:flex;align-items:center;gap:8px;min-height:20px}
.machine-inline>.fst-label,.machine-inline>div:first-child{font-size:inherit;flex:0 0 72px;margin:0}
.machine-choice,.fst-texture-grid button,.fst-dpi-grid button{padding:0 3px!important;margin:0;min-width:16px;width:auto;height:19px!important;line-height:19px;background:transparent;border:0;border-radius:2px;color:var(--fst-text);font-size:inherit}
.machine-choice.active,.fst-texture-grid button.active,.fst-dpi-grid button.active{background:#fff;color:#202121}
.machine-choice:disabled{opacity:.75;cursor:default}
.machine-textures{margin-top:auto;margin-bottom:33px}
.fst-texture-grid,.fst-dpi-grid{display:flex;gap:8px;margin:0}
.machine-range{display:grid;grid-template-columns:100px 1fr 60px;align-items:center;height:17px;gap:5px;font-size:inherit}
.machine-range>div{display:flex;justify-content:space-between;align-items:center}
.machine-range>span{text-align:right;padding-right:26px}
.machine-range input{margin:0;height:17px}
.fst-ui input[type=range]::-webkit-slider-runnable-track{height:0;background:transparent}
.fst-ui input[type=range]::-moz-range-track{height:0;background:transparent}
.fst-ui input[type=range]::-webkit-slider-thumb{width:11px;height:11px;margin-top:-5px;border:0;background:#fff}
.fst-ui input[type=range]::-moz-range-thumb{width:11px;height:11px;border:0;background:#fff}
.machine-dpi{margin-top:auto;margin-bottom:5px}
.machine-download{order:1;height:44px;border-radius:var(--machine-round);margin:0;font-size:var(--machine-ui-font);text-transform:uppercase}
.machine-open-editor{order:3;margin-top:auto;align-self:flex-start;padding:0 24px;height:44px;border-radius:var(--machine-round);color:var(--machine-muted);text-transform:uppercase}
.fst-preview-quality{order:4;position:static;transform:none;background:transparent;padding:0;display:flex;gap:7px;width:auto;min-height:0}
.fst-preview-quality button{background:var(--fst-panel-bg);border-radius:var(--machine-round);height:44px;min-width:83px;padding:0 16px;font-size:var(--machine-ui-font);color:var(--machine-muted);text-transform:uppercase}
.fst-preview-quality button.active{background:#747474;color:#bcbcbc}
.fst-upload{order:5;border-radius:var(--machine-round);height:200px;min-height:0;padding:7px;display:grid;grid-template-columns:1fr;grid-template-rows:17px 20px 1fr;justify-content:stretch;align-items:stretch;color:var(--machine-muted)}
.machine-upload-title{font-size:var(--machine-ui-font);display:flex;align-items:center;gap:9px;padding-left:6px;white-space:nowrap;color:var(--machine-muted)}
.machine-upload-formats{font-size:var(--machine-ui-font);padding-left:6px;color:var(--machine-muted)}
.fst-upload-zone{min-height:0;height:100%;border-radius:calc(var(--machine-round) - 3px);background:var(--machine-upload-zone);color:var(--machine-muted);font-size:var(--machine-ui-font);gap:0}
.machine-upload-collapsed{display:none!important}
.fst-upload.is-collapsed{height:44px;grid-template-columns:1fr 35%;grid-template-rows:1fr;gap:8px;align-items:center;padding:5px 7px}
.fst-upload.is-collapsed .machine-upload-formats,.fst-upload.is-collapsed .machine-upload-expanded{display:none!important}
.fst-upload.is-collapsed .machine-upload-collapsed{display:block!important}
.fst-upload.is-collapsed .fst-upload-zone{height:100%;border-radius:calc(var(--machine-round) - 3px)}
.machine-download-link{order:2;font-size:11px!important;overflow-wrap:anywhere}
.fst-dark-toggle{top:.7vw;right:.6vw;width:60px;min-width:0;height:32px;background:var(--fst-panel-bg)!important;border-radius:999px}
.fst-dark-toggle:before{content:'';position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:var(--fst-page-bg)}
.fst-editor-drawer{height:var(--machine-editor-height);width:min(var(--machine-editor-width),100vw);z-index:20;resize:horizontal;min-width:280px;max-width:100vw;padding:18px;--fst-text-size:var(--machine-editor-text);--fst-small-text-size:var(--machine-editor-text);font-size:var(--machine-editor-text);border-radius:var(--machine-round) 0 0 var(--machine-round)}
.machine-close{position:sticky;top:0;display:block;width:100%;height:34px;margin-bottom:18px;z-index:2;border:1px solid var(--machine-muted)}
.machine-layout-row{margin-bottom:14px}
.machine-layout-row>div{display:flex;justify-content:space-between;margin-bottom:7px;font-size:var(--machine-editor-text)}
.machine-save-preset{margin:12px 6px 12px 0;padding:0 12px;border:1px solid var(--machine-muted)}
.machine-preset-note{font-size:var(--machine-editor-text);line-height:1.4}
#folder-scan-loader{font-size:12px}
@media(min-width:1700px){.fst-card,.machine-download,.machine-open-editor,.fst-preview-quality button,.machine-upload-title,.machine-upload-formats,.fst-upload-zone{font-size:var(--machine-ui-font)}.fst-card{height:calc(var(--machine-panel-height) * 1.25)}.machine-inline{min-height:23px}.machine-inline>.fst-label,.machine-inline>div:first-child{flex-basis:88px}.machine-textures{margin-bottom:42px}.machine-range{height:21px;grid-template-columns:114px 1fr 74px}.machine-download,.machine-open-editor,.fst-preview-quality button,.fst-upload.is-collapsed{height:55px}.fst-preview-quality button{min-width:104px}.fst-upload{height:250px}.fst-dark-toggle{width:74px;height:40px}.fst-dark-toggle:before{width:32px;height:32px}}
@media(max-width:1179px) and (min-width:800px){.fst-ui{width:calc(var(--machine-side-width) + 2vw)!important}.fst-card{font-size:var(--machine-ui-font)}.machine-inline{gap:3px}.machine-inline>.fst-label,.machine-inline>div:first-child{flex-basis:60px}.machine-range{grid-template-columns:72px 1fr 33px}.machine-range>span{padding:0}.machine-upload-title,.machine-upload-formats,.fst-upload-zone{font-size:var(--machine-ui-font)}.fst-preview-quality{gap:4px}.fst-preview-quality button{min-width:0;flex:1;padding:0 9px;font-size:var(--machine-ui-font)}}
@media(max-width:799px){body{overflow:auto}.fst-ui{position:absolute!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:430px;padding:12px!important;gap:7px}.fst-card{height:210px}.machine-download{height:38px}.machine-open-editor{margin-top:0;height:34px}.fst-preview-quality{position:static;display:flex;width:auto;margin-left:auto;margin-top:-41px;height:34px;max-width:65%}.fst-preview-quality button{height:34px;min-width:0;padding:0 10px;font-size:var(--machine-ui-font)}.fst-upload{height:78px;grid-template-columns:1fr 40%;grid-template-rows:1fr 1fr}.fst-upload-zone{grid-column:2;grid-row:1/3;font-size:var(--machine-ui-font)}.fst-upload.is-collapsed{height:44px;grid-template-columns:1fr 35%;grid-template-rows:1fr}.fst-upload.is-collapsed .fst-upload-zone{grid-row:1}.fst-dark-toggle{top:16px;right:18px;width:48px;height:26px;z-index:2}.fst-dark-toggle:before{width:18px;height:18px}.machine-printers{padding-right:50px}.machine-textures{margin-bottom:26px}.fst-editor-drawer{resize:none;width:min(var(--machine-editor-width),100vw)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.machine-error-notice{position:fixed;top:52px;left:50%;transform:translateX(-50%);z-index:25;max-width:calc(100vw - 32px);padding:12px 18px;background:var(--fst-panel-bg);color:var(--fst-text);border-radius:var(--machine-round);font-family:'Alba Mono',monospace;font-weight:400;font-size:13px}

/* User-controlled dimensions and theme colors take precedence over responsive defaults. */
.fst-upload{width:var(--machine-upload-width);height:var(--machine-upload-height)}
.fst-upload.is-collapsed{height:var(--machine-upload-collapsed-height)}
.machine-choice.active,.fst-texture-grid button.active,.fst-dpi-grid button.active{background:var(--fst-active-bg);color:var(--fst-active-text)}
.fst-preview-quality button.active{background:var(--machine-quality-bg);color:var(--machine-quality-text)}
.fst-ui input[type=range]::-webkit-slider-thumb{background:var(--fst-thumb-bg)}
.fst-ui input[type=range]::-moz-range-thumb{background:var(--fst-thumb-bg)}
.fst-dark-toggle{--toggle-base-width:60px;--toggle-base-height:32px;width:calc(var(--toggle-base-width)*var(--machine-toggle-scale));height:calc(var(--toggle-base-height)*var(--machine-toggle-scale));background:var(--machine-toggle-track)!important}
.fst-dark-toggle:before{width:calc(var(--toggle-base-height)*var(--machine-toggle-scale) - 8px);height:calc(var(--toggle-base-height)*var(--machine-toggle-scale) - 8px);background:var(--machine-toggle-knob)}
.machine-view-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.machine-view-actions button{flex:1;padding:0 8px;border:1px solid var(--machine-muted)}
.machine-view-actions>div{width:100%;font-size:var(--machine-editor-text);line-height:1.3}
.machine-visibility{display:flex;flex-wrap:wrap;gap:8px 12px;margin-bottom:18px;font-size:var(--machine-editor-text)}
.machine-visibility input{accent-color:var(--fst-text)}
.machine-palette{margin:16px 0;border-top:1px solid var(--machine-muted);padding-top:12px}
.machine-palette summary{cursor:pointer;margin-bottom:14px;font-size:var(--machine-editor-text)}
@media(min-width:1700px){.fst-dark-toggle{--toggle-base-width:74px;--toggle-base-height:40px}}
@media(max-width:799px){.fst-ui{height:auto}.fst-upload:not(.is-collapsed){height:calc(var(--machine-upload-height)*.39)}.fst-dark-toggle{--toggle-base-width:48px;--toggle-base-height:26px}.fst-card{height:var(--machine-panel-height)}.machine-printers{padding-right:calc(48px*var(--machine-toggle-scale))}}
@media(max-width:799px){.fst-ui{inset:0 0 auto 0!important;bottom:auto!important}}

.fst-card{height:var(--machine-panel-height)}
@media(max-width:1179px) and (min-width:800px){.fst-card{font-size:var(--machine-ui-font)}.machine-inline>.fst-label,.machine-inline>div:first-child{flex-basis:clamp(42px,5.084vw,60px)}.machine-choice,.fst-texture-grid button,.fst-dpi-grid button{padding:0 2px!important}}

.machine-detail-loader{position:absolute;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;background:rgba(0,0,0,.15);border-radius:var(--machine-round);font-family:'Alba Mono',monospace;font-weight:400}
.machine-detail-loader>div{display:flex;align-items:center;gap:10px;background:var(--fst-panel-bg);color:var(--fst-text);padding:12px 14px;border-radius:var(--machine-round);font-size:clamp(8px,1vw,13px)}
.machine-detail-spinner{width:16px;height:16px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:machine-detail-spin .8s linear infinite}
@keyframes machine-detail-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.machine-detail-spinner{animation:none}}

/* Page edges and panel spacing share the same values as the canvas layout. */
.fst-ui{width:calc(var(--machine-side-width) + var(--machine-margin-left))!important;padding:var(--machine-margin-top) 0 var(--machine-margin-bottom) var(--machine-margin-left)!important;gap:var(--machine-panel-gap)}
.fst-dark-toggle{top:var(--machine-margin-top);right:var(--machine-margin-right)}
.fst-editor-drawer{top:var(--machine-margin-top);right:var(--machine-margin-right);width:min(var(--machine-editor-width),calc(100vw - var(--machine-margin-left) - var(--machine-margin-right)));height:min(var(--machine-editor-height),calc(100vh - var(--machine-margin-top) - var(--machine-margin-bottom)));min-width:min(280px,calc(100vw - var(--machine-margin-left) - var(--machine-margin-right)))}
.machine-spacing{margin:0 0 20px;border-top:1px solid var(--machine-muted);border-bottom:1px solid var(--machine-muted);padding:14px 0}
.machine-spacing summary{cursor:pointer;margin-bottom:16px;font-size:var(--machine-editor-text)}
.machine-spacing>button{width:100%;border:1px solid var(--machine-muted)}
@media(max-width:799px){.fst-ui{width:100%!important;padding:var(--machine-margin-top) var(--machine-margin-right) var(--machine-margin-bottom) var(--machine-margin-left)!important}.fst-editor-drawer{width:min(var(--machine-editor-width),calc(100vw - var(--machine-margin-left) - var(--machine-margin-right)))}.fst-preview-quality{margin-top:calc(-34px - var(--machine-panel-gap))}}

/* Editors occupy the free sidebar space between Download and the bottom actions. */
.machine-preset-name{height:30px;min-height:30px;line-height:22px;font-size:var(--machine-ui-font);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
.machine-textures{margin-top:22px;margin-bottom:20px}
.machine-download{background:var(--machine-download-bg)!important;color:var(--machine-download-text)!important}
.fst-dark-toggle:before{transform:translateX(0);transition:transform 220ms ease,background-color 220ms ease}
.fst-dark-toggle.active:before{transform:translateX(calc((var(--toggle-base-width) - var(--toggle-base-height))*var(--machine-toggle-scale)))}
.fst-ui{overflow-y:auto;scrollbar-width:thin}
.machine-editor-actions{order:3;display:flex;align-items:stretch;gap:5px;margin-top:auto}
.machine-editor-actions>.fst-btn{height:44px;min-width:0;padding:0 8px;border-radius:var(--machine-round);font-size:var(--machine-ui-font);color:var(--fst-text);line-height:1.2;white-space:normal}
.machine-editor-actions>.machine-open-editor{order:0;flex:1;margin:0;align-self:auto}
.machine-upload-preset{flex:1.1}
.machine-editor-actions>.machine-interface-button{flex:0 0 34px;padding:0 5px}
.machine-interface-button.active{background:var(--machine-quality-bg);color:var(--machine-quality-text)}
.fst-editor-drawer.machine-inline-editor{position:relative;inset:auto;order:2;flex:1 1 0;min-height:180px;max-height:var(--machine-editor-height);height:auto;width:min(100%,var(--machine-editor-width));min-width:0;max-width:100%;resize:none;border-radius:var(--machine-round);padding:12px 10px;box-shadow:none;overflow:hidden;flex-direction:column;gap:10px;margin-top:auto}
.machine-editor-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 4px}
.machine-editor-scroll [data-effect-control]{flex:none}
.machine-preset-footer{flex:none;border-top:1px solid var(--machine-muted);padding-top:8px;font-size:var(--machine-editor-text)}
.machine-preset-slots{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.machine-preset-slots select{min-width:65px;width:auto;padding:0 10px}
.machine-preset-actions{display:flex;gap:6px}
.machine-preset-actions button{flex:1;min-width:0;padding:0 6px;white-space:normal;font-size:clamp(9px,var(--machine-editor-text),15px);border:1px solid var(--machine-muted);line-height:1.2}
.machine-preset-footer>[role=status]{margin-top:6px!important;font-size:11px!important;line-height:1.25}
@media(min-width:1700px){.machine-editor-actions>.fst-btn{height:55px;font-size:var(--machine-ui-font)}.machine-preset-name{height:34px;min-height:34px}}
@media(max-width:799px){.fst-ui{overflow:visible}.fst-preview-quality{margin:0;width:100%;max-width:none;height:34px}.fst-preview-quality button{flex:1}.machine-editor-actions{margin-top:0}.machine-editor-actions>.fst-btn{height:34px;font-size:var(--machine-ui-font)}.fst-editor-drawer.machine-inline-editor{flex:0 0 auto;height:min(360px,var(--machine-editor-height));max-height:var(--machine-editor-height);width:100%;margin-top:0}.machine-preset-name{height:24px;min-height:24px}.machine-textures{margin-top:22px;margin-bottom:20px}}

.machine-editor-menu{--fst-text-size:var(--machine-editor-text);--fst-small-text-size:var(--machine-editor-text);z-index:60;font-family:'Alba Mono',monospace!important;font-weight:400!important}

/* One shared text size for every sidebar label and action at every breakpoint. */
.fst-ui{--machine-ui-font:var(--fst-text-size);font-size:var(--machine-ui-font)}
.machine-preset-name{text-transform:uppercase;line-height:1.25}
.machine-mobile-preview-slot{display:none;pointer-events:none}
.machine-download-link{display:none!important}
[data-effect-control]>div{gap:8px}
[data-effect-control]>div>span:last-child{flex-shrink:0}
@media(max-width:799px){
  html,body{overflow-x:hidden}
  .fst-ui{--machine-ui-font:clamp(12px,var(--fst-text-size),15px);gap:max(6px,var(--machine-panel-gap));padding-bottom:max(8px,env(safe-area-inset-bottom),var(--machine-margin-bottom))!important}
  .fst-card{order:0;height:max(270px,var(--machine-panel-height));padding:8px;gap:4px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:36px 36px 22px 36px 32px 32px 36px;align-content:start;overflow-x:hidden}
  .machine-inline{min-width:0;min-height:32px;gap:4px}
  .machine-inline>.fst-label,.machine-inline>div:first-child{flex-basis:58px}
  .machine-choice,.fst-texture-grid button,.fst-dpi-grid button{height:32px!important;line-height:32px;min-width:28px;padding:0 4px!important}
  .machine-presets>.machine-choice{flex:1}
  .machine-printers{padding-right:calc(48px*var(--machine-toggle-scale))}
  .machine-preset-name{height:22px;min-height:22px;line-height:22px}
  .machine-textures,.machine-dpi{margin:0}
  .fst-texture-grid,.fst-dpi-grid{gap:6px}
  .fst-texture-grid button,.fst-dpi-grid button{min-width:36px}
  .machine-range{height:32px;grid-template-columns:100px minmax(0,1fr) 48px;gap:8px}
  .machine-range>span{padding-right:0}
  .machine-range input{height:32px;touch-action:pan-y}
  .fst-upload{order:1;width:100%;grid-template-columns:minmax(0,1fr) minmax(94px,36%);grid-template-rows:1fr 1fr;padding:8px;gap:4px}
  .machine-upload-title{grid-column:1;grid-row:1;white-space:normal;gap:6px;padding-left:2px}
  .machine-upload-formats{grid-column:1;grid-row:2;padding-left:2px;line-height:1.3}
  .fst-upload-zone{grid-column:2;grid-row:1/3;min-height:44px;padding:0 8px}
  .fst-upload.is-collapsed{height:max(44px,var(--machine-upload-collapsed-height));grid-template-columns:minmax(0,1fr) minmax(94px,36%);grid-template-rows:1fr}
  .fst-upload.is-collapsed .fst-upload-zone{grid-row:1;min-height:34px}
  .fst-preview-quality{order:2;margin:0;width:100%;max-width:none;height:44px;gap:6px}
  .fst-preview-quality button{height:44px;min-width:0;padding:0 8px;flex:1}
  .machine-mobile-preview-slot{display:block;order:3;height:var(--machine-mobile-preview-height);width:100%;min-width:0}
  .machine-download{order:4;height:44px}
  .fst-editor-drawer.machine-inline-editor{order:5;height:min(var(--machine-editor-height),60svh);min-height:260px;max-height:none;flex:none;width:100%;padding:12px;margin-top:0}
  .machine-editor-actions{order:6;margin:0;gap:6px}
  .machine-editor-actions>.fst-btn{height:44px;padding:0 8px}
  .machine-editor-actions>.machine-interface-button{flex-basis:44px}
  .machine-editor-scroll input[type=range]{height:32px;touch-action:pan-y}
  .machine-preset-actions button,.machine-view-actions button{min-height:44px}
  .fst-ui input[type=range]::-webkit-slider-thumb{width:16px;height:16px;margin-top:-8px}
  .fst-ui input[type=range]::-moz-range-thumb{width:16px;height:16px}
  .fst-ui select{min-height:36px}
}
@media(max-width:359px){.fst-ui{--machine-ui-font:clamp(12px,var(--fst-text-size),13px)}.machine-inline{gap:3px}}

@media(max-width:799px){.fst-upload:not(.is-collapsed){height:clamp(88px,calc(var(--machine-upload-height)*.48),150px)}}
@media(min-width:800px) and (max-width:1179px){.fst-ui{--machine-ui-font:min(var(--fst-text-size),clamp(9px,1.017vw,12px))}.machine-presets>.machine-choice{min-width:12px;padding:0 1px!important}}

/* Scroll remains available, with no native scrollbar covering range endpoints. */
.fst-ui,.machine-editor-scroll{scrollbar-width:none}
.fst-ui::-webkit-scrollbar,.machine-editor-scroll::-webkit-scrollbar{display:none;width:0;height:0}
.machine-editor-scroll{padding:4px 8px 8px}
.machine-preset-footer{position:static;margin-top:16px}
.machine-preset-name{padding-top:4px;line-height:1.15}
.fst-editor-drawer{--machine-editor-text:var(--machine-ui-font);--fst-text-size:var(--machine-ui-font);--fst-small-text-size:var(--machine-ui-font);font-size:var(--machine-ui-font);text-transform:uppercase}
.fst-editor-drawer *{font-size:var(--machine-ui-font)!important;text-transform:uppercase}
.machine-editor-menu{text-transform:uppercase}

.fst-editor-drawer .machine-preset-footer>[role=status]{font-size:var(--machine-ui-font)!important}

/* Direct value entry keeps the same type and alignment as the parameter labels. */
.fst-editor-drawer .machine-parameter-value{appearance:none;min-width:0;width:6ch;flex:0 0 6ch;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:var(--fst-text);font:inherit;text-align:right;line-height:inherit}
.fst-editor-drawer .machine-parameter-value:focus-visible{outline:.5px solid currentColor!important;outline-offset:2px}
.fst-editor-drawer [data-effect-control] input[type=range]::-webkit-slider-runnable-track{height:.5px;background:#fff;border:0;border-radius:0}
.fst-editor-drawer [data-effect-control] input[type=range]::-moz-range-track{height:.5px;background:#fff;border:0;border-radius:0}

/* Native file picker and fixed mobile presentation, including landscape. */
html.machine-mobile body{overflow:auto}html.machine-mobile .fst-ui{position:absolute!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:430px;padding:12px!important;gap:7px}html.machine-mobile .fst-card{height:210px}html.machine-mobile .machine-download{height:38px}html.machine-mobile .machine-open-editor{margin-top:0;height:34px}html.machine-mobile .fst-preview-quality{position:static;display:flex;width:auto;margin-left:auto;margin-top:-41px;height:34px;max-width:65%}html.machine-mobile .fst-preview-quality button{height:34px;min-width:0;padding:0 10px;font-size:var(--machine-ui-font)}html.machine-mobile .fst-upload{height:78px;grid-template-columns:1fr 40%;grid-template-rows:1fr 1fr}html.machine-mobile .fst-upload-zone{grid-column:2;grid-row:1/3;font-size:var(--machine-ui-font)}html.machine-mobile .fst-upload.is-collapsed{height:44px;grid-template-columns:1fr 35%;grid-template-rows:1fr}html.machine-mobile .fst-upload.is-collapsed .fst-upload-zone{grid-row:1}html.machine-mobile .fst-dark-toggle{top:16px;right:18px;width:48px;height:26px;z-index:2}html.machine-mobile .fst-dark-toggle:before{width:18px;height:18px}html.machine-mobile .machine-printers{padding-right:50px}html.machine-mobile .machine-textures{margin-bottom:26px}html.machine-mobile .fst-editor-drawer{resize:none;width:min(var(--machine-editor-width),100vw)}
html.machine-mobile .fst-ui{height:auto}html.machine-mobile .fst-upload:not(.is-collapsed){height:calc(var(--machine-upload-height)*.39)}html.machine-mobile .fst-dark-toggle{--toggle-base-width:48px;--toggle-base-height:26px}html.machine-mobile .fst-card{height:var(--machine-panel-height)}html.machine-mobile .machine-printers{padding-right:calc(48px*var(--machine-toggle-scale))}
html.machine-mobile .fst-ui{inset:0 0 auto 0!important;bottom:auto!important}
html.machine-mobile .fst-ui{width:100%!important;padding:var(--machine-margin-top) var(--machine-margin-right) var(--machine-margin-bottom) var(--machine-margin-left)!important}html.machine-mobile .fst-editor-drawer{width:min(var(--machine-editor-width),calc(100vw - var(--machine-margin-left) - var(--machine-margin-right)))}html.machine-mobile .fst-preview-quality{margin-top:calc(-34px - var(--machine-panel-gap))}
html.machine-mobile .fst-ui{overflow:visible}html.machine-mobile .fst-preview-quality{margin:0;width:100%;max-width:none;height:34px}html.machine-mobile .fst-preview-quality button{flex:1}html.machine-mobile .machine-editor-actions{margin-top:0}html.machine-mobile .machine-editor-actions>.fst-btn{height:34px;font-size:var(--machine-ui-font)}html.machine-mobile .fst-editor-drawer.machine-inline-editor{flex:0 0 auto;height:min(360px,var(--machine-editor-height));max-height:var(--machine-editor-height);width:100%;margin-top:0}html.machine-mobile .machine-preset-name{height:24px;min-height:24px}html.machine-mobile .machine-textures{margin-top:22px;margin-bottom:20px}
html.machine-mobile html, html.machine-mobile body{overflow-x:hidden}html.machine-mobile .fst-ui{--machine-ui-font:clamp(12px,var(--fst-text-size),15px);gap:max(6px,var(--machine-panel-gap));padding-bottom:max(8px,env(safe-area-inset-bottom),var(--machine-margin-bottom))!important}html.machine-mobile .fst-card{order:0;height:max(270px,var(--machine-panel-height));padding:8px;gap:4px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:36px 36px 22px 36px 32px 32px 36px;align-content:start;overflow-x:hidden}html.machine-mobile .machine-inline{min-width:0;min-height:32px;gap:4px}html.machine-mobile .machine-inline>.fst-label, html.machine-mobile .machine-inline>div:first-child{flex-basis:58px}html.machine-mobile .machine-choice, html.machine-mobile .fst-texture-grid button, html.machine-mobile .fst-dpi-grid button{height:32px!important;line-height:32px;min-width:28px;padding:0 4px!important}html.machine-mobile .machine-presets>.machine-choice{flex:1}html.machine-mobile .machine-printers{padding-right:calc(48px*var(--machine-toggle-scale))}html.machine-mobile .machine-preset-name{height:22px;min-height:22px;line-height:22px}html.machine-mobile .machine-textures, html.machine-mobile .machine-dpi{margin:0}html.machine-mobile .fst-texture-grid, html.machine-mobile .fst-dpi-grid{gap:6px}html.machine-mobile .fst-texture-grid button, html.machine-mobile .fst-dpi-grid button{min-width:36px}html.machine-mobile .machine-range{height:32px;grid-template-columns:100px minmax(0,1fr) 48px;gap:8px}html.machine-mobile .machine-range>span{padding-right:0}html.machine-mobile .machine-range input{height:32px;touch-action:pan-y}html.machine-mobile .fst-upload{order:1;width:100%;grid-template-columns:minmax(0,1fr) minmax(94px,36%);grid-template-rows:1fr 1fr;padding:8px;gap:4px}html.machine-mobile .machine-upload-title{grid-column:1;grid-row:1;white-space:normal;gap:6px;padding-left:2px}html.machine-mobile .machine-upload-formats{grid-column:1;grid-row:2;padding-left:2px;line-height:1.3}html.machine-mobile .fst-upload-zone{grid-column:2;grid-row:1/3;min-height:44px;padding:0 8px}html.machine-mobile .fst-upload.is-collapsed{height:max(44px,var(--machine-upload-collapsed-height));grid-template-columns:minmax(0,1fr) minmax(94px,36%);grid-template-rows:1fr}html.machine-mobile .fst-upload.is-collapsed .fst-upload-zone{grid-row:1;min-height:34px}html.machine-mobile .fst-preview-quality{order:2;margin:0;width:100%;max-width:none;height:44px;gap:6px}html.machine-mobile .fst-preview-quality button{height:44px;min-width:0;padding:0 8px;flex:1}html.machine-mobile .machine-mobile-preview-slot{display:block;order:3;height:var(--machine-mobile-preview-height);width:100%;min-width:0}html.machine-mobile .machine-download{order:4;height:44px}html.machine-mobile .fst-editor-drawer.machine-inline-editor{order:5;height:min(var(--machine-editor-height),60svh);min-height:260px;max-height:none;flex:none;width:100%;padding:12px;margin-top:0}html.machine-mobile .machine-editor-actions{order:6;margin:0;gap:6px}html.machine-mobile .machine-editor-actions>.fst-btn{height:44px;padding:0 8px}html.machine-mobile .machine-editor-actions>.machine-interface-button{flex-basis:44px}html.machine-mobile .machine-editor-scroll input[type=range]{height:32px;touch-action:pan-y}html.machine-mobile .machine-preset-actions button, html.machine-mobile .machine-view-actions button{min-height:44px}html.machine-mobile .fst-ui input[type=range]::-webkit-slider-thumb{width:16px;height:16px;margin-top:-8px}html.machine-mobile .fst-ui input[type=range]::-moz-range-thumb{width:16px;height:16px}html.machine-mobile .fst-ui select{min-height:36px}

html.machine-mobile .fst-upload:not(.is-collapsed){height:clamp(88px,calc(var(--machine-upload-height)*.48),150px)}
html.machine-mobile .fst-preview-quality,html.machine-mobile .fst-dark-toggle{display:none!important}
html.machine-mobile .machine-printers{padding-right:0}
html.machine-mobile .fst-upload{position:relative}
html.machine-mobile .fst-upload input[type=file]{display:block!important;position:absolute;inset:0;width:100%;height:100%;opacity:0;z-index:2;cursor:pointer}
.machine-mobile-cancel{width:100%;margin-top:12px;font-size:var(--fst-text-size);padding:8px;min-height:44px}
