/* Shared Studio palette; the public website widget keeps its own styling. */
.social-library{margin-top:20px;--social-line:#e5d8c1;--social-muted:#756b5f;--social-ink:#241c13;--social-gold:#c6a04b}
.social-library .social-library-head{align-items:center;gap:20px;flex-wrap:wrap;padding:24px}
.social-library-head h2{font-size:22px;line-height:1.3;margin:4px 0 8px}.social-library-head p{margin:0;color:var(--social-muted);font-size:14px;line-height:1.5}
.social-library .btn{min-height:44px;font-size:14px;line-height:1.4;white-space:normal}.social-library .btn.primary{background:var(--social-gold);color:var(--social-ink);border:1px solid var(--social-gold);padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.social-library-body{padding:0 24px 24px}.social-selection-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 16px;font-size:13px;color:var(--social-muted)}.social-selection-heading>span:last-child{overflow-wrap:anywhere}
.social-active-count{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:30px;background:#f5efe3;color:var(--gold-ink);font-weight:600;font-size:13px;white-space:nowrap}
.social-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.social-post-card{display:grid;grid-template-columns:126px minmax(0,1fr);border:1px solid var(--social-line);border-radius:14px;min-width:0;background:var(--panel);transition:border-color .18s,box-shadow .18s}
.social-post-card:hover,.social-post-card:focus-within{border-color:#b8913f;box-shadow:0 6px 24px #241c130d}.social-post-card--draft{background:var(--panel-2)}
.social-post-media{position:relative;align-self:start;height:224px;overflow:hidden;border-radius:13px 0 0 13px;background:#eae2d3}.social-card-thumbnail{position:absolute;inset:0;pointer-events:none}
.social-post-open{position:absolute;inset:0;z-index:2;border:0;background:linear-gradient(transparent 45%,#180e01b3);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;padding:12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-width:44px;min-height:44px}
.social-play-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid #ffffffa0;background:#241c1399;font-size:15px;padding-left:2px}.social-post-open:hover .social-play-mark{background:#765c2b}.social-post-open:focus-visible{outline:3px solid var(--social-gold);outline-offset:-4px}
.social-post-copy{min-width:0;padding:16px;display:flex;flex-direction:column;gap:12px}.social-card-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.social-card-heading strong{font-size:15px;color:var(--social-ink)}.social-card-heading .badge{font-size:11px;padding:4px 8px}
.social-post-text{margin:0;color:var(--social-ink);font-size:14px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.social-card-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:auto;align-items:start}.social-card-actions>.btn{justify-self:start;padding:8px 0;color:var(--gold-ink);text-decoration:underline;text-underline-offset:4px}.social-more{min-width:0}.social-more[open]{grid-column:1/-1}
.social-more summary,.social-help summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-size:14px;color:var(--social-muted);padding:8px 4px}.social-more summary::-webkit-details-marker,.social-help summary::-webkit-details-marker{display:none}.social-more summary span{font-size:22px;line-height:1}.social-more[open] summary{color:var(--social-ink)}
.social-more-content{border-top:1px solid var(--social-line);padding-top:8px;display:grid;gap:6px}.social-more-content .btn{text-align:left;justify-content:flex-start;padding:10px 0}.social-more-content [data-social-remove]{color:#a33c31}.social-order-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.social-order-actions .btn{font-size:12px}.social-original-link{display:flex;align-items:center;min-height:44px;font-size:13px;color:var(--gold-ink);text-underline-offset:3px;overflow-wrap:anywhere}
.social-active-switch{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--social-ink);text-align:left;font:inherit;font-size:13px;cursor:pointer}.social-active-switch>span{flex:0 0 34px;height:20px;border-radius:20px;background:#c9c4bb;padding:3px}.social-active-switch>span:before{content:'';display:block;width:14px;height:14px;background:var(--panel);border-radius:50%;transition:transform .15s}.social-active-switch[aria-checked=true]>span{background:#997735}.social-active-switch[aria-checked=true]>span:before{transform:translateX(14px)}
.social-next-step{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding:20px;border:1px solid var(--social-line);border-radius:12px;background:var(--panel-2)}.social-next-step strong{font-size:15px}.social-next-step p{margin:6px 0 0;color:var(--social-muted);font-size:13px;line-height:1.6;max-width:420px}.social-next-step>.btn{flex-shrink:0}
.social-help{margin-top:12px}.social-help summary{font-size:13px}.social-help summary:before{content:'+';font-size:18px}.social-help[open] summary:before{content:'−'}.social-help p{font-size:13px;line-height:1.6;color:var(--social-muted);max-width:700px;margin:4px 0 10px}
.social-empty{padding:32px 20px;border:1px dashed var(--social-line);border-radius:12px;text-align:center}.social-empty strong{font-size:17px;color:var(--social-ink)}.social-empty p{margin:10px auto 0;max-width:430px;color:var(--social-muted);font-size:14px;line-height:1.7}.social-integration-note{margin-bottom:16px}
.social-library summary:focus-visible,.social-library button:focus-visible,.social-library a:focus-visible{outline:2px solid #997735;outline-offset:3px}
/* A card has one accessible play action; embedded mini controls are decorative. */
body .social-card-thumbnail .studio-social-thumbnail{height:100%;border:0;border-radius:0;display:block;background:#eae2d3}body .social-card-thumbnail .studio-social-thumbnail-stage{height:100%;background:#eae2d3}body .social-card-thumbnail .studio-social-thumbnail-controls,body .social-card-thumbnail .studio-social-thumbnail-status{display:none}body .social-card-thumbnail .studio-social-thumbnail-activation{padding:8px;color:var(--muted);font-size:12px}body .social-card-thumbnail .studio-social-thumbnail-activation p{display:none}
#modal:has(#social-post-form){width:620px;overscroll-behavior:contain}#modal:has(#social-post-form) .modal-header{position:sticky;top:0;background:var(--panel);z-index:5}#modal:has(#social-post-form) .modal-header h2{font-size:20px}#modal:has(#social-post-form) .modal-header p{font-size:13px}
#social-post-form label{font-size:14px;line-height:1.5}#social-post-form .input{font-size:16px;min-height:48px}#social-post-form .textarea{min-height:80px;resize:vertical}#social-post-form .upload-hint,#social-post-form .social-save-note{font-size:13px;line-height:1.55;color:var(--muted)}#social-post-form .error-text{color:#a33c31}#social-post-form .btn{min-height:48px;font-size:15px}#social-post-form .btn[hidden]{display:none}.social-optional{font-weight:400;color:var(--muted)}
.social-form-preview{margin:12px 0 20px;padding:12px 16px;border:1px dashed #dacbb1;border-radius:12px;background:#faf7f0}.social-form-preview:has(.studio-social-thumbnail){border-style:solid}.social-form-preview>.upload-hint{margin:0}.social-form-thumbnail:not(:empty){height:220px;position:relative;margin:12px auto 0;max-width:260px;border-radius:10px;overflow:hidden}
body .social-form-thumbnail .studio-social-thumbnail{height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;background:#eee5d4;color:var(--text);border:0}body .social-form-thumbnail .studio-social-thumbnail-stage{min-height:0;height:auto;background:#eee5d4}body .social-form-thumbnail .studio-social-thumbnail-controls{padding:0;background:#faf7f0;display:flex;justify-content:center}body .social-form-thumbnail .studio-social-thumbnail-controls button{min-height:44px;font-size:13px;color:var(--gold-ink);border:0}body .social-form-thumbnail .studio-social-thumbnail-controls button:last-child,body .social-form-thumbnail .studio-social-thumbnail-status{display:none}
#social-post-form .modal-footer{position:sticky;bottom:-24px;background:var(--panel);border-top:1px solid var(--line);padding:14px 0 max(14px,env(safe-area-inset-bottom));margin-top:12px;z-index:4}#social-post-form .modal-footer .primary{min-width:160px}.social-save-note{margin:12px 0}
body .studio-social-dialog{--studio-social-background:#180e01;--studio-social-ink:#fffaf0;--studio-social-muted:#d3c7b4;--studio-social-line:#c6a04b66;--studio-social-accent:#c6a04b;font-family:Manrope,system-ui,sans-serif}body .studio-social-dialog::backdrop{background:#180e01d9}body .studio-social-dialog .studio-social-dialog-stage{background:#120b03}body .studio-social-dialog .studio-social-button{color:var(--text)}
@media(max-width:1100px){.social-post-grid{grid-template-columns:1fr}.social-next-step{flex-wrap:wrap}}
@media(max-width:600px){.social-library .social-library-head{padding:18px 16px;gap:16px}.social-library-head h2{font-size:20px}.social-library-head>.btn{width:100%}.social-library-body{padding:0 16px 16px}.social-selection-heading{align-items:flex-start;flex-direction:column;gap:8px}.social-post-grid{gap:12px}.social-post-card{grid-template-columns:100px minmax(0,1fr)}.social-post-media{height:190px}.social-post-copy{padding:12px;gap:10px}.social-card-heading{gap:6px}.social-card-heading strong{font-size:14px}.social-post-text{font-size:13px;-webkit-line-clamp:2}.social-card-actions{gap:2px}.social-card-actions>.btn,.social-more summary{font-size:13px}.social-next-step{padding:16px;gap:14px;margin-top:18px}.social-next-step>.btn{width:100%}.social-more-content .social-order-actions{grid-template-columns:1fr}.social-more-content .btn{font-size:13px}.social-more-content .social-active-switch{align-items:flex-start}.social-help summary{font-size:12px}
#modal:has(#social-post-form){width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}#modal:has(#social-post-form) .modal-header{padding:16px}#modal:has(#social-post-form) .modal-content{padding:16px}#social-post-form .modal-footer{bottom:-16px;gap:10px}#social-post-form .modal-footer>.btn{flex:1;min-width:0}#social-post-form .form-field{margin-bottom:16px}.social-form-thumbnail:not(:empty){height:200px}
}
@media(prefers-reduced-motion:reduce){.social-post-card,.social-active-switch>span:before{transition:none}}

.social-material-empty{margin-top:16px;padding:4px 18px}.social-material-empty summary{min-height:48px;cursor:pointer;display:list-item;list-style-position:inside;padding:12px 0;font-size:14px;color:var(--muted)}.social-material-empty p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 14px}
/* Keep the action bar inside the visible dialog, including narrow phones. */
#social-post-form .modal-footer{bottom:0}
#social-post-form .modal-footer>.btn{padding:12px}
@media(max-width:380px){.social-post-card{grid-template-columns:88px minmax(0,1fr)}.social-post-media{height:auto;min-height:190px;align-self:stretch}.social-card-actions{grid-template-columns:1fr;gap:0}.social-card-actions>.btn{justify-self:stretch;text-align:left}.social-more summary{padding-inline:0}}

#modal:has(#social-post-form) .modal-header .icon-button{width:44px;min-width:44px;height:44px}
.social-library .section-kicker{font-size:11px;line-height:1.5}
.social-publication-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;font-size:13px}.social-publication-status>div{min-width:0;flex:1 1 280px}.social-publication-status p{margin:5px 0 0;overflow-wrap:anywhere}.social-publication-status .social-published-time{font-size:12px;color:var(--social-muted)}.social-publication-status>.btn{flex-shrink:0}.social-card-heading .badge{white-space:normal;line-height:1.4}
