#social>.head{margin-bottom:20px}
#socialArea{background:white;border:1px solid #d8dcf5;border-radius:18px;padding:clamp(12px,2vw,26px)}.socialBar,.socialBar div{display:flex;align-items:center;justify-content:space-between;gap:8px}.socialBar h2{font-size:1.4rem;text-transform:capitalize}.socialDays,.socialWeek{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.socialWeek b{padding:10px 4px;font-size:.8rem}.socialDay,.socialBlank{border-top:1px solid #dde1ef;min-height:82px;padding:4px;min-width:0}.socialDay>button:first-child{padding:4px 7px;border:0}.socialCard{display:flex;align-items:center;justify-content:space-between;gap:4px;text-align:left;width:100%;margin:3px 0;padding:5px 7px;font-size:.76rem;line-height:1.2;min-width:0}.socialCard .socialCardTime{font-weight:700;white-space:nowrap}.socialCard small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}#socialChoices img{width:36px;height:36px;object-fit:cover;border-radius:5px}.socialNotice{padding:10px;background:#f4f5ff;border-radius:8px}.socialNotice a{font-weight:600}.socialNotice button{padding:4px}.socialPreview{display:block;width:100%;max-height:200px;object-fit:contain;margin:8px 0}.socialWeek,.socialDays{min-width:480px}#socialArea{overflow-x:auto}#socialForm{display:grid;gap:12px}#socialForm fieldset{display:flex;gap:14px;border:0;padding:0}#socialForm label{display:block}#socialForm input[type=checkbox]{width:auto}#socialPreview{display:flex;flex-wrap:wrap;gap:12px}#socialPreview article{flex:1;min-width:120px;padding:10px;border:1px solid #dde1ef;border-radius:10px;overflow-wrap:anywhere}#socialPreview p{white-space:pre-wrap}

