
/* ---------- Marketing -> Flyers (2026-10-08, js/brand-social/flyer-builder.js) ----------
   Reuses the website builder's aw-* card, steps, panels and buttons; these
   rules only cover what flyers add. */
.fb-listing-pick { max-width: 560px; margin: 4px 0 16px; }
.fb-tpl-thumb { position: relative; aspect-ratio: 850 / 1100; overflow: hidden; background: #f4f4f6; border-bottom: 1px solid var(--border); }
.fb-tpl-thumb canvas, .fb-tpl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fb-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.fb-lib-card { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.fb-lib-open { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.fb-lib-open:focus-visible { outline: 2px solid var(--coral-500); outline-offset: -2px; }
.fb-lib-thumb { aspect-ratio: 4 / 5; background: #f4f4f6; overflow: hidden; }
.fb-lib-thumb img, .fb-lib-thumb canvas { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fb-lib-meta { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 4px; }
.fb-lib-meta strong { font-size: 13px; }
.fb-lib-meta span { font-size: 12px; color: var(--dim); }
.fb-lib-del { align-self: flex-start; margin: 2px 12px 10px; font-size: 12px; }
.fb-pill { align-self: flex-start; margin-top: 4px; font-size: 11px !important; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #f1f1f4; color: var(--dim) !important; }
.fb-pill.on { background: var(--coral-100, #fde3da); color: var(--ink) !important; }
.fb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fb-two > .aw-stack:not(.fb-half) { grid-column: 1 / -1; }
.fb-hl { margin-top: 6px; }
.fb-hl:first-of-type { margin-top: 0; }
.fb-look-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.fb-look { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 6px; font-family: inherit; color: var(--ink); cursor: pointer; }
.fb-look.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.fb-agent-sum { margin: 0 0 6px; font-size: 13px; line-height: 1.55; }
.fb-ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fb-ph { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: #f1f1f4; }
.fb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-ph.on { border-color: var(--coral-500); }
.fb-ph span { position: absolute; left: 4px; top: 4px; background: var(--coral-500); color: #fff; font-family: inherit; border-radius: 999px; padding: 3px 6px; }
.fb-ph-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 12px; }
.fb-stage { background: #eceef1; }
.fb-bbar { justify-content: center; }
.fb-canvas-wrap { flex: 1 1 auto; display: flex; justify-content: center; align-items: flex-start; padding: 22px; overflow: auto; }
.fb-canvas-wrap canvas { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 10px 30px rgba(20, 24, 30, .18); border-radius: 2px; }
.fb-finish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 6px; }
@media (max-width: 900px) { .fb-finish { grid-template-columns: 1fr; } }
.fb-out { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.fb-out-frame { background: #eceef1; padding: 20px; display: flex; justify-content: center; }
.fb-out-frame canvas { display: block; width: 100%; max-width: 360px; height: auto; box-shadow: 0 8px 24px rgba(20, 24, 30, .16); background: #fff; }
.fb-out figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.fb-out figcaption strong { font-size: 14px; }
.fb-out figcaption span { font-size: 12px; color: var(--dim); }
.fb-out-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fb-save-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.fb-save-row p { margin: 3px 0 0; font-size: 13px; color: var(--dim); max-width: 62ch; }
.fb-finish-msg { margin: 12px 0 0; font-size: 13px; font-weight: 600; }
.fb-links { margin-top: 8px; }
.fb-links a { color: var(--ink); }
.fb-canva-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; background: #fafafb; }
.fb-canva-bar strong { display: block; font-size: 13px; }
.fb-canva-bar span { font-size: 12.5px; color: var(--dim); }
.aw-stack.fb-listing-pick { margin: 4px 0 20px; } .fb-listing-pick + .aw-tpl-grid, .fb-listing-pick + .aw-tpl-groups { margin-top: 20px; }
.aw-tpl-groups + .fb-canva-bar { margin-top: 22px; }
.fb-sample-note { margin: 10px 0 0; font-size: 12.5px; color: var(--dim); }
.fb-sample-warn { margin: 4px 0 14px; padding: 11px 14px; border-radius: 10px; background: var(--coral-50); border: 1px solid var(--coral-200); font-size: 13px; line-height: 1.5; }
.fb-sample-warn .aw-link { margin-left: 6px; font-weight: 600; }

/* Listing picker on the Edit step (2026-10-17): a plain row above Taylor, no box. */
.fb-listing-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.fb-listing-bar .aw-lbl { margin: 0; }
.fb-listing-bar .aw-panel-hint { grid-column: 1 / -1; margin: 0; }

/* Flyers tab (2026-10-18, Mark): no outer border; the flyer card sits directly on the page like the Website tab. */
#brand-social-flyers-panel { margin: 20px 0 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.fb-lib-card.is-open { border-color: var(--coral-500, #D85A30); } /* the flyer open above (2026-11-25) */
