.printer-setup{background:#fff;padding:24px;border:1px solid #e0e9e4;border-radius:16px;margin-bottom:18px}.ps-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.ps-head h2,.ps-head h3{margin:0}.ps-head p,.ps-help{color:#708477;font-size:13px;line-height:1.7}.ps-route{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid #e0eae4;border-radius:12px;padding:18px;margin-bottom:12px}.ps-route strong,.ps-route small,.ps-area-label{display:block}.ps-area-label{font-size:12px;color:#137564;font-weight:600;margin-bottom:8px}.ps-route strong{font-size:16px}.ps-route small{color:#71867a;font-size:12px;margin-top:7px}.ps-actions{display:flex;gap:8px;flex-wrap:wrap}.ps-disconnect{border:0;background:transparent;color:#a35b53;font-size:12px;cursor:pointer}.ps-manual{border:1px solid #e0e9e4;border-radius:12px;padding:16px;background:#fff}.ps-manual>summary{color:#637b6e;font-size:13px;cursor:pointer}.ps-manual>div{padding-top:20px}#printer-setup-dialog{width:min(520px,94vw);border:0;border-radius:18px;padding:0;max-height:90vh;overflow:auto}#printer-setup-dialog::backdrop{background:#15372d66}.ps-dialog{padding:24px}.ps-dialog label{display:grid;gap:8px;margin:16px 0}.ps-dialog select,.ps-dialog input{width:100%}.ps-dialog .check-row{display:flex;align-items:center}.ps-dialog input[type=checkbox]{width:18px;min-height:18px}.ps-dialog [hidden]{display:none!important}#ps-connect{width:100%;margin-top:12px}#ps-message{font-size:13px;color:#5d7669;line-height:1.7}#ps-scan{margin-bottom:5px}@media(max-width:700px){.printer-setup{padding:16px}.ps-head,.ps-route{align-items:stretch;flex-direction:column;gap:12px}.ps-actions button{flex:1}.ps-head>.primary-btn{width:100%}}
#view-printers [hidden],#printer-dialog [hidden]{display:none!important}
#printer-setup-dialog{position:fixed;inset:0;margin:auto;background:#fff;color:#173e32;box-shadow:0 28px 90px #0d2c294d;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #e0e9e5;border-radius:20px}#printer-setup-dialog::backdrop{background:#102e2966;backdrop-filter:blur(3px)}#printer-setup-dialog .ps-dialog{padding:0;background:#fff;border-radius:20px}.ps-modal-head{display:flex;align-items:center;gap:12px;padding:22px 24px;border-bottom:1px solid #e6ede9;background:#fff}.ps-modal-head h3{font-size:19px;margin:0 0 4px}.ps-modal-head p{font-size:12px;color:#7b8d83;margin:0}.ps-modal-head>.icon-btn{margin-left:auto;flex-shrink:0;border:0;background:#f3f6f4;width:34px;height:34px;min-height:34px}.ps-printer-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e7f5ed;color:#087a65;flex-shrink:0}.ps-printer-icon svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.6;fill:none}.ps-modal-body{padding:18px 24px 6px}.ps-step{border:1px solid #e3ebe6;border-radius:12px;padding:14px 16px;margin-bottom:12px}.ps-step-title{display:flex;align-items:center;gap:9px;margin-bottom:8px}.ps-step-title>span{display:grid;place-items:center;border-radius:50%;background:#eaf5ef;color:#0d7864;font-size:11px;font-weight:700;width:24px;height:24px}.ps-step-title h4{font-size:14px;margin:0}#printer-setup-dialog .ps-step label{font-size:12px;color:#6c8275;margin:8px 0 0;gap:6px}#printer-setup-dialog select,#printer-setup-dialog input{background:#fff;border:1px solid #dae6de;border-radius:8px;min-height:42px;color:#234b3d;font-size:13px}#printer-setup-dialog .check-row input{min-height:18px}.ps-scan-row{display:flex;align-items:flex-end;gap:10px}.ps-scan-row>label{flex:1;min-width:0}.ps-scan-row>#ps-scan{margin:0;min-height:42px;white-space:nowrap}.ps-modal-footer{display:flex;gap:10px;padding:16px 24px;border-top:1px solid #e5ede8;background:#fafcfb;border-radius:0 0 20px 20px;position:sticky;bottom:0;z-index:1}.ps-modal-footer>.secondary-btn{min-width:90px}.ps-modal-footer>#ps-connect{margin:0;flex:1;width:auto;min-height:42px}.ps-modal-footer button:disabled{opacity:.45;cursor:not-allowed}#ps-message{margin:4px 0 12px;border-radius:8px;padding:10px 12px;background:#f1f6f3;font-size:12px;line-height:1.6;color:#617b6b}#ps-message[data-kind=error]{background:#fff1ef;color:#a1493f}#ps-message[data-kind=success]{background:#eaf6ef;color:#17694f}@media(max-width:480px){.ps-modal-head{padding:16px}.ps-modal-body{padding:14px 16px 4px}.ps-modal-footer{padding:14px 16px}.ps-step{padding:12px}.ps-modal-head p{max-width:220px}.ps-printer-icon{width:36px;height:36px}.ps-scan-row{gap:8px}}
.ps-ip-entry{margin-top:12px;font-size:12px;color:#6b8274}.ps-ip-entry>summary{cursor:pointer;line-height:1.6}.ps-ip-entry input{font-variant-numeric:tabular-nums}
