/* Social media post maker: the post and brand-kit controls, the preview and the size list. */
.tool-social-media-post-maker fieldset{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:12px 0 0;display:grid;gap:10px;min-width:0}
.tool-social-media-post-maker legend{font-weight:600;padding:0 4px}
.tool-social-media-post-maker .pm-cap{display:block;font-weight:600}
.tool-social-media-post-maker [hidden]{display:none !important}
.tool-social-media-post-maker .seg{margin:0;flex-wrap:wrap}
.tool-social-media-post-maker .seg button[aria-checked="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}   /* radio groups use aria-checked */
.tool-social-media-post-maker .pm-kitBtns{flex:0 0 auto;align-self:end}
.tool-social-media-post-maker .pm-stage{background:repeating-conic-gradient(var(--surface-2) 0 25%,var(--surface) 0 50%) 0 0/20px 20px;border-radius:10px;overflow:hidden;display:flex;justify-content:center}
.tool-social-media-post-maker .pm-stage canvas{max-width:100%;max-height:70vh;width:auto;height:auto;display:block}
.tool-social-media-post-maker .pm-sizes{display:grid;gap:4px}
.tool-social-media-post-maker .pm-sizes fieldset{margin:0}
.tool-social-media-post-maker progress{width:100%}
@media (max-width:400px){.tool-social-media-post-maker .row{grid-template-columns:minmax(0,1fr)}}   /* .row is a grid (PM-6) */
