/* "Generate a post with Taylor" layout (2026-10-19, option 4 of
   https://claude.ai/artifact/XAxiEP37TMkgyCdFPkEraV). Markup in
   Ascent_Dashboard.html, behaviour in js/quinn/composer-layout.js. Coral
   palette; teal only for the "connected" dot. */
.quinn-composer .qc-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0; }
.quinn-composer .qc-grid .quinn-gen-main { padding-right: 22px; }
.quinn-composer .qc-side { padding: 0 0 0 22px; border-left: 1px solid #ececef; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.quinn-composer .qc-side .quinn-gen-field { margin-bottom: 0; }
.quinn-composer .qc-side > .quinn-gen-label { margin-bottom: -4px; }
.quinn-composer .quinn-gen-body { padding: 18px 22px; }
.quinn-composer .quinn-gen-field { margin-bottom: 16px; }

/* channel tiles */
.quinn-composer #quinn-platform-row.qc-chans { display: grid; flex-wrap: nowrap; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.quinn-composer #quinn-platform-row .qc-ch { display: flex !important; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 10px; padding: 7px 9px; background: #fff; color: var(--ink); font-family: inherit; box-shadow: none; min-width: 0; }
.quinn-composer #quinn-platform-row .qc-ch.active { border-color: var(--coral-300); background: #fff8f5; box-shadow: none; color: var(--ink); }
.qc-bx { width: 17px; height: 17px; border-radius: 5px; border: 2px solid #c9c9cf; display: grid; place-items: center; flex: none; color: transparent; }
.qc-bx i { font-size: 13.5px; }
.qc-ch.active .qc-bx { background: var(--coral-500); border-color: var(--coral-500); color: #fff; }
.qc-nm { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500, #009580); flex: none; display: inline-block; }
.qc-dot-key { margin-right: 5px; vertical-align: 1px; }
.qc-cn { display: none; font-size: 13px; font-weight: 700; color: var(--coral-500); }
.quinn-composer #quinn-platform-row .qc-ch.qc-off { border-style: dashed; background: #fafafb; color: var(--dim); }
.qc-ch.qc-off .qc-dot { display: none; }
.qc-ch.qc-off .qc-cn { display: inline; }
.qc-ch.qc-off .qc-bx { border-color: #dcdce0; }
.quinn-composer #quinn-platform-row .qc-ch:hover { border-color: var(--coral-300); }
.qc-ch:focus-visible, .qc-type:focus-visible, .qc-ptabs button:focus-visible, .qc-use:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 2px; }

/* post-type cards */
.quinn-composer #quinn-type-row.qc-types { display: grid; flex-wrap: nowrap; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.quinn-composer #quinn-type-row .qc-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 1px solid var(--border); border-radius: 10px; padding: 8px 9px; background: #fff; color: var(--ink); font-family: inherit; min-width: 0; cursor: pointer; }
.qc-ti { width: 26px; height: 26px; border-radius: 7px; background: var(--coral-50); color: var(--coral-500); display: grid; place-items: center; }
.qc-ti i { font-size: 15px; }
.qc-type b { font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qc-type small { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.quinn-composer #quinn-type-row .qc-type.active { border-color: var(--coral-500); box-shadow: inset 0 0 0 1px var(--coral-500); background: #fff8f5; color: var(--ink); }
.qc-type.active .qc-ti { background: var(--coral-500); color: #fff; }
.quinn-composer #quinn-type-row .qc-type:hover { border-color: var(--coral-300); }

/* brief + inputs in coral */
.quinn-composer .quinn-gen-topic:focus, .quinn-composer .quinn-gen-input:focus { border-color: var(--coral-300); box-shadow: 0 0 0 3px var(--coral-50); }
.quinn-composer .quinn-media-btn:hover { border-color: var(--coral-300); color: var(--coral-500); }
.quinn-composer .quinn-media-preview { background: var(--coral-50); color: var(--ink); }

/* preview */
.qc-ptabs { display: flex; gap: 3px; background: #ececef; border-radius: 10px; padding: 3px; }
.qc-ptabs button { flex: 1; font: 700 14px/1 'Inter', sans-serif; border: 0; background: none; color: var(--dim); padding: 7px 0; border-radius: 8px; cursor: pointer; }
.qc-ptabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.qc-phone { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(17, 17, 20, .06); }
.qc-ph-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.qc-ph-h i { width: 28px; height: 28px; border-radius: 50%; background: var(--coral-200); color: var(--coral-500); font-style: normal; font-size: 13.5px; font-weight: 800; display: grid; place-items: center; flex: none; }
.qc-ph-h small { display: block; font-weight: 500; color: var(--dim); font-size: 13px; }
.qc-ph-img { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: linear-gradient(135deg, var(--coral-100), var(--coral-50)); display: grid; place-items: center; color: var(--coral-500); font-size: 14px; font-weight: 700; overflow: hidden; }
.qc-phone.tall .qc-ph-img { aspect-ratio: 4 / 3; }
.qc-ph-img img, .qc-ph-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-count { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: rgba(17, 17, 20, .55); border-radius: 999px; padding: 2px 8px; }
.qc-ph-cap { padding: 10px 12px; font-size: 14px; color: var(--ink); line-height: 1.5; max-height: 150px; overflow-y: auto; }
.qc-ph-cap .sk { display: block; height: 8px; border-radius: 4px; background: #efeff2; margin: 6px 0; }

/* best time */
.quinn-composer .qc-side .quinn-recommend { margin: 0; display: flex; align-items: center; gap: 10px; border-left: 0; border: 1px solid var(--coral-100); border-radius: 10px; font-size: 14px; padding: 9px 11px; }
.quinn-composer .qc-side .quinn-recommend span { flex: 1; }
.qc-use { font-family: inherit; color: var(--coral-500); background: #fff; border: 1px solid var(--coral-200); border-radius: 8px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.qc-use:hover { border-color: var(--coral-500); }

/* footer actions */
.qc-foot { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid #ececef; background: #fafafb; flex-wrap: wrap; border-radius: 0 0 16px 16px; }
.qc-foot .quinn-gen-footnote { flex: 1; margin: 0; font-size: 13.5px; color: var(--dim); min-width: 220px; }
.qc-foot .quinn-gen-footnote i { color: var(--teal-500, #009580); }
.quinn-composer .qc-foot .quinn-save-draft-btn { width: auto; margin: 0; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 10px 14px; font-family: inherit; color: var(--ink); cursor: pointer; }
.quinn-composer .qc-foot #quinn-gen-btn { width: auto; min-height: 0; margin: 0; padding: 11px 18px; border-radius: 10px; background: var(--coral-500); box-shadow: 0 6px 16px rgba(216, 90, 48, .22); font-size: 14.5px; }
.quinn-composer .qc-foot #quinn-gen-btn:hover { background: var(--coral-500); filter: brightness(.95); box-shadow: 0 8px 20px rgba(216, 90, 48, .28); }
.quinn-composer .qc-foot #quinn-gen-btn:focus-visible { outline: 3px solid var(--coral-200); }

@media (max-width: 900px) {
  .quinn-composer .qc-grid { grid-template-columns: 1fr; }
  .quinn-composer .qc-grid .quinn-gen-main { padding-right: 0; }
  .quinn-composer .qc-side { padding: 18px 0 0; border-left: 0; border-top: 1px solid #ececef; margin-top: 4px; }
  .quinn-composer #quinn-type-row.qc-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .quinn-composer #quinn-type-row.qc-types, .quinn-composer #quinn-platform-row.qc-chans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-foot { padding: 12px 17px; } .qc-foot .quinn-save-draft-btn, .qc-foot #quinn-gen-btn { flex: 1; justify-content: center; }
}
@media (max-width: 900px) and (min-width: 541px) { .quinn-composer #quinn-platform-row.qc-chans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quinn-composer #quinn-platform-row .qc-ch, .quinn-composer #quinn-type-row .qc-type { justify-content: flex-start; min-height: 0; }
.quinn-composer #quinn-type-row .qc-type { white-space: normal; }
#quinn-platform-row .qc-bx i { font-size: 13.5px; }
/* Five tiles don't fit a 5-column grid; connected tiles share the row and
   channels that aren't linked shrink to "Name + Connect" with no checkbox. */
.quinn-composer #quinn-platform-row.qc-chans { display: flex; flex-wrap: wrap; }
.quinn-composer #quinn-platform-row .qc-ch { flex: 1 1 104px; }
.quinn-composer #quinn-platform-row .qc-ch.qc-off { flex: 0 1 auto; gap: 6px; padding: 7px 10px; }
.qc-ch.qc-off .qc-bx { display: none; }
.qc-ch.qc-off .qc-nm { flex: 0 1 auto; }
.qc-ch.qc-off .qc-cn::before { content: "+ "; }
@media (max-width: 540px) { .quinn-composer #quinn-platform-row .qc-ch { flex-basis: 40%; } }
.quinn-composer #quinn-platform-row .qc-ch { flex-basis: 88px; }
.quinn-composer #quinn-platform-row .qc-ch.qc-off { order: 1; padding: 7px 8px; }
.qc-ch.qc-off .qc-nm { font-size: 14px; }
/* Not-linked channels: a compact dashed "+ LinkedIn" tile that opens Settings. */
.qc-ch.qc-off .qc-cn { display: none; }
.qc-ch.qc-off .qc-nm { color: var(--coral-500); font-weight: 700; }
.qc-ch.qc-off .qc-nm::before { content: "+ "; }
.quinn-composer #quinn-platform-row .qc-ch.qc-off { flex: 0 0 auto; }

/* Inline note under the brief, and the MLS hint for Market Update (2026-10-19). */
.qc-note { margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); background: var(--coral-50); border: 1px solid var(--coral-200); border-radius: 9px; padding: 8px 10px; }
.qc-note::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--coral-500); color: #fff; font-size: 13.5px; font-weight: 800; display: grid; place-items: center; }
.qc-note[hidden] { display: none; }
.qc-mls { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.qc-mls[hidden] { display: none; }
.qc-mls i.ti { color: var(--coral-500); font-size: 15px; }
.qc-mls b { font-weight: 700; }
.qc-mls .qc-dot { margin-left: 2px; }

/* Multi-photo preview (2026-10-23): Facebook/LinkedIn grid, Instagram/TikTok carousel */
.qc-ph-img .qc-pgrid { position: absolute; inset: 0; display: grid; gap: 2px; background: #fff; }
.qc-pgrid-cell { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.qc-pgrid-cell img, .qc-pgrid-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-pgrid-2 { grid-template-columns: 1fr 1fr; }
.qc-pgrid-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.qc-pgrid-3 .qc-pgrid-cell:first-child { grid-row: 1 / 3; }
.qc-pgrid-4 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.qc-pgrid-4 .qc-pgrid-cell:first-child { grid-row: 1 / 4; }
.qc-pgrid-5 { grid-template-columns: repeat(6, 1fr); grid-template-rows: 3fr 2fr; }
.qc-pgrid-5 .qc-pgrid-cell:nth-child(-n+2) { grid-column: span 3; }
.qc-pgrid-5 .qc-pgrid-cell:nth-child(n+3) { grid-column: span 2; }
.qc-pgrid-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 17, 20, .5); color: #fff; font-size: 20px; font-weight: 800; }
.qc-carousel { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.qc-carousel::-webkit-scrollbar { display: none; }
.qc-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.qc-slide img, .qc-slide video { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.qc-car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 18px; line-height: 24px; cursor: pointer; box-shadow: 0 2px 6px rgba(17, 17, 20, .2); }
.qc-car-btn.prev { left: 8px; } .qc-car-btn.next { right: 8px; }
.qc-car-btn[hidden] { display: none; }
.qc-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.qc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.qc-dots i.on { background: #fff; }
/* Edit-post mode hides Save as draft (composer-edit.js sets [hidden]) */
.quinn-composer .qc-foot button[hidden] { display: none; }

/* ===== Option C layout (2026-10-23, Mark picked C of the "Post composer
   layouts" canvas): setup bar + writing desk + preview. Scoped to .qc-c so
   the rules above still cover everything else in the composer. ===== */
.quinn-composer #quinn-gen-card { width: min(1180px, 100%); }
.quinn-composer .qc-c { padding: 14px 20px 16px; }
.qc-c .qc-bar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; border: 1px solid #e6e6ea; border-radius: 12px; background: #fafafb; }
.qc-c .qc-bar-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qc-c .qc-bar-f[hidden] { display: none; }
.qc-c .qc-bar-l { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.qc-c .qc-bar-key, .qc-c .qc-bar-hint { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--slate); }
.qc-c .qc-bar-sep { width: 1px; align-self: stretch; background: #e4e4e7; }
.quinn-composer .qc-c .qc-bar-in { height: 34px; padding: 0 9px; font-size: 14px; font-weight: 600; border-radius: 8px; background: #fff; }
.qc-c .qc-bar-best .qc-use { height: 34px; padding: 0 11px; background: #FDE7E2; border-color: var(--coral-200); color: #8f3414; }
/* Channels: compact icon buttons; the name stays for screen readers */
.quinn-composer .qc-c #quinn-platform-row.qc-chans { display: flex; gap: 6px; }
.quinn-composer .qc-c #quinn-platform-row .qc-ch { position: relative; width: 38px; height: 34px; padding: 0; justify-content: center; border-radius: 9px; }
.qc-c .qc-ch .qc-ic { font-size: 18px; color: var(--dim); }
.qc-c .qc-ch.active .qc-ic { color: var(--coral-500); }
.quinn-composer .qc-c #quinn-platform-row .qc-ch.active { background: #FDE7E2; border-color: var(--coral-500); }
.qc-c .qc-ch .qc-bx, .qc-c .qc-ch .qc-cn { display: none !important; }
.qc-c .qc-ch .qc-nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qc-c .qc-ch .qc-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border: 2px solid #fff; }
.quinn-composer .qc-c #quinn-platform-row .qc-ch.qc-off { border-style: dashed; }
.qc-c .qc-ch.qc-off .qc-ic { opacity: .55; }
.qc-c .qc-ch.qc-off::after { content: "+"; position: absolute; top: -6px; right: -5px; width: 15px; height: 15px; border-radius: 50%; background: var(--coral-500); color: #fff; font: 800 11px/15px Inter, sans-serif; text-align: center; }
/* Writing desk + preview */
.quinn-composer .qc-c .qc-c-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 0; }
.quinn-composer .qc-c .qc-desk { padding-right: 20px; display: flex; flex-direction: column; gap: 12px; }
.qc-c .quinn-gen-listing-facts { margin-top: 0; }
.qc-c .qc-brief { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.qc-c .qc-brief:focus-within { border-color: var(--coral-300); box-shadow: 0 0 0 3px var(--coral-50); }
.quinn-composer .qc-c .qc-brief .quinn-gen-topic { border: 0; border-radius: 0; box-shadow: none; min-height: 150px; resize: vertical; padding: 13px 14px; font-size: 14.5px; line-height: 1.55; background: #fff; }
.quinn-composer .qc-c .qc-brief .quinn-gen-topic:focus { box-shadow: none; }
.qc-c .qc-brief .qc-mls { margin: 0 12px 10px; }
.qc-c .qc-brief-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 9px 12px; border-top: 1px solid #ececef; background: #fafafb; }
.qc-c .qc-mini { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--slate); font-weight: 600; }
.quinn-composer .qc-c .qc-mini .quinn-gen-input { width: auto; height: 30px; padding: 0 8px; font-size: 14px; font-weight: 600; border-radius: 7px; background: #fff; }
.qc-c .qc-tray { border: 1px solid #ececef; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; }
.qc-c .qc-tray-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qc-c .qc-tray .quinn-media-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.quinn-composer .qc-c .qc-tray .quinn-media-btn { height: 30px; padding: 0 10px; font-size: 14px; border-style: solid; border-color: #ececef; background: #f4f4f6; }
.qc-c .qc-tray .quinn-media-preview { margin: 0; }
.qc-c .qc-tray .quinn-media-preview:empty { display: none !important; }
.quinn-composer .qc-c .qc-side { padding-left: 20px; gap: 10px; }
.qc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
  .quinn-composer .qc-c .qc-c-grid { grid-template-columns: 1fr; }
  .quinn-composer .qc-c .qc-desk { padding-right: 0; }
  .quinn-composer .qc-c .qc-side { padding-left: 0; border-left: 0; margin-top: 14px; }
  .qc-c .qc-bar-sep { display: none; }
}
/* Option C fixes: older composer rules set the channel buttons' flex size
   and show #quinn-type-row; these win for the Option C layout. */
.quinn-composer .qc-c #quinn-platform-row.qc-chans { flex-wrap: nowrap; }
.quinn-composer .qc-c #quinn-platform-row .qc-ch.r-toggle-btn { flex: 0 0 38px; width: 38px; min-width: 38px; min-height: 0; height: 34px; padding: 0; gap: 0; border-radius: 9px; }
.quinn-composer #quinn-type-row[hidden] { display: none !important; }
.quinn-composer .qc-c .qc-brief { flex: 1; }
.quinn-composer .qc-c .qc-brief .quinn-gen-topic { flex: 1; }

/* ===== One window (2026-10-23): Taylor's caption options in the preview
   column, caption edited in the preview, draft actions in the footer. ===== */
.quinn-composer .qc-result { margin: 0; }
.quinn-composer .qc-result-card { display: flex; flex-direction: column; gap: 6px; }
.quinn-composer .qc-result .qc-bar-l { display: flex; }
.quinn-composer .qc-result .quinn-draft-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.quinn-composer .qc-result .quinn-draft-choice { padding: 7px 8px; border-radius: 8px; background: #fff; min-width: 0; }
.quinn-composer .qc-result .quinn-draft-choice strong { font-size: 13.5px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quinn-composer .qc-result .quinn-draft-choice span { font-size: 13px; -webkit-line-clamp: 2; }
.quinn-composer .qc-result .quinn-draft-choice.active { border-color: var(--coral-500); background: #FDE7E2; box-shadow: none; }
.quinn-composer .qc-result .quinn-draft-choice:only-child { grid-column: 1 / -1; }
.quinn-composer .qc-cap-edit { white-space: pre-wrap; cursor: text; outline: 1px dashed transparent; outline-offset: -4px; border-radius: 8px; max-height: 190px; }
.quinn-composer .qc-cap-edit:hover { outline-color: var(--coral-300); }
.quinn-composer .qc-cap-edit:focus { outline: 2px solid var(--coral-300); background: #fffaf8; }
.quinn-composer .qc-cap-count { padding: 0 12px 9px; font-size: 13px; color: var(--slate); }
/* Footer: draft actions appear once captions exist */
.quinn-composer .qc-foot .qc-result-actions { display: none; align-items: center; gap: 8px; }
.quinn-composer .qc-foot.has-result .qc-result-actions { display: flex; }
.quinn-composer .qc-foot .qc-result-actions:empty { display: none; }
.quinn-composer .qc-foot .qc-result-actions > div { display: flex !important; align-items: center; gap: 8px; }
/* Editing and regenerating now happen in place, so the old per-card buttons go. */
.quinn-composer .qc-foot .qc-result-actions [onclick^="quinnEditGenerated"],
.quinn-composer .qc-foot .qc-result-actions [onclick^="quinnRegeneratePost"] { display: none; }
.quinn-composer .qc-foot .qc-result-actions .btn-approve,
.quinn-composer .qc-foot .qc-result-actions .btn-edit { height: 38px; padding: 0 14px; border-radius: 10px; font-family: inherit; cursor: pointer; margin: 0; }
.quinn-composer .qc-foot .qc-result-actions .btn-approve { background: var(--teal-500, #009580); border: 1px solid var(--teal-500, #009580); color: #fff; }
.quinn-composer .qc-foot .qc-result-actions .btn-edit { background: #fff; border: 1px solid var(--border); }
/* Keep the whole composer inside the screen: the preview column scrolls
   instead of the window growing taller once captions arrive. */
.quinn-composer #quinn-gen-card:has(.qc-c) { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.quinn-composer #quinn-gen-card:has(.qc-c) > .quinn-gen-head,
.quinn-composer #quinn-gen-card:has(.qc-c) > .qc-foot { flex: none; }
.quinn-composer .quinn-gen-body.qc-c { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.quinn-composer .qc-c > .qc-bar { flex: none; }
.quinn-composer .qc-c > .qc-c-grid { flex: 1 1 auto; min-height: 0; }
.quinn-composer .qc-c .qc-side { min-height: 0; overflow-y: auto; }
.quinn-composer .qc-c .qc-desk, .quinn-composer .qc-c-grid > :first-child { min-height: 0; }
.quinn-composer .qc-result #quinn-preview-tabs[hidden],
.quinn-composer .qc-result .quinn-preview-tabs { display: none !important; }
/* 2026-10-23 (Mark: notes box "unnecessarily big"; caption options moved to
   the left so the right side is all preview). The notes box is a fixed,
   resizable height instead of filling the column. */
.quinn-composer .qc-c .qc-brief { flex: none; }
.quinn-composer .qc-c .qc-brief .quinn-gen-topic { flex: none; min-height: 84px; height: 96px; }
.quinn-composer .qc-c .qc-desk > .qc-result { flex: none; }
.quinn-composer .qc-c .qc-desk .qc-result-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: #fff; }
.quinn-composer .qc-c .qc-desk .qc-result .quinn-draft-choice { padding: 9px 10px; }
.quinn-composer .qc-c .qc-desk .qc-result .quinn-draft-choice strong { font-size: 14px; }
.quinn-composer .qc-c .qc-desk .qc-result .quinn-draft-choice span { font-size: 13.5px; -webkit-line-clamp: 3; }
.quinn-composer .qc-c .qc-desk > .qc-tray { margin-top: auto; }
.quinn-composer .qc-c .qc-c-grid { grid-template-columns: minmax(0, 1fr) 440px; }
.quinn-composer .qc-c .qc-side .qc-cap-edit { max-height: none; }
/* 2026-10-23 (Mark: photos overhung the footer and neither side scrolled on a
   shorter screen). The grid row is capped to the space left in the window and
   each column scrolls on its own. */
.quinn-composer .qc-c > .qc-c-grid { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.quinn-composer .qc-c .qc-c-grid > .qc-desk { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.quinn-composer .qc-c .qc-c-grid > .qc-side { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.quinn-composer .qc-c .qc-desk > .qc-tray { margin-top: 0; flex: none; }
.quinn-composer .qc-c .qc-side > .qc-phone { flex: none; }
.quinn-composer .qc-c .qc-side .qc-ph-cap, .quinn-composer .qc-c .qc-side .qc-cap-edit { max-height: none; overflow: visible; }
/* Preview channel tabs as icon tiles, same as the "Post to" buttons (2026-10-23). */
.quinn-composer .qc-ptabs { background: none; padding: 0; gap: 6px; justify-content: flex-start; flex: none; }
.quinn-composer .qc-ptabs button.qc-ptab { flex: 0 0 auto; width: 38px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: none; color: var(--dim); }
.quinn-composer .qc-ptabs button.qc-ptab i { font-size: 18px; }
.quinn-composer .qc-ptabs button.qc-ptab:hover { border-color: var(--coral-300); }
.quinn-composer .qc-ptabs button.qc-ptab.on { background: #FDE7E2; border-color: var(--coral-500); color: var(--coral-500); box-shadow: none; }
/* Market update chart suggestions (js/quinn/market-chart.js, 2026-10-23). */
.quinn-composer .qc-mchart { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--coral-300); border-radius: 10px; background: #fff8f5; }
.quinn-composer .qc-mchart[hidden] { display: none; }
.quinn-composer .qc-mchart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink); margin-bottom: 8px; flex-wrap: wrap; }
.quinn-composer .qc-mchart-h .ti { color: var(--coral-500); }
.quinn-composer .qc-mchart-row { display: flex; gap: 10px; flex-wrap: wrap; }
.quinn-composer .qc-mchart-opt { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; color: var(--ink); }
.quinn-composer .qc-mchart-opt img { width: 92px; height: 92px; border-radius: 7px; display: block; }
.quinn-composer .qc-mchart-opt:hover { border-color: var(--coral-500); }
.quinn-composer .qc-mchart-opt.is-added { border-color: var(--teal-500, #009580); color: var(--teal-500, #009580); cursor: default; }
.quinn-composer .qc-mchart-opt:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 2px; }
/* 2026-10-23 (Mark: "the graphic doesn't fit in the Preview area"). The
   preview frame was a wide 16:9 box, which cropped square images such as the
   Market update charts. Feeds show square images in full, so the frame is
   square; TikTok/YouTube use a taller 4:5 frame and letterbox the whole
   image on black, the way those apps show photos. */
.quinn-composer .qc-ph-img { aspect-ratio: 1 / 1; }
.quinn-composer .qc-phone.tall .qc-ph-img { aspect-ratio: 4 / 5; background: #000; }
.quinn-composer .qc-phone.tall .qc-ph-img img { object-fit: contain; }
/* 2026-10-23 (Mark: "I want to be able to see the full social post without
   scrolling ... make it fit in the window"). The preview column no longer
   scrolls: the post card fills the column, its header and caption always show
   in full, and the photo takes whatever height is left, showing the whole
   image (letterboxed, never cropped). */
.quinn-composer .qc-c .qc-c-grid > .qc-side { display: flex; flex-direction: column; overflow: hidden; }
.quinn-composer .qc-c .qc-side > .qc-ptabs { flex: none; }
.quinn-composer .qc-c .qc-side > .qc-phone { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.quinn-composer .qc-c .qc-side > .qc-phone > .qc-ph-h,
.quinn-composer .qc-c .qc-side > .qc-phone > .qc-ph-cap,
.quinn-composer .qc-c .qc-side > .qc-phone > .qc-cap-count { flex: none; }
.quinn-composer .qc-c .qc-side > .qc-phone > .qc-ph-img { flex: 1 1 0; min-height: 90px; aspect-ratio: auto; background: #f1f1f3; }
.quinn-composer .qc-c .qc-side > .qc-phone.tall > .qc-ph-img { background: #000; }
.quinn-composer .qc-c .qc-side .qc-ph-img img,
.quinn-composer .qc-c .qc-side .qc-ph-img video,
.quinn-composer .qc-c .qc-side .qc-slide img,
.quinn-composer .qc-c .qc-side .qc-slide video { object-fit: contain; }
/* Multi-photo grids (Facebook/LinkedIn) keep filling their cells. */
.quinn-composer .qc-c .qc-side .qc-pgrid-cell img,
.quinn-composer .qc-c .qc-side .qc-pgrid-cell video { object-fit: cover; }
/* A very long caption scrolls inside itself rather than pushing the photo out. */
.quinn-composer .qc-c .qc-side > .qc-phone > .qc-ph-cap { max-height: 46%; overflow-y: auto; }
/* Placeholder state (no photo yet) keeps a sensible height. */
.quinn-composer .qc-c .qc-side > .qc-phone > .qc-ph-img:not(:has(img, video)) { flex: 0 1 220px; }
/* A single photo on Facebook/LinkedIn is shown whole, like the real feed
   (2026-10-23, Mark: the chart was still cut off). Multi-photo grids still
   fill their cells. */
.quinn-composer .qc-c .qc-side .qc-pgrid-1 .qc-pgrid-cell img,
.quinn-composer .qc-c .qc-side .qc-pgrid-1 .qc-pgrid-cell video { object-fit: contain; }
.quinn-composer .qc-c .qc-side .qc-pgrid-1 { background: #f1f1f3; }
/* The photo box's height is flexible, so a plain height:100% image fell back
   to its natural square size and overflowed (cropped). Pin it to the box. */
.quinn-composer .qc-c .qc-side .qc-ph-img > img,
.quinn-composer .qc-c .qc-side .qc-ph-img > video { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Full-width photo (2026-10-23, Mark): the photo area keeps its true shape
   and the card narrows to fit the column instead (qcFitPreview in
   composer-layout.js). Overrides the shrink-the-photo rules above. */
.quinn-composer .qc-c .qc-side > .qc-phone { flex: none; align-self: center; width: 100%; max-width: 100%; }
.quinn-composer .qc-c .qc-side > .qc-phone > .qc-ph-img { flex: none; aspect-ratio: 1 / 1; min-height: 0; }
.quinn-composer .qc-c .qc-side > .qc-phone.tall > .qc-ph-img { aspect-ratio: 4 / 5; }
.quinn-composer .qc-c .qc-side > .qc-phone > .qc-ph-cap { max-height: none; }
.quinn-composer .qc-c .qc-c-grid > .qc-side { overflow-y: auto; }
/* One channel: no preview tab row (its [hidden] was being overridden). */
.quinn-composer .qc-ptabs[hidden] { display: none !important; }

/* ===== True-to-app previews (2026-10-23, Mark: "make all of the previews
   look as close as possible to what they will actually look like").
   Markup: buildPhone() in js/quinn/composer-layout.js. ===== */
.quinn-composer .qcf { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #0f1419; background: #fff; border-radius: 12px; }
.qcf-head { display: flex; align-items: center; gap: 9px; padding: 9px 12px; }
.qcf-head b { font-size: 14px; font-weight: 600; }
.qcf-head > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qcf-head small { font-size: 13.5px; color: #65676b; display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcf-head small .ti { font-size: 14px; }
.qcf-more { margin-left: auto; color: #65676b; font-size: 18px; font-style: normal; }
.qcf-more + .qcf-more { margin-left: 12px; }
.qcf-av { width: 32px; height: 32px; border-radius: 50%; background: #FCD1C7; color: #D85A30; font-family: inherit; text-align: center; font-style: normal; flex: none; }
.qcf-av.ig { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d62976; margin: 2px; width: 28px; height: 28px; line-height: 28px; }
.qcf-av.fb, .qcf-av.li { width: 40px; height: 40px; line-height: 40px; font-size: 14px; }
.quinn-composer .qcf .qcf-media { position: relative; overflow: hidden; width: 100%; background: #efefef; flex: none; }
.quinn-composer .qc-c .qc-side .qcf:not(.tall) .qcf-media img,
.quinn-composer .qc-c .qc-side .qcf:not(.tall) .qcf-media video { object-fit: cover; }
.qcf-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--coral-500); font-family: inherit; background: linear-gradient(135deg, var(--coral-100), var(--coral-50)); }
/* Instagram */
.qcf-ig-actions { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 12px 3px; font-size: 22px; color: #0f1419; }
.qcf-ig-actions .qcf-right { margin-left: auto; }
.quinn-composer .qcf .qcf-ig-dots { position: absolute; left: 50%; top: 17px; bottom: auto; transform: translateX(-50%); display: flex; gap: 4px; background: none; padding: 0; }
.quinn-composer .qcf .qcf-ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; opacity: 1; }
.quinn-composer .qcf .qcf-ig-dots i.on { background: #0095f6; }
.qcf-body { padding: 4px 12px 10px; font-size: 14px; line-height: 1.42; }
.qcf-user { font-weight: 600; }
.qcf-time { font-size: 13px; color: #737373; letter-spacing: .03em; margin-top: 6px; }
/* Captions: the app's truncated view; click to open and edit */
.qcf-cap { position: relative; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; border-radius: 6px; --more: "… more"; --more-color: #737373; --more-bg: #fff; }
.qcf-cap:hover { outline: 1px dashed var(--coral-300); outline-offset: 2px; }
.qcf-cap.is-open { outline: 2px solid var(--coral-300); outline-offset: 2px; background: #fffaf8; }
.qcf-cap:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.qcf-fb-cap .qcf-cap:not(.is-open), .qcf-li-cap .qcf-cap:not(.is-open) { -webkit-line-clamp: 3; }
.qcf-cap.is-clamped::after { content: var(--more); position: absolute; right: 0; bottom: 0; padding-left: 34px; color: var(--more-color); font-weight: 600; background: linear-gradient(90deg, transparent, var(--more-bg) 32px); }
.qcf-fb .qcf-cap { --more: "… See more"; --more-color: #65676b; }
.qcf-li .qcf-cap { --more: "…see more"; --more-color: #666; }
.quinn-composer .qcf .qc-cap-edit { outline: none !important; background: none !important; max-height: none; border-radius: 0; }
.qcf-tag { color: #00376b; }
.qcf-fb .qcf-tag { color: #0064d1; }
.qcf-li .qcf-tag { color: #0a66c2; font-weight: 600; }
.qcf-sk { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.qcf-sk .sk { display: block; height: 8px; border-radius: 4px; background: #ececef; }
/* Facebook / LinkedIn */
.qcf-top-cap { padding: 0 12px 10px; font-size: 14.5px; }
.qcf-react { display: flex; justify-content: space-around; margin: 0 12px; padding: 7px 0; border-top: 1px solid #ced0d4; color: #65676b; font-size: 14px; font-weight: 600; }
.qcf-react span { display: flex; align-items: center; gap: 6px; }
.qcf-react .ti { font-size: 18px; }
.qcf-li-react { color: #666; font-size: 13.5px; border-top-color: #e8e8e8; }
.qcf-grid { position: absolute; inset: 0; display: grid; gap: 2px; background: #fff; }
.qcf-cell { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.qcf-cell img, .qcf-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qcf-g2 { grid-template-columns: 1fr 1fr; }
.qcf-g3.qcf-top { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
.qcf-g3.qcf-top .qcf-cell:first-child { grid-column: 1 / 3; }
.qcf-g3.qcf-left { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.qcf-g3.qcf-left .qcf-cell:first-child { grid-row: 1 / 3; }
.qcf-g4.qcf-top { grid-template-columns: repeat(3, 1fr); grid-template-rows: 2fr 1fr; }
.qcf-g4.qcf-top .qcf-cell:first-child { grid-column: 1 / 4; }
.qcf-g4.qcf-left { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.qcf-g4.qcf-left .qcf-cell:first-child { grid-row: 1 / 4; }
.qcf-g5 { grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; }
.qcf-g5 .qcf-cell:nth-child(-n+2) { grid-column: span 3; }
.qcf-g5 .qcf-cell:nth-child(n+3) { grid-column: span 2; }
/* TikTok / YouTube Shorts: full-screen 9:16 */
.quinn-composer .qcf.tall { background: #000; border-color: #000; overflow: hidden; }
.quinn-composer .qcf .qcf-full { background: #000; }
.qcf-tt-top { position: absolute; top: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; }
.qcf-tt-top b { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 3px; }
.qcf-tt-top .ti-search { position: absolute; right: 12px; font-size: 17px; color: #fff; }
.qcf-rail { position: absolute; right: 7px; bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 13px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; }
.qcf-rail span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qcf-rail .ti { font-size: 25px; }
.qcf-rail .qcf-av { width: 38px; height: 38px; line-height: 38px; border: 2px solid #fff; }
.qcf-tt-bottom { position: absolute; left: 0; right: 54px; bottom: 0; padding: 34px 12px 12px; color: #fff; font-size: 14px; line-height: 1.38; background: linear-gradient(transparent, rgba(0,0,0,.6)); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.qcf-tt-bottom > b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.qcf-tt-bottom small { display: flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 13.5px; }
.qcf-tt-bottom .qcf-cap { --more: "more"; --more-color: #fff; --more-bg: rgba(0,0,0,.0); }
.qcf-tt-bottom .qcf-cap.is-clamped::after { background: linear-gradient(90deg, transparent, rgba(20,20,20,.95) 30px); }
.qcf-tt-bottom .qcf-cap.is-open { background: rgba(0,0,0,.65); outline-color: #fff; }
.qcf-tt-bottom .qcf-tag { color: #fff; font-weight: 700; }
.qcf-tt-bottom .qcf-sk b { color: #fff; }
.qcf-tt-bottom .qcf-sk .sk { background: rgba(255,255,255,.35); }
.quinn-composer .qcf-tt .qc-dots { bottom: auto; top: 40px; }
.qcf-yt-ch { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.qcf-yt-ch .qcf-av { width: 28px; height: 28px; line-height: 28px; font-size: 13px; }
.qcf-yt-ch em { font-style: normal; background: #fff; color: #0f0f0f; border-radius: 999px; padding: 4px 10px; font-size: 13.5px; font-weight: 700; text-shadow: none; }
.qcf-yt-bottom .qcf-tag { color: #3ea6ff; font-weight: 400; }
.qcf-yt-note { position: absolute; inset: 0 54px 120px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: #fff; }
.qcf-yt-note .ti { font-size: 34px; opacity: .8; }
.qcf-yt-note b { font-size: 14px; }
.qcf-yt-note span { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.45; }
.quinn-composer .qcf + .qc-cap-count, .quinn-composer .qcf .qc-cap-count { padding: 7px 12px 9px; border-top: 1px solid #f0f0f2; background: #fafafb; font-family: inherit; }
.quinn-composer .qcf.tall .qc-cap-count { background: #fafafb; }
.quinn-composer .qc-cap-count.is-warn { color: #B4441F; font-weight: 600; }
/* fixes */
.qcf-av { font: inherit; font-size: 14px; font-weight: 800; line-height: 32px; }
.qcf-av.ig { line-height: 28px; font-size: 13.5px; }
.qcf-av.fb, .qcf-av.li { line-height: 40px; font-size: 14px; }
.qcf-rail .qcf-av { line-height: 38px; }
.qcf-yt-ch .qcf-av { line-height: 28px; font-size: 13px; }
.quinn-composer .qc-c .qc-side > .qcf > .qcf-media { flex: none !important; }
.quinn-composer .qcf-tt .qc-count, .quinn-composer .qcf-yt .qc-count { display: none; }
.quinn-composer .qcf.tall .qc-car-btn.next { right: 60px; }
.qcf-yt-ch { min-width: 0; }
.qcf-yt-ch b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qcf-yt-ch em { flex: none; }
.qcf-yt-bottom { right: 60px; }
/* TikTok / YouTube overlays scale with the card (2026-10-23, Mark: "something
   is strange about the TikTok formatting"). Sizes are in container width
   units of a ~390px phone (1cqw = 1% of the card width), so the text,
   rail icons and avatar keep the app's proportions at any preview size. */
.quinn-composer .qcf .qcf-full { container-type: inline-size; }
.qcf-full .qcf-tt-top { top: 2.6cqw; gap: 4cqw; font-size: 4.1cqw; }
.qcf-full .qcf-tt-top b { padding-bottom: .8cqw; border-bottom-width: .6cqw; }
.qcf-full .qcf-tt-top .ti-search { right: 3.5cqw; font-size: 5.2cqw; }
.qcf-full .qcf-rail { right: 2cqw; bottom: 24cqw; gap: 3.6cqw; font-size: 3cqw; }
.qcf-full .qcf-rail .ti { font-size: 7.6cqw; }
.qcf-full .qcf-rail .qcf-av { width: 11.5cqw; height: 11.5cqw; line-height: 11.5cqw; font-size: 3.6cqw; border-width: .6cqw; }
.qcf-full .qcf-tt-bottom { right: 16cqw; padding: 8cqw 3.2cqw 3.2cqw; font-size: 3.6cqw; line-height: 1.35; }
.qcf-full .qcf-tt-bottom > b { font-size: 4cqw; margin-bottom: .8cqw; }
.qcf-full .qcf-tt-bottom small { font-size: 3.3cqw; margin-top: 1.8cqw; gap: 1cqw; }
.qcf-full .qcf-tt-bottom .qcf-cap.is-clamped::after { padding-left: 6cqw; background: linear-gradient(90deg, transparent, #000 5cqw); font-weight: 700; }
.qcf-full .qcf-yt-ch { gap: 2cqw; margin-bottom: 2cqw; }
.qcf-full .qcf-yt-ch .qcf-av { width: 8cqw; height: 8cqw; line-height: 8cqw; font-size: 2.8cqw; }
.qcf-full .qcf-yt-ch em { padding: 1.2cqw 3cqw; font-size: 3.2cqw; }
.qcf-full .qcf-yt-note { gap: 2.5cqw; padding: 6cqw; }
.qcf-full .qcf-yt-note .ti { font-size: 9cqw; }
.qcf-full .qcf-yt-note b { font-size: 4.4cqw; }
.qcf-full .qcf-yt-note span { font-size: 3.5cqw; }
.quinn-composer .qcf-tt .qc-dots { top: 11cqw; }
.quinn-composer .qcf.tall .qc-car-btn { width: 8cqw; height: 8cqw; font-size: 4.5cqw; }
.quinn-composer .qcf.tall .qc-car-btn.next { right: 17cqw; }

/* Preview shaking fix (Mark, 2026-10-25: the Facebook preview grew and shrank
   over and over). On a tall window the card sat below its max height, so the
   preview column's height came from the preview itself: fitting the card
   changed the column, which re-fit the card, and so on. When the two columns
   sit side by side, give the card a fixed height so the column's height never
   depends on the preview, and reserve the scrollbar's space so its appearing
   can't change the column's width either. */
@media (min-width: 901px) {
  .quinn-composer #quinn-gen-card:has(.qc-c) { height: calc(100vh - 48px); }
}
.quinn-composer .qc-c .qc-side { scrollbar-gutter: stable; }

/* X preview (2026-11-01): js/quinn/composer-layout.js buildX(). */
.qcf-x-post { display: flex; gap: 10px; padding: 12px 12px 6px; }
.qcf-av.x { width: 38px; height: 38px; line-height: 38px; font-size: 14px; }
.qcf-x-main { flex: 1; min-width: 0; }
.qcf-x-head { display: flex; align-items: baseline; gap: 5px; font-size: 14.5px; line-height: 1.3; }
.qcf-x-head b { font-weight: 700; white-space: nowrap; }
.qcf-x-head span { color: #536471; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qcf-x-head .qcf-more { align-self: center; }
.quinn-composer .qcf .qcf-x-cap { padding: 2px 0 8px; font-size: 14.5px; line-height: 1.4; }
.qcf-x .qcf-cap:not(.is-open) { -webkit-line-clamp: 12; }
.qcf-x .qcf-tag { color: #1d9bf0; }
.quinn-composer .qcf .qcf-x-media { border-radius: 14px; border: 1px solid #cfd9de; }
.qcf-x4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.qcf-x-note { font-size: 13.5px; color: #536471; margin-top: 4px; }
.qcf-x-actions { display: flex; justify-content: space-between; padding: 9px 4px 4px; color: #536471; font-size: 17px; }
.qcf-x-actions span { display: flex; gap: 12px; }
.quinn-composer .qc-x-short { border: 1px solid var(--coral-300, #F0997B); background: var(--coral-50, #FFF4F0); color: #B4441F; border-radius: 999px; padding: 2px 9px; font-family: inherit; cursor: pointer; margin-left: 4px; }
.quinn-composer .qc-x-short:hover { background: var(--coral-100, #FCD1C7); }
.quinn-composer .qc-x-short:disabled { opacity: .7; cursor: default; }
.quinn-composer .qc-x-link { border: 0; background: none; padding: 0; color: #B4441F; font-family: inherit; text-decoration: underline; cursor: pointer; }
.quinn-composer .qc-x-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.qc-x-spin { display: inline-block; width: 9px; height: 9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qcXSpin .7s linear infinite; vertical-align: -1px; }
@keyframes qcXSpin { to { transform: rotate(360deg); } }
.quinn-composer #quinn-platform-row .qc-ch[hidden] { display: none !important; }

/* 2026-11-20 (Mark): "make this section bigger so I can read the entire
   post". Caption options show the whole caption, with its line breaks; a very
   long one scrolls inside its card. */
.quinn-composer .qc-result .quinn-draft-choice { align-self: stretch; display: flex; flex-direction: column; }
.quinn-composer .qc-result .quinn-draft-choice span,
.quinn-composer .qc-c .qc-desk .qc-result .quinn-draft-choice span { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow-y: auto; max-height: 360px; white-space: pre-wrap; font-size: 14px; line-height: 1.5; }

/* 2026-11-20 (Mark, option A): caption options as tabs, full caption below. */
.quinn-composer .quinn-draft-choices { display: flex !important; flex-direction: column; gap: 10px; }
.quinn-draft-tabs { display: flex; gap: 6px; padding: 4px; background: #F1F2F4; border-radius: 10px; }
.quinn-draft-tab { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #3d434a; font: 600 14px/1.25 Inter, system-ui, sans-serif; cursor: pointer; }
.quinn-draft-tab:hover { background: rgba(255,255,255,.6); }
.quinn-draft-tab.active { background: #fff; color: var(--coral, #D85A30); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.quinn-draft-tab:focus-visible { outline: 2px solid var(--coral, #D85A30); outline-offset: 1px; }
.quinn-draft-tab .qdt-in { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #FDF1EC; border: 1px solid #F0C7B6; font-size: 13px; font-weight: 700; color: var(--coral, #D85A30); vertical-align: 1px; }
.quinn-draft-full { padding: 12px 14px; border: 1px solid var(--border, #dcdfe3); border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.55; white-space: pre-wrap; max-height: 360px; overflow-y: auto; color: var(--ink, #1f2328); }
.quinn-draft-actions { display: flex; }
.quinn-draft-new { min-height: 38px; padding: 0 14px; border: 1px solid var(--coral, #D85A30); border-radius: 9px; background: #fff; color: var(--coral, #D85A30); font: 600 12.5px Inter, system-ui, sans-serif; cursor: pointer; }
.quinn-draft-new:hover { background: #FDF1EC; }

/* One-question post composer (ported from the redesign copy 2026-11-25, Mark;
   js/quinn/composer-simple.js). Only "Post to" and the notes show; post type,
   property, date, time, goal, tone and call to action fold into the "Taylor
   picks" line until Change is clicked. */
.qc-simple:not(.qc-details-open) .qc-bar > .qc-bar-sep,
.qc-simple:not(.qc-details-open) .qc-bar > .qc-bar-f:not(:first-child),
.qc-simple:not(.qc-details-open) .qc-brief-bar { display: none !important; }
.qc-auto { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 12px; border-top: 1px solid var(--border, #E3E5E9); font-size: 13px; color: var(--slate, #5B616B); background: #FAFAFB; }
.qc-auto > .ti { color: var(--coral-500, #D85A30); font-size: 15px; }
.qc-auto-l { font-weight: 700; color: var(--ink, #1B1D22); }
.qc-auto-v { flex: 1; min-width: 0; }
.qc-auto-btn { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--coral-500, #D85A30); background: #fff; border: 1px solid var(--coral-500, #D85A30); border-radius: 7px; padding: 3px 10px; cursor: pointer; }
.qc-auto-btn:hover { background: var(--coral-50, #FDF0EC); }

/* Pick a new time for a post whose time passed (2026-11-25) */
.quinn-late-overlay{z-index:9600}
.quinn-late-modal{width:min(440px,100%)}
.quinn-late-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.quinn-late-row label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:var(--ink)}
.quinn-late-row input{font:inherit;font-size:14px;padding:9px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--ink);min-width:0}
.quinn-late-row input:focus{outline:2px solid var(--coral);outline-offset:1px}
.quinn-late-err{margin:10px 0 0;font-size:13px;color:var(--coral)}
.quinn-late-modal .lw-modal-foot{gap:8px;flex-wrap:wrap}
