*{box-sizing:border-box;letter-spacing:0} :root{font-family:Arial,Helvetica,sans-serif;color:#20282e;background:#f5f7f8;font-synthesis:none}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button,input{min-height:46px}button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:6px;font-weight:600}button:focus-visible,summary:focus-visible{outline:3px solid #b4dbea;outline-offset:3px}svg{width:19px;height:19px;flex-shrink:0}main{max-width:480px;margin:auto;padding:calc(18px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));min-height:100svh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:11px}.brand img{border-radius:8px}h1{font-size:22px;line-height:1.1;margin:0 0 5px}h2{font-size:18px;margin:0}.eyebrow{font-size:10px;color:#67737b;font-weight:700}.icon-button{width:42px;height:42px;min-height:42px;flex-shrink:0;padding:0;border:0;background:transparent;color:#596871}.clockbar{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding-bottom:16px;border-bottom:1px solid #dfe5e8;color:#5b6871;font-size:13px}.clockbar span{display:flex;align-items:center;gap:5px}.clockbar svg{width:14px;height:14px}.clockbar time{font-variant-numeric:tabular-nums;font-weight:600;color:#20282e}.connection-band{padding:14px 0 19px;border-bottom:1px solid #dfe5e8}.connection-title{display:flex;align-items:center;gap:8px;font-size:14px}.connection-title button{margin-left:auto}.dot{width:8px;height:8px;border-radius:50%;background:#8b969d;flex-shrink:0}.dot.ready{background:#168365}.dot.error{background:#b84838}.checks{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;color:#53646a}.checks span{padding-right:8px;border-right:1px solid #cbd5da}.checks span:last-child{border:0}.warning{font-size:12px;line-height:1.5;color:#a03e2e;background:#fff0e9;padding:10px;border-left:3px solid #d97653;margin:12px 0 0}.new-event{padding:23px 0;border-bottom:1px solid #dfe5e8}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.zone,.counter{font-size:11px;color:#61747a;font-weight:600}.input-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}input{width:100%;min-width:0;max-width:100%;border:1px solid #c9d3d8;border-radius:6px;background:#fff;color:#20282e;padding:11px 10px;font-size:16px}input:focus{outline:2px solid #89bfc9;outline-offset:1px}.timing{padding:12px 0 0;display:flex;flex-direction:column;gap:7px;font-size:11px;color:#66747b}.timing div{display:flex;justify-content:space-between;gap:8px}.timing strong{color:#3a535b;font-weight:600}.primary{width:100%;margin-top:18px;background:#16788b;color:#fff;border:1px solid #16788b;padding:12px}.primary:hover:enabled{background:#106575}.secondary{border:1px solid #cad5d9;color:#435761;background:transparent;padding:10px 12px}.secondary:hover:enabled{background:#eaf0f2}.agenda{padding-top:23px}.tabs{display:flex;gap:24px;border-bottom:1px solid #dfe5e8}.tabs button{min-height:38px;font-size:12px;border:0;border-radius:0;background:transparent;padding:0 0 10px;color:#7a868e}.tabs button[aria-selected=true]{color:#16788b;border-bottom:2px solid #16788b}.job{padding:17px 0;border-bottom:1px solid #dfe5e8;display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:6px}.job-date{font-size:11px;color:#61717b}.job-time{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;margin:5px 0}.job-status{font-size:11px;font-weight:700;color:#287b72}.job-status.failed,.job-status.missed,.job-status.interrupted,.job-status.incomplete{color:#ad442f}.job-status.cancelled{color:#6b7580}.job-note{font-size:11px;color:#738088;line-height:1.5;margin:8px 0 0;grid-column:1/-1;overflow-wrap:anywhere}.job-message{font-size:12px;font-family:monospace;color:#34444c;line-height:1.6;overflow-wrap:anywhere}.job .icon-button{width:36px;align-self:center;color:#7a858b}.empty{padding:29px 0 24px;display:flex;align-items:center;gap:12px;color:#8b979d;font-size:13px}.empty svg{width:28px;height:28px;stroke-width:1.3}.empty p{margin:0}.progress{height:3px;background:#dee7e9;margin:10px 0}.progress span{display:block;height:100%;background:#228b90}footer{padding-top:23px;display:flex;align-items:center;flex-direction:column;gap:18px}footer .secondary{width:100%;font-size:12px}.trial{font-size:9px;color:#879297}.feedback{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 36px);max-width:438px;background:#e2f3ed;border:1px solid #acd3c4;color:#225e4d;padding:13px 16px;border-radius:6px;font-size:13px;line-height:1.5;box-shadow:0 5px 20px #23343b15;z-index:10}.feedback.error{color:#973d2f;background:#fff0e9;border-color:#e9b7a6}#pair-section{padding-top:27px}#pair-section form{margin-top:22px}#pair-code{font-size:26px;font-variant-numeric:tabular-nums}details{margin-top:18px}summary{color:#647781;font-size:12px;cursor:pointer}details label{margin-top:14px}dialog{background:#fff;color:#20282e;border:1px solid #d3dde0;border-radius:8px;padding:20px;width:calc(100% - 34px);max-width:420px}dialog::backdrop{background:#18232a80}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.danger{border:1px solid #dcb0a7;background:#fff5f1;color:#a23e2c;padding:10px 12px}#unpair{margin-top:20px;font-size:12px}.muted{font-size:12px;color:#718087;line-height:1.5}#saved-endpoint{font-size:12px} [hidden]{display:none!important}@media(min-width:800px){main{margin:30px auto;padding:24px 32px;max-width:480px;border-left:1px solid #e0e6e9;border-right:1px solid #e0e6e9;min-height:calc(100svh - 60px)}}@media(max-width:350px){main{padding-left:15px;padding-right:15px}.input-row{gap:8px}input{padding:11px 7px;font-size:14px}.checks{gap:4px}.checks span{padding-right:4px}}
#change-connection{margin-top:10px;width:100%;font-size:12px}
.event-modes{display:grid;grid-template-columns:1fr 1.35fr;background:#e8eef0;padding:3px;border-radius:6px;margin-bottom:18px;gap:3px}.event-modes button{border:0;border-radius:4px;min-height:42px;font-size:12px;background:transparent;color:#566b74;padding:8px 6px}.event-modes button[aria-pressed=true]{background:#fff;color:#126c7d;box-shadow:0 1px 3px #28394020}.event-modes svg{width:17px;height:17px}
.history-actions{grid-column:1/-1;display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:10px}.history-actions button{font-size:12px;flex-shrink:0}.event-label{font-size:11px;color:#68747a;overflow-wrap:anywhere}.event-label.patron,.patron{color:#087345}.event-label.patron_inverso,.patron_inverso{color:#b22029}.event-label.suceso_alfa{color:#342700;background:#ffe16e;padding:5px 7px;border-radius:3px}#event-dialog{max-width:760px;max-height:calc(100svh - 32px);overflow-y:auto}#detail-title{font-size:21px}#detail-date{margin:7px 0 0}#event-dialog .dialog-heading{align-items:flex-start;gap:10px}.label-form{display:flex;gap:10px;align-items:flex-end}.label-form label{flex:1}.label-form select{width:100%;min-width:0;height:46px;padding:8px;border:1px solid #c9d3d8;border-radius:6px;font:700 14px Arial;background:#fff;text-transform:uppercase}.label-form select.suceso_alfa{background:#ffe16e;color:#342700}.label-form option{background:#fff;color:#20282e}.label-form button{width:46px;flex-shrink:0}#label-result{min-height:18px;margin:8px 0 18px}.table-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid #dfe5e8;padding-top:15px}.table-heading h3{font-size:14px;margin:0}.table-tools{display:flex;align-items:center;gap:0}.table-tools .icon-button{width:36px}.table-tools output{font-size:11px;min-width:35px;text-align:center}.table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;background:#fff;border:1px solid #dde3e6;border-radius:0;padding:8px 0;touch-action:pan-x pan-y}#table-canvas{margin:auto}#table-image{display:block;max-width:none}#table-state{min-height:18px}#table-retry{margin-top:12px;font-size:12px}
[hidden] { display: none !important; }
.history-filters { display:flex; gap:8px; align-items:end; margin:12px 0; }
.history-filters label { flex:1; min-width:0; }
.toggle-label { display:flex; align-items:center; gap:12px; }
.toggle-label input { width:22px; height:22px; }
#alarm-settings { border-bottom:1px solid #cbd4d9; margin-bottom:20px; padding-bottom:20px; }
#alarm-settings button { margin:6px 0; }
#archive-state { font-size:12px; line-height:1.5; }
