.cx-section{padding:20px;margin:20px 0;border:1px solid #b8cbd3;border-radius:14px;background:var(--sg-card-bg,#fff);color:var(--sg-text,#16313b);line-height:1.5;overflow-wrap:anywhere;font-size:15px}.cx-section h3{font-size:20px;margin:0}.cx-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.cx-badge{font-weight:700;border-radius:20px;background:#fff1d5;color:#785314;padding:6px 12px;white-space:nowrap}.cx-pairs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.cx-pair{display:grid;gap:6px;padding:14px;background:#f1f6f8;border:1px solid #d9e5e9;border-radius:10px;min-width:0}.cx-id{font-size:12px;overflow-wrap:anywhere;color:#4c6570}.cx-section label{display:grid;gap:6px;margin:14px 0}.cx-section select{max-width:100%;width:100%;min-height:46px;padding:9px;font:inherit;color:inherit;background:#fff;border:1px solid #91aab6;border-radius:8px}.cx-button{min-height:46px;padding:10px 16px;margin:5px 5px 5px 0;max-width:100%;white-space:normal;font:inherit;font-weight:600;color:#075b66;background:#e5f6f6;border:1px solid #95c7cd;border-radius:9px;cursor:pointer}.cx-button:disabled{opacity:.55;cursor:default}.cx-button:focus-visible,.cx-section select:focus-visible{outline:3px solid #258b9c;outline-offset:3px}.cx-confirm{grid-template-columns:24px 1fr;align-items:start;padding:10px 0}.cx-confirm input{width:20px;height:20px;margin:2px 0}.cx-error{color:#a02c32;background:#fff0f0;padding:12px;border-radius:8px}.cx-muted{color:#546b76}.cx-state{font-weight:600}.cx-dialog{width:calc(100% - 24px);max-width:800px;max-height:90dvh;padding:20px;border:1px solid #a2bbc6;border-radius:16px;box-sizing:border-box;overflow-y:auto;color:var(--sg-text,#16313b);background:var(--sg-card-bg,#fff)}.cx-dialog::backdrop{background:#061f32a6}.cx-dialog>h2{font-size:22px}.cx-booking{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:14px 0;border-bottom:1px solid #dce7eb}.cx-reservations h4{font-size:17px}@media(max-width:600px){.cx-section{padding:14px;margin:14px 0}.cx-pairs{grid-template-columns:1fr}.cx-dialog{padding:14px}.cx-booking{grid-template-columns:1fr;gap:4px}.cx-section h3{font-size:19px}.cx-section>.cx-button{width:100%;margin:6px 0}}
.cx-automation{margin-top:24px;padding-top:18px;border-top:1px solid #b8cbd3}.cx-automation h4{font-size:17px;margin:12px 0}.cx-automation input[type=text]{box-sizing:border-box;width:100%;min-height:46px;padding:9px;font:inherit;border:1px solid #91aab6;border-radius:8px;color:inherit;background:#fff}.cx-stats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;margin:18px 0}.cx-stats dt,.cx-stats dd{margin:0;min-width:0}.cx-stats dd{text-align:right;font-weight:600}.cx-job{display:grid;gap:6px;padding:14px 0;border-top:1px solid #dce7eb}.cx-job small{overflow-wrap:anywhere}.cx-automation .cx-confirm{min-height:44px}.cx-automation input:focus-visible{outline:3px solid #258b9c;outline-offset:3px}@media(max-width:600px){.cx-automation .cx-button{width:100%;margin:6px 0}.cx-stats{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px}.cx-stats dt,.cx-stats dd{font-size:14px}}
.cx-dialog-header{position:sticky;top:-20px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--sg-card-bg,#fff);padding:12px 0;border-bottom:1px solid var(--sg-border-ui,#dce5ed)}.cx-dialog-header h2{margin:0;font-size:22px;line-height:1.3}.cx-dialog-header .cx-button{flex:none;margin:0}.cx-automation h5,.cx-facts h5{font-size:16px;margin:18px 0 10px}.cx-stats{align-items:start}.cx-stats dd{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.cx-job .cx-stats{font-size:14px;margin:6px 0}.cx-job-state{font-weight:600;color:var(--sg-accent-text,#075b66)}.cx-job{padding:16px;border:1px solid var(--sg-border-ui,#dce5ed);border-radius:10px;margin:10px 0;background:var(--sg-surface-soft,#f5f9fb)}.cx-notice{padding:12px;background:var(--sg-surface-soft,#eaf7f5);border-left:3px solid var(--sg-accent,#1598a3);border-radius:6px}.cx-facts{grid-column:1/-1;border:1px solid var(--sg-border-ui,#dce5ed);padding:14px;border-radius:10px;background:var(--sg-surface-soft,#f5f9fb)}.cx-booking>.cx-button{grid-column:1/-1;justify-self:start}.cx-facts .cx-stats{font-size:14px;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.cx-pricing{margin:16px 0;padding:16px;border:1px solid var(--sg-border-ui,#b8cbd3);border-radius:12px;background:var(--sg-card-bg,#fff);color:var(--sg-text,#16313b);font-family:inherit;font-size:14px;line-height:1.55;overflow-wrap:anywhere;min-width:0}.cx-pricing h3{font-size:17px;margin:0 0 10px}.cx-pricing p,.cx-pricing dt,.cx-pricing dd{font-size:14px;line-height:1.55}.cx-pricing>.cx-button{font-size:14px}.cx-pricing .cx-stats{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cx-calendar-sync{flex:none;max-width:100%;padding:0 16px;box-sizing:border-box}.cx-calendar-sync .cx-pricing{margin:8px 0}.cx-calendar-sync .cx-pricing .cx-job,.cx-calendar-sync .cx-pricing>.cx-muted,.cx-calendar-sync .cx-pricing>.cx-stats{display:none}.cx-calendar-sync .cx-pricing{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 14px}.cx-calendar-sync .cx-pricing h3,.cx-calendar-sync .cx-pricing p{margin:0}.cx-calendar-sync .cx-pricing>.cx-button{margin:0}.cx-calendar-sync .cx-pricing h3{flex:1 1 200px}.cx-calendar-sync .cx-pricing .cx-state{flex:1 1 150px}.cx-automation form{padding:4px 16px 16px;border:1px solid var(--sg-border-ui,#dce5ed);border-radius:10px}.cx-automation .cx-confirm{align-items:center}.cx-confirm input{accent-color:var(--sg-accent,#1598a3)}.cx-section .cx-id{font-size:14px}.cx-section .cx-pair{background:var(--sg-surface-soft,#f1f6f8);border-color:var(--sg-border-ui,#d9e5e9)}.cx-section select,.cx-automation input[type=text]{background:var(--sg-card-bg,#fff);color:var(--sg-text,#16313b)}@media(max-width:600px){.cx-dialog-header{top:-14px}.cx-dialog-header h2{font-size:20px}.cx-facts{padding:12px}.cx-facts .cx-stats{grid-template-columns:minmax(0,1fr)}.cx-facts .cx-stats dd{text-align:left;margin-bottom:8px}.cx-pricing{padding:14px}.cx-pricing>.cx-button{width:100%;margin:5px 0}.cx-automation form{padding:2px 12px 12px}.cx-job{padding:12px}.cx-calendar-sync{padding:0 12px}.cx-calendar-sync .cx-pricing>.cx-button{width:auto;flex:1 1 130px}.cx-calendar-sync .cx-pricing h3,.cx-calendar-sync .cx-pricing .cx-state{flex:1 1 100%}}

.cx-calendar-sync .cx-pricing>.cx-summary{flex:1 1 100%;font-size:14px;color:var(--sg-text-muted,#546b76)}

.cx-local-field{font-size:14px;line-height:1.5;color:var(--sg-text-muted,#546b76);margin:6px 0 0;overflow-wrap:anywhere}.sg-default-pricing-dialog .sg-default-close,.sg-date-range-dialog .sg-date-range-close,.sg-default-pricing-dialog .sg-default-primary,.sg-default-pricing-dialog .sg-default-secondary,.sg-date-range-dialog .sg-date-range-primary,.sg-date-range-dialog .sg-date-range-secondary{min-height:44px;min-width:44px}

@media(max-width:600px){.cx-job .cx-stats{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

.cx-source-mismatch strong{display:block;margin-top:6px}.cx-calendar-sync .cx-pricing>.cx-source-mismatch{flex:1 1 100%;font-size:14px;line-height:1.55}

.cx-job-note{font-size:14px;line-height:1.55;color:var(--sg-text-muted,#546b76);margin:4px 0;overflow-wrap:anywhere}

.cx-calendar-sync details.cx-pricing{display:block;padding:0;margin:2px 0}.cx-calendar-sync details>summary{display:list-item;cursor:pointer;min-height:44px;box-sizing:border-box;padding:5px 12px;font-weight:600;line-height:1.25}.cx-calendar-sync summary .cx-summary{display:block;font-size:14px;font-weight:400;color:var(--sg-text-muted,#546b76)}.cx-calendar-sync details[open]{max-height:min(32vh,230px);overflow-y:auto;padding:0 12px 8px}.cx-calendar-sync details[open]>summary{position:sticky;top:0;background:var(--sg-card-bg,#fff)}.cx-calendar-sync details>h3{display:none}

/* Compact calendar status: one heading, one state badge, optional history hint. */
.cx-calendar-sync details>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;gap:5px 12px;align-items:center;padding:10px 14px;list-style:none}
.cx-calendar-sync details>summary::-webkit-details-marker{display:none}
.cx-calendar-sync details>summary::after{content:'⌄';grid-column:3;grid-row:1;color:var(--sg-text-muted,#546b76);font-size:20px;align-self:center}
.cx-calendar-sync details[open]>summary::after{transform:rotate(180deg)}
.cx-calendar-sync summary .cx-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0;color:var(--sg-text,#16313b);font-size:14px}
.cx-summary strong{font-size:14px}.cx-summary small{font-size:13px;font-weight:400;color:var(--sg-text-muted,#546b76)}
.cx-status-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:8px;background:var(--sg-surface-soft,#edf2f5);color:var(--sg-text-muted,#546b76);font-size:12px;line-height:1.4;font-weight:600;max-width:100%;overflow-wrap:anywhere}
.cx-status-badge[data-state=attention],.cx-status-badge[data-state=error]{background:#fff0e6;color:#8b410c}
.cx-status-badge[data-state=enabled]{background:#e6f5ef;color:#17664b}.cx-status-badge[data-state=pending]{background:#e9f2fc;color:#245b8a}
.cx-history{grid-column:1/-1;font-size:13px;color:var(--sg-text-muted,#546b76);font-weight:400}
.cx-calendar-sync details[open]{max-height:min(45dvh,360px);padding:0 14px 12px}.cx-calendar-sync details[open]>summary{margin:0 -14px;padding:10px 14px;z-index:1;border-bottom:1px solid var(--sg-border-ui,#dce5ed)}
.cx-calendar-sync details[open]>.cx-job{display:grid}.cx-calendar-sync details[open]>.cx-stats{display:grid;font-size:13px;margin:12px 0}
.cx-calendar-sync details[open]>.cx-state{font-size:13px;font-weight:400;line-height:1.5;margin:12px 0}
.cx-calendar-sync details[open]>.cx-button{display:inline-flex;width:auto;min-height:44px;margin:8px 8px 0 0;font-size:13px}
#appPropertyManager .pm-detail-head>[data-channex-detail-open]{margin:0 0 0 auto;flex:none;min-height:44px;font-size:14px}
#appPropertyManager .pm-property-card [data-channex-open]{margin:0;font-size:14px;min-height:44px}
@media(max-width:600px){.cx-calendar-sync details>summary{grid-template-columns:minmax(0,1fr) 16px;gap:7px 8px}.cx-calendar-sync details>summary::after{grid-column:2;grid-row:1/3}.cx-status-badge{grid-column:1;justify-self:start}.cx-history{grid-column:1;font-size:12px}#appPropertyManager .pm-detail-head>[data-channex-detail-open]{margin:0;width:100%;justify-content:center}}
