/* Integrations (public/integrations.js, BAC-347): the catalogue with its status chips and setup notes, the calendar
   feed card with the private link and the per-client steps, the webhook endpoints with their secret banner, the
   delivery log and the in-page dialogs. The application's palette; logical properties only, so the page mirrors under
   dir="rtl"; URLs, codes, secrets and ISO dates stay left-to-right (dir="ltr" on those elements). */
.integrations{position:fixed;inset:var(--hdr-h,64px) 0 0;z-index:18;background:#0a0f1c;color:var(--fg);overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--border) transparent}
.integrations[hidden]{display:none}
.ig-page{max-width:1180px;margin:auto;padding:22px 36px 48px}
.ig-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-block-end:26px}
.ig-back{color:var(--muted);font:500 12px var(--font-b);padding:4px 0;text-align:start;background:none;border:0;cursor:pointer}
.ig-back:hover{color:var(--teal)}
.ig-eyebrow{font:600 11px var(--font-h);letter-spacing:.18em;color:var(--teal);border:1px solid #2b4d49;padding:4px 9px;border-radius:5px}
.ig-hero{display:flex;align-items:flex-start;gap:18px;background:none;border:0;height:auto;padding:0;position:static}
.ig-hero>div{min-width:0;flex:1;white-space:normal}
.ig-hero-icon{width:54px;height:54px;display:grid;place-items:center;flex:none;border:1px solid #2d5b55;border-radius:15px;background:linear-gradient(135deg,#173e37,#11202b);color:var(--teal)}
.ig-hero h2{font:600 clamp(25px,3vw,34px)/1.2 var(--font-h);letter-spacing:-.035em;margin:0 0 10px}
.ig-hero p{font-size:14px;line-height:1.65;color:var(--muted);max-width:760px;margin:0}
.ig-nav{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0 0}
.ig-nav a{border:1px solid #35425a;border-radius:999px;background:#0b1320;color:#c5cfdf;padding:4px 11px;font:500 11.5px var(--font-b);text-decoration:none}
.ig-nav a:hover{border-color:var(--teal);color:#9fe3d3}
.ig-muted{color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 8px}
.ig-note{font-size:12px;color:var(--muted);line-height:1.5;padding:8px 11px;border:1px dashed #2c384d;border-radius:8px;margin:8px 0 0}
.ig-banner{margin:0 0 14px;padding:10px 14px;border:1px solid #2f6b5f;border-radius:10px;background:#10302a;color:#c8f3e9;font-size:13px}
.ig-banner.is-warn{border-color:rgba(239,68,68,.55);background:rgba(127,29,29,.3);color:#fecaca}
.ig-section{margin:26px 0 0;scroll-margin-block-start:80px}
.ig-section h3{display:flex;align-items:center;gap:8px;font:600 15px var(--font-h);margin:0 0 6px;color:#d8e3ee}
.ig-card{padding:16px 18px;border:1px solid #29453f;border-radius:14px;background:linear-gradient(150deg,#0f1c1c,#0f1626)}
.ig-card h4{font:600 10.5px var(--font-h);letter-spacing:.12em;text-transform:uppercase;color:var(--label,#94a9b5);margin:12px 0 6px}
.ig-card h5{font:600 13px var(--font-h);margin:0;color:#d8e3ee}
.ig-facts{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12.5px;color:#c5cfdf;margin:6px 0 10px}
.ig-code{display:block;padding:8px 10px;border:1px solid #35425a;border-radius:7px;background:#0b1320;font:11.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:#9fe3d3;word-break:break-all;direction:ltr;text-align:start;user-select:all}
.ig-pre{margin:8px 0 0;padding:10px 12px;border:1px solid #1e2b3a;border-radius:8px;background:#0b1320;font:11.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:#c5cfdf;white-space:pre-wrap;word-break:break-word;direction:ltr;text-align:start}
.ig-secret{margin:12px 0;padding:12px 14px;border:1px solid rgba(245,158,11,.5);border-radius:10px;background:rgba(245,158,11,.1)}
.ig-secret h5{color:#fcd34d;margin:0 0 6px}
.ig-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #364158;border-radius:8px;background:#172033;color:var(--fg);padding:9px 14px;font:500 12px var(--font-b);white-space:nowrap;cursor:pointer}
.ig-button:hover:not(:disabled){border-color:var(--teal);background:#1b2b3c}
.ig-button:disabled{opacity:.55;cursor:default}
.ig-button.ig-small{padding:5px 10px;font-size:11.5px}
.ig-button.ig-primary{background:#123a34;border-color:#2f6b5f;color:#c8f3e9}
.ig-button.ig-danger{background:rgba(127,29,29,.3);border-color:rgba(239,68,68,.55);color:#fecaca}
.ig-button.ig-link{background:none;border-color:transparent;color:var(--teal);padding:2px 4px}
.ig-chip{display:inline-flex;align-items:center;gap:5px;width:max-content;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;border:1px solid #35425a;color:#c5cfdf;background:#0b1320}
.ig-chip.ig-on{color:#9fe3d3;border-color:#2f6b5f;background:#10302a}
.ig-chip.ig-warn{color:#fcd34d;border-color:rgba(245,158,11,.5);background:rgba(245,158,11,.12)}
.ig-chip.ig-off{color:#fca5a5;border-color:rgba(239,68,68,.45);background:rgba(127,29,29,.2)}
.ig-chip.ig-info{color:#93c5fd;border-color:rgba(96,165,250,.45);background:rgba(30,58,138,.25)}
.ig-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:10px 0}
.ig-field{display:flex;flex-direction:column;gap:5px;font-size:11.5px;color:#c5cfdf;min-width:220px;flex:1 1 220px;max-width:420px}
.ig-field.ig-wide{max-width:none;flex-basis:100%}
.ig-input{padding:8px 10px;font:12px var(--font-b);background:#0b1320;border:1px solid #35425a;border-radius:7px;color:var(--fg);outline:none;min-width:0;width:100%}
.ig-input:focus{border-color:var(--teal)}
.ig-checks{display:flex;flex-wrap:wrap;gap:8px 16px;margin:6px 0 0}
.ig-check{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:#c5cfdf;cursor:pointer;flex:1 1 300px;max-width:520px}
.ig-check input{margin-block-start:3px;accent-color:var(--teal)}
.ig-check small{display:block;color:var(--muted);font-size:11px}
.ig-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;margin:10px 0 0}
.ig-cat{border:1px solid #1e2b3a;border-radius:10px;background:#0b1320;padding:12px 14px;min-width:0}
.ig-cat h4{margin:0 0 8px}
.ig-items{list-style:none;margin:0;padding:0}
.ig-items li{padding:8px 0;border-block-start:1px solid #1c2638}
.ig-items li:first-child{border-block-start:0}
.ig-item-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.ig-item-name{font-weight:600;color:#d8e3ee;font-size:12.5px}
.ig-item-body{font-size:11.5px;color:var(--muted);line-height:1.5;margin:4px 0 0}
.ig-env{font:10.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:#93a4bb;direction:ltr;display:inline-block}
.ig-rows{list-style:none;margin:10px 0 0;padding:0;font-size:12px;border-block-start:1px solid #1c2638}
.ig-rows li{padding:10px 0;border-block-end:1px solid #1c2638}
.ig-endpoint-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.ig-endpoint-url{font:11.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:#93a4bb;direction:ltr;word-break:break-all;margin:4px 0}
.ig-endpoint-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:11px;color:var(--muted);margin:2px 0 6px}
.ig-actions{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
.ig-table{width:100%;border-collapse:collapse;font-size:12px;margin:8px 0 0}
.ig-table th{text-align:start;font:600 10.5px var(--font-h);letter-spacing:.12em;text-transform:uppercase;color:var(--label,#94a9b5);padding:6px 8px;border-block-end:1px solid var(--border)}
.ig-table td{padding:6px 8px;border-block-end:1px solid #1c2638;vertical-align:top;color:#c5cfdf}
.ig-steps{margin:6px 0 0;padding-inline-start:18px;font-size:12.5px;line-height:1.6;color:#c5cfdf}
.ig-steps li{margin:0 0 6px}
.ig-list{margin:0;padding-inline-start:18px;font-size:12.5px;line-height:1.6;color:#c5cfdf}
.ig-state{padding:38px 18px;text-align:center;color:var(--muted);font-size:13px;border:1px dashed #2c384d;border-radius:12px}
.ig-state.is-error{color:#fecaca;border-color:rgba(239,68,68,.45)}
.ig-state p{margin:0 0 12px}
.ig-dialog{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:rgba(3,7,18,.72);padding:16px}
.ig-dialog-box{max-width:520px;width:100%;padding:20px 22px;border:1px solid #2f6b5f;border-radius:14px;background:#0f1626;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.ig-dialog-box h3{font:600 17px var(--font-h);margin:0 0 8px;color:#d8e3ee}
.ig-dialog-box p{font-size:13px;line-height:1.6;color:#c5cfdf;margin:0 0 12px}
.ig-dialog-box .ig-form{justify-content:flex-end}
/* phones and tablets: the page is a full-screen sheet (like Communication); the catalogue folds to one column */
@media (max-width:960px){ .integrations{inset:0;z-index:19} .ig-cats{grid-template-columns:1fr} }
@media (max-width:860px){
  .ig-page{padding:16px 16px 40px}
  .ig-field{flex-basis:100%;max-width:none}
  .ig-table th:nth-child(5),.ig-table td:nth-child(5){display:none}
}
/* light-theme:begin — generated by tools/light-theme.mjs from the rules above; do not edit by hand (hand-tuned light rules go after the end marker) */
html[data-theme="light"] .integrations{background:#f4f5f9}
html[data-theme="light"] .ig-eyebrow{border:1px solid #dfe9e8}
html[data-theme="light"] .ig-hero-icon{border:1px solid #dae7e5;background:linear-gradient(135deg,#e7f1ef,#eef2f5)}
html[data-theme="light"] .ig-nav a{border:1px solid #dadde4;background:#f2f5f8;color:#2a3444}
html[data-theme="light"] .ig-nav a:hover{color:#1f725e}
html[data-theme="light"] .ig-note{border:1px dashed #dfe3e8}
html[data-theme="light"] .ig-banner{border:1px solid #d4e4e1;background:#ecf5f3;color:#146653}
html[data-theme="light"] .ig-banner.is-warn{border-color:rgba(239,68,68,.55);background:rgba(236,203,203,.3);color:#7a0000}
html[data-theme="light"] .ig-section h3{color:#243d56}
html[data-theme="light"] .ig-card{border:1px solid #e2eae8;background:linear-gradient(150deg,#f4f7f7,#f0f2f6)}
html[data-theme="light"] .ig-card h4{color:var(--label,#566973)}
html[data-theme="light"] .ig-card h5{color:#243d56}
html[data-theme="light"] .ig-facts{color:#2a3444}
html[data-theme="light"] .ig-code{border:1px solid #dadde4;background:#f2f5f8;color:#1f725e}
html[data-theme="light"] .ig-pre{border:1px solid #e7ebef;background:#f2f5f8;color:#2a3444}
html[data-theme="light"] .ig-secret{border:1px solid rgba(245,158,11,.5);background:rgba(245,158,11,.1)}
html[data-theme="light"] .ig-secret h5{color:#997500}
html[data-theme="light"] .ig-button{border:1px solid #dadde4;background:#ebedf2}
html[data-theme="light"] .ig-button:hover:not(:disabled){background:#e7ebf0}
html[data-theme="light"] .ig-button.ig-primary{background:#e9f3f2;border-color:#d4e4e1;color:#146653}
html[data-theme="light"] .ig-button.ig-danger{background:rgba(236,203,203,.3);border-color:rgba(239,68,68,.55);color:#7a0000}
html[data-theme="light"] .ig-chip{border:1px solid #dadde4;color:#2a3444;background:#f2f5f8}
html[data-theme="light"] .ig-chip.ig-on{color:#1f725e;border-color:#d4e4e1;background:#ecf5f3}
html[data-theme="light"] .ig-chip.ig-warn{color:#997500;border-color:rgba(245,158,11,.5);background:rgba(245,158,11,.12)}
html[data-theme="light"] .ig-chip.ig-off{color:#790101;border-color:rgba(239,68,68,.45);background:rgba(236,203,203,.2)}
html[data-theme="light"] .ig-chip.ig-info{color:#003e82;border-color:rgba(96,165,250,.45);background:rgba(199,208,235,.25)}
html[data-theme="light"] .ig-field{color:#2a3444}
html[data-theme="light"] .ig-input{background:#f2f5f8;border:1px solid #dadde4}
html[data-theme="light"] .ig-check{color:#2a3444}
html[data-theme="light"] .ig-cat{border:1px solid #e7ebef;background:#f2f5f8}
html[data-theme="light"] .ig-items li{border-block-start:1px solid #e8ebf0}
html[data-theme="light"] .ig-item-name{color:#243d56}
html[data-theme="light"] .ig-env{color:#506074}
html[data-theme="light"] .ig-rows{border-block-start:1px solid #e8ebf0}
html[data-theme="light"] .ig-rows li{border-block-end:1px solid #e8ebf0}
html[data-theme="light"] .ig-endpoint-url{color:#506074}
html[data-theme="light"] .ig-table th{color:var(--label,#566973)}
html[data-theme="light"] .ig-table td{border-block-end:1px solid #e8ebf0;color:#2a3444}
html[data-theme="light"] .ig-steps{color:#2a3444}
html[data-theme="light"] .ig-list{color:#2a3444}
html[data-theme="light"] .ig-state{border:1px dashed #dfe3e8}
html[data-theme="light"] .ig-state.is-error{color:#7a0000;border-color:rgba(239,68,68,.45)}
html[data-theme="light"] .ig-dialog{background:rgba(243,245,251,.72)}
html[data-theme="light"] .ig-dialog-box{border:1px solid #d4e4e1;background:#f0f2f6;box-shadow:0 20px 60px rgba(15,23,42,.175)}
html[data-theme="light"] .ig-dialog-box h3{color:#243d56}
html[data-theme="light"] .ig-dialog-box p{color:#2a3444}
/* light-theme:end */
