/* HKA_PIAS_CSS_V100 */
.hps-launch{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.hps-launch .hps-scan-button{min-height:34px!important;padding:6px 11px!important;font-size:12px!important;line-height:20px!important;background:#eaf3fd!important;color:#154f88!important;border:1px solid #b9d0e8!important;border-radius:6px!important}
.hps-launch small{font-size:11px;line-height:1.5;color:#647a8f;flex:1 1 140px}
.hps-field-note,.hps-scan-result{font:11px/1.55 system-ui,sans-serif;margin:8px 0 0;color:#667e92}
.hps-scan-result{color:#145c43;background:#edf9f3;padding:7px 9px;border-radius:5px}
html body dialog.hps-dialog{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:760px;max-width:calc(100vw - 24px);max-height:92vh;max-height:92dvh;padding:22px 24px;border:1px solid #d0dfea;border-radius:14px;background:#fff;color:#1c3851;box-shadow:0 20px 70px #102b4a50;overflow:auto;overscroll-behavior:contain;font:14px/1.5 system-ui,-apple-system,sans-serif;text-align:left;box-sizing:border-box}
.hps-dialog::backdrop{background:#102c4e83;backdrop-filter:blur(2px)}
.hps-dialog *{box-sizing:border-box}
.hps-dialog [hidden]{display:none!important}
.hps-dialog h2,.hps-dialog p{margin:0}
.hps-dialog .hps-head{position:sticky;top:-22px;z-index:3;background:white;padding:8px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
.hps-dialog .hps-head small{font-size:10px;letter-spacing:.12em;color:#6887a0;font-weight:700}
.hps-dialog .hps-head h2{font-size:23px;letter-spacing:-.025em;line-height:1.4;color:#193f64}
.hps-dialog .hps-station{font-size:13px;color:#6a8094;margin-bottom:18px}
.hps-dialog .hps-setup{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;background:#f2f6fa;border:1px solid #e0e9f0;border-radius:8px;margin-bottom:12px}
.hps-dialog label{display:grid;gap:6px;font:12px/1.4 system-ui,sans-serif;min-width:0;color:#355873}
.hps-dialog input:not([type="range"]),.hps-dialog select{width:100%;min-width:0;min-height:40px;border:1px solid #c4d4e0;border-radius:5px;padding:8px;background:#fff;color:#163b5e;font:14px/1.3 system-ui,sans-serif}
.hps-dialog input[type="range"]{width:100%;accent-color:#2066a5}
.hps-dialog .hps-help{font-size:12px;line-height:1.6;color:#657b8d;margin:8px 0 10px}
.hps-dialog .hps-actions,.hps-dialog .hps-image-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}
.hps-dialog .hps-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid #bdd0e1;border-radius:6px;background:#fff;color:#255371;font:600 12px/1.4 system-ui,sans-serif;cursor:pointer;letter-spacing:0;text-transform:none;text-decoration:none}
.hps-dialog .hps-button:hover{background:#f0f6fc}
.hps-dialog .hps-button:focus-visible,.hps-dialog input:focus-visible,.hps-dialog select:focus-visible,.hps-dialog summary:focus-visible{outline:3px solid #78b6ee;outline-offset:2px}
.hps-dialog .hps-button:disabled{opacity:.5;cursor:not-allowed}
.hps-dialog .hps-button.hps-primary{background:#175c9b;color:white;border-color:#175c9b}
.hps-dialog .hps-close{min-width:56px;font-weight:500;background:#f4f7fa;border:0}
.hps-dialog .hps-camera video{display:block;width:100%;max-height:330px;background:#172a3a;border-radius:8px;object-fit:contain}
.hps-dialog .hps-status{font-size:12px;line-height:1.6;margin:10px 0;color:#255a7f;overflow-wrap:anywhere}
.hps-dialog .hps-status.is-error{color:#9d3c23;background:#fff6f0;border-left:3px solid #d38c5b;padding:8px 10px}
.hps-dialog .hps-status:empty{display:none}
.hps-dialog .hps-instruction{font-size:12px;font-weight:600;margin:14px 0 8px;color:#234e78}
.hps-dialog .hps-canvas-wrap{overflow:auto;border:1px solid #d6e2ec;border-radius:8px;background:#e8eef4;max-height:380px}
.hps-dialog canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair;max-width:none}
.hps-dialog .hps-adjust{margin:10px 0}
.hps-dialog summary{font-size:12px;color:#486f8f;cursor:pointer;padding:6px 0}
.hps-dialog .hps-adjust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hps-dialog .hps-result{margin-top:15px;padding:16px;border:1px solid #bfddcf;background:#f1faf5;border-radius:9px}
.hps-dialog .hps-result-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.hps-dialog .hps-result-heading span{font-size:12px;color:#3f735e}
.hps-dialog .hps-result-heading strong{font-size:25px;white-space:nowrap;color:#186144;font-variant-numeric:tabular-nums}
.hps-dialog .hps-result-note{font-size:12px;line-height:1.6;margin:6px 0 8px;color:#4a7361}
.hps-dialog .hps-hour-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:7px}
.hps-dialog .hps-hour-grid label{font-size:11px}
.hps-dialog .hps-hour-grid input{min-height:36px;padding:6px 8px}
.hps-dialog .hps-footer{border-top:1px solid #e2eaf1;margin-top:18px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.hps-dialog .hps-footer p{font-size:11px;line-height:1.55;color:#778b9c;flex:1}
.hps-dialog .hps-footer button{flex-shrink:0}
@media(max-width:600px){
 html body dialog.hps-dialog{padding:17px 15px;border-radius:11px;max-width:calc(100vw - 16px)}
 .hps-dialog .hps-head{top:-17px}.hps-dialog .hps-head h2{font-size:20px}
 .hps-dialog .hps-setup{grid-template-columns:1fr;padding:11px;gap:10px}
 .hps-dialog input:not([type="range"]),.hps-dialog select{font-size:16px;min-height:43px}
 .hps-dialog .hps-canvas-wrap{max-height:300px}
 .hps-dialog .hps-hour-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hps-dialog .hps-adjust-grid{grid-template-columns:1fr}
 .hps-dialog .hps-result{padding:12px}
 .hps-dialog .hps-result-heading strong{font-size:23px}
 .hps-dialog .hps-result-heading span{max-width:140px}
 .hps-dialog .hps-footer{display:block}
 .hps-dialog .hps-footer button{width:100%;margin-top:12px}
}
@media(max-width:350px){.hps-dialog .hps-hour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hps-dialog .hps-image-tools .hps-primary{width:100%}}