.socialNotice .socialAuthorize{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:10px 14px;border-radius:10px;font-size:inherit;font-weight:500;text-decoration:none;white-space:nowrap}.socialNotice .socialAuthorize:hover{background:#f8f9fc;border-color:#cfd5e2}

.socialDay>button:first-child{cursor:pointer;border-radius:8px;transition:background-color .15s ease,color .15s ease}.socialDay>button:first-child:hover{background:#eef0ff;color:var(--publicia-cobalt,#2436f5)}
.socialChannelOption{display:inline-flex!important;align-items:center;gap:7px;cursor:pointer;white-space:nowrap}.socialChannelLogo{display:inline-block;width:20px;height:20px;object-fit:contain;vertical-align:middle}.socialArchiveButton{display:inline-flex;align-items:center;justify-content:center;border-radius:10px!important}#socialForm .formActions button{border-radius:10px}

.socialArchiveButton,.socialDraftButton{background:#F1F3FF!important;border:1px solid #D8DCF5!important;color:var(--ink,#0E1330)!important;border-radius:12px!important}.socialArchiveButton:hover,.socialDraftButton:hover{background:#E7EAFE!important;border-color:#C9D0F4!important}
.socialDay>button:first-child:not(:disabled):hover{background:#eef0ff;color:var(--publicia-cobalt,#2436f5)}.socialDay>button:first-child.socialToday{background:var(--publicia-cobalt,#2436f5)!important;color:#fff!important;font-weight:700;border-radius:8px}.socialDay>button:first-child.socialPast,.socialDay>button:first-child:disabled{opacity:.38;background:#eef0f3;color:#8490a1;cursor:not-allowed}

.socialSeparateToggle{display:flex!important;align-items:center;gap:8px;padding:10px 12px;border:1px solid #d8dcf5;border-radius:10px;background:#f8f9ff}.socialSeparateToggle input{margin:0}.socialChannelImageField{display:grid!important;gap:8px;padding:12px;border:1px solid #d8dcf5;border-radius:12px;background:#fff}.socialChannelImageField input[type=file]{width:100%}#socialChannelImages{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.socialMediaFrame{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:10px;background:#f1f3ff;isolation:isolate}.socialInstagramFrame{aspect-ratio:4/5}.socialFacebookFrame{aspect-ratio:1/1}.socialMediaBackdrop,.socialMediaForeground{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.socialMediaBackdrop{object-fit:cover;filter:blur(20px) brightness(.76);transform:scale(1.12)}.socialMediaForeground{z-index:1}.socialMediaEmpty{display:grid;place-items:center;color:#69718c;font-size:.9rem}.socialChannelImageField .socialMediaFrame{max-width:220px}

.socialImageMode{display:flex;gap:10px;width:100%;padding:4px;border:1px solid #d8dcf5;border-radius:14px;background:#f7f8ff}.socialImageModeButton{flex:1;min-height:44px;padding:10px 14px;border:1px solid transparent!important;border-radius:10px!important;background:#eef0ff!important;color:#222b64!important;font-weight:600;line-height:1.25}.socialImageModeButton:hover{background:#e6eaff!important}.socialImageModeButton.active{background:var(--publicia-cobalt,#2436f5)!important;border-color:var(--publicia-cobalt,#2436f5)!important;color:#fff!important}.socialSharedImagePanel{display:grid;gap:10px;padding:12px;border:1px solid #d8dcf5;border-radius:12px;background:#fff}.socialSharedImagePanel label{display:grid!important;gap:8px}.socialImageHint{margin:4px 0;color:#69718c}.socialChannelImageField{grid-template-columns:1fr}.socialChannelImageField .socialMediaFrame{width:min(100%,220px)}
@media(max-width:560px){.socialImageMode{flex-direction:column}.socialImageModeButton{width:100%}}

#socialChannelImages{align-items:start}.socialChannelImageField{align-self:start;align-content:start}.socialChannelImageField>strong{display:block;min-height:1.5em;line-height:1.5}


/* Publicações no calendário: azul claro enquanto não publicadas; cinza após publicação confirmada. */
.socialCard{background:#f1f3ff!important;border:1px solid #d8dcf5!important;border-radius:10px!important;color:#141a3b!important;cursor:pointer!important}
.socialCard:hover{background:#e7eaff!important}
.socialCard.socialPublished{background:#eef0f3!important;border-color:#d7dbe4!important;color:#5c6475!important}
.socialCard.socialPublished:hover{background:#e6e8ec!important}
.socialDay>button:first-child.socialPastHasPosts{opacity:1;background:#e9ebf7;color:#58627b;cursor:pointer}
.socialDay>button:first-child.socialPastHasPosts:hover{background:#dfe3f8;color:#2436f5}

.socialCard img{width:32px;height:32px;flex:0 0 32px;object-fit:cover;border-radius:5px}.socialCardDetails{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;flex:1}


/* Histórico de publicação: consulta somente leitura */
.modalDialog:has(.socialReadOnly){width:min(900px,100%)}
#modalBody:has(.socialReadOnly){padding:22px 26px 26px}
.socialReadOnly{display:grid;gap:18px}
.socialReadHero{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 18px;border:1px solid #dfe3ff;border-radius:16px;background:#f4f5ff}
.socialReadHeroStatus{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border-radius:999px;font-weight:750;font-size:14px;background:#edf0f7;color:#596273}
.socialReadHeroStatus.published,.socialReadStatus.published{background:#e9f7ef;color:#167247}
.socialReadHeroStatus.partial,.socialReadStatus.warning{background:#fff5de;color:#8a5a00}
.socialReadHeroStatus.failed,.socialReadStatus.failed{background:#fff0ee;color:#b42318}
.socialReadStatusMark{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:rgba(22,114,71,.14);color:inherit;font-size:13px;line-height:1}.socialReadHeroStatus.partial .socialReadStatusMark{background:rgba(138,90,0,.15)}.socialReadHeroStatus.failed .socialReadStatusMark{background:rgba(180,35,24,.13)}
.socialReadDate{display:flex;align-items:center;gap:10px;color:var(--publicia-cobalt,#2436f5)}
.socialReadDate>span{font-size:23px}
.socialReadDate small,.socialReadDate strong{display:block}
.socialReadDate small{color:var(--muted);font-size:11px;margin-bottom:3px}
.socialReadDate strong{color:var(--ink,#0e1330);font-size:13px;text-transform:capitalize}
.socialReadSection{display:grid;gap:11px}
.socialReadSectionHead small{font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--publicia-cobalt,#2436f5)}
.socialReadSectionHead h3{margin:3px 0 0;font-size:17px;letter-spacing:-.2px}
.socialReadChannelGrid,.socialReadMediaGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.socialReadChannel,.socialReadMedia{min-width:0;border:1px solid #dfe3f2;border-radius:14px;background:#fff;padding:13px}
.socialReadChannel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.socialReadChannelIdentity{display:flex;align-items:center;gap:10px;min-width:0}
.socialReadChannelIdentity>span:last-child{min-width:0}
.socialReadChannelIdentity strong,.socialReadChannelIdentity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.socialReadChannelIdentity strong{font-size:14px}
.socialReadChannelIdentity small{margin-top:3px;color:var(--muted);font-size:12px}
.socialReadChannelIcon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:11px}
.socialReadChannelIcon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}
.socialReadChannelIcon.facebook{background:#edf4ff;color:#1877f2}
.socialReadChannelIcon.facebook svg{fill:currentColor;stroke:none}
.socialReadChannelIcon.instagram{background:#fff0f4;color:#c13584}
.socialReadChannelIcon.instagram .socialIgDot{fill:currentColor;stroke:none}
.socialReadStatus{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#eef0f5;color:#586173;font-size:11px;font-weight:750;white-space:nowrap}
.socialReadChannelMessage{grid-column:1/-1;color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.socialReadCaption{padding:15px;border-radius:14px;background:#fafaff;border:1px solid #e6e8f5}
.socialReadCaption p{margin:0;color:var(--ink,#0e1330);font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.socialReadMedia{display:grid;align-content:start;gap:10px;background:#fafaff}
.socialReadMediaHead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.socialReadMediaHead strong{font-size:13px}
.socialReadMediaHead span{font-size:11px;color:var(--muted)}
.socialReadMediaImage,.socialReadMediaEmpty{display:grid;width:100%;height:260px;place-items:center;object-fit:contain;background:#f0f2ff;border-radius:10px;color:var(--muted)}
.socialReadMediaEmpty{font-size:13px}
.socialReadMedia.instagram .socialReadMediaImage{height:300px}
.socialReadHint{display:flex;align-items:flex-start;gap:8px;margin:0;padding:11px 13px;border-radius:11px;background:#f4f5ff;color:#5a6281;font-size:12px;line-height:1.45}
.socialReadHint span{color:var(--publicia-cobalt,#2436f5);font-size:16px;line-height:1}
.socialReadActions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:2px}
.socialReadRetry{border-radius:11px}
.socialCard.socialPublished img{filter:grayscale(1);opacity:.78}
@media(max-width:640px){.modalDialog:has(.socialReadOnly){width:min(520px,100%)}#modalBody:has(.socialReadOnly){padding:18px}.socialReadChannelGrid,.socialReadMediaGrid{grid-template-columns:1fr}.socialReadMediaImage,.socialReadMedia.instagram .socialReadMediaImage{height:260px}.socialReadHero{align-items:flex-start;flex-direction:column}.socialReadActions{justify-content:stretch}.socialReadActions button{width:100%}}

/* Formatos de conteúdo orgânico */
.socialFormatGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px}
.socialFormatChoice{display:flex;min-height:142px;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:20px;border:1px solid #d8defb;border-radius:18px;background:#fff;color:#151a3b;text-align:left;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.socialFormatChoice:hover,.socialFormatChoice:focus-visible{border-color:#293cff;background:#f2f4ff;transform:translateY(-2px);outline:none}
.socialFormatChoice>span{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#eef1ff;color:#293cff;font-size:23px;font-weight:800}.socialFormatChoice>span svg{display:block;width:20px;height:20px;fill:currentColor}
.socialFormatChoice strong{font-size:17px}.socialFormatChoice small{color:#626b8d;font-size:13px}
.socialVideoPreview{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:14px;background:#11152d}
.socialChannelOption:has(input:disabled){opacity:.45;cursor:not-allowed}
@media(max-width:640px){.socialFormatGrid{grid-template-columns:1fr;padding:14px}.socialFormatChoice{min-height:108px}}

.socialChannelImageField small,.socialSharedImagePanel label small{display:block;margin:4px 0 8px;color:#626b8d;font-size:12px}

.socialCarouselPreview{display:grid;gap:10px;margin:10px 0;padding:12px;border:1px solid #d8defb;border-radius:14px;background:#f9faff}.socialCarouselCount{color:#2436f5;font-size:13px}.socialCarouselThumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px}.socialCarouselThumb{position:relative;margin:0;overflow:hidden;aspect-ratio:4/5;border:1px solid #d8defb;border-radius:9px;background:#eef1ff}.socialCarouselThumb img{display:block;width:100%;height:100%;object-fit:cover}.socialCarouselThumb span{position:absolute;top:5px;left:5px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#293cff;color:#fff;font-size:12px;font-weight:700;box-shadow:0 1px 4px #10142c55}
@media(max-width:560px){.socialCarouselThumbs{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Instagram comment automation fields on every publication format. */
#socialForm .socialAutomationFields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;padding:13px;border:1px solid #dfe3f2;border-radius:13px;background:#fafaff}
#socialForm .socialAutomationField{display:grid;align-content:start;gap:6px;min-width:0}
#socialForm .socialAutomationField label{font-size:13px;font-weight:700;color:var(--ink,#0e1330)}
#socialForm .socialAutomationField input,#socialForm .socialAutomationField textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #d7dced;border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink,#0e1330);font:inherit}
#socialForm .socialAutomationField textarea{min-height:44px;resize:vertical}
#socialForm .socialAutomationField input:focus,#socialForm .socialAutomationField textarea:focus{outline:2px solid #2939f5;outline-offset:1px}
.socialReadAutomationGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.socialReadAutomationGrid article{min-width:0;padding:13px;border:1px solid #dfe3f2;border-radius:12px;background:#fafaff}
.socialReadAutomationGrid article small{font-size:11px;color:var(--muted,#68718f)}
.socialReadAutomationGrid article p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:640px){#socialForm .socialAutomationFields,.socialReadAutomationGrid{grid-template-columns:1fr}}

.socialBarActions{display:flex;justify-content:flex-end;margin:0 0 10px}
#socialForm .socialAutomationFields{grid-template-columns:1fr minmax(0,1fr);position:relative;padding-top:45px}
#socialForm .socialAutomationFieldsTitle{position:absolute;top:11px;left:14px;right:14px;display:flex;justify-content:space-between;gap:12px;align-items:center}
#socialForm .socialAutomationFieldsTitle small,.socialAutomationHelp{color:var(--muted,#68718f);font-size:12px}
#socialForm .socialAutomationHelp{grid-column:1/-1;margin:0}
.socialAutomationUnavailable{padding:13px 15px;border-radius:12px;background:#fff8e8;border:1px solid #f2d797;color:#785400;display:grid;gap:4px}
.socialAutomationUnavailable span{font-size:13px}
.socialAutomationHub{display:grid;gap:18px}
.socialAutomationHubHead{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 0}
.socialAutomationHubHead small,.socialAutomationType{color:#2939f5;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.socialAutomationHubHead h2{margin:6px 0;font-size:26px}
.socialAutomationHubHead p{margin:0;color:#68718f}
.socialAutomationHubNote{display:grid;gap:5px;padding:16px;border:1px solid #dfe3f2;border-radius:14px;background:#f5f6ff}
.socialAutomationHubNote span{color:#535f83}
.socialAutomationHubList{display:grid;gap:12px}
.socialAutomationHubCard{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px;border:1px solid #dfe3f2;border-radius:14px;background:#fff}
.socialAutomationHubCard h3{margin:6px 0}
.socialAutomationHubCard p{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
.socialAutomationHubCard small{color:#68718f}
.socialAutomationEmpty{padding:35px;text-align:center;border:1px dashed #cbd2ee;border-radius:14px;background:#fafaff}
.socialAutomationEmpty p{color:#68718f}
@media(max-width:640px){#socialForm .socialAutomationFields{grid-template-columns:1fr;padding-top:13px}.socialAutomationFieldsTitle{position:static!important;grid-column:1/-1;display:grid!important}.socialAutomationHelp{grid-column:auto!important}.socialAutomationHubHead,.socialAutomationHubCard{align-items:stretch;flex-direction:column}}
