/* Platform discovery belongs beside the calendar, with clear read-only import cues. */
.social-calendar-sync-details{margin-top:12px;border:1px solid #c2d0dc;border-radius:10px;background:#e9f0f6;color:#29465d;overflow:hidden}
.social-calendar-sync-details>summary{padding:12px 14px;cursor:pointer;font-size:13px;font-weight:650}
.social-calendar-sync-details>summary span{float:right;margin-left:12px;font-size:11px;font-weight:500;color:#526f82}
.social-calendar-sync-details>summary:focus-visible{outline:2px solid #408e8b;outline-offset:-3px}
.social-calendar-sync-details[open]>summary{border-bottom:1px solid #cbdbe5}
.social-calendar-sync-details>.social-calendar-sync{margin:0;border:0;border-radius:0}
@media(max-width:450px){.social-calendar-sync-details>summary span{float:none;display:block;margin:5px 0 0 16px}}
.social-calendar-sync{margin:0 0 18px;padding:16px 18px;background:#edf4f8;border:1px solid #bfd0dd;border-radius:12px;color:#27455b}
.social-sync-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}
.social-calendar-sync .social-sync-heading h3{margin:0 0 4px;font-size:15px;color:#25465b}
.social-sync-heading p{margin:0;font-size:12px;line-height:1.5;color:#526f82}
.social-sync-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.social-calendar-sync button{min-height:37px;padding:8px 12px;background:#f8fbfd;border:1px solid #b3cad8;color:#2d5067;font-size:12px;font-weight:650}
.social-calendar-sync button:hover{background:#e1eeef;border-color:#6b9eaa}
.social-calendar-sync button.social-sync-primary{background:#2d6371;border-color:#2d6371;color:#fff}
.social-calendar-sync button.social-sync-primary:hover{background:#245360}
.social-sync-platforms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.social-sync-platform{min-width:0;border-top:1px solid #cbdbe5;padding-top:10px}
.social-sync-platform-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.social-sync-platform-heading strong{font-size:12px;font-family:Inter,ui-sans-serif,sans-serif}
.social-sync-state{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:650;color:#536f82}
.social-sync-state:before{content:"";width:6px;height:6px;background:#91a8b8;border-radius:50%;flex-shrink:0}
.social-sync-ready .social-sync-state,.social-sync-synced .social-sync-state{color:#297a69}
.social-sync-ready .social-sync-state:before,.social-sync-synced .social-sync-state:before{background:#3b9d86}
.social-sync-permission_required .social-sync-state,.social-sync-error .social-sync-state,.social-sync-partial .social-sync-state{color:#926324}
.social-sync-permission_required .social-sync-state:before,.social-sync-error .social-sync-state:before,.social-sync-partial .social-sync-state:before{background:#c08a3e}
.social-sync-platform p{margin:5px 0 6px;font-size:11px;line-height:1.5;color:#4f6c7f;overflow-wrap:anywhere}
.social-sync-platform small{font-size:10px;color:#627f91}
.social-calendar-sync .social-sync-result{margin:12px 0 0;padding-top:10px;border-top:1px solid #cbdbe5;font-size:11px;line-height:1.5;color:#526f82}
.social-cal-imported{display:grid;place-items:center;font-size:12px;line-height:1;width:16px;height:16px;border:1px solid #86b1bb;border-radius:4px;color:#347789;background:#f3fafb;flex-shrink:0}
.social-sync-source{display:inline-block;margin-left:6px;padding:3px 6px;border:1px solid #7ca5ad;border-radius:5px;font-size:10px;color:#336d78;background:#e9f4f3;white-space:nowrap}
.social-sync-post-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border:1px solid #78a9b4;border-radius:8px;background:#e9f4f3;color:#27596a;font-size:12px;font-weight:650;text-decoration:none}
.social-sync-post-link:hover{background:#d5ece9;color:#183f50}
.social-cal-drawer .social-sync-readonly{border-left:3px solid #78bcb2;padding:9px 12px;background:#e8f2f4;color:#365e6e;border-radius:0 7px 7px 0;font-size:12px;line-height:1.6}
.dialog .social-sync-readonly{font-size:13px;line-height:1.6;color:#bed7df}
.social-calendar-sync .social-sync-reconcile-note{margin:12px 0 0;padding:9px 11px;border-radius:7px;background:#e2edf3;color:#49687b;font-size:11px;line-height:1.6}
.social-sync-platform .social-sync-legacy-note{display:block;margin-top:5px;color:#806532}
.social-sync-platform .social-sync-native-capability{padding-top:6px;border-top:1px dashed #c3d5df;font-size:10px;color:#58788b}
.social-sync-source-note{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.social-cal-drawer .social-sync-source-note,.dialog .social-sync-source-note{color:#c2d5df}
.social-cal-imported-scheduled{color:#8b642c;background:#fff5df;border-color:#ceb176}
.social-cal-drawer-meta{flex-wrap:wrap}
.social-cal-drawer-meta .social-sync-source-scheduled{background:#f5e7c8;color:#775723}
.social-sync-link-existing{margin:18px 0;padding:14px;border:1px solid #b2cad4;border-radius:9px;background:#e8f1f4;color:#34586b}
.social-sync-link-existing h4{margin:0 0 7px;color:#284b60;font-size:13px}
.social-sync-link-existing p,.social-sync-link-existing small{display:block;margin:6px 0;font-size:11px;line-height:1.6}
.social-sync-link-existing label{display:block;margin:12px 0 6px;font-size:11px;font-weight:650}
.social-sync-link-existing select{display:block;width:100%;margin-bottom:10px;padding:9px;background:#f8fbfd;color:#294d62;border-color:#a9c1cf;font-size:12px;white-space:normal}
.social-sync-link-existing button{background:#2d6371;color:#fff;border-color:#2d6371;font-size:12px}
@media(max-width:1100px){.social-sync-heading{align-items:flex-start;flex-wrap:wrap}.social-sync-platform-heading{align-items:flex-start;gap:5px}}
@media(max-width:650px){.social-calendar-sync{padding:13px}.social-sync-platforms{grid-template-columns:1fr;gap:12px}.social-sync-heading{gap:10px}.social-sync-actions{width:100%}.social-sync-actions button{flex:1}.social-sync-platform-heading{justify-content:space-between}.social-sync-source{margin-left:0;margin-top:4px}.social-sync-post-link{min-height:40px}}

