@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2) format("woff2-variations");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--paper: #faf9f6;--surface: #ffffff;--fill: #f4f3ef;--fill-strong: #ebeae5;--line: #e6e4de;--line-strong: #cfccc4;--ink: #15171c;--ink-2: #4a505c;--ink-3: #5f6572;--accent: #0e7a52;--accent-strong: #0b6e48;--accent-hover: #0a6342;--accent-soft: #e6f4ec;--accent-line: #b7dcc8;--st-printing: #0b6e48;--st-printing-bg: #e6f4ec;--st-paused: #8a4b00;--st-paused-bg: #fdf1dc;--st-error: #b42318;--st-error-bg: #fdecea;--st-swap: #2646b5;--st-swap-bg: #e8edfc;--st-idle: #4a505c;--st-idle-bg: #efeee9;--r-sm: 6px;--r-md: 10px;--r-lg: 16px;--r-pill: 999px;--shadow-1: 0 1px 2px rgba(21, 23, 28, .05);--shadow-2: 0 1px 2px rgba(21, 23, 28, .04), 0 8px 20px -6px rgba(21, 23, 28, .1);--shadow-3: 0 16px 40px -8px rgba(21, 23, 28, .22);--s-1: 4px;--s-2: 8px;--s-3: 12px;--s-4: 16px;--s-5: 24px;--s-6: 32px;--s-7: 48px;--fs-xs: 12px;--fs-sm: 13px;--fs-md: 14px;--fs-lg: 16px;--fs-xl: 20px;--fs-2xl: 28px;--fs-3xl: 36px;--font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;--bg-page: var(--paper);--bg-card: var(--surface);--bg-card-hover: var(--surface);--bg-panel: var(--paper);--bg-muted: var(--fill);--bg-sidebar: var(--paper);--bg-input: var(--surface);--bg-hover: var(--fill);--bg-secondary: var(--fill);--bg-surface: var(--surface);--border: var(--line);--border-subtle: var(--fill);--border-strong: var(--line-strong);--text-primary: var(--ink);--text-secondary: var(--ink-2);--text-muted: var(--ink-3);--accent-bg: var(--accent-soft);--accent-text: var(--accent-strong);--accent-border: var(--accent-line);--success: var(--st-printing);--success-bg: var(--st-printing-bg);--warning: var(--st-paused);--warning-bg: var(--st-paused-bg);--danger: var(--st-error);--danger-bg: var(--st-error-bg);--info: var(--st-swap);--info-bg: var(--st-swap-bg);--swapmod: var(--st-swap);--swapmod-bg: var(--st-swap-bg);--green: var(--accent);--orange: #b45309;--shadow-sm: var(--shadow-1);--shadow: var(--shadow-1);--shadow-md: var(--shadow-2);--radius-sm: var(--r-sm);--radius: var(--r-sm);--radius-md: var(--r-md);--radius-lg: var(--r-lg);font-family:var(--font);color-scheme:light}*{box-sizing:border-box}input,select,textarea{background:var(--bg-input);color:var(--text-primary);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px;font:inherit}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 0%,#e2e8f0 0%,var(--bg-page) 65%)}.auth-card{width:min(100%,400px);display:flex;flex-direction:column;gap:12px;padding:32px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-card);box-shadow:var(--shadow-md)}.auth-card h1{margin:8px 0 0;font-size:23px;color:var(--text-primary)}.auth-card p{margin:0 0 8px;color:var(--text-secondary)}.auth-brand{color:var(--text-primary);font-size:20px;font-weight:700}.auth-card label{font-weight:600;color:var(--text-secondary);font-size:13px}.auth-card input{width:100%;padding:11px 12px;background:var(--bg-input);color:var(--text-primary);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit}.auth-card input:focus{outline:2px solid var(--accent);outline-offset:1px}.auth-error{color:#dc2626;font-size:13px}.sidebar-logout{width:100%}.agent-details{display:grid;gap:10px;margin:20px 0 0}.agent-details div{display:flex;justify-content:space-between;gap:12px}.agent-details dt{color:var(--text-secondary)}.agent-details dd{margin:0;font-weight:600;text-align:right;color:var(--text-primary)}.agent-pair-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:18px}.pairing-code-panel{display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:min(100%,420px);padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-panel)}.pairing-code-panel>code{font-size:23px;font-weight:700;letter-spacing:.1em;overflow-wrap:anywhere;color:var(--accent-text)}body{margin:0;background:var(--bg-page);color:var(--text-primary);min-height:100vh;font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}a.muted{color:var(--text-muted)}.app-layout{display:flex;min-height:100vh}.app-main{flex:1;min-width:0;display:flex;flex-direction:column}.sidebar{width:220px;flex-shrink:0;background:var(--bg-sidebar);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px 0;position:sticky;top:0;height:100vh}.mobile-app-bar,.sidebar-backdrop{display:none}.sidebar-brand{display:flex;align-items:center;gap:8px;padding:0 16px 16px;border-bottom:1px solid var(--border);margin-bottom:12px}.sidebar-logo{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}.sidebar-brand-icon{color:var(--accent)}.sidebar-title{font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--text-primary)}.sidebar-nav{flex:1;overflow-y:auto;padding:0 8px}.sidebar-group{margin-bottom:16px}.sidebar-group-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:8px 12px 4px}.sidebar-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;margin:1px 0;background:transparent;border:none;border-radius:var(--radius-sm);color:var(--text-secondary);cursor:pointer;font-size:13.5px;font-weight:500;text-align:left;transition:background .15s,color .15s}.sidebar-item:focus{outline:none}.sidebar-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.sidebar-item:hover:not(.active){background:var(--bg-muted);color:var(--text-primary)}.sidebar-item.active{background:var(--bg-muted);color:var(--text-primary);font-weight:600;position:relative}.sidebar-item.active:before{content:"";position:absolute;left:-8px;top:4px;bottom:4px;width:2px;background:var(--text-primary);border-radius:0 2px 2px 0}.sidebar-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--text-secondary);flex-shrink:0}.sidebar-item.active .sidebar-icon{color:var(--accent-text)}.sidebar-label{flex:1}.sidebar-footer{border-top:1px solid var(--border);padding:12px 12px 0;display:flex;flex-direction:column;gap:8px}.sidebar-user{display:flex;align-items:center;gap:10px;padding:6px 4px}.sidebar-avatar{width:32px;height:32px;border-radius:50%;background:var(--accent-bg);color:var(--accent-text);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px}.sidebar-user-info{flex:1;min-width:0}.sidebar-user-name{font-size:13px;font-weight:500;color:var(--text-primary);line-height:1.2}.sidebar-user-plan{font-size:11px;color:var(--text-muted)}.sidebar-actions{display:flex;gap:4px;padding:0 4px}.sidebar-actions button{flex:1;background:transparent;border:none;color:var(--text-secondary);padding:6px;border-radius:var(--radius-sm);cursor:pointer;font-size:14px}.sidebar-actions button:hover{background:var(--bg-muted)}.page-header{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 32px 16px;background:var(--bg-page);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10;gap:16px}.page-header h1{margin:0 0 4px;font-size:24px;font-weight:700;color:var(--text-primary)}.page-actions{display:flex;gap:8px;align-items:center}.breadcrumbs{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--text-secondary)}.breadcrumb-item{padding:0 4px}.breadcrumb-item.active{color:var(--text-primary);font-weight:500}.breadcrumb-sep{color:var(--text-muted)}.page-content{padding:24px 32px;max-width:1600px;width:100%}button{background:var(--accent);color:#fff;border:none;padding:8px 16px;border-radius:var(--radius-sm);cursor:pointer;font-size:13px;font-weight:500;transition:background .15s;white-space:nowrap}button:where(:hover:not(:disabled)){background:var(--accent-hover)}button:disabled{opacity:.4;cursor:not-allowed}button.secondary{background:var(--bg-card);border:1px solid var(--border);color:var(--text-primary)}button.secondary:hover:not(:disabled){background:var(--bg-muted);border-color:var(--border-strong)}button.danger{background:var(--danger);color:#fff}button.danger:hover:not(:disabled){background:#dc2626}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:16px;box-shadow:var(--shadow-sm)}.card.clickable{cursor:pointer;transition:box-shadow .15s,transform .15s}.card.clickable:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.section{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:20px;box-shadow:var(--shadow-sm)}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:8px}.section-header h2{margin:0;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary)}.detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}@media (max-width: 1100px){.detail-grid{grid-template-columns:1fr}}.detail-main,.detail-side{display:flex;flex-direction:column;gap:16px}.printer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.farm-status-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;margin-bottom:20px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);font-size:13px}.farm-status-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.farm-status-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-right:4px}.farm-status-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.farm-status-pill.status-online{background:#ecfdf5;color:#15803d;border:1px solid #bbf7d0}.farm-status-pill.status-printing{background:#dcfce7;color:#166534;border:1px solid #86efac}.farm-status-pill.status-ready{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.farm-status-pill.status-attention{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.printer-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;cursor:pointer}.printer-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md);transform:translateY(-1px)}.printer-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.printer-card-header{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--bg-card);border-bottom:1px solid var(--border)}.printer-card-identity{display:flex;align-items:center;gap:9px;min-width:0}.printer-card-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.printer-card-dot.dot-green{background:#16a34a}.printer-card-dot.dot-slate{background:#94a3b8}.printer-card-dot.dot-amber{background:#d97706}.printer-card-dot.dot-red{background:#dc2626}.printer-card-dot.dot-blue{background:#0284c7}.printer-card-dot.dot-muted{background:#94a3b8}.printer-card-title-col{display:flex;flex-direction:column;min-width:0}.printer-card-name-row{display:flex;align-items:center;gap:6px;min-width:0}.printer-card-name{font-size:13.5px;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}.printer-card-model-tag{font-size:10.5px;font-weight:500;color:var(--text-secondary);background:#f1f5f9;border:1px solid var(--border);padding:1px 6px;border-radius:3px;flex-shrink:0}.printer-card-swap-tag{font-size:10px;font-weight:700;letter-spacing:.04em;color:#0284c7;background:#f0f9ff;border:1px solid #bae6fd;padding:1px 6px;border-radius:3px;flex-shrink:0}.printer-card-serial-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:var(--text-muted);letter-spacing:.02em}.printer-card-state-pill{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;font-weight:600;letter-spacing:.02em;padding:3px 8px;border-radius:4px;white-space:nowrap;flex-shrink:0}.pill-printing{background:#ecfdf5;color:#15803d;border:1px solid #bbf7d0}.pill-idle{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.pill-paused{background:#fffbeb;color:#b45309;border:1px solid #fde68a}.pill-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.pill-swap{background:#f0f9ff;color:#0369a1;border:1px solid #bae6fd}.pill-offline,.pill-unknown,.pill-maintenance{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}.printer-card-camera{position:relative;aspect-ratio:16 / 9;background:#000;overflow:hidden;border-bottom:1px solid var(--border)}.printer-card-camera .camera-view{width:100%;height:100%;display:block}.printer-card-camera .camera-view img{width:100%;height:100%;object-fit:cover;display:block}.printer-card-camera .camera-view .camera-status{display:none!important}.printer-card-camera .camera-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#080a0e;color:var(--text-muted);font-size:11px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.printer-card-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:10px;flex:1}.printer-card-active-section{display:flex;flex-direction:column;gap:8px}.printer-card-file-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px}.printer-card-filename{font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.printer-card-layer-text{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:var(--text-secondary);flex-shrink:0}.printer-card-progress-track{width:100%;height:4px;background:#e2e8f0;border-radius:999px;overflow:hidden}.printer-card-progress-fill{height:100%;background:#16a34a;border-radius:999px;transition:width .4s ease}.printer-card-telemetry-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:2px}.telemetry-cell{background:#f8fafc;border:1px solid var(--border);border-radius:4px;padding:6px 8px;display:flex;flex-direction:column;gap:2px}.telemetry-label{font-size:9.5px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#64748b}.telemetry-value{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.telemetry-value.telemetry-eta{color:#15803d}.printer-card-idle-section{display:flex;flex-direction:column;gap:8px}.printer-card-idle-status{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:1px solid var(--border);border-radius:4px;padding:8px 10px}.printer-card-idle-text{display:flex;flex-direction:column;gap:2px;min-width:0}.idle-headline{font-size:12.5px;font-weight:600;color:var(--text-secondary)}.idle-subline{font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.idle-bed-badge{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11.5px;font-weight:500;color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;padding:2px 7px;border-radius:3px;flex-shrink:0}.printer-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:6px;border-top:1px solid var(--border);margin-top:auto}.printer-card-hint-text{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text-muted)}.hint-indicator{width:6px;height:6px;border-radius:50%;flex-shrink:0}.hint-indicator.hint-swap{background:#0284c7}.hint-indicator.hint-ready{background:#94a3b8}.printer-card-btn-action{font-size:11.5px;font-weight:500;padding:4px 10px;border-radius:4px;background:#fff;border:1px solid var(--border);color:var(--text-primary);transition:all .15s ease}.printer-card-btn-action:hover{background:#f8fafc;border-color:var(--border-strong)}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.dot.idle{background:var(--text-muted)}.dot.printing{background:var(--success);animation:pulse 1.5s infinite}.dot.paused{background:var(--warning)}.dot.error{background:var(--danger)}.dot.offline{background:var(--text-muted);opacity:.4}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;background:var(--bg-muted);color:var(--text-secondary)}.status-pill.printing{color:var(--success);background:var(--success-bg)}.status-pill.paused{color:var(--warning);background:var(--warning-bg)}.status-pill.error{color:var(--danger);background:var(--danger-bg)}.meta{color:var(--text-secondary);font-size:12px;line-height:1.6}.meta strong{color:var(--text-primary);font-weight:500}.empty{text-align:center;padding:48px 24px;color:var(--text-secondary)}.empty p{margin:4px 0}.coming-soon{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:64px 24px;color:var(--text-secondary)}.coming-soon-emoji{font-size:44px;margin-bottom:8px}.coming-soon h2{margin:0 0 6px;color:var(--text-primary)}.coming-soon p{margin:0;font-size:14px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100}.modal{min-width:320px;max-width:90vw}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label{display:flex;flex-direction:column;font-size:12px;color:var(--text-secondary);gap:4px}.form-grid input,.form-grid select{padding:8px 10px;background:var(--bg-card);color:var(--text-primary);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-family:inherit}.form-grid input:focus,.form-grid select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}@media (max-width: 600px){.form-grid{grid-template-columns:1fr}}.add-printer-form{margin-bottom:24px}.camera-view{position:relative;background:#0f1115;border-radius:var(--radius);overflow:hidden;aspect-ratio:16 / 10}.camera-view.compact{border-radius:0;aspect-ratio:16 / 9}.camera-view img{width:100%;height:100%;object-fit:contain;display:block}.camera-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--text-muted);font-size:13px}.camera-status{position:absolute;top:8px;right:8px;background:#0009;color:#fff;padding:4px 10px;border-radius:12px;font-size:11px;font-weight:500;display:flex;align-items:center;gap:6px}.camera-status .dot.printing{background:var(--success)}.file-picker{display:block;cursor:pointer}.file-picker input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.file-picker-button{display:inline-block;background:var(--accent);color:#fff;padding:10px 20px;border-radius:var(--radius-sm);font-weight:500;font-size:13px;transition:background .15s;width:100%;text-align:center}.file-picker:hover .file-picker-button{background:var(--accent-hover)}.file-picker input:disabled+.file-picker-button{opacity:.5;cursor:not-allowed}.alert{margin-top:8px;padding:8px 12px;border-radius:var(--radius-sm);font-size:12px;border:1px solid}.alert.danger{background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}.alert.success{background:var(--success-bg);color:var(--success);border-color:var(--success)}.ams-list{display:flex;flex-direction:column;gap:12px}.ams-unit-header{display:flex;align-items:center;gap:10px;margin-bottom:14px}.ams-badge{background:var(--accent-bg);color:var(--accent-text, var(--accent));font-weight:700;font-size:12px;letter-spacing:.02em;padding:5px 11px;border-radius:999px}.ams-env{display:flex;gap:6px;flex:1;min-width:0;flex-wrap:wrap}.ams-pill{background:var(--bg-muted);border:1px solid var(--border);color:var(--text-secondary);font-size:12px;font-weight:500;padding:4px 10px;border-radius:999px;white-space:nowrap;font-variant-numeric:tabular-nums}.ams-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.ams-slots.one{grid-template-columns:minmax(0,160px)}@media (max-width: 600px){.ams-slots{grid-template-columns:repeat(2,1fr)}}.ams-slot{position:relative;border:1px solid var(--border);border-radius:12px;background:var(--bg-muted);display:flex;flex-direction:column;min-width:0;transition:box-shadow .15s,border-color .15s}.ams-slot.filled:hover{border-color:var(--border-strong, #cbd5e1);box-shadow:0 2px 8px #0000000f}.ams-slot.empty{background:transparent;border:1.5px dashed var(--border-strong)}.ams-slot.empty:hover{border-color:var(--accent);background:#8b5cf608}.ams-slot-top{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 0}.ams-slot-num{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--text-secondary);line-height:1}.ams-slot-index{font-size:12px;font-weight:700;color:var(--text-secondary)}.ams-slot-rfid-tag{font-size:10px;font-weight:700;color:#1d4ed8;background:#dbeafe;border:1px solid #bfdbfe;padding:1px 4px;border-radius:4px;line-height:1.2}.ams-slot-rfid-btn{width:24px;height:24px;padding:0;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:7px;background:var(--bg-card);color:var(--text-secondary);cursor:pointer;transition:border-color .15s,color .15s}.ams-slot-rfid-btn:hover{border-color:var(--accent);color:var(--accent)}.ams-slot-rfid-btn:focus-visible{outline:2px solid var(--accent, #8b5cf6);outline-offset:2px}.ams-slot-rfid-btn:disabled{cursor:default;opacity:.55}.refresh-icon{width:13px;height:13px}.refresh-icon.spinning{animation:ams-spin .8s linear infinite}@keyframes ams-spin{to{transform:rotate(360deg)}}.ams-slot-main{display:flex;flex-direction:column;align-items:center;gap:1px;border:none;background:transparent;cursor:pointer;font-family:inherit;color:inherit;padding:2px 8px 12px;width:100%;transition:transform .1s}.ams-slot-main.static{cursor:default}.ams-slot-main:focus-visible{outline:2px solid var(--accent, #8b5cf6);outline-offset:2px;border-radius:8px}.ams-slot-main:not(.static):hover{transform:translateY(-2px)}.ams-slot-main:not(.static):hover .spool-icon{filter:drop-shadow(0 4px 7px rgba(0,0,0,.2))}.spool-icon{position:relative;width:80px;height:80px;display:block;isolation:isolate;transition:filter .15s}.spool-color{position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--fil, #999);-webkit-mask:url(/spool.png) center / contain no-repeat;mask:url(/spool.png) center / contain no-repeat}.spool-shade{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;pointer-events:none}.spool-empty{width:80px;height:80px;display:flex;align-items:center;justify-content:center}.spool-empty span{font-size:28px;font-weight:300;color:var(--text-muted)}.ams-material-badge{display:inline-block;padding:3px 8px;margin-top:2px;border-radius:6px;background:#ffffffeb;border:1px solid rgba(0,0,0,.12);color:#111827;font-weight:700;font-size:13px;letter-spacing:.02em;box-shadow:0 1px 2px #0000000f}.ams-slot-label{font-weight:700;font-size:13px;color:var(--text-primary);text-align:center}.ams-slot-label.muted{color:var(--text-muted);font-weight:500}.ams-slot-sub{font-size:11px;font-weight:500;color:var(--text-secondary, #4b5563);text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ams-slot-sub.muted{color:var(--text-muted);opacity:.6}.ams-empty{padding:24px 8px;text-align:center;color:var(--text-secondary);font-size:13px}.ams-toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);z-index:1000;padding:10px 16px;border-radius:var(--radius);font-size:13px;font-weight:500;color:#fff;box-shadow:var(--shadow-md, 0 4px 16px rgba(0, 0, 0, .2));animation:ams-toast-in .18s ease-out}.ams-toast.ok{background:var(--success, #10b981)}.ams-toast.warn{background:var(--warning, #f59e0b)}@keyframes ams-toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}.slot-edit-modal{min-width:480px;max-width:600px;width:90vw}.slot-edit-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.slot-edit-header h3{margin:0;font-size:16px}.slot-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.slot-edit-grid label{display:flex;flex-direction:column;font-size:12px;color:var(--text-secondary);gap:4px}.slot-edit-grid label.full-width{grid-column:1 / -1}.slot-edit-grid input,.slot-edit-grid select{padding:7px 10px;background:var(--bg-card);color:var(--text-primary);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-family:inherit}.slot-edit-grid input:focus,.slot-edit-grid select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}.temps-row{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.color-picker{display:flex;gap:8px;align-items:center}.color-picker input[type=color]{width:44px;height:36px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:2px;cursor:pointer}.color-picker input[type=text]{flex:1}.swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin-top:6px}.swatch{width:100%;aspect-ratio:1;border:1px solid var(--border);border-radius:4px;cursor:pointer;transition:transform .1s;padding:0}.swatch:hover{transform:scale(1.15)}.swatch.active{border:2px solid var(--accent);box-shadow:0 0 0 2px var(--accent-bg)}.rfid-banner{background:var(--accent-bg);border:1px solid var(--accent);border-radius:var(--radius-sm);padding:10px 12px;display:flex;gap:10px;align-items:flex-start;margin-bottom:16px}.rfid-icon{font-size:18px}.rfid-title{font-weight:600;font-size:13px;color:var(--accent-text)}.rfid-match{color:var(--success);margin-left:6px;font-weight:500}.rfid-idx{font-family:monospace;font-size:11px;color:var(--text-secondary);margin-top:2px}.rfid-warn{font-size:11px;color:var(--warning);margin-top:4px}@media (max-width: 600px){.slot-edit-modal{min-width:0}.slot-edit-grid,.temps-row{grid-template-columns:1fr}.swatches{grid-template-columns:repeat(6,1fr)}}.temps-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}@media (max-width: 600px){.temps-panel{grid-template-columns:repeat(2,1fr)}}.temp-tile{background:var(--bg-muted);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px;text-align:center}.temp-tile .label{font-size:10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.temp-tile .value{font-size:20px;font-weight:700;margin-top:4px;color:var(--text-primary);line-height:1.1;font-variant-numeric:tabular-nums}.temp-tile .value .unit{font-size:11px;color:var(--text-muted);margin-left:2px;font-weight:400}.temp-tile .target{font-size:10px;color:var(--text-muted);margin-top:2px;font-variant-numeric:tabular-nums}.temp-bar{height:3px;background:var(--border);border-radius:2px;overflow:hidden;margin-top:6px}.temp-bar-fill{height:100%;transition:width .5s,background .5s}.big-progress{text-align:center;padding:16px 0}.big-progress .pct{font-size:48px;font-weight:700;color:var(--accent);line-height:1}.big-progress .bar{height:8px;background:var(--bg-muted);border-radius:4px;overflow:hidden;margin-top:16px}.big-progress .bar>div{height:100%;background:var(--success);transition:width .5s ease}.file-name{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:12px;background:var(--bg-muted);padding:8px 12px;border-radius:var(--radius-sm);word-break:break-all;border:1px solid var(--border);margin-bottom:12px}.control-row{display:flex;gap:6px;margin-bottom:8px}.control-row button{flex:1}.kv{display:grid;grid-template-columns:max-content 1fr;gap:8px 16px;font-size:13px}.kv dt{color:var(--text-secondary)}.kv dd{margin:0;font-weight:500}@media (max-width: 900px){.sidebar{width:60px}.sidebar-title,.sidebar-group-label,.sidebar-label,.sidebar-user-info,.sidebar-actions{display:none}.sidebar-item{justify-content:center;padding:10px}.sidebar-item.active:before{display:none}.sidebar-brand{justify-content:center;padding:0 0 16px}.page-content,.page-header{padding:16px}}@media (max-width: 600px){.app-layout{min-height:100dvh}.app-main{width:100%;min-height:100dvh;overflow-x:clip;padding-bottom:env(safe-area-inset-bottom)}.mobile-app-bar{display:flex;position:sticky;top:0;z-index:30;align-items:center;gap:10px;min-height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;border-bottom:1px solid var(--border);background:var(--bg-page)}.mobile-menu-toggle{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;padding:0;border-radius:12px;font-size:20px;line-height:1}.mobile-brand{display:inline-flex;align-items:center;gap:6px;color:var(--text-primary);font-size:15px;font-weight:700;white-space:nowrap}.mobile-page-title{min-width:0;margin-left:auto;overflow:hidden;color:var(--text-secondary);font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.sidebar{display:flex;position:fixed;z-index:50;inset:0 auto 0 0;width:min(84vw,320px);height:100vh;height:100dvh;padding:calc(12px + env(safe-area-inset-top)) 0 calc(12px + env(safe-area-inset-bottom));box-shadow:var(--shadow-md);transform:translate(-105%);visibility:hidden;transition:transform .18s ease,visibility 0s linear .18s}.sidebar.is-open{transform:translate(0);visibility:visible;transition-delay:0s}.sidebar-backdrop{display:block;position:fixed;z-index:40;top:0;right:0;bottom:0;left:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#18181b61;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.sidebar-title,.sidebar-group-label,.sidebar-label,.sidebar-user-info{display:block}.sidebar-actions{display:flex}.sidebar-brand{justify-content:flex-start;padding:0 16px 16px}.sidebar-item{justify-content:flex-start;min-height:44px;padding:10px 12px}.sidebar-item.active:before{display:block}.sidebar-nav{overscroll-behavior:contain}.page-header,.section-page-header{position:relative;top:auto;gap:10px;padding:16px 14px 12px}.page-header h1{font-size:21px;line-height:1.25}.page-content,.section-page-content{padding:14px 14px calc(22px + env(safe-area-inset-bottom))}.section-card,.section{padding:15px}.printer-grid{grid-template-columns:minmax(0,1fr);gap:12px}.page-actions,.notification-actions>div{flex-wrap:wrap}.page-actions>button,.notification-actions>div>button{min-height:44px}.section-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (prefers-reduced-motion: reduce){.sidebar{transition:none}}@media (max-width: 360px){.mobile-app-bar{gap:7px;padding-right:9px;padding-left:9px}.mobile-brand{gap:4px;font-size:14px}.mobile-page-title{font-size:12px}.printer-grid{grid-template-columns:1fr}}.files-body{padding:20px 32px 40px}.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:2px;margin-bottom:16px;font-size:14px}.crumb{border:none;background:transparent;color:var(--text-secondary);cursor:pointer;padding:4px 6px;border-radius:var(--radius-sm);font-family:inherit;font-size:14px}.crumb:hover{background:var(--bg-muted);color:var(--accent)}.crumb-sep{color:var(--text-muted);padding:0 2px}.files-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:14px}.files-search-wrap{position:relative;flex:1 1 230px;max-width:340px;display:flex;align-items:center}.files-search{width:100%;padding-right:28px}.files-search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:none;color:var(--text-muted);cursor:pointer;font-size:13px;padding:2px 5px;line-height:1;border-radius:50%}.files-search-clear:hover{color:var(--text-primary);background:var(--bg-muted)}.upload-progress-banner{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;border-radius:var(--radius);font-size:13px;font-weight:500;margin-bottom:14px}.upload-progress-spinner{width:14px;height:14px;border:2px solid #93c5fd;border-top-color:#1d4ed8;border-radius:50%;animation:ams-spin .8s linear infinite;flex-shrink:0}.new-folder-inline{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:14px}.new-folder-inline input{flex:1;max-width:320px;padding:7px 10px;font-size:13px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary)}.new-folder-icon{font-size:18px}.new-folder-inline .btn-sm{padding:6px 12px;font-size:13px}.files-toggle{display:inline-flex;align-items:center;gap:9px;color:var(--text-secondary);font-size:13px;white-space:nowrap;cursor:pointer}.files-toggle input{position:absolute;width:1px;height:1px;opacity:0}.files-toggle-track{position:relative;width:34px;height:20px;border-radius:999px;background:var(--border);transition:background .14s ease}.files-toggle-track:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:transform .14s ease}.files-toggle input:checked+.files-toggle-track{background:var(--accent)}.files-toggle input:checked+.files-toggle-track:after{transform:translate(14px)}.files-toggle input:focus-visible+.files-toggle-track{outline:2px solid var(--accent);outline-offset:2px}.files-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.files-layout{display:grid;grid-template-columns:230px 1fr;gap:18px;align-items:start}.folder-panel{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:14px 6px;position:sticky;top:108px}.folder-panel-title{font-weight:700;font-size:14px;color:var(--text-primary);padding:2px 10px 10px}.folder-item{display:block;width:100%;text-align:left;border:none;background:transparent;font-family:inherit;font-size:13px;color:var(--text-secondary);padding:7px 14px;border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.folder-item:hover{background:var(--bg-muted);color:var(--text-primary)}.folder-item.active{background:var(--accent-bg);color:var(--accent-text, var(--accent));font-weight:600}.files-main{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;min-width:0}.files-main-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border)}.count-badge{background:var(--accent);color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px}.table-scroll{overflow-x:auto}.files-table{width:100%;border-collapse:collapse;font-size:13px}.files-table th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--border);white-space:nowrap}.files-table td{padding:9px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.files-table tbody tr{height:72px}.files-table tr:last-child td{border-bottom:none}.row-clickable{cursor:pointer}.row-clickable:hover td{background:var(--bg-muted)}.cell-name{display:flex;align-items:center;gap:10px;min-width:0}.row-thumb{width:60px;height:60px;flex:none;border-radius:var(--radius-sm);background:#fff;border:1px solid var(--border);object-fit:contain;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;text-transform:uppercase;color:var(--text-muted)}.row-thumb.folder{width:34px;height:34px;border:0;background:transparent;font-size:20px}.row-name-wrap{display:flex;align-items:center;min-width:0;gap:6px}.row-name{font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.plate-count-badge{font-size:10px;padding:1px 7px;flex-shrink:0}.estimate-cell{display:flex;flex-direction:column;gap:2px;font-size:12px;white-space:nowrap}.estimate-time{color:var(--text-primary);font-weight:600}.estimate-weight{color:var(--text-secondary);font-size:11px}.folder-path{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-del{border:none;background:transparent;cursor:pointer;font-size:13px;opacity:0;padding:4px 6px;border-radius:var(--radius-sm)}.row-clickable:hover .row-del{opacity:1}.row-del:hover{background:var(--danger-bg)}.nowrap{white-space:nowrap}.muted{color:var(--text-muted)}.badge{display:inline-block;font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px;white-space:nowrap}.badge.green{background:var(--success-bg, #ecfdf5);color:var(--success, #10b981)}.badge.blue{background:var(--accent-bg);color:var(--accent-text, var(--accent))}.badge.purple{background:#f3e8ff;color:#7e22ce}.badge.grey{background:var(--bg-muted);color:var(--text-secondary)}.badge.red{background:var(--danger-bg);color:var(--danger)}.tag-list{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.detail-top{display:grid;grid-template-columns:220px 1fr 300px;gap:22px;align-items:start}.detail-preview img{width:100%;border-radius:var(--radius);background:var(--bg-muted);border:1px solid var(--border)}.detail-specs{min-width:0}.spec-badges{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px}.plate-title{margin:8px 0 12px;font-size:20px}.section-label{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600;margin-bottom:8px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{background:var(--bg-muted);border:1px solid var(--border);border-radius:999px;padding:4px 11px;font-size:12px;color:var(--text-secondary)}.chip strong{color:var(--text-primary)}.detail-actions{display:flex;flex-direction:column;gap:12px}.stat-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat-card{background:var(--bg-muted);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px}.stat-label{font-size:11px;color:var(--text-muted)}.stat-value{font-size:18px;font-weight:700;color:var(--text-primary);margin-top:2px}.print-cta{width:100%;font-size:15px;padding:11px}.file-detail-body .card{margin-top:18px}.file-detail-body .detail-top{margin-top:0}.card-title{margin:0 0 12px;font-size:15px}.mini-table{width:100%;border-collapse:collapse;font-size:13px}.mini-table th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600;padding:6px 8px;border-bottom:1px solid var(--border)}.mini-table td{padding:8px;border-bottom:1px solid var(--border)}.mini-table tr:last-child td{border-bottom:none}.file-delete-top-btn{color:var(--danger)!important}.file-delete-top-btn:hover{background:var(--danger-bg)!important;border-color:var(--danger)!important}@media (max-width: 1100px){.detail-top,.files-layout{grid-template-columns:1fr}}.print-modal{min-width:560px;max-width:720px;width:92vw}.pm-printer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:var(--success-bg, #ecfdf5);border:1px solid var(--success, #10b981);border-radius:var(--radius);padding:14px;margin-bottom:14px}.pm-printer-select{display:flex;flex-direction:column;gap:6px;min-width:200px}.pm-printer-meta{display:flex;align-items:center;gap:8px}.pm-actions{display:flex;gap:8px}.pm-print{background:var(--success, #10b981)}.pm-print:hover{background:#0e9f74}.pm-summary{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}.pm-thumb{width:56px;height:56px;border-radius:var(--radius-sm);background:var(--bg-muted);border:1px solid var(--border);object-fit:contain;flex:none}.pm-summary-main{flex:1;min-width:0}.pm-name{font-weight:700;color:var(--text-primary)}.pm-summary-stats{text-align:right;font-size:13px;color:var(--text-secondary);white-space:nowrap}.pm-summary-stats div:nth-child(1){font-weight:700;color:var(--text-primary)}.pm-block{margin-top:14px}.ams-mismatch{margin-top:14px;font-size:13px}.ams-mismatch ul{margin:7px 0;padding-left:20px}.ams-mismatch-ack{display:flex;align-items:flex-start;gap:8px;margin-top:9px;font-weight:600}.ams-mismatch-ack input{margin-top:2px}.pm-ams-checking{margin-top:12px}.pm-map{display:flex;flex-direction:column;gap:6px}.pm-map-row{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid var(--border)}.pm-map-row:last-child{border-bottom:none}.pm-map-info{display:flex;flex-direction:column;gap:3px;align-items:flex-start;min-width:0}.pm-map-info.end{align-items:flex-end;margin-left:auto;text-align:right}.pm-map-name{font-size:13px;font-weight:600;color:var(--text-primary);white-space:nowrap}.fil-square{width:30px;height:30px;flex:none;border-radius:7px;border:1px solid rgba(0,0,0,.15)}.pm-map-arrow{color:var(--text-muted);font-size:15px;flex:none}.pm-slots{display:flex;gap:8px;flex-wrap:wrap}.pm-slot{display:flex;flex-direction:column;align-items:center;gap:2px;width:52px;padding:5px 4px 4px;border:2px solid transparent;border-radius:10px;background:transparent;cursor:pointer;transition:border-color .12s,background .12s}.pm-slot:hover{background:var(--bg-muted)}.pm-slot.sel{border-color:var(--accent);background:var(--accent-bg)}.pm-slot .spool-icon{width:38px;height:38px}.pm-slot-empty{width:38px;height:38px;border-radius:50%;border:1.5px dashed var(--border-strong);box-sizing:border-box}.pm-slot-no{font-size:11px;font-weight:700;color:var(--text-secondary)}.pm-slot.sel .pm-slot-no{color:var(--accent-text, var(--accent))}.pm-toggles{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center}.pm-qty{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary)}.pm-qty input{width:70px}.pm-note{margin-top:10px}.toggle{display:inline-flex;align-items:center;gap:9px;border:none;background:transparent;cursor:pointer;font-family:inherit;font-size:13px;color:var(--text-primary);padding:0}.toggle-track{width:40px;height:22px;border-radius:999px;background:var(--border-strong, #cbd5e1);position:relative;transition:background .15s;flex:none}.toggle-knob{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:var(--shadow-sm);transition:transform .15s}.toggle.on .toggle-track{background:var(--accent)}.toggle.on .toggle-knob{transform:translate(18px)}@media (max-width: 640px){.print-modal{min-width:0}.pm-printer{flex-direction:column;align-items:stretch}}.file-preview img{width:100%;border-radius:var(--radius);background:var(--bg-muted);border:1px solid var(--border)}.file-preview-none{height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--bg-muted);border:1px solid var(--border);border-radius:var(--radius)}.plate-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.plate-tab{border:1px solid var(--border);background:var(--bg-card);border-radius:999px;padding:4px 12px;font-size:12px;cursor:pointer;font-family:inherit;color:var(--text-secondary)}.plate-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}.file-details{display:flex;flex-direction:column;gap:10px}.detail-row{display:flex;justify-content:space-between;align-items:center;font-size:14px}.detail-label{color:var(--text-secondary)}.detail-value{font-weight:600;color:var(--text-primary)}.detail-filaments{display:flex;flex-direction:column;gap:6px;padding-top:6px;border-top:1px solid var(--border)}.detail-filament{display:flex;align-items:center;gap:8px;font-size:13px}.fil-swatch{width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.15);flex:none}.fil-type{font-weight:600}.file-print{display:flex;gap:8px;margin-top:8px;padding-top:12px;border-top:1px solid var(--border)}.file-print select{flex:1}.danger-text{color:var(--danger)}.file-detail-body{padding:20px 32px 40px}.crumb-current{padding:4px 6px;color:var(--text-primary);font-weight:600;font-size:14px}.file-delete-btn{margin-top:10px;align-self:flex-start}.swap-toggle{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--text-secondary);cursor:pointer;text-transform:none;letter-spacing:normal}.swap-toggle input{width:auto}.settings-swapmod{display:grid;gap:12px;margin-top:4px;padding-top:16px;border-top:1px solid var(--border)}.settings-swapmod>.meta{margin:0}.settings-swapmod-heading,.settings-swapmod-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.settings-swapmod-heading{justify-content:space-between}.settings-swapmod-heading h3{margin:0}.link-btn{border:none;background:transparent;padding:0;font:inherit;color:var(--accent);cursor:pointer;text-align:left}.link-btn:hover{text-decoration:underline}.queue-body{padding:20px 32px 40px;display:flex;flex-direction:column;gap:16px;max-width:960px}.queue-note{font-size:13px;color:var(--text-secondary);background:var(--bg-muted);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;margin:0}.queue-printers{display:flex;flex-direction:column;gap:14px}.queue-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.queue-card-title{display:flex;align-items:center;gap:8px;font-weight:700}.queue-hint{margin-bottom:10px}.queue-blocked-help{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.queue-blocked-help .queue-resume{min-height:40px}.queue-blocked-help .meta{flex-basis:100%;margin:0}.queue-jobs{display:flex;flex-direction:column}.queue-job-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.queue-job-row:last-child{border-bottom:none}.queue-job-name{font-weight:600;white-space:normal;overflow:hidden;text-overflow:ellipsis;max-width:100%;overflow-wrap:anywhere}.queue-job-info{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:5px}.queue-job-meta{display:flex;flex-wrap:wrap;gap:5px 10px;color:var(--text-secondary);font-size:12px}.queue-order-controls,.queue-job-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}.queue-order-button{width:40px;height:40px;padding:0;font-size:18px}.queue-job-actions button{min-height:36px;padding:7px 10px;font-size:12px}.queue-edit-modal{width:min(440px,92vw);max-height:90dvh;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.queue-edit-modal .slot-edit-header{align-items:flex-start}.queue-edit-modal .slot-edit-header h3,.queue-edit-modal .slot-edit-header p,.queue-edit-note{margin:0}.queue-edit-check{display:flex;align-items:center;gap:10px;min-height:38px}.queue-edit-check input{width:18px;height:18px;accent-color:var(--accent)}.queue-edit-actions{display:flex;justify-content:flex-end;gap:8px}.queue-active-job{display:flex;align-items:center;gap:10px;padding:8px 0 12px;color:var(--text-primary)}.queue-job-error{color:var(--danger, #b42318);font-size:12px}.queue-start{flex:0 0 auto}.queue-card-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--bg-secondary, #f8fafc);border:1px solid var(--border);border-radius:8px;font-size:13px;margin-bottom:8px}.queue-totals-text{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;color:var(--text-primary)}.queue-clear-btn{font-size:12px;padding:4px 8px;min-height:28px;color:var(--danger, #b42318);border-color:var(--border)}.queue-clear-btn:hover:not(:disabled){border-color:var(--danger, #b42318);background:#b423180d}.queue-batch-card{display:flex;flex-direction:column;background:var(--bg-surface, #ffffff);border:1px solid var(--border);border-radius:8px;padding:12px 14px;margin:8px 0;box-shadow:0 1px 2px #00000008;transition:border-color .15s ease,box-shadow .15s ease}.queue-batch-card:hover{border-color:var(--border-strong, #d4d4d8);box-shadow:var(--shadow-sm)}.queue-batch-head{display:flex;align-items:center;gap:10px}.queue-batch-info{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:5px}.queue-batch-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.queue-batch-progress-container{width:100%;max-width:320px;height:6px;background:var(--border, #e2e8f0);border-radius:999px;overflow:hidden;margin-top:2px}.queue-batch-progress-bar{height:100%;background:var(--success, #10b981);border-radius:999px;transition:width .3s ease}.queue-batch-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}.queue-batch-actions button{min-height:34px;padding:6px 10px;font-size:12px}.queue-expand-btn{background:transparent;border-color:var(--border)}.queue-batch-subitems{margin-top:10px;padding-top:8px;padding-left:12px;border-top:1px dashed var(--border);display:flex;flex-direction:column;gap:4px}.queue-batch-subrow{padding:6px 0}.queue-batch-subrow-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.row-actions-cell{display:flex;align-items:center;gap:6px;justify-content:flex-end}.row-action-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;font-size:12px;min-height:28px;border-radius:6px;border:1px solid var(--border);background:var(--bg-surface, #ffffff);color:var(--text-primary);cursor:pointer;white-space:nowrap}.row-action-btn:hover{background:var(--bg-secondary, #f8fafc);border-color:var(--accent, #8b5cf6)}@media (max-width: 600px){.queue-body{padding:14px 12px 28px}.queue-card{padding:12px}.queue-card-head{align-items:flex-start;flex-direction:column}.queue-card-summary{flex-direction:column;align-items:flex-start}.queue-clear-btn{align-self:flex-end}.queue-job-row,.queue-batch-head{align-items:flex-start;flex-wrap:wrap;gap:8px}.queue-order-controls{align-self:center}.queue-job-info,.queue-batch-info{flex-basis:calc(100% - 90px)}.queue-job-actions,.queue-batch-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}.queue-job-actions .queue-start,.queue-batch-actions .queue-start{margin-right:auto}}.drop-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;background:#8b5cf61f;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;align-items:center;justify-content:center;pointer-events:none}.drop-overlay-card{background:var(--bg-card);border:2px dashed var(--accent);border-radius:var(--radius);padding:36px 48px;text-align:center;font-size:16px;font-weight:600;color:var(--text-primary);box-shadow:var(--shadow-md, 0 8px 24px rgba(0, 0, 0, .15))}.drop-overlay-icon{font-size:32px;margin-bottom:8px}.drop-overlay-card .meta{margin-top:4px;font-weight:400}.printer-detail-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.printer-detail-header-left{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}.printer-back-button{padding:6px 12px;font-size:13px;font-weight:600;white-space:nowrap}.printer-detail-title-group{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.printer-detail-title-group h1{margin:0;font-size:22px}.printer-detail-header-right{display:flex;align-items:center;gap:10px}.printer-model-label{margin:-2px 0 5px;color:var(--text-secondary);font-size:13px}.printer-detail-content{scroll-margin-top:160px}.printer-detail-content .section-header h2{display:inline-flex;align-items:center;gap:8px}.printer-detail-content .section-header h2 svg{color:var(--accent)}.printer-camera-shell{position:relative;overflow:hidden;border-radius:var(--radius);background:#0f1115}.printer-camera-expand{position:absolute;top:9px;left:9px;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid rgba(255,255,255,.26);border-radius:7px;background:#0000008c;color:#fff}.printer-camera-expand:hover:not(:disabled){background:#000000d1}.printer-active-file{display:flex;align-items:center;gap:9px;min-width:0;word-break:normal;overflow-wrap:anywhere}.printer-active-file svg{flex:none;color:var(--accent)}.printer-status-badge,.printer-connection-badge,.printer-wifi-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--text-secondary);font-size:11px;font-weight:600}.printer-status-badge.printing,.printer-connection-badge.online{color:var(--success)}.printer-status-badge.paused{color:var(--warning)}.printer-status-badge.error{color:var(--danger)}.printer-connection-badge.offline{color:var(--text-muted)}.printer-progress-summary{padding:8px 0 2px}.printer-progress-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.printer-progress-heading>strong{color:var(--accent-text);font-size:34px;line-height:1.1}.printer-progress-heading>span{display:inline-flex;align-items:center;gap:6px;color:var(--text-secondary);font-size:12px}.printer-progress-track{height:8px;margin:12px 0 16px;overflow:hidden;border-radius:99px;background:var(--bg-muted)}.printer-progress-track>div{height:100%;border-radius:inherit;background:var(--accent);transition:width .4s ease}.printer-job-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.printer-job-stats>div{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-card)}.printer-job-stats>div>svg{flex:none;margin-top:2px;color:var(--text-muted)}.printer-job-stats span{display:flex;flex-direction:column;min-width:0}.printer-job-stats small{color:var(--text-muted);font-size:10px}.printer-job-stats strong{overflow:hidden;color:var(--text-primary);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.printer-idle-state{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--border, #e5e7eb);border-radius:var(--radius-md, 12px);background:var(--bg-card, #ffffff);box-shadow:0 1px 3px #00000005}.printer-idle-state.state-ready{border-color:#d1fae5;background:#f0fdf4}.printer-idle-state.state-ready .printer-idle-icon{background:#dcfce7;color:#15803d}.printer-idle-state.state-error,.printer-idle-state.state-blocked{border-color:#fecaca;background:#fef2f2}.printer-idle-state.state-error .printer-idle-icon,.printer-idle-state.state-blocked .printer-idle-icon{background:#fee2e2;color:#b91c1c}.printer-idle-state.state-paused{border-color:#fde68a;background:#fffbeb}.printer-idle-state.state-paused .printer-idle-icon{background:#fef3c7;color:#b45309}.printer-idle-state.state-swap{border-color:#bfdbfe;background:#eff6ff}.printer-idle-state.state-swap .printer-idle-icon{background:#dbeafe;color:#1d4ed8}.printer-idle-state.state-offline{border-color:#e2e8f0;background:#f8fafc}.printer-idle-state.state-offline .printer-idle-icon{background:#f1f5f9;color:#64748b}.printer-idle-state.state-maintenance{border-color:#bfdbfe;background:#eff6ff}.printer-idle-state.state-maintenance .printer-idle-icon{background:#dbeafe;color:#2563eb}.printer-idle-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:50%;background:var(--success-bg);color:var(--success);font-size:16px;font-weight:700}.printer-idle-state>div{display:flex;flex-direction:column}.printer-idle-state small{color:var(--text-secondary);margin-top:2px}.printer-control-section .control-row button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.printer-speed-panel{margin-top:14px;padding-top:13px;border-top:1px solid var(--border)}.printer-speed-heading,.printer-speed-heading>span{display:flex;align-items:center;gap:8px}.printer-speed-heading{justify-content:space-between;margin-bottom:9px}.printer-speed-heading>span{font-size:13px;font-weight:600}.printer-speed-heading>strong{color:var(--text-secondary)}.printer-speed-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.printer-speed-presets button{padding:7px 4px}.printer-speed-panel .meta{margin:8px 0 0}.printer-temperature-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.printer-metric-readout{display:grid;grid-template-columns:28px 1fr;align-items:center;column-gap:8px;padding:11px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-muted)}.printer-metric-icon{grid-row:span 2;color:var(--accent)}.printer-metric-label{color:var(--text-secondary);font-size:11px}.printer-metric-readout strong{color:var(--text-primary);font-size:16px;white-space:nowrap}.printer-metric-readout strong small{color:var(--text-muted);font-size:10px;font-weight:400}.printer-card-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding:10px 0;border-bottom:1px solid var(--border);color:var(--text-secondary);font-size:12px}.printer-card-status-row>span{display:inline-flex;align-items:center;gap:7px}.printer-data-unavailable{color:var(--text-muted);font-size:11px;font-weight:500}.printer-extra-telemetry{margin-top:12px}.printer-extra-telemetry summary{display:flex;align-items:center;gap:7px;color:var(--text-secondary);cursor:pointer;font-size:12px;font-weight:500;list-style:none}.printer-extra-telemetry summary::-webkit-details-marker{display:none}.printer-extra-telemetry[open] summary{margin-bottom:12px}.printer-connection-badge .dot{width:7px;height:7px;background:currentColor}.printer-camera-modal{z-index:120;padding:20px}.printer-camera-modal-content{width:min(1100px,94vw);max-height:92vh;overflow:auto;padding:16px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-card);box-shadow:var(--shadow-md)}.printer-camera-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.printer-camera-modal-header strong{display:inline-flex;align-items:center;gap:8px}.printer-camera-modal-header button{display:inline-flex;align-items:center;justify-content:center;padding:7px}.printer-camera-modal-content .camera-view{aspect-ratio:16 / 9}@media (max-width: 900px){.printer-detail-header{flex-wrap:wrap}}@media (max-width: 600px){.printer-job-stats,.printer-temperature-pair{grid-template-columns:1fr}.printer-camera-modal{padding:8px}.printer-camera-modal-content{width:100%;padding:10px}}.printer-dashboard-panel{position:relative;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);grid-template-areas:"summary summary" "camera controls" "progress metrics" "ams ams";column-gap:24px;row-gap:16px;margin-bottom:24px;background:transparent;border:0;box-shadow:none}.printer-dashboard-panel:before{content:"";grid-column:1 / -1;grid-row:1 / 4;z-index:0;border:1px solid var(--border, #e5e7eb);border-radius:var(--radius-lg, 16px);background:linear-gradient(135deg,#f8fafc,#f1f5f9);pointer-events:none}.printer-dashboard-panel>*{position:relative;z-index:1}.printer-panel-summary{grid-area:summary;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px 8px}.printer-summary-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.printer-summary-timing{font-size:13px;color:var(--text-secondary)}.printer-summary-timing strong{color:var(--text-primary);font-variant-numeric:tabular-nums}.printer-model-pills{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.printer-model-pill{padding:3px 9px;border:1px solid var(--border, #e5e7eb);border-radius:6px;background:var(--bg-muted, #f3f4f6);color:var(--text-secondary, #374151);font-size:12px;font-weight:600}.printer-ams-pill{padding:3px 9px;border-radius:6px;background:var(--bg-muted, #f3f4f6);border:1px solid var(--border, #e5e7eb);color:var(--text-secondary, #4b5563);font-size:12px;font-weight:600}.printer-swapmod-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:6px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;font-size:12px;font-weight:600}.printer-swapmod-pill.swapping{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}.printer-swapmod-pill.blocked{background:#fef2f2;border-color:#fecaca;color:#991b1b}.printer-ready-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#fff;border:1px solid var(--border, #e5e7eb);color:var(--text-secondary);font-size:12px;font-weight:600;box-shadow:0 1px 2px #0000000a}.printer-ready-pill.printing{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.printer-ready-pill.paused{background:#fffbeb;border-color:#fde68a;color:#92400e}.printer-ready-pill.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.printer-ready-pill.idle{background:#f8fafc;border-color:#e2e8f0;color:#334155}.printer-ready-pill.offline{background:#f1f5f9;border-color:#cbd5e1;color:#64748b}.printer-ready-pill.maintenance,.printer-ready-pill.swap{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}.printer-dashboard-panel .detail-grid,.printer-dashboard-panel .detail-main,.printer-dashboard-panel .detail-side{display:contents}.printer-dashboard-panel .section{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.printer-dashboard-panel .detail-main>.printer-camera-card{grid-area:camera;padding:0 0 14px 24px}.printer-dashboard-panel .detail-main>.printer-progress-card{grid-area:progress;padding:0 0 20px 24px}.printer-dashboard-panel .printer-control-section{grid-area:controls;padding:0 24px 14px 0}.printer-dashboard-panel .printer-telemetry-section{grid-area:metrics;padding:0 24px 20px 0}.printer-dashboard-panel .printer-ams-section{grid-area:ams;margin-top:8px;padding:20px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-card);box-shadow:var(--shadow-sm)}.printer-camera-shell{border-radius:13px;box-shadow:0 4px 14px #00000014}.printer-camera-expand{left:auto;right:9px}.printer-live-badge{position:absolute;top:0;right:50px;z-index:2;display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border-radius:0 0 0 10px;font-size:11px;font-weight:600;color:#fff;background:#475569}.printer-live-badge.printing{background:#059669}.printer-live-badge.paused{background:#d97706}.printer-live-badge.error{background:#dc2626}.printer-live-badge.offline{background:#64748b}.printer-live-badge.idle{background:#475569}.printer-live-badge.maintenance,.printer-live-badge.swap{background:#2563eb}.printer-progress-card .printer-active-file{margin:0 0 8px;padding:0;border:0;background:transparent;font-size:13px;font-weight:600;color:var(--text-primary)}.printer-progress-heading{align-items:center}.printer-progress-heading>span{color:var(--text-secondary);font-size:13px;font-weight:500}.printer-progress-heading>strong{color:var(--text-primary);font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}.printer-progress-track{height:6px;margin:10px 0 8px;background:var(--bg-muted, #e5e7eb)}.printer-progress-track>div{background:var(--success, #10b981)}.printer-progress-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-left:0;color:var(--text-secondary);font-size:12px}.printer-progress-footer>span{display:inline-flex;align-items:center;gap:5px}.printer-progress-footer strong{color:var(--text-primary);font-weight:600;font-variant-numeric:tabular-nums}.printer-control-section .section-header,.printer-telemetry-section .section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.printer-control-section .section-header h2,.printer-telemetry-section .section-header h2{font-size:15px;font-weight:700;color:var(--text-primary);margin:0}.printer-control-section .control-row{margin-bottom:10px;display:flex;gap:8px}.printer-control-section .control-row>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:var(--radius-sm, 8px);flex:1;font-weight:600;font-size:13px}.printer-control-section .printer-light-button{background:var(--bg-card);border:1px solid var(--border);color:var(--text-primary)}.printer-control-section .printer-light-button:hover:not(:disabled){background:var(--bg-hover, #f3f4f6)}.printer-control-section .printer-swap-button{background:var(--bg-card);border:1px solid #bfdbfe;color:#1e40af}.printer-control-section .printer-swap-button:hover:not(:disabled){background:#eff6ff;border-color:#93c5fd}.warning-button{background:#fffbeb;border-color:#fde68a;color:#92400e}.warning-button:hover:not(:disabled){background:#fef3c7;border-color:#fcd34d}.printer-temperature-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.printer-metric-readout{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--border, #e5e7eb);border-radius:var(--radius-md, 12px);background:var(--bg-card, #ffffff);box-shadow:0 1px 3px #00000008;transition:border-color .15s ease,background .15s ease}.printer-metric-readout .printer-metric-icon{margin-top:2px;color:var(--accent)}.printer-metric-body{display:flex;flex-direction:column;min-width:0}.printer-metric-label{font-size:12px;font-weight:500;color:var(--text-secondary, #4b5563)}.printer-metric-val{font-size:20px;font-weight:700;color:var(--text-primary, #111827);line-height:1.2;margin-top:1px;font-variant-numeric:tabular-nums}.printer-metric-target{font-size:11px;color:var(--text-muted, #6b7280);margin-top:2px;font-variant-numeric:tabular-nums}.printer-metric-readout.heating{border-color:#ea580c73;background:#fffaf5}.printer-metric-readout.stable{border-color:#16a34a66}.printer-metric-readout.heating .printer-metric-target{color:var(--orange, #ea580c);font-weight:600}.printer-metric-readout.stable .printer-metric-target{color:var(--green, #16a34a);font-weight:600}.printer-ams-header-actions{display:flex;align-items:center;gap:8px}.printer-remove-button{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;color:var(--danger, #ef4444);border-color:#ef44444d}.printer-remove-button:hover:not(:disabled){background:var(--danger-bg, #fee2e2);border-color:var(--danger, #ef4444);color:var(--danger, #b91c1c)}@media (max-width: 760px){.printer-dashboard-panel{grid-template-columns:minmax(0,1fr);grid-template-areas:"summary" "camera" "progress" "controls" "metrics" "ams";row-gap:12px}.printer-dashboard-panel:before{grid-row:1 / 6}.printer-dashboard-panel .detail-main>.printer-camera-card,.printer-dashboard-panel .detail-main>.printer-progress-card,.printer-dashboard-panel .printer-control-section,.printer-dashboard-panel .printer-telemetry-section{padding:0 16px}.printer-dashboard-panel .printer-ams-section{grid-row:auto}.printer-panel-summary{padding:16px 16px 6px}.printer-temperature-pair{grid-template-columns:1fr}}.printer-dashboard-panel .detail-main>.section,.printer-dashboard-panel .detail-side>.section{position:relative;z-index:1}.folder-entry{display:flex;align-items:center;gap:2px;padding-right:4px}.folder-entry .folder-item{flex:1;min-width:0;padding-right:4px}.folder-entry-delete{flex:none;padding:6px 7px;background:transparent;color:var(--danger);opacity:.6}.folder-entry-delete:hover:not(:disabled){background:var(--danger-bg)}.section-page-header .meta{margin:0}.section-page-content{width:100%;max-width:1600px;padding:24px 32px}.section-stack,.section-card-list{display:flex;flex-direction:column;gap:14px}.section-card{min-width:0;padding:18px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm)}.section-card h2{margin:0 0 6px;color:var(--text-primary);font-size:16px}.section-card p{line-height:1.5}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-toolbar h2{margin:0}.section-toolbar select,.section-field input,.code-form input{min-height:36px;padding:7px 10px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg-card);color:var(--text-primary);font:inherit}.section-empty{padding:42px 20px;text-align:center;color:var(--text-secondary)}.section-empty-icon{margin-bottom:8px;color:var(--success);font-size:26px}.active-job-card{display:flex;align-items:center}.active-job-main{width:100%}.active-job-heading,.settings-printer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.active-job-heading h2,.settings-printer-heading h2{margin-bottom:4px}.active-job-heading p,.settings-printer-heading p{margin:0}.status-pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:var(--bg-muted);color:var(--text-secondary);font-size:11px;font-weight:700;white-space:nowrap}.status-pill.printing,.status-pill.done{background:var(--success-bg);color:var(--success)}.status-pill.paused{background:#fff7df;color:#986300}.status-pill.failed,.status-pill.error{background:var(--danger-bg);color:var(--danger)}.section-progress{height:8px;overflow:hidden;margin:16px 0 10px;border-radius:999px;background:var(--bg-muted)}.section-progress>div{height:100%;border-radius:inherit;background:var(--accent);transition:width .25s ease}.active-job-stats{display:flex;flex-wrap:wrap;gap:12px 24px;margin:10px 0 16px;color:var(--text-secondary);font-size:12px}.active-job-stats strong{color:var(--text-primary)}.section-table{width:100%;border-collapse:collapse;font-size:13px}.section-table th,.section-table td{padding:11px 10px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}.section-table th{color:var(--text-muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}.section-table tr:last-child td{border-bottom:0}.text-link{padding:0;background:transparent;color:var(--accent);text-align:left}.text-link:hover:not(:disabled){background:transparent;text-decoration:underline}.section-footnote{margin:14px 0 0;font-size:12px}.calibration-list{display:flex;flex-direction:column;gap:4px;padding:0;margin:0;list-style:none}.calibration-list li{border-bottom:1px solid var(--border)}.calibration-list li:last-child{border-bottom:0}.calibration-list label{display:flex;align-items:center;gap:12px;padding:12px 4px;cursor:pointer}.calibration-list input,.preference-row input{width:17px;height:17px;accent-color:var(--accent)}.calibration-number{display:grid;width:25px;height:25px;flex:none;place-items:center;border-radius:50%;background:var(--bg-muted);color:var(--text-secondary);font-size:12px;font-weight:700}.calibration-actions{margin:16px 0 0}.connection-result,.connection-printer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.connection-result{padding:8px 0}.connection-printers{display:flex;flex-direction:column}.connection-printer{min-height:48px;border-bottom:1px solid var(--border)}.connection-printer:last-child{border-bottom:0}.connection-printer strong{min-width:150px}.connection-printer .meta{margin-left:auto}.status-dot{width:9px;height:9px;flex:none;border-radius:50%;background:var(--text-muted)}.status-dot.online{background:var(--success);box-shadow:0 0 0 3px var(--success-bg)}.status-dot.offline{background:var(--danger);box-shadow:0 0 0 3px var(--danger-bg)}.profile-card{max-width:620px}.section-field{display:flex;flex-direction:column;gap:7px;max-width:420px;color:var(--text-primary);font-size:13px;font-weight:600}.section-field input{width:100%}.success-text{color:var(--success);font-weight:600}.settings-printer{display:flex;flex-direction:column;gap:14px}.add-printer-inline-card{margin-bottom:16px;border:1px solid var(--accent)}.add-printer-inline-card h3{margin-top:0;margin-bottom:6px}.settings-actions,.code-form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.code-form label{display:flex;flex-direction:column;gap:6px;color:var(--text-secondary);font-size:12px}.code-form input{width:190px;letter-spacing:3px}.preference-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border);color:var(--text-primary)}.notification-actions>div{display:flex;gap:8px}@media (max-width: 760px){.section-page-content,.section-page-header{padding:16px}.section-toolbar,.active-job-heading,.settings-printer-heading{align-items:flex-start;flex-direction:column}.active-job-stats{gap:8px 14px}.connection-printer .meta{width:100%;margin-left:21px}.section-table th,.section-table td{padding:9px 7px}}@media (max-width: 600px){.page-header,.section-page-header{align-items:stretch;flex-direction:column;padding:16px 14px 12px}.page-content,.section-page-content{padding:14px 14px calc(22px + env(safe-area-inset-bottom))}.notification-actions{align-items:flex-start}.notification-actions>div{width:100%}.notification-actions>div>button{flex:1 1 130px}.preference-row{min-height:44px;align-items:flex-start;gap:12px;line-height:1.4}.preference-row input{flex:none;width:20px;height:20px;margin-top:1px}}button,input,select,textarea{font-family:inherit}:where(button,a,[role=button],input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s-2);min-height:40px;padding:0 var(--s-4);border:1px solid transparent;border-radius:var(--r-md);font-size:var(--fs-md);font-weight:600;line-height:1;transition:background .15s,border-color .15s,box-shadow .15s}.btn--primary{background:var(--accent);color:#fff;box-shadow:var(--shadow-1)}.btn--primary:hover:not(:disabled){background:var(--accent-hover)}.btn--ghost{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}.btn--ghost:hover:not(:disabled){background:var(--fill)}.rail{flex:none;width:232px;height:100vh;position:sticky;top:0;display:flex;flex-direction:column;padding:var(--s-5) var(--s-3) var(--s-3);background:var(--paper);border-right:1px solid var(--line);overflow-y:auto}.rail-brand{display:flex;align-items:center;gap:10px;padding:0 10px var(--s-5)}.rail-logo{display:grid;place-items:center;width:32px;height:32px;border-radius:var(--r-md);background:var(--accent);color:#fff}.rail-title{font-size:var(--fs-lg);font-weight:700;letter-spacing:-.01em;color:var(--ink)}.rail-nav{flex:1}.rail-group{margin-bottom:var(--s-4);display:flex;flex-direction:column;gap:2px}.rail-group-label{padding:0 10px 6px;font-size:var(--fs-xs);font-weight:600;letter-spacing:.02em;color:var(--ink-3)}.rail-item{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:0 10px;border-radius:var(--r-md);background:transparent;color:var(--ink-2);font-size:var(--fs-md);font-weight:500;text-align:left;transition:background .15s,color .15s}.rail-item svg{flex:none;color:var(--ink-3);transition:color .15s}.rail-item:hover:not(:disabled){background:var(--fill);color:var(--ink)}.rail-item.is-active{background:var(--fill-strong);color:var(--ink);font-weight:600}.rail-item.is-active svg{color:var(--accent-strong)}.rail-footer{padding-top:var(--s-3);border-top:1px solid var(--line);display:flex;flex-direction:column;gap:var(--s-2)}.rail-user{display:flex;align-items:center;gap:10px;padding:4px 6px}.rail-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--fill-strong);color:var(--ink);font-size:var(--fs-md);font-weight:700}.rail-user-name{font-size:var(--fs-md);font-weight:600;color:var(--ink);line-height:1.2}.rail-user-sub{font-size:var(--fs-xs);color:var(--ink-3)}.rail-logout{display:flex;align-items:center;justify-content:center;gap:var(--s-2);min-height:36px;background:transparent;color:var(--ink-2);border:1px solid var(--line-strong);border-radius:var(--r-md);font-size:var(--fs-sm);font-weight:600}.rail-logout:hover:not(:disabled){background:var(--fill);color:var(--ink)}.tabbar,.topbar,.sheet-backdrop{display:none}@media (max-width: 960px) and (min-width: 721px){.rail{width:68px;padding-inline:var(--s-2);align-items:stretch}.rail-title,.rail-group-label,.rail-label,.rail-user-info,.rail-logout-label{display:none}.rail-brand{justify-content:center;padding-inline:0}.rail-item{justify-content:center;padding:0}.rail-group+.rail-group{padding-top:var(--s-3);border-top:1px solid var(--line)}.rail-user{justify-content:center;padding:0}.rail-logout{padding:0}}.dash-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s-4);padding:var(--s-6) var(--s-6) var(--s-4)}.dash-title{margin:0;font-size:var(--fs-2xl);font-weight:700;letter-spacing:-.02em;line-height:1.15;color:var(--ink)}.dash-sub{margin:4px 0 0;font-size:var(--fs-md);color:var(--ink-2)}.dash-content{padding:var(--s-2) var(--s-6) var(--s-7)}.farm{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s-3) var(--s-4);margin-bottom:var(--s-5)}.farm-title{margin:0;font-size:var(--fs-sm);font-weight:600;color:var(--ink-3)}.farm-stats{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(132px,auto);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-1)}.farm-stat{display:flex;align-items:center;gap:10px;padding:12px var(--s-5);background:var(--surface);color:var(--ink-3)}.farm-num{font-size:var(--fs-xl);font-weight:700;line-height:1;color:var(--ink);letter-spacing:-.01em}.farm-of{font-size:var(--fs-md);font-weight:600;color:var(--ink-3)}.farm-label{font-size:var(--fs-md);font-weight:500;color:var(--ink-2)}.farm-stat--online svg,.farm-stat--printing svg{color:var(--st-printing)}.farm-stat--attention{background:var(--st-error-bg)}.farm-stat--attention svg,.farm-stat--attention .farm-num,.farm-stat--attention .farm-label{color:var(--st-error)}.farm-stat--attention .farm-label{font-weight:600}.pc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:var(--s-5)}.pc{position:relative;display:flex;flex-direction:column;overflow:hidden;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-1);transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease}.pc:hover{box-shadow:var(--shadow-2);border-color:var(--line-strong);transform:translateY(-2px)}.pc:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.pc--error,.pc--error:hover{border-color:var(--st-error)}.pc-media{position:relative;aspect-ratio:16 / 10;background:var(--fill-strong);overflow:hidden}.pc-media .camera-view{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;aspect-ratio:auto;border-radius:0;background:var(--fill-strong)}.pc-media .camera-view img{object-fit:cover}.pc-media .camera-status{display:none}.pc-media .camera-placeholder{flex-direction:column;gap:var(--s-2);color:var(--ink-3);font-size:var(--fs-sm);font-weight:500}.pc-media .camera-placeholder:before{content:"";width:28px;height:28px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h4l2-3h6l2 3h4v11H3z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h4l2-3h6l2 3h4v11H3z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat}.pc-scrim{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .3s;background:linear-gradient(180deg,#15171c6b,#15171c00 38%,#15171c00 70%,#15171c2e)}.pc-media:has(img) .pc-scrim{opacity:1}.pc--calm .pc-media img{filter:saturate(.55) brightness(1.02)}.pc-status{position:absolute;top:var(--s-3);left:var(--s-3);display:inline-flex;align-items:center;gap:var(--s-2);padding:8px 14px 8px 10px;border-radius:var(--r-pill);font-size:15px;font-weight:700;letter-spacing:.03em;line-height:1;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-1)}.pc-status--printing{background:var(--st-printing-bg);color:var(--st-printing)}.pc-status--paused{background:var(--st-paused-bg);color:var(--st-paused)}.pc-status--swap{background:var(--st-swap-bg);color:var(--st-swap)}.pc-status--idle{background:var(--surface);color:var(--st-idle)}.pc-status--muted{background:var(--surface);color:var(--ink-3)}.pc-status--error{background:var(--st-error);color:#fff}.pc--calm .pc-status{font-size:var(--fs-md);font-weight:600}.pc-progress{height:4px;background:var(--line);overflow:hidden}.pc-progress--off{height:1px}.pc-progress-fill{height:100%;background:var(--accent);transition:width .9s cubic-bezier(.4,0,.2,1)}.pc--paused .pc-progress-fill{background:var(--st-paused)}.pc--swap .pc-progress-fill{background:var(--st-swap)}.pc-body{display:flex;flex:1;flex-direction:column;padding:var(--s-4) var(--s-5) var(--s-3)}.pc-id{display:flex;align-items:center;gap:var(--s-2);min-width:0}.pc-name{margin:0;min-width:0;font-size:18px;font-weight:650;letter-spacing:-.01em;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc--calm .pc-name{color:var(--ink-2)}.pc-tag{display:inline-flex;flex:none;align-items:center;gap:4px;padding:2px 6px;border-radius:var(--r-sm);background:var(--fill);color:var(--ink-2);font-size:var(--fs-xs);font-weight:600}.pc-model{margin:2px 0 0;font-size:var(--fs-sm);color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc-serial{font-family:var(--font-mono);font-size:var(--fs-xs)}.pc-job{margin-top:var(--s-4)}.pc-jobname{margin:0 0 var(--s-2);font-size:var(--fs-lg);font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc-metrics{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s-4)}.pc-pct{display:flex;align-items:baseline;gap:2px;color:var(--ink);line-height:1}.pc-pct-num{font-size:var(--fs-3xl);font-weight:700;letter-spacing:-.03em}.pc-pct-unit{font-size:var(--fs-xl);font-weight:600;color:var(--ink-2)}.pc-time{display:flex;gap:var(--s-5);margin:0}.pc-time div{display:flex;flex-direction:column;gap:2px}.pc-time div:last-child{text-align:right}.pc-time dt{font-size:var(--fs-xs);font-weight:600;color:var(--ink-3)}.pc-time dd{margin:0;font-size:var(--fs-lg);font-weight:650;color:var(--ink);white-space:nowrap}.pc-layer{margin:var(--s-2) 0 0;font-size:var(--fs-sm);color:var(--ink-3)}.pc-idle{margin-top:var(--s-4)}.pc-idle-title{margin:0;font-size:var(--fs-lg);font-weight:600;color:var(--ink-2)}.pc-idle-sub{margin:2px 0 0;font-size:var(--fs-md);color:var(--ink-3)}.pc-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);margin-top:auto;padding-top:var(--s-4)}.pc-temps{display:flex;flex-wrap:wrap;gap:var(--s-4);margin:0;padding:0;list-style:none}.pc-temps li{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-md);font-weight:600;color:var(--ink-2)}.pc-temps svg{color:var(--ink-3)}.pc-detail{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;margin-right:-10px;background:transparent;color:var(--accent-strong);border-radius:var(--r-md);font-size:var(--fs-md);font-weight:600}.pc-detail svg{transition:transform .15s}.pc-detail:hover:not(:disabled){background:var(--accent-soft)}.pc:hover .pc-detail svg{transform:translate(3px)}.pc-hint{display:flex;align-items:center;gap:6px;margin:var(--s-1) 0 0;font-size:var(--fs-sm);color:var(--ink-3)}@media (max-width: 720px){.app-layout{flex-direction:column}.app-main{padding-bottom:calc(76px + env(safe-area-inset-bottom));overflow-x:clip}.topbar{display:flex;align-items:center;gap:10px;padding:calc(var(--s-3) + env(safe-area-inset-top)) var(--s-4) 0}.topbar-brand{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-lg);font-weight:700;color:var(--ink)}.topbar-brand svg{padding:6px;box-sizing:content-box;width:18px;height:18px;border-radius:var(--r-md);background:var(--accent);color:#fff}.tabbar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;z-index:70;padding-bottom:env(safe-area-inset-bottom);background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line)}.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:6px 0;background:transparent;color:var(--ink-3);font-size:var(--fs-xs);font-weight:600;border-radius:0}.tab svg{box-sizing:content-box;padding:4px 18px;border-radius:var(--r-pill);transition:background .15s,color .15s}.tab:hover:not(:disabled){background:transparent;color:var(--ink)}.tab.is-active{color:var(--accent-strong)}.tab.is-active svg{background:var(--accent-soft)}.sheet-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;padding:0;border-radius:0;background:#15171c61}.sheet-backdrop:hover:not(:disabled){background:#15171c61}.rail{display:none;position:fixed;z-index:60;width:auto;height:auto;max-height:calc(100dvh - 120px);top:auto;left:var(--s-2);right:var(--s-2);bottom:calc(72px + env(safe-area-inset-bottom));padding:var(--s-4) var(--s-3) var(--s-3);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-3)}.rail.is-open{display:flex;animation:sheet-in .22s ease-out}.rail-brand,.rail-user{display:none}.rail{overflow:hidden;max-height:calc(100dvh - 140px)}.rail-nav{min-height:0;overflow-y:auto}.rail-item{min-height:42px}.dash-head{padding:var(--s-3) var(--s-4) var(--s-3);align-items:center}.dash-title{font-size:26px}.dash-sub{font-size:var(--fs-sm)}.dash-head .btn{min-height:44px;padding:0 14px}.dash-content{padding:var(--s-1) var(--s-4) var(--s-5)}.farm{flex-direction:column;align-items:stretch;gap:var(--s-2)}.farm-stats{grid-auto-flow:row;grid-template-columns:1fr 1fr;grid-auto-columns:auto}.farm-stat{padding:var(--s-3) var(--s-4)}.pc-grid{gap:var(--s-4)}}@keyframes sheet-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){.pc,.pc-progress-fill,.pc-detail svg,.rail.is-open{transition:none;animation:none}.pc:hover{transform:none}}
