/* Webhook setup and delivery use the portal's application tokens. */
.webhook-page{max-width:1280px;padding:38px 32px 48px;color:var(--ink,#142438)}
.webhook-page h1{margin:0;font-size:2.15rem;font-weight:600;letter-spacing:-.03em}
.webhook-page h2{margin:0;font-size:1.2rem;font-weight:650}
.webhook-page h3{font-size:1rem;font-weight:700;margin:0 0 12px}
.webhook-page p{text-wrap:pretty}
.webhook-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.webhook-heading p{margin:8px 0 0;color:var(--muted,#526c81);font-size:.93rem}
.webhook-guide-link{font-size:.86rem;font-weight:700;white-space:nowrap}
.webhook-guide-link i{margin-left:7px;font-size:.72rem}
.webhook-environments{display:flex;gap:28px;border-bottom:1px solid var(--line,#d3dfeb);margin-bottom:26px}
.webhook-environments a{padding:0 1px 13px;color:var(--muted,#526c81);text-decoration:none;font-size:.93rem;font-weight:700;border-bottom:2px solid transparent}
.webhook-environments a:hover{color:var(--blue,#1262c4)}
.webhook-environments a.is-active{color:var(--blue,#1262c4);border-bottom-color:var(--blue,#1262c4)}
.webhook-notice{margin-bottom:20px;font-size:.9rem}
.webhook-notice p{margin:5px 0 0}
.webhook-config{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);border:1px solid var(--line,#d3dfeb);border-radius:10px;background:var(--panel,#fff);overflow:clip}
.webhook-config-main{padding:26px 28px;min-width:0}
.webhook-config-tools{padding:26px 28px;border-left:1px solid var(--line,#d3dfeb);background:var(--panel-muted,#f7faff);min-width:0}
.webhook-config-tools p{color:var(--muted,#526c81);font-size:.86rem;line-height:1.7}
.webhook-config-tools .btn{min-height:42px}
.webhook-page .btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 15px}
.webhook-page .btn:active{transform:translateY(0)}
.webhook-page .btn:disabled{opacity:.6;cursor:not-allowed;transform:none}
.webhook-page .btn[data-loading]{cursor:wait}
.webhook-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.webhook-description{color:var(--muted,#526c81);font-size:.88rem;line-height:1.7;max-width:74ch;margin:10px 0 22px}
.webhook-state{display:inline-flex;align-items:center;gap:7px;padding:4px 9px;border-radius:5px;font-size:.75rem;font-weight:700;line-height:1.5;white-space:nowrap}
.webhook-state::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.webhook-state--success{background:#e9f7ef;color:#11653c}
.webhook-state--danger{background:#fff0ef;color:#a4231a}
.webhook-state--warning{background:#fff5da;color:#795000}
.webhook-state--neutral{background:#edf2f6;color:#415b70}
.webhook-page .webhook-url{font-family:"Cascadia Code",Consolas,monospace;font-size:.85rem}
.webhook-page input::placeholder{color:#5b6e7e;opacity:1}
.webhook-hint{color:var(--muted,#526c81);font-size:.78rem;line-height:1.6;margin:8px 0 0}
.webhook-enable{display:flex;gap:12px;align-items:flex-start;margin:23px 0}
.webhook-enable input{flex:none;width:18px;height:18px;margin-top:3px;cursor:pointer}
.webhook-enable label{font-size:.89rem;font-weight:700;cursor:pointer}
.webhook-enable p{color:var(--muted,#526c81);font-size:.8rem;margin:4px 0 0;max-width:63ch;line-height:1.6}
.webhook-form-footer{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.webhook-form-footer .webhook-hint{margin:0}
.webhook-unsaved-warning{color:#795000!important}
.webhook-security{margin-top:24px;border-top:1px solid var(--line,#d3dfeb);padding-top:17px;font-size:.84rem}
.webhook-security summary,.webhook-more-filters summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;font-weight:700;width:fit-content;color:var(--ink,#142438)}
.webhook-page summary::-webkit-details-marker{display:none}
.webhook-page summary i{font-size:.65rem;transition:transform 160ms ease}
.webhook-page details[open]>summary i{transform:rotate(180deg)}
.webhook-security p{margin-top:13px}
.webhook-security a{display:inline-block;margin-top:13px;font-weight:600}
.webhook-setup-steps{padding-left:19px;margin:15px 0 20px;font-size:.86rem;color:var(--muted,#526c81)}
.webhook-setup-steps li{padding:0 0 12px 3px}
.webhook-secret{margin:0 0 22px;padding:22px 26px;border:1px solid #dbbc70;border-radius:8px;background:#fffaeb}
.webhook-secret p{max-width:75ch;margin:10px 0 16px;font-size:.88rem;color:#644700}
.webhook-secret-controls{display:flex;align-items:center;gap:8px}
.webhook-secret-controls input{min-width:0}
.webhook-secret-controls button{flex:none}
.webhook-copy-feedback{display:block;min-height:0;margin-top:6px;color:#365b45;font-size:.8rem}
.webhook-history{margin-top:34px}
.webhook-history .webhook-section-heading{align-items:flex-start}
.webhook-history .webhook-description{margin:8px 0 0}
.webhook-refresh{flex:none}
.webhook-filters{margin:22px 0 20px}
.webhook-filter-main{display:flex;align-items:end;gap:12px}
.webhook-search{flex:1;min-width:0}
.webhook-filter-main>div:nth-child(2){width:210px}
.webhook-clear{font-size:.83rem;font-weight:700;align-self:center;margin-top:25px;white-space:nowrap}
.webhook-more-filters{margin-top:16px;font-size:.82rem}
.webhook-more-filters summary{color:var(--blue,#1262c4);font-weight:650}
.webhook-filter-extra{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:14px;margin-top:16px}
.webhook-filter-extra>div{min-width:0}
.webhook-filter-extra input{min-width:0;width:100%}
.webhook-table-wrap{border:1px solid var(--line,#d3dfeb);border-radius:8px;overflow:auto;background:#fff}
.app-page .webhook-page .webhook-table{width:100%;font-size:.84rem;table-layout:fixed;margin:0}
.app-page .webhook-page .webhook-table>:not(caption)>*>*{padding:16px;vertical-align:top}
.app-page .webhook-page .webhook-table thead th{font-size:.76rem;font-weight:700}
.webhook-table th:first-child{width:24%}
.webhook-table th:nth-child(2){width:20%}
.webhook-table th:nth-child(3){width:20%}
.webhook-table th:nth-child(4){width:auto}
.webhook-table th:last-child{width:124px}
.webhook-table th span{font-size:.69rem;font-weight:500;display:block}
.webhook-table tbody tr:last-child td{border-bottom:0}
.webhook-table tbody tr:hover{background:#f7faff}
.webhook-table td{overflow-wrap:anywhere}
.webhook-event-cell strong{font-size:.87rem;font-weight:700}
.webhook-row-secondary{display:block;font-size:.76rem;color:var(--muted,#526c81);margin-top:6px;line-height:1.6}
.webhook-row-error{display:block;font-size:.76rem;margin-top:6px;color:#a4231a}
.webhook-id{font-family:"Cascadia Code",Consolas,monospace;font-size:.77rem;overflow-wrap:anywhere}
.webhook-time{font-variant-numeric:tabular-nums;font-size:.8rem}
.webhook-row-action a{display:inline-flex;align-items:center;gap:8px;font-size:.79rem;font-weight:700;min-height:44px;white-space:nowrap;overflow-wrap:normal}
.webhook-row-action i{font-size:.67rem}
.webhook-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:17px;color:var(--muted,#526c81);font-size:.78rem}
.webhook-pagination>div{display:flex;align-items:center;gap:13px}
.webhook-retention{display:flex;align-items:baseline;gap:8px;margin:23px 0 0;color:var(--muted,#526c81);font-size:.78rem;line-height:1.7;max-width:100ch}
.webhook-empty{padding:42px 20px;text-align:center;border-top:1px solid var(--line,#d3dfeb);border-bottom:1px solid var(--line,#d3dfeb)}
.webhook-empty>i{font-size:1.4rem;margin-bottom:14px;color:var(--muted,#526c81)}
.webhook-empty h3{font-size:1rem}
.webhook-empty p{color:var(--muted,#526c81);max-width:55ch;margin:0 auto 10px;font-size:.88rem}
.webhook-empty--compact{padding:24px}
.webhook-load-error{padding:25px 0;color:#a4231a;font-size:.88rem}
.webhook-load-error p{margin:8px 0}
.webhook-back{display:inline-flex;align-items:center;gap:9px;margin-bottom:23px;font-size:.84rem;font-weight:700;text-decoration:none}
.webhook-delivery-status{display:flex;justify-content:space-between;gap:32px;padding:24px 26px;border-radius:8px;border:1px solid var(--line,#d3dfeb);background:#fff}
.webhook-delivery-status--danger{border-color:#ecc4bf;background:#fff8f7}
.webhook-delivery-status--success{border-color:#bddac9;background:#f3faf6}
.webhook-delivery-status h2{margin-bottom:9px}
.webhook-delivery-status p{margin:7px 0;font-size:.87rem;line-height:1.7;max-width:65ch}
.webhook-delivery-status a{display:inline-block;font-size:.84rem;margin-top:8px;font-weight:700}
.webhook-resend{flex:none;max-width:275px}
.webhook-resend p{font-size:.76rem;color:var(--muted,#526c81);margin-top:11px}
.webhook-resend-help{max-width:90ch;margin:14px 0 27px;font-size:.81rem;color:var(--muted,#526c81);line-height:1.8}
.webhook-metadata{display:grid;grid-template-columns:1fr 1fr;column-gap:35px;row-gap:22px;padding:0 0 28px;margin:0 0 27px;border-bottom:1px solid var(--line,#d3dfeb)}
.webhook-metadata>div{min-width:0}
.webhook-metadata dt{font-size:.78rem;font-weight:600;color:var(--muted,#526c81);margin-bottom:6px}
.webhook-metadata dd{font-size:.85rem;overflow-wrap:anywhere;display:flex;align-items:center;gap:8px;margin:0}
.webhook-copy-button{flex:none;border:1px solid transparent;background:transparent;color:var(--blue,#1262c4);width:32px;height:32px;border-radius:5px}
.webhook-copy-button:hover{background:var(--blue-soft,#e7f1fb);border-color:var(--line,#d3dfeb)}
.webhook-attempts{margin-bottom:28px}
.webhook-attempt-table th:first-child{width:23%}
.webhook-attempt-table th:nth-child(2){width:34%}
.webhook-attempt-table th:nth-child(3){width:30%}
.webhook-attempt-table th:last-child{width:13%}
.webhook-payload{border-top:1px solid var(--line,#d3dfeb);border-bottom:1px solid var(--line,#d3dfeb)}
.webhook-payload>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 0;list-style:none;cursor:pointer;font-size:1rem;font-weight:700}
.webhook-payload small{font-size:.78rem;color:var(--muted,#526c81);font-weight:400;margin-left:12px}
.webhook-payload-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:3px 0 15px}
.webhook-payload-heading p{font-size:.81rem;color:var(--muted,#526c81);margin:0}
.webhook-payload-heading button{flex:none}
.webhook-page pre{background:#f3f7fa;padding:20px;border:1px solid var(--line,#d3dfeb);border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;max-height:480px;overflow:auto}
.app-page .webhook-page pre code{padding:0;background:transparent!important;color:var(--ink,#142438)!important}
.webhook-page :focus-visible{outline:3px solid var(--blue,#1262c4);outline-offset:3px}
.webhook-page summary:hover{color:var(--blue,#1262c4)}
.webhook-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line,#d3dfeb)}
.webhook-section h2{margin-bottom:15px}
.webhook-section p,.webhook-section li{font-size:.93rem;line-height:1.8;max-width:78ch}
@media(max-width:1000px){
.webhook-page{padding:28px 22px 40px}.webhook-config{grid-template-columns:minmax(0,1.35fr) minmax(240px,1fr)}.webhook-config-main,.webhook-config-tools{padding:22px}.app-page .webhook-page .webhook-table>:not(caption)>*>*{padding:14px 12px}
}
@media(max-width:760px){
.webhook-config{grid-template-columns:1fr}.webhook-config-tools{border-left:0;border-top:1px solid var(--line,#d3dfeb)}.webhook-config-tools .webhook-security{margin-top:20px}.webhook-filter-main{flex-wrap:wrap}.webhook-search{flex-basis:100%}.webhook-filter-main>div:nth-child(2){flex:1;width:auto}.webhook-filter-extra{grid-template-columns:1fr 1fr}.webhook-filter-extra>div:first-child{grid-column:1/-1}.webhook-clear{margin-top:20px}.webhook-delivery-status{flex-direction:column;gap:16px}.webhook-resend{max-width:none}.webhook-payload small{display:block;margin:5px 0 0}
}
@media(max-width:800px){
.webhook-table-wrap{overflow:visible}.app-page .webhook-page .webhook-table{display:block}.webhook-table thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.webhook-table tbody{display:block}.webhook-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:18px;border-bottom:1px solid var(--line,#d3dfeb)}.webhook-table tbody tr:last-child{border:0}.app-page .webhook-page .webhook-table tbody td{display:block;border:0;padding:0;min-width:0}.webhook-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:5px;color:var(--muted,#526c81);font-family:Manrope,"Segoe UI",sans-serif;font-size:.73rem;font-weight:600}.webhook-event-cell,.webhook-table .webhook-id,.webhook-row-action{grid-column:1/-1}.webhook-row-action a{min-height:44px}
}
@media(max-width:640px){
.webhook-page{padding:26px 16px 36px}.webhook-page h1{font-size:1.8rem}.webhook-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.webhook-guide-link{font-size:.82rem}.webhook-config-main,.webhook-config-tools{padding:20px}.webhook-section-heading{flex-wrap:wrap;gap:12px}.webhook-history .webhook-section-heading{margin-bottom:20px}.webhook-refresh{min-height:36px!important}.webhook-secret{padding:20px}.webhook-secret-controls{flex-wrap:wrap}.webhook-secret-controls input{flex:1 1 100%}.webhook-filter-extra{grid-template-columns:1fr}.webhook-filter-main>div:nth-child(2){min-width:0}.webhook-clear{width:100%;margin-top:1px}.webhook-pagination{flex-wrap:wrap;font-size:.77rem}.webhook-metadata{grid-template-columns:1fr;gap:16px}.webhook-delivery-status{padding:21px}.webhook-payload-heading{align-items:flex-start;flex-direction:column;gap:12px}.webhook-page pre{padding:14px;font-size:.73rem}
}
@media(prefers-reduced-motion:reduce){.webhook-page *{animation:none!important;transition:none!important}}
