/* Shared Cockpit surfaces, soft borders and the existing pink accent. */
#page-4 .hist-filters{gap:12px;flex-wrap:wrap}
.ph-tabs{display:flex;gap:6px;align-items:center}.ph-tabs button,.ph-footer button,.ph-calendar button,.ph-detail button,.ph-record button{font:inherit;cursor:pointer}
.ph-tabs button{display:flex;align-items:center;gap:7px;min-height:36px;border:1px solid #e7eaf0;border-radius:8px;padding:7px 13px;background:#fff;color:#6e798b;font-size:13px;font-weight:500}
.ph-tabs button svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-width:1.6}.ph-tabs .is-active{background:#fff0f4;border-color:#ffd6e0;color:#ec295a}
#page-4 #historyStatusFilter{min-height:36px;color:#586477;background:#fff;border:1px solid #e7eaf0;border-radius:8px}
#page-4 .hist-list{padding:18px 22px;overflow-y:auto;flex:1;min-height:0}.ph-footer{padding:12px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#8a94a4;border-top:1px solid #e9edf3;background:#fff}
.ph-footer button,.ph-calendar-foot button{border:1px solid #e4e8ef;border-radius:7px;padding:7px 12px;background:#fff;color:#69778b;font-size:12px}
.ph-record{border:1px solid #e6eaf1;background:#fff;border-radius:12px;margin-bottom:12px;padding:17px 18px;box-shadow:0 2px 8px #26365303}.ph-record-top{display:flex;gap:13px;align-items:flex-start}.ph-video-icon{flex:0 0 38px;height:46px;border:1px solid #e9edf3;border-radius:9px;display:grid;place-items:center;color:#9ca9bb;background:#fafbfd;font-size:25px}
.ph-record-info{min-width:0;flex:1}.ph-record h3{font:550 13px/1.7 var(--flow-body,inherit);margin:0 0 7px;color:#394458;overflow-wrap:anywhere}.ph-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:#8993a4;font-size:11px;line-height:1.7}.ph-account-label{color:var(--account-color);font-weight:550}.ph-account-label::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--account-color);margin-right:5px}.ph-task-id{font-size:10px;color:#a1a9b5;overflow-wrap:anywhere;margin-top:4px}
.ph-badge{display:inline-block;flex-shrink:0;padding:3px 8px;border-radius:20px;font-size:11px;line-height:1.5;border:1px solid #e5e9f1;color:#7c8797;background:#f8f9fb;white-space:nowrap}.ph-done{background:#eefaf3;color:#24935a;border-color:#d5f1df}.ph-error{background:#fff2f4;color:#df4264;border-color:#ffdee5}.ph-scheduled{background:#fff8eb;color:#bb832e;border-color:#f6e8c9}.ph-running,.ph-queued{background:#eef5ff;color:#4b7abc;border-color:#dae6f8}.ph-cancelled{background:#f6f7f9;color:#8b94a2;border-color:#e8ebef}
.ph-record-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;margin-top:10px}.ph-record-actions button{border:0;padding:1px 0;background:transparent;color:#8791a0;font-size:11px}.ph-record-actions button:hover{color:#ff2c55}.ph-record-actions [data-edit]{color:#e1476b}
.ph-failure{margin:13px 0 0 51px;padding:12px 14px;border-radius:8px;background:#fff8f9;border:1px solid #ffe6eb;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.ph-failure>strong{font-weight:600;color:#cb405f}.ph-failure ul{padding-left:16px;margin:8px 0;color:#768195}.ph-failure li{padding:2px 0}.ph-failure li b{color:#676f80;font-weight:500;margin-right:9px}.ph-failure li small{display:block;color:#939dab}.ph-failure details{color:#9b8790;font-size:11px}.ph-failure summary{cursor:pointer}.ph-failure details p{white-space:pre-wrap;font-size:11px;color:#9397a4}
.ph-empty{padding:50px 20px;text-align:center;color:#9aa5b6;font-size:13px}
dialog.ph-calendar,dialog.ph-detail{position:fixed;inset:0;margin:auto;box-sizing:border-box;border:1px solid #e4e8f0;box-shadow:0 24px 100px #1f2a4240;border-radius:17px;background:#fff;color:#465269;padding:0;font-family:var(--flow-body,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif)}
dialog.ph-calendar{width:80vw;height:80vh;max-width:none;max-height:90vh;overflow:hidden}dialog.ph-calendar[open]{display:flex;flex-direction:column}
dialog.ph-calendar::backdrop,dialog.ph-detail::backdrop{background:#29324345;backdrop-filter:blur(4px)}
.ph-calendar button:focus-visible,.ph-detail button:focus-visible,.ph-record button:focus-visible{outline:2px solid #ff2c55;outline-offset:3px}.ph-calendar button:disabled,.ph-detail button:disabled,.ph-footer button:disabled{opacity:.5;cursor:wait}
.ph-calendar-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:23px 26px 19px;border-bottom:1px solid #edf0f5}.ph-eyebrow{font-size:9px;letter-spacing:1.7px;color:#a3acbb;font-weight:600}.ph-calendar-head h2,.ph-detail-head h2{font-size:20px;font-weight:600;margin:6px 0 7px;letter-spacing:-.3px;color:#354055}.ph-calendar-head p{font-size:12px;color:#929daf;margin:0;line-height:1.5}
.ph-close{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border:1px solid #e9edf3;border-radius:8px;background:#fff;color:#919cad;font-size:22px!important;line-height:1}
.ph-calendar-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 26px 12px;flex-wrap:wrap}.ph-period-nav{display:flex;gap:6px;align-items:center}.ph-period-nav>button{border:1px solid #e6eaf1;border-radius:7px;background:#fff;height:30px;min-width:30px;padding:3px 9px;color:#778296;font-size:13px}.ph-period-nav h3{margin:0;padding:0 7px;font-size:14px;color:#475368;font-weight:550;white-space:nowrap}
.ph-calendar-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ph-view-switch{display:flex;background:#f5f6f9;border:1px solid #eceff5;border-radius:8px;padding:3px;gap:2px}.ph-view-switch button{padding:5px 13px;border:0;border-radius:5px;background:transparent;color:#8d98a8;font-size:12px}.ph-view-switch .is-active{color:#e93d65;background:#fff;box-shadow:0 1px 4px #182f4910}
.ph-zone-label{display:flex;gap:8px;align-items:center;font-size:11px;color:#929cad}.ph-calendar select,.ph-detail select,.ph-detail input{box-sizing:border-box;background:#fff;border:1px solid #e5e9f0;border-radius:7px;color:#69758a;font:inherit;font-size:12px;padding:7px 9px;min-width:0}.ph-zone-label select{max-width:260px}
.ph-accounts{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 26px 12px;max-height:90px;overflow:auto}.ph-account-chip{display:flex;align-items:center;gap:6px;border:1px solid #e6eaf1;padding:6px 10px;border-radius:20px;background:#fff;color:#8792a4;font-size:11px!important;min-height:29px}.ph-account-chip i,.ph-detail-account>i{width:7px;height:7px;border-radius:50%;background:var(--account-color,#ff2c55)}.ph-account-chip span{color:#a0a9b6;font-size:10px}.ph-account-chip.is-selected{color:var(--account-color,#e63c66);border-color:var(--account-color,#ffb6c8);background:color-mix(in srgb,var(--account-color,#ff2c55) 7%,white)}
.ph-calendar-note{display:flex;justify-content:space-between;gap:14px;font-size:10px;color:#a3acba;padding:0 26px 12px}.ph-calendar-note>span:first-child{color:#7f8da2}.ph-calendar-scroll{min-height:0;flex:1;overflow:auto;background:#fff;border-top:1px solid #e9edf4}.ph-week-grid{display:grid;grid-template-columns:62px repeat(7,minmax(90px,1fr));min-width:740px}.ph-time-corner,.ph-day-head{position:sticky;top:0;background:#fff;z-index:2;border-bottom:1px solid #e9edf3;box-sizing:border-box;height:55px;text-align:center}.ph-time-corner{font-size:9px;letter-spacing:1px;color:#a5afbc;display:grid;place-items:center}.ph-day-head{padding:9px 0 7px}.ph-day-head span{display:block;font-size:10px;color:#9da7b6;font-weight:400}.ph-day-head b{display:inline-flex;align-items:center;justify-content:center;min-width:25px;min-height:25px;font-size:14px;font-weight:500;color:#67778f}.ph-day-head.is-today b{background:#ff2c55;color:#fff;border-radius:50%}.ph-day-head.is-today span{color:#eb5277}.ph-time-tick{padding:12px 8px 0;text-align:right;font-size:10px;color:#a1acbb;border-bottom:1px solid #edf0f5;background:#fff}.ph-week-cell{min-height:103px;padding:7px 5px;box-sizing:border-box;border-left:1px solid #edf0f5;border-bottom:1px solid #edf0f5;display:flex;flex-direction:column;gap:5px;min-width:0}.ph-week-cell.is-today{background:#fffafb}.ph-time-end{font-size:10px;color:#a1acbb;padding:5px 8px;text-align:right;height:22px}
.ph-event{width:100%;min-width:0;text-align:left;padding:7px 7px 7px 9px;border:0;border-left:2px solid var(--account-color);background:color-mix(in srgb,var(--account-color) 9%,white);border-radius:5px;color:var(--account-color);line-height:1.45;transition:filter .15s}.ph-event:hover{filter:brightness(.97)}.ph-event-time{display:block;font-size:9px;opacity:.85}.ph-event strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:550;margin:2px 0}.ph-event-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;opacity:.8}.ph-event[data-status="cancelled"]{opacity:.55;border-left-style:dashed}.ph-event[data-status="error"] .ph-event-time{font-weight:700}.ph-calendar-empty{margin:0;padding:13px 20px;text-align:center;color:#9fa9b8;background:#fbfcfe;font-size:12px;border-bottom:1px solid #edf0f5}
.ph-month-grid{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));min-width:680px}.ph-month-head{text-align:center;padding:12px 4px;font-size:10px;color:#97a2b3;position:sticky;top:0;background:#fff;border-bottom:1px solid #e8edf4;z-index:2}.ph-month-cell{box-sizing:border-box;min-height:105px;border-bottom:1px solid #edf0f5;border-right:1px solid #edf0f5;padding:6px;min-width:0}.ph-month-date{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-bottom:3px;color:#7b879b;font-size:11px}.ph-month-cell.is-outside{background:#fafbfd}.ph-month-cell.is-outside .ph-month-date{color:#bdc4d0}.ph-month-cell.is-today .ph-month-date{background:#ff2c55;border-radius:50%;color:#fff}.ph-month-events{max-height:140px;overflow:auto;display:flex;flex-direction:column;gap:3px}.ph-month-event{padding:4px 5px}.ph-month-event .ph-event-title{display:none}.ph-month-event strong{font-size:9px;margin:0}
.ph-calendar-foot{display:flex;justify-content:space-between;align-items:center;padding:10px 22px;background:#fafbfd;border-top:1px solid #edf0f5;gap:14px;flex-shrink:0;font-size:10px;color:#9ca6b6}.ph-calendar-foot>span{display:flex;align-items:center;gap:7px}.ph-calendar-foot i{width:5px;height:5px;border-radius:50%;background:#e3a45d}.ph-calendar-foot button{white-space:nowrap}
dialog.ph-detail{width:min(520px,92vw);max-height:85vh;overflow:auto}.ph-detail-head{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 23px 16px;border-bottom:1px solid #edf0f5}.ph-detail-head h2{font-size:18px;margin-bottom:0}.ph-detail-body{padding:20px 23px 23px}.ph-detail-account{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--account-color)}.ph-detail-account .ph-badge{margin-left:auto}.ph-detail-body>h3{font-size:14px;line-height:1.7;font-weight:550;color:#455166;overflow-wrap:anywhere;margin:14px 0}.ph-detail-body dl{font-size:12px;margin:17px 0}.ph-detail-body dl>div{display:grid;grid-template-columns:105px 1fr;gap:14px;line-height:1.7;margin:9px 0}.ph-detail-body dt{color:#a0a9b7}.ph-detail-body dd{color:#6a768b;margin:0;overflow-wrap:anywhere}.ph-detail .ph-failure{margin:14px 0}.ph-form-heading{border-top:1px solid #e9edf4;padding-top:17px;margin-top:18px;font-size:13px;font-weight:550;color:#647086}.ph-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:13px 0}.ph-edit-grid label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#919cad}.ph-edit-grid input,.ph-edit-grid select{width:100%;height:35px}.ph-edit-zone{grid-column:1/-1}.ph-edit-note,.ph-readonly-note{font-size:11px;line-height:1.7;color:#99a4b4}.ph-detail-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.ph-detail-actions button{border:1px solid #e5e9f0;border-radius:7px;background:#fff;padding:8px 12px;font-size:12px;color:#8893a4}.ph-detail-actions .ph-danger{color:#da5575;border-color:#f4d9e2}.ph-detail-actions .ph-primary{background:#ff2c55;border-color:#ff2c55;color:#fff}#phEditError{font-size:12px;color:#d94a69;line-height:1.7}
@media(max-width:1000px){.ph-calendar-controls{padding:13px 18px}.ph-calendar-head{padding:19px 18px 15px}.ph-accounts{padding-left:18px;padding-right:18px}.ph-calendar-options{gap:10px}.ph-zone-label>select{max-width:220px}.ph-calendar-note{padding-left:18px;padding-right:18px}}
.ph-detail [hidden]{display:none!important}.ph-cancel-confirm{margin-top:14px;padding:11px 13px;border:1px solid #f6d7e0;border-radius:8px;background:#fff8fa;font-size:12px;color:#a85b70}.ph-cancel-confirm>div{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.ph-cancel-confirm button{padding:6px 10px;border:1px solid #eedce3;border-radius:6px;background:#fff;font-size:11px;color:#9e7e89}.ph-cancel-confirm #phConfirmCancel{background:#ef496d;color:#fff;border-color:#ef496d}
.ph-detail-video{display:block;width:100%;max-height:240px;object-fit:contain;background:#111720;border-radius:8px;margin:14px 0}
@media(max-width:700px){dialog.ph-calendar{width:95vw;height:90vh;max-height:94vh;border-radius:12px}.ph-calendar-head h2{font-size:17px}.ph-calendar-head p{font-size:11px}.ph-calendar-controls{gap:12px}.ph-calendar-options{width:100%;justify-content:space-between}.ph-period-nav h3{font-size:12px}.ph-calendar-note>span:last-child{display:none}.ph-calendar-foot>span{font-size:9px}.ph-calendar-foot{padding:8px 12px}.ph-record{padding:12px}.ph-failure{margin-left:0}.ph-video-icon{display:none}.ph-tabs{width:100%}.ph-tabs button{flex:1;justify-content:center}.ph-record-top{gap:8px}.ph-record h3{font-size:12px}.ph-meta{font-size:10px}.ph-detail-body dl>div{grid-template-columns:88px 1fr}.ph-calendar select{font-size:11px}.ph-calendar-options .ph-zone-label{font-size:10px}.ph-zone-label select{max-width:210px}}

.ph-calendar-leading{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.ph-status-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:0;padding:0;margin:0;min-width:0}.ph-status-filters legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ph-status-filters label{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#8490a2;white-space:nowrap;cursor:pointer}.ph-status-filters input{width:13px;height:13px;margin:0;accent-color:#ff2c55;cursor:pointer}
