/* ────────────────────────────────────────────────────────────────────────
 * ASCENT — Phase 10 CSS split (2026-08-20, PARALLEL_DEV_PLAN.md).
 *
 * WARNING -- READ BEFORE TOUCHING <link> TAGS IN Ascent_Dashboard.html --
 * This file is one of twelve pieces of what used to be a single 2,142-line
 * <style> block inside Ascent_Dashboard.html. The split is a byte-exact,
 * order-preserving cut -- verified by concatenating all twelve files back
 * together and diffing against the original block (identical, zero bytes
 * different). That means the CSS cascade today is unchanged from before
 * the split, PROVIDED the <link rel="stylesheet"> tags for these files
 * stay in the exact order listed in ARCHITECTURE.md's "File split in
 * Phase 10" section.
 *
 * Several rules across these files reuse the same class name with a
 * different definition in a different file (this was already true inside
 * the single original block -- see this repo's shell-duplicate-and-
 * agent-cards.css for the clearest example). Same-specificity CSS
 * resolves by *source order*: whichever rule loads last wins. Reordering
 * these <link> tags -- alphabetizing them, "cleaning up" the <head>,
 * inserting a new file in the middle -- can silently flip which rule
 * wins, with no error and no obvious symptom beyond something looking
 * subtly wrong on one tab. If you add new CSS, prefer appending a new
 * file at the END of the <link> list over inserting into this sequence.
 * ──────────────────────────────────────────────────────────────────────── */

/* Source: original Ascent_Dashboard.html lines 1140-1757 (pre-split). */
/* Quinn -- 4-Week Content Calendar, Post Preview Modal, photo carousel, post list cards (dynamic), post composer, two-tone event cards, and the published/scheduled/pending status color rules. */

  /* ── QUINN CALENDAR ──────────────────────────────────────────── */
  /* Quinn 4-Week Content Calendar — CoSchedule-style */
  .quinn-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
  }
  .quinn-cal-dow {
    background: var(--off-white);
    text-align: center;
    padding: 9px 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink);
  }
  /* Post Preview Modal */
  #quinn-post-modal {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.52); backdrop-filter: blur(4px); z-index:9000;
    display:none; align-items:center; justify-content:center;
  }
  .qpm-card {
    background:#fff; border-radius:16px; width:550px;
    max-width:calc(100vw - 32px); max-height:calc(100vh - 32px);
    overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,0.32);
    display:flex; flex-direction:column;
  }
  /* Publishing queue & history modal -- 2026-09-17: Mark's "these are
     duplicative links" report. There used to be two ways to reach this
     content: the "View full queue & history" link inside the compact
     Publishing card, and a separate "Full publishing queue & past posts"
     accordion toggle button sitting right below it, both opening the same
     #brand-social-publishing-panel inline (quinnToggleContentMore()). Mark
     asked for the accordion button removed and the link to open the
     content as a blurred overlay instead, "similar to the behavior when we
     open a window to compose an email" -- i.e. the same rgba+blur pattern
     as #quinn-post-modal above, not the lighter unblurred overlay
     .quinn-analytics-modal uses elsewhere on this tab.
     #brand-social-publishing-panel's own id is kept on .quinn-queue-card
     (rather than moved to the outer .quinn-queue-modal) since
     quinnRenderFullPublishingQueue() already queries it by that id and
     there was no reason to touch that selector. */
  .quinn-queue-modal {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.52); backdrop-filter: blur(4px); z-index:9000;
    display:none; align-items:center; justify-content:center; padding:16px;
  }
  .quinn-queue-modal.open { display:flex; }
  .quinn-queue-card {
    background:#fff; border-radius:16px; width:640px;
    max-width:calc(100vw - 32px); max-height:calc(100vh - 48px);
    overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,0.32);
    display:flex; flex-direction:column;
  }
  .quinn-queue-card-body { padding:0 20px 20px; overflow-y:auto; }
  #qpm-view-section { display:grid; grid-template-columns:210px minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto auto; min-height:0; }
  #qpm-view-section .qpm-channel-picker { grid-column:2; grid-row:1; }
  #qpm-view-section .qpm-photo-wrap { grid-column:1; grid-row:1 / 3; width:190px; max-width:calc(100% - 20px); height:auto; aspect-ratio:4/5; align-self:start; justify-self:center; margin:12px auto 0; border-radius:9px; }
  #qpm-view-section .qpm-add-photo-bar { grid-column:1; grid-row:3; }
  #qpm-view-section #qpm-url-panel { grid-column:1; grid-row:4; }
  #qpm-view-section .qpm-body { grid-column:2; grid-row:2; overflow:visible; padding:14px 16px; }
  #qpm-view-section .qpm-caption { font-size:13.5px; line-height:1.48; }
  #qpm-view-section > .qpm-actions { grid-column:2; grid-row:3 / 5; align-self:end; margin-top:10px; padding:12px 16px 16px; }
  .qpm-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:13px 16px; border-bottom:1px solid var(--border); flex-shrink:0;
  }
  .qpm-platform-row {
    display:flex; align-items:center; gap:7px;
    font-size:14px; font-weight:700; color:var(--dim);
  }
  .quinn-platform-pills { display:flex; flex-wrap:wrap; gap:8px; }
  #quinn-platform-row .r-toggle-btn { flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; border:1px solid var(--border); border-radius:999px; padding:8px 13px; }
  #quinn-platform-row .r-toggle-btn.active { box-shadow:0 0 0 2px rgba(216,90,48,.12); }
  .qpm-channel-picker { padding:10px 14px; border-bottom:1px solid var(--border); background:var(--off-white); }
  .qpm-channel-label { margin-bottom:7px; color:var(--slate); font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; }
  .qpm-channel-options { display:flex; flex-wrap:wrap; gap:6px; }
  .qpm-channel-option { position:relative; width:34px; height:34px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--border); border-radius:9px; cursor:pointer; transition:border-color .15s,background .15s,box-shadow .15s,transform .15s; }
  .qpm-channel-option:hover { border-color:var(--teal-500); transform:translateY(-1px); }
  .qpm-channel-option:has(input:checked) { border-color:var(--teal-500); background:var(--teal-100); box-shadow:0 0 0 2px rgba(0,149,128,.1); }
  .qpm-channel-option input { position:absolute; opacity:0; pointer-events:none; }
  .qpm-channel-option img { width:21px !important; height:21px !important; margin:0 !important; }
  .qpm-channel-option svg { width:21px !important; height:21px !important; margin:0 !important; }
  .qpm-close-btn {
    background:none; border:none; cursor:pointer;
    font-size:20px; color:#bbb; line-height:1; padding:0 4px;
    transition:color 0.15s;
  }
  .qpm-close-btn:hover { color:var(--dim); }
  .qpm-photo {
    width:100%; aspect-ratio:1/1; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    position:relative; overflow:hidden;
  }
  .qpm-photo-overlay {
    position:absolute; inset:0; display:flex; align-items:center;
    justify-content:center; flex-direction:column; gap:8px;
  }
  .qpm-body { padding:14px 16px; }
  .qpm-handle { font-size:14px; font-weight:800; color:var(--dim); margin-bottom:4px; }
  .qpm-caption { font-size:14px; line-height:1.65; color:var(--dim); }
  .qpm-meta {
    display:flex; align-items:center; gap:6px; margin-top:10px;
    font-size:13.5px; color:#aaaaae; font-weight:600;
  }
  .qpm-actions {
    padding:12px 16px; border-top:1px solid var(--border);
    display:flex; gap:8px; flex-shrink:0;
  }
  .qpm-primary-action {
    flex:1; min-width:150px; background:var(--green); color:#fff;
    border:none; border-radius:8px; padding:10px 16px; font-size:14px;
    font-weight:700; cursor:pointer;
  }
  .qpm-danger-action {
    flex:1; min-width:90px; background:#fff5f2; color:#c04020;
    border:1.5px solid rgba(232,96,58,0.35); border-radius:8px;
    padding:10px 16px; font-size:14px; font-weight:700; cursor:pointer;
  }
  .quinn-legacy-post-sections { display:none !important; }
  .qpm-edit-section { padding:14px 16px; display:none; }
  /* Photo carousel */
  .qpm-photo-wrap { width:100%; aspect-ratio:1/1; position:relative; overflow:hidden; flex-shrink:0; background:#f0f0f2; }
  .qpm-photo-slide { width:100%; height:100%; object-fit:cover; display:block; }
  .qpm-fb-grid { width:100%; height:100%; display:grid; gap:3px; background:#fff; }
  .qpm-fb-grid.fb-count-2 { grid-template-columns:1fr 1fr; }
  .qpm-fb-grid.fb-count-3 { grid-template-columns:1.25fr 1fr; grid-template-rows:1fr 1fr; }
  .qpm-fb-grid.fb-count-3 .qpm-fb-tile:first-child { grid-row:1 / 3; }
  .qpm-fb-grid.fb-count-4 { grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
  .qpm-fb-grid.fb-count-5 { grid-template-columns:1fr 1fr; grid-template-rows:repeat(6,1fr); }
  .qpm-fb-grid.fb-count-5 .qpm-fb-tile:nth-child(1) { grid-row:1 / 4; }
  .qpm-fb-grid.fb-count-5 .qpm-fb-tile:nth-child(2) { grid-row:4 / 7; }
  .qpm-fb-grid.fb-count-5 .qpm-fb-tile:nth-child(3) { grid-row:1 / 3; }
  .qpm-fb-grid.fb-count-5 .qpm-fb-tile:nth-child(4) { grid-row:3 / 5; }
  .qpm-fb-grid.fb-count-5 .qpm-fb-tile:nth-child(5) { grid-row:5 / 7; }
  .qpm-fb-tile { position:relative; overflow:hidden; min-width:0; min-height:0; }
  .qpm-fb-tile img { width:100%; height:100%; object-fit:cover; display:block; }
  .qpm-fb-more {
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    background:rgba(17,17,20,0.5); color:#fff; font-size:34px; font-weight:800;
  }
  .qpm-photo-gradient { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
  .qpm-carousel-nav { position:absolute; top:50%; transform:translateY(-50%);
    background:rgba(0,0,0,0.35); border:none; color:#fff; font-size:18px; line-height:1;
    width:32px; height:32px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; }
  .qpm-carousel-nav:hover { background:rgba(0,0,0,0.55); }
  .qpm-carousel-prev { left:10px; }
  .qpm-carousel-next { right:10px; }
  .qpm-carousel-dots { position:absolute; bottom:9px; left:0; right:0;
    display:flex; justify-content:center; gap:5px; }
  .qpm-carousel-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.5); border:none; padding:0; cursor:pointer; }
  .qpm-carousel-dot.active { background:#fff; }
  .qpm-add-photo-bar { padding:8px 16px 12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .qpm-thumb-strip { display:flex; gap:6px; flex-wrap:wrap; }
  .qpm-thumb { width:44px; height:44px; border-radius:6px; object-fit:cover; cursor:pointer;
    border:2px solid transparent; transition:border-color 0.15s; position:relative; }
  .qpm-thumb.active { border-color:#0A9E8A; }
  .qpm-thumb-del { position:absolute; top:-5px; right:-5px; width:16px; height:16px;
    background:#e8603a; border:none; border-radius:50%; color:#fff; font-size:13px;
    line-height:16px; text-align:center; cursor:pointer; display:none; z-index:2; }
  .qpm-thumb-wrap { position:relative; display:inline-block; }
  .qpm-thumb-wrap[draggable="true"] { cursor:grab; }
  .qpm-thumb-wrap.qpm-dragging { opacity:0.45; }
  .qpm-thumb-wrap.qpm-drag-target { outline:2px solid #0A9E8A; outline-offset:2px; border-radius:7px; }
  .qpm-thumb-wrap:hover .qpm-thumb-del { display:block; }
  .qpm-add-photo-btn { display:flex; align-items:center; gap:5px; background:var(--mid);
    border:1.5px dashed var(--border); border-radius:8px; padding:6px 12px;
    font-size:14px; font-weight:600; color:#888; cursor:pointer; white-space:nowrap; }
  /* Post list cards (dynamic) */
  .qpl-meta { font-size:13.5px; color:#aaaaae; font-weight:600; margin-top:3px; }
  .qpl-caption { font-size:14px; line-height:1.6; color:var(--dim); margin:8px 0 10px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .qpl-media-row { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:8px; }
  .qpl-media-thumb { width:40px; height:40px; border-radius:5px; object-fit:cover; }
  .qpl-media-icon { width:40px; height:40px; border-radius:5px; background:#555; display:flex; align-items:center; justify-content:center; }
  .qpl-media-more { width:40px; height:40px; border-radius:5px; background:var(--mid); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:13.5px; font-weight:700; color:#888; }
  .qpl-actions { display:flex; gap:6px; flex-wrap:wrap; }

  .qpm-thumb-icon { background:#555; display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:6px; cursor:pointer; box-sizing:border-box; }
  .qpm-thumb-icon.active { border:2px solid #0A9E8A; }
  #qpm-url-panel { display:none; align-items:center; gap:6px; padding:0 16px 10px; }
  #qpm-url-panel input { flex:1; }
  .qpm-url-add-btn { background:var(--green); color:#fff; border:none; border-radius:7px;
    padding:8px 14px; font-size:14px; font-weight:700; cursor:pointer; white-space:nowrap; }
  .qpm-field-label {
    font-size:13px; font-weight:700; color:#aaaaae;
    text-transform:uppercase; letter-spacing:0.06em;
    display:block; margin-bottom:5px;
  }
  .qpm-textarea {
    width:100%; box-sizing:border-box; border:1.5px solid var(--border);
    border-radius:8px; padding:10px; font-size:14px; line-height:1.6;
    color:var(--dim); resize:vertical; min-height:110px;
    font-family:inherit; outline:none;
  }
  .qpm-textarea:focus { border-color:#0A9E8A; }
  .qpm-input {
    width:100%; box-sizing:border-box; border:1.5px solid var(--border);
    border-radius:8px; padding:9px 10px; font-size:14px; color:var(--dim);
    font-family:inherit; outline:none;
  }
  .qpm-input:focus { border-color:#0A9E8A; }
  #quinn-platform-row,
  #quinn-type-row {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    border:none;
    border-radius:0;
    overflow:visible;
    margin-top:0;
  }
  #quinn-platform-row .r-toggle-btn,
  #quinn-type-row .r-toggle-btn {
    flex:0 0 auto;
    width:auto;
    min-height:34px;
    padding:7px 13px;
    border:1px solid var(--border);
    border-radius:999px;
    background:var(--card-hi);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    white-space:nowrap;
  }
  #quinn-platform-row .r-toggle-btn:hover,
  #quinn-type-row .r-toggle-btn:hover {
    border-color:rgba(232,96,58,0.45);
    background:rgba(232,96,58,0.06);
  }
  #quinn-platform-row .r-toggle-btn.active,
  #quinn-type-row .r-toggle-btn.active {
    background:var(--coral);
    border-color:var(--coral);
    color:#fff;
    box-shadow:0 3px 9px rgba(232,96,58,0.18);
  }
  #quinn-platform-row .r-toggle-btn i {
    font-size:16px;
    line-height:1;
  }
  /* Quinn post composer */
  .quinn-composer { position:fixed; inset:0; z-index:8500; display:none; align-items:center; justify-content:center; padding:28px; background:rgba(17,17,20,.52); backdrop-filter:blur(4px); }
  .quinn-composer.open { display:block; overflow-y:auto; }
  #quinn-gen-card { overflow:hidden; border-color:rgba(0,149,128,.22); background:#fff; box-shadow:0 10px 30px rgba(44,46,51,.07); }
  .quinn-composer #quinn-gen-card { width:min(1040px,100%); margin:0 auto; border-radius:16px; box-shadow:0 28px 90px rgba(17,17,20,.3); }
  .quinn-composer #quinn-gen-result { width:min(1040px,100%); margin:12px auto 28px !important; }
  .quinn-gen-head { padding:20px 22px; display:flex; align-items:center; gap:14px; background:linear-gradient(120deg,#C94F28,var(--coral)); color:#fff; }
  .quinn-gen-icon { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:21px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.25); }
  .quinn-gen-title { font-size:16px; font-weight:800; letter-spacing:-.01em; }
  .quinn-gen-sub { margin-top:2px; font-size:14px; color:rgba(255,255,255,.78); }
  /* 2026-10-23: the voice-status pill was removed from the header, so the
     close button now takes the right edge itself. */
  .quinn-gen-head .quinn-overlay-close { margin-left:auto; }
  .quinn-gen-status { margin-left:auto; display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; white-space:nowrap; background:rgba(255,255,255,.14); font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
  .quinn-gen-status::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--teal-300); }
  .quinn-overlay-close { width:32px; height:32px; flex:0 0 auto; border:1px solid rgba(255,255,255,.24); border-radius:9px; background:rgba(255,255,255,.12); color:#fff; cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center; }
  .quinn-overlay-close:hover { background:rgba(255,255,255,.22); }
  .quinn-gen-body { padding:22px; }
  .quinn-gen-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr); gap:24px; }
  .quinn-gen-main { min-width:0; }
  .quinn-gen-side { padding-left:24px; border-left:1px solid var(--border); }
  .quinn-gen-field { margin-bottom:18px; }
  .quinn-gen-field:last-child { margin-bottom:0; }
  .quinn-gen-label { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:8px; }
  .quinn-gen-label strong { font-size:13.5px; font-weight:800; color:var(--white); letter-spacing:.07em; text-transform:uppercase; }
  .quinn-gen-label span { font-size:13.5px; color:#8b8b94; }
  .quinn-gen-topic,.quinn-gen-input { width:100%; border:1px solid var(--border); border-radius:9px; padding:11px 12px; font-size:14px; font-family:inherit; color:var(--text); background:var(--off-white); outline:none; transition:border-color .15s,box-shadow .15s,background .15s; }
  .quinn-gen-topic { min-height:112px; line-height:1.55; resize:vertical; }
  .quinn-gen-topic:focus,.quinn-gen-input:focus { background:#fff; border-color:var(--teal-500); box-shadow:0 0 0 3px rgba(0,149,128,.1); }
  .quinn-schedule { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  #quinn-gen-btn { width:100%; min-height:44px; margin-top:18px; justify-content:center; background:var(--teal-600); color:#fff; border:none; border-radius:9px; padding:11px 18px; font-size:14px; font-weight:800; cursor:pointer; font-family:inherit; display:flex; align-items:center; gap:8px; box-shadow:0 6px 16px rgba(0,149,128,.22); transition:transform .15s,box-shadow .15s,background .15s; }
  #quinn-gen-btn:hover { transform:translateY(-1px); background:var(--teal-700); box-shadow:0 8px 20px rgba(0,149,128,.28); }
  #quinn-gen-btn:focus-visible { outline:3px solid rgba(0,149,128,.25); outline-offset:2px; }
  .quinn-gen-footnote { display:flex; align-items:flex-start; gap:7px; margin-top:10px; color:#85858e; font-size:13px; line-height:1.45; }
  .quinn-gen-footnote i { color:var(--teal-600); font-size:14px; margin-top:1px; }
  .quinn-creative-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
  .quinn-media-row { display:flex; gap:8px; flex-wrap:wrap; }
  .quinn-media-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 11px; border:1px dashed var(--border); border-radius:8px; background:var(--off-white); color:var(--slate); font-family: inherit; cursor:pointer; }
  .quinn-media-btn:hover { border-color:var(--teal-500); color:var(--teal-700); }
  .quinn-media-preview { display:none; margin-top:9px; align-items:center; gap:9px; padding:10px; background:var(--teal-100); border-radius:8px; font-size:13.5px; color:var(--teal-700); flex-wrap:wrap; }
  .quinn-compose-thumbs { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
  .quinn-compose-thumb-wrap { position:relative; width:54px; height:54px; border-radius:8px; border:2px solid transparent; background:#fff; cursor:grab; transition:transform .15s,border-color .15s,opacity .15s; }
  .quinn-compose-thumb-wrap:active { cursor:grabbing; }
  .quinn-compose-thumb-wrap.dragging { opacity:.4; }
  .quinn-compose-thumb-wrap.drag-target { border-color:var(--coral); transform:translateY(-2px); }
  .quinn-compose-thumb { width:100%; height:100%; border-radius:6px; object-fit:cover; display:block; }
  .quinn-compose-video { width:100%; height:100%; display:flex; align-items:center; justify-content:center; border-radius:6px; background:#fff; font-size:24px; }
  .quinn-compose-thumb-delete { position:absolute; top:-7px; right:-7px; width:20px; height:20px; padding:0; border:2px solid #fff; border-radius:50%; background:var(--ink); color:#fff; font:700 13px/16px Arial,sans-serif; cursor:pointer; box-shadow:0 2px 6px rgba(17,17,20,.22); }
  .quinn-compose-media-copy { min-width:150px; line-height:1.45; }
  .quinn-brand-card { margin-bottom:16px; padding:10px; border-radius:0; background:var(--coral-50); border:0; border-left:3px solid var(--coral); }
  .quinn-brand-card-head { display:flex; align-items:center; gap:8px; color:var(--coral); font-size:13.5px; font-weight:800; }
  .quinn-brand-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
  .quinn-brand-tags span { padding:4px 7px; border-radius:999px; background:rgba(255,255,255,.72); color:var(--slate); font-size:13px; font-weight:600; }
  .quinn-recommend { margin:12px 0 0; padding:10px; border-left:3px solid var(--coral); background:var(--coral-50); color:var(--slate); font-size:13.5px; line-height:1.5; }
  .quinn-draft-choices { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
  .quinn-draft-choice { padding:12px; text-align:left; border:1px solid var(--border); border-radius:9px; background:var(--off-white); cursor:pointer; font-family:inherit; }
  .quinn-draft-choice.active { border-color:var(--teal-500); background:var(--teal-100); box-shadow:0 0 0 2px rgba(0,149,128,.08); }
  .quinn-draft-choice strong { display:block; color:var(--ink); font-size:13.5px; margin-bottom:5px; }
  .quinn-draft-choice span { color:var(--slate); font-size:13px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .quinn-preview-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
  .quinn-preview-tab { border:1px solid var(--border); background:#fff; border-radius:999px; padding:5px 9px; font:700 13px 'Inter', sans-serif; color:var(--slate); cursor:pointer; }
  .quinn-preview-tab.active { background:var(--ink); color:#fff; border-color:var(--ink); }
  .quinn-char-count { margin-left:auto; font-size:13px; color:#999; }
  .quinn-intelligence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; scroll-margin-top:20px; }
  .quinn-intel-card { background:#fff; border:1px solid var(--border); border-radius:11px; padding:16px; }
  .quinn-intel-card.quinn-learning-card { background:var(--coral-50); border-color:var(--coral-200); }
  .quinn-learning-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:13px; }
  .quinn-learning-chart-card { min-width:0; min-height:158px; padding:12px; display:flex; flex-direction:column; background:#fff; border:1px solid var(--border); border-radius:9px; }
  .quinn-learning-chart-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:9px; }
  .quinn-learning-chart-title { display:flex; align-items:center; gap:5px; color:var(--ink); font-size:13px; font-weight:800; }
  .quinn-learning-chart-title i { color:var(--coral); font-size:14px; }
  .quinn-engagement-delta { white-space:nowrap; color:var(--coral); font-size:13px; font-weight:800; }
  .quinn-daily-bars { height:84px; display:flex; align-items:flex-end; gap:2px; padding-top:5px; border-bottom:1px solid #ececef; background:repeating-linear-gradient(to bottom,transparent 0,transparent 26px,#ececef 27px,transparent 28px); }
  .quinn-daily-bar { flex:1 1 0; min-width:0; border-radius:3px 3px 0 0; background:linear-gradient(to top,var(--coral),var(--coral-300)); box-shadow:inset 0 1px rgba(255,255,255,.25); }
  .quinn-chart-axis { display:flex; justify-content:space-between; margin-top:auto; color:#9999a1; font-size:11.5px; }
  .quinn-analytics-state { min-height:18px; margin-top:5px; display:flex; align-items:center; justify-content:center; gap:6px; color:#85858e; font-size:11.5px; text-align:center; }
  .quinn-analytics-action { border:0; padding:0; background:none; color:var(--coral); font-family:inherit; font-size:inherit; font-weight:600; line-height:inherit; text-decoration:underline; cursor:pointer; }
  .quinn-analytics-action:hover { color:#b94724; }
  .quinn-daily-bar.empty { min-height:2px; background:#e7e7ea; box-shadow:none; }
  /* 2026-10-02: .quinn-analytics-modal/-dialog/-body/-note/-steps/-key/-error
     removed -- that was the old "Connect performance analytics" Buffer-
     personal-API-key modal, deleted along with its JS (see js/quinn.js's
     quinnLoadInsights() header comment). Ayrshare performance data needs no
     separate credential, so there's no modal to style here any more. */
  .quinn-content-mix { flex:1; display:flex; align-items:center; justify-content:center; gap:13px; }
  .quinn-donut { width:123px; height:123px; flex:0 0 123px; overflow:visible; }
  .quinn-donut-segment { fill:none; stroke-width:18; cursor:default; transition:opacity .15s,stroke-width .15s; }
  .quinn-donut-segment:hover { opacity:.82; stroke-width:20; }
  .quinn-donut-center { fill:#fff; stroke:rgba(17,17,20,.04); stroke-width:1; }
  .quinn-daily-bar { cursor:default; transition:filter .15s,transform .15s; transform-origin:bottom; }
  .quinn-daily-bar:hover { filter:brightness(.92) saturate(1.08); transform:scaleY(1.025); }
  .quinn-chart-tooltip { position:fixed; z-index:9999; display:none; pointer-events:none; max-width:190px; padding:7px 9px; border-radius:7px; background:#1f2024; color:#fff; box-shadow:0 7px 22px rgba(0,0,0,.24); font-size:13px; font-weight:700; line-height:1.35; white-space:nowrap; transform:translate(10px,-100%); }
  .quinn-mix-legend { display:grid; gap:7px; min-width:0; }
  .quinn-mix-legend-item { display:grid; grid-template-columns:7px minmax(0,1fr) auto; align-items:center; gap:5px; color:var(--slate); font-size:11.5px; }
  .quinn-mix-legend-item strong { color:var(--ink); font-size:11.5px; }
  .quinn-mix-dot { width:7px; height:7px; border-radius:50%; }
  .quinn-intel-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
  .quinn-intel-title { font-size:14px; font-weight:800; color:var(--ink); }
  #quinn-week-card-title { font-weight:600; }
  #quinn-week-card-title strong { font-weight:900; }
  .quinn-insight { display:flex; gap:10px; padding:9px 0; border-bottom:1px solid var(--light-gray); font-size:13.5px; color:var(--slate); line-height:1.5; }
  .quinn-insight:last-child { border:0; padding-bottom:0; }
  .quinn-insight i { color:var(--teal-600); font-size:16px; }
  .quinn-insight-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--light-gray); }
  .quinn-insight-row:last-child { border:0; padding-bottom:0; }
  .quinn-insight-stat { flex:0 0 auto; min-width:56px; text-align:center; padding:9px 8px; background:rgba(255,255,255,.7); border:1px solid rgba(216,90,48,.18); border-radius:10px; font-size:16px; font-weight:900; line-height:1.15; color:var(--coral-500); }
  .quinn-insight-stat i { color:var(--coral); font-size:18px; font-weight:400; }
  .quinn-insight-body { flex:1; min-width:0; font-size:13.5px; color:var(--slate); line-height:1.5; }
  .quinn-insight-body strong { color:var(--ink); font-size:14px; font-weight:800; }
  .quinn-insight-cta { flex:0 0 auto; display:inline-flex; align-items:center; gap:4px; padding:7px 12px; border:1px solid rgba(216,90,48,.25); border-radius:8px; background:rgba(255,255,255,.55); color:var(--coral-500); font-family: inherit; white-space:nowrap; cursor:pointer; transition:background .15s; }
  .quinn-insight-cta:hover { background:rgba(255,255,255,.9); }
  .quinn-insight-cta i { font-size:14px; }
  .quinn-autopilot-btn { border:0; border-radius:8px; padding:8px 11px; background:var(--coral); color:#fff; font-family: inherit; cursor:pointer; box-shadow:0 4px 12px rgba(216,90,48,.18); }
  .quinn-autopilot-btn:hover { background:#c94f28; transform:translateY(-1px); }
  .quinn-autopilot-btn.created { background:var(--teal-500); box-shadow:none; }
  .quinn-autopilot-btn.created:hover { background:var(--teal-500); transform:none; }
  .quinn-week-plan { display:grid; gap:7px; }
  .quinn-week-item { display:flex; align-items:center; gap:9px; padding:8px; background:var(--off-white); border-radius:8px; font-size:13.5px; color:var(--slate); }
  .quinn-week-day { width:32px; color:var(--coral); font-weight:800; }
  .quinn-week-item span:nth-child(2) { flex:1; }
  .quinn-week-state { color:var(--coral); font-size:11.5px; font-weight:800; text-transform:uppercase; }
  .quinn-week-state.created { color:var(--teal-600); }
  .quinn-week-builder { position:fixed; inset:0; z-index:9150; display:none; align-items:center; justify-content:center; padding:18px; background:rgba(25,27,30,.54); }
  .quinn-week-builder.open { display:flex; }
  .quinn-week-dialog { position:relative; width:min(840px,100%); max-height:calc(100vh - 36px); display:flex; flex-direction:column; overflow:hidden; border-radius:16px; background:#fff; box-shadow:0 24px 80px rgba(0,0,0,.32); }
  .quinn-week-dialog-head { display:flex; align-items:flex-start; gap:12px; padding:18px 20px; border-bottom:1px solid var(--border); }
  .quinn-week-dialog-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; background:var(--coral-50); color:var(--coral); font-size:20px; }
  .quinn-week-dialog-title { color:var(--ink); font-size:16px; font-weight:900; }
  #quinn-week-builder-title { font-weight:600; }
  #quinn-week-builder-title strong { font-weight:900; }
  .quinn-week-dialog-sub { margin-top:3px; color:#888891; font-size:13.5px; line-height:1.45; }
  .quinn-week-dialog-close { margin-left:auto; border:0; background:none; color:#aaa; font-size:21px; cursor:pointer; }
  .quinn-week-dialog-body { overflow-y:auto; padding:16px 20px 18px; }
  .quinn-week-learning { display:flex; align-items:center; gap:12px; margin-bottom:14px; padding:11px 12px; border:1px solid rgba(216,90,48,.18); border-radius:10px; background:var(--coral-50); }
  .quinn-week-learning > i { color:var(--coral); font-size:18px; }
  .quinn-week-learning-copy { flex:1; color:var(--slate); font-size:13px; line-height:1.45; }
  .quinn-week-learning-copy strong { display:block; color:var(--ink); font-size:13.5px; }
  .quinn-week-patterns { display:flex; flex-wrap:wrap; gap:6px; }
  .quinn-week-pattern { padding:4px 7px; border-radius:999px; background:#fff; color:var(--coral); font-size:11.5px; font-weight:800; }
  .quinn-week-builder-label { margin:0 0 8px; color:var(--ink); font-size:13.5px; font-weight:800; }
  .quinn-week-slots { display:grid; gap:8px; }
  .quinn-week-slot { display:grid; grid-template-columns:28px 88px 92px 128px 166px minmax(145px,1fr); align-items:center; gap:8px; padding:9px; border:1px solid var(--border); border-radius:10px; background:var(--off-white); }
  .quinn-week-slot-check { width:17px; height:17px; accent-color:var(--coral); }
  .quinn-week-slot-date strong { display:block; color:var(--ink); font-size:13.5px; }
  .quinn-week-slot-date span { color:#96969e; font-size:11.5px; }
  .quinn-week-slot input,.quinn-week-slot select { width:100%; min-width:0; border:1px solid var(--border); border-radius:7px; padding:8px; background:#fff; color:var(--slate); font-family: inherit; }
  .quinn-week-slot-topic { font-weight:500 !important; }
  .quinn-week-channels { display:flex; align-items:center; gap:5px; }
  .quinn-week-channel { position:relative; width:28px; height:28px; display:grid; place-items:center; padding:0; border:1px solid var(--border); border-radius:7px; background:#fff; cursor:pointer; opacity:.48; transition:opacity .15s,border-color .15s,background .15s,transform .15s; }
  .quinn-week-channel:hover { opacity:.8; transform:translateY(-1px); }
  .quinn-week-channel.active { opacity:1; border-color:var(--teal-500); background:var(--teal-100); box-shadow:0 0 0 2px rgba(0,149,128,.08); }
  .quinn-week-channel img,.quinn-week-channel svg { width:18px !important; height:18px !important; margin:0 !important; }
  .quinn-week-dialog-foot { display:flex; align-items:center; justify-content:flex-end; gap:9px; padding:14px 20px; border-top:1px solid var(--border); background:#fff; }
  .quinn-week-save { display:inline-flex; align-items:center; gap:6px; margin-right:auto; border:1px solid var(--teal-500); border-radius:8px; padding:9px 13px; background:#fff; color:var(--teal-700); font-family: inherit; cursor:pointer; }
  .quinn-week-save.saved { background:var(--teal-100); }
  .quinn-week-confirm { display:inline-flex; align-items:center; gap:7px; border:0; border-radius:8px; padding:10px 14px; background:var(--coral); color:#fff; font-family: inherit; cursor:pointer; }
  .quinn-week-confirm:disabled { opacity:.65; cursor:wait; }
  .quinn-week-unsaved { position:absolute; inset:0; z-index:2; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(25,27,30,.46); backdrop-filter:blur(2px); }
  .quinn-week-unsaved.open { display:flex; }
  .quinn-week-unsaved-card { width:min(390px,100%); padding:20px; border-radius:13px; background:#fff; box-shadow:0 18px 55px rgba(0,0,0,.24); }
  .quinn-week-unsaved-title { color:var(--ink); font-size:14px; font-weight:900; }
  .quinn-week-unsaved-copy { margin:5px 0 16px; color:var(--slate); font-size:13.5px; line-height:1.5; }
  .quinn-week-unsaved-actions { display:flex; gap:7px; flex-wrap:wrap; }
  .quinn-week-unsaved-actions button { border:1px solid var(--border); border-radius:8px; padding:9px 11px; background:#fff; color:var(--slate); font-family: inherit; cursor:pointer; }
  .quinn-week-unsaved-actions .save { border-color:var(--teal-500); background:var(--teal-500); color:#fff; }
  .quinn-week-unsaved-actions .discard { color:#b94828; }
  .quinn-create-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 15px; border:0; border-radius:9px; background:var(--coral); color:#fff; font-family: inherit; cursor:pointer; box-shadow:0 5px 14px rgba(216,90,48,.2); }
  .quinn-create-btn:hover { background:#c94f28; transform:translateY(-1px); }
  .quinn-tool-btn { display:inline-flex; align-items:center; gap:7px; padding:9px 12px; border:1px solid var(--border); border-radius:9px; background:#fff; color:var(--slate); font-family: inherit; cursor:pointer; }
  .quinn-tool-btn:hover { border-color:var(--teal-500); color:var(--teal-700); }
  .quinn-tool-btn .count { display:inline-flex; min-width:18px; height:18px; align-items:center; justify-content:center; border-radius:999px; background:var(--coral-50); color:var(--coral); font-size:11.5px; }
  .quinn-tools-spacer { flex:1; }
  .quinn-buffer-bar { display:flex; align-items:center; gap:11px; margin:0 0 12px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#fff; box-shadow:0 3px 12px rgba(44,46,51,.035); }
  .quinn-buffer-mark { width:30px; height:30px; display:grid; grid-template-columns:repeat(2,7px); grid-template-rows:repeat(2,7px); place-content:center; gap:3px; flex:0 0 auto; border-radius:8px; background:#1d1d1f; }
  .quinn-buffer-mark i { display:block; border-radius:1.5px; background:#fff; }
  .quinn-buffer-copy { min-width:0; flex:1; }
  .quinn-buffer-title { display:flex; align-items:center; gap:6px; color:var(--ink); font-size:13.5px; font-weight:800; }
  .quinn-buffer-status { margin-top:2px; color:#92929b; font-size:13px; }
  .quinn-buffer-status.connected { color:var(--teal-600); font-weight:700; }
  .quinn-buffer-info { padding:0; border:0; background:none; color:var(--slate); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; vertical-align:middle; }
  .quinn-buffer-info:hover { color:var(--coral); }
  .quinn-buffer-connect { display:inline-flex; align-items:center; gap:6px; padding:8px 11px; border:0; border-radius:8px; background:var(--teal-600); color:#fff; font-family: inherit; cursor:pointer; white-space:nowrap; }
  .quinn-buffer-connect:hover { background:var(--teal-700); }
  .quinn-buffer-connect:disabled { opacity:.65; cursor:wait; }
  .quinn-buffer-connected { display:none; align-items:center; gap:6px; color:var(--teal-700); font-size:13px; font-weight:800; white-space:nowrap; }
  .quinn-buffer-connected i { font-size:14px; }
  .quinn-buffer-manage { display:none; border:1px solid var(--coral-300); border-radius:8px; padding:8px 10px; background:var(--coral-50); color:#9f3e20; font-family: inherit; cursor:pointer; white-space:nowrap; }
  .quinn-buffer-manage:hover { border-color:var(--coral-500); }
  .quinn-buffer-channel-icons { display:flex; align-items:center; gap:6px; }
  .quinn-buffer-channel-icon { position:relative; width:32px; height:32px; display:grid; place-items:center; padding:0; border:1px solid var(--border); border-radius:9px; background:#fff; opacity:.42; cursor:pointer; transition:.15s ease; }
  .quinn-buffer-channel-icon:hover { opacity:.78; border-color:var(--coral-300); transform:translateY(-1px); }
  .quinn-buffer-channel-icon.connected { opacity:1; border-color:var(--teal-500); background:var(--teal-100); box-shadow:0 0 0 2px rgba(0,149,128,.08); }
  .quinn-buffer-channel-icon.unknown { opacity:.72; border-style:dashed; }
  .quinn-buffer-channel-icon svg,.quinn-buffer-channel-icon img { width:20px !important; height:20px !important; margin:0 !important; }
  .quinn-buffer-channel-icon.connected::after { content:'✓'; position:absolute; right:-4px; bottom:-4px; width:13px; height:13px; display:grid; place-items:center; border:2px solid #fff; border-radius:50%; background:var(--teal-600); color:#fff; font:900 8px/1 Arial; }
  .quinn-channels-panel { margin:-3px 0 14px; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--off-white); }
  .quinn-channels-head { display:flex; align-items:center; gap:8px; margin-bottom:9px; }
  .quinn-channels-title { color:var(--ink); font-size:13.5px; font-weight:900; }
  .quinn-channels-count { color:#92929b; font-size:11.5px; font-weight:700; }
  .quinn-channels-actions { display:flex; gap:10px; margin-left:auto; }
  .quinn-channels-link { padding:0; border:0; background:none; color:var(--coral); font-family: inherit; cursor:pointer; }
  .quinn-channels-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
  .quinn-channel-status { display:flex; align-items:center; min-width:0; gap:8px; padding:9px 10px; border:1px solid var(--border); border-radius:9px; background:#fff; color:var(--slate); cursor:pointer; text-align:left; }
  .quinn-channel-status:hover { border-color:var(--coral-300); }
  .quinn-channel-status.connected { border-color:rgba(0,149,128,.34); background:var(--teal-100); }
  .quinn-channel-status .channel-icon { width:22px; height:22px; display:grid; place-items:center; flex:0 0 auto; }
  .quinn-channel-status .channel-icon svg,.quinn-channel-status .channel-icon img { width:21px !important; height:21px !important; margin:0 !important; }
  .quinn-channel-status .channel-copy { min-width:0; }
  .quinn-channel-status strong { display:block; overflow:hidden; color:var(--ink); font-size:13px; font-weight:850; text-overflow:ellipsis; white-space:nowrap; }
  .quinn-channel-status small { display:flex; align-items:center; gap:4px; margin-top:2px; color:#a0a0a7; font-size:11px; font-weight:750; }
  .quinn-channel-status.connected small { color:var(--teal-700); }
  .quinn-channel-dot { width:5px; height:5px; border-radius:50%; background:#bbb; }
  .quinn-channel-status.connected .quinn-channel-dot { background:var(--teal-500); box-shadow:0 0 0 2px rgba(0,149,128,.12); }
  .quinn-buffer-modal { position:fixed; inset:0; z-index:9200; display:none; align-items:center; justify-content:center; padding:16px; background:rgba(25,27,30,.5); }
  .quinn-buffer-modal.open { display:flex; }
  .quinn-buffer-dialog { width:min(410px,100%); border-radius:15px; background:#fff; box-shadow:0 24px 80px rgba(0,0,0,.3); overflow:hidden; }
  .quinn-buffer-dialog-head { display:flex; align-items:flex-start; gap:11px; padding:18px 18px 14px; }
  .quinn-buffer-dialog-head .quinn-buffer-mark { width:36px; height:36px; }
  .quinn-buffer-dialog-title { color:var(--ink); font-size:15px; font-weight:900; }
  .quinn-buffer-dialog-sub { margin-top:3px; color:#85858e; font-size:13.5px; line-height:1.45; }
  .quinn-buffer-close { margin-left:auto; border:0; background:none; color:#aaa; font-size:20px; cursor:pointer; }
  .quinn-buffer-why { margin:0 18px; padding:12px; border-radius:9px; background:var(--teal-100); color:var(--slate); font-size:13.5px; line-height:1.55; }
  .quinn-buffer-why strong { color:var(--teal-700); }
  .quinn-buffer-points { display:grid; gap:8px; padding:14px 18px; color:var(--slate); font-size:13.5px; }
  .quinn-buffer-points span { display:flex; align-items:center; gap:8px; }
  .quinn-buffer-points i { color:var(--teal-600); font-size:14px; }
  .quinn-buffer-dialog-actions { display:flex; align-items:center; gap:8px; padding:14px 18px 18px; border-top:1px solid var(--border); }
  .quinn-buffer-dialog-actions .quinn-buffer-connect { padding:10px 14px; font-size:13.5px; }
  .quinn-buffer-create { border:0; background:none; color:var(--coral); font-family: inherit; cursor:pointer; }
  .quinn-home-insight { display:flex; align-items:center; gap:12px; margin:0 0 16px; padding:11px 13px; border:1px solid rgba(0,149,128,.15); border-radius:10px; background:var(--teal-100); color:var(--slate); font-size:13.5px; }
  .quinn-home-insight > i { color:var(--teal-600); font-size:19px; }
  .quinn-home-insight span { flex:1; }
  .quinn-insight-action { border:0; background:none; color:var(--teal-700); font-family: inherit; cursor:pointer; white-space:nowrap; }
  body.quinn-overlay-active { overflow:hidden; }
  .quinn-review-section { margin-top:18px; scroll-margin-top:20px; }
  .quinn-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:10px; }
  .quinn-section-title-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .quinn-section-heading h3 { font-size:14px; color:var(--ink); }
  .quinn-section-heading p { font-size:13.5px; color:#92929b; }
  .quinn-review-range { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:999px; background:var(--teal-100); color:var(--teal-700); font-size:11.5px; font-weight:800; letter-spacing:.02em; }
  .quinn-review-range i { font-size:13.5px; }
  .quinn-review-empty { grid-column:1/-1; display:flex; align-items:center; gap:10px; padding:16px; border:1px dashed rgba(0,149,128,.28); border-radius:10px; background:rgba(232,247,244,.45); color:var(--slate); font-size:13.5px; }
  .quinn-review-empty i { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#fff; color:var(--teal-600); font-size:16px; }
  #quinn-needs-review-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #quinn-needs-review-list .post-card { margin:0 !important; background:#f5f5f7; }
  .qi-page-head { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
  .qi-back { width:34px; height:34px; border:1px solid var(--border); border-radius:9px; background:#fff; color:var(--slate); cursor:pointer; font-size:18px; }
  .qi-title { font-size:20px; font-weight:900; color:var(--ink); }
  .qi-sub { font-size:14px; color:#898993; }
  .qi-period { margin-left:auto; padding:7px 10px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--slate); font-family: inherit; }
  /* ── Channel performance: unified compact list (2026-09-19) ─────
   * Replaces the old qi-summary/qi-platform-grid/qi-wide-card recipe --
   * Mark: "this area takes up way too much space... build it all into
   * your mockups", picked "Option 2" (unified compact list) from three
   * mockups reviewed on a canvas. Every channel, connected or not, is now
   * one row in a single list instead of its own full-size card; Content
   * mix + Quinn's readout shrink to two small chips. The qi-disconnected
   * class name is kept as-is (js/quinn/buffer-publishing.js's
   * quinnUpdateChannelCards() toggles it by that exact string, and the
   * #qi-total-posts/#qi-ig-posts/#qi-fb-posts/#qi-platform-*/#qi-connect-*
   * ids are read by the same file) -- only what it does visually changed.
   * .qi-setup was unused dead CSS on the old recipe (no HTML/JS reference
   * anywhere) -- dropped rather than carried forward. */
  .quinn-social-insights-head { display:flex; flex-direction:column; gap:1px; margin-bottom:12px; }
  .quinn-social-insights-head h3 { margin:0; font-size:15px; font-weight:800; color:var(--ink); }
  .quinn-social-insights-head span { font-size:13px; color:var(--slate); }

  .qi2-stats { display:flex; align-items:center; flex-wrap:wrap; row-gap:8px; padding:11px 16px; border:1px solid var(--border); border-radius:10px; background:#fff; margin-bottom:12px; }
  .qi2-stat-item { display:flex; flex-direction:column; gap:1px; padding-right:20px; }
  .qi2-stat-value { font-size:17px; font-weight:900; color:var(--ink); line-height:1.1; }
  .qi2-stat-label { font-size:11.5px; color:var(--slate); white-space:nowrap; }
  .qi2-stat-label em { font-style:normal; color:var(--coral); font-weight:700; }
  .qi2-stat-div { width:1px; height:26px; background:var(--border); margin-right:20px; flex-shrink:0; }

  .qi2-list { background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; margin-bottom:12px; }
  .qi2-row { display:flex; align-items:center; gap:12px; padding:10px 16px; border-bottom:1px solid var(--light-gray); }
  .qi2-row:last-child { border-bottom:0; }
  .qi2-row.qi-disconnected { background:linear-gradient(135deg,var(--off-white),#fff); }
  .qi2-badge { width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center; background:var(--coral-50); color:var(--coral); font-size:12px; font-weight:800; flex:0 0 auto; }
  .qi2-name-wrap { flex:1; min-width:0; }
  .qi2-name-wrap--fixed { flex:0 0 160px; }
  .qi2-name { font-size:14px; font-weight:800; color:var(--ink); }
  .qi2-name-wrap .qpl-meta { font-size:12px; color:var(--slate); }
  .qi2-desc { font-size:12px; color:var(--slate); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:1px 0 0; }
  .qi2-metrics { flex:1; display:flex; gap:26px; min-width:0; }
  .qi2-metric { display:flex; flex-direction:column; align-items:center; min-width:42px; }
  .qi2-metric strong { font-size:14px; font-weight:800; color:var(--ink); line-height:1.1; }
  .qi2-metric span { font-size:11px; color:#92929b; }
  .qi2-spark { display:flex; align-items:flex-end; gap:3px; height:24px; flex:0 0 auto; }
  .qi2-spark i { width:4px; border-radius:1px 1px 0 0; background:linear-gradient(180deg,var(--coral-300),var(--coral)); display:block; }
  .qi2-connected { margin-left:auto; flex:0 0 auto; display:inline-flex; align-items:center; padding:3px 7px; border-radius:6px; background:var(--teal-100); color:var(--teal-600); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; white-space:nowrap; }
  .qi2-connect-btn { margin-left:auto; flex:0 0 auto; padding:6px 11px; border:1px solid var(--coral-200); border-radius:7px; background:var(--coral-50); color:var(--coral); font-family: inherit; white-space:nowrap; }
  .qi2-connect-btn:disabled { border-color:var(--teal-100); background:var(--teal-100); color:var(--teal-600); cursor:default; padding:3px 7px; border-radius:6px; font-size:11px; text-transform:uppercase; letter-spacing:.03em; }

  .qi2-summary-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .qi2-mix-card, .qi2-readout-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:12px 15px; }
  .qi2-card-title { font-size:13px; font-weight:800; color:var(--ink); margin-bottom:8px; }
  .qi2-donut-wrap { display:flex; align-items:center; gap:14px; }
  .qi2-donut { width:52px; height:52px; border-radius:50%; background:conic-gradient(var(--coral) 0 42%,var(--coral-300) 42% 68%,var(--slate) 68% 86%,var(--coral-100) 86% 100%); flex:0 0 auto; position:relative; }
  .qi2-donut-hole { position:absolute; inset:9px; border-radius:50%; background:#fff; }
  .qi2-legend { display:grid; grid-template-columns:1fr 1fr; gap:2px 10px; color:var(--slate); font-size:12px; margin-top:4px; }
  .qi2-legend span::before { content:''; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:2px; background:var(--legend); }
  #brand-social-content-panel .quinn-insight { padding:6px 0; font-size:12px; }
  #brand-social-content-panel .quinn-insight i { color:var(--coral); }
  .qi2-readout-card .quinn-insight-grid { display:flex; gap:16px; }
  .qi2-readout-card .quinn-insight-grid .quinn-insight { flex:1; min-width:0; padding:0 0 0 24px; border:0; border-left:1px solid var(--light-gray); align-items:center; }
  .qi2-readout-card .quinn-insight-grid .quinn-insight:first-child { padding-left:0; border-left:0; }
  .qi2-readout-card .quinn-insight-grid .quinn-insight i { font-size:28px; margin-left:4px; }
  @media (max-width:800px) { .qi2-metrics,.qi2-spark { display:none; } .qi2-summary-row { grid-template-columns:1fr; } }
  #quinn-gen-result .post-card { background:#fff; border-color:rgba(0,149,128,.25); box-shadow:0 8px 24px rgba(44,46,51,.06); }
  @media (max-width:800px) { .quinn-gen-grid,.quinn-intelligence,#quinn-needs-review-list { grid-template-columns:1fr; gap:16px; } .quinn-gen-side { padding-left:0; padding-top:20px; border-left:0; border-top:1px solid var(--border); } .quinn-tools-spacer { display:none; } #qpm-view-section { display:block; overflow-y:auto; } .qpm-card { overflow-y:auto; } #qpm-view-section .qpm-photo-wrap { height:auto; } }
  @media (max-width:600px) { .quinn-learning-charts { grid-template-columns:1fr; } .quinn-learning-chart-card { min-height:158px; } }
  @media (max-width:700px) { .quinn-calendar-toolbar { flex-wrap:wrap; } .quinn-cal-view-switch { margin-left:0; } .quinn-list-row { grid-template-columns:75px 1fr; } .quinn-list-title { grid-column:1/-1; } .quinn-week-slot { grid-template-columns:24px 1fr 1fr; } .quinn-week-slot select,.quinn-week-channels,.quinn-week-slot-topic { grid-column:2/-1; } .quinn-week-learning { align-items:flex-start; } }
  /* .quinn-cal's day columns are repeat(7,1fr), but a 1fr track's default
     min-width is auto (= its content's min-content), not 0 -- so any day
     that actually has post cards forces its own column wider than its
     1fr share, at the expense of the empty days next to it. At mobile
     widths the imbalance got severe enough that the widened column
     (whichever day has cards, e.g. Saturday) grew past the grid's own box
     and .quinn-cal's overflow:hidden sliced its cards off mid-word with no
     ellipsis, while empty days were squeezed to ~25px slivers (found
     2026-09-05, mobile optimization pass). min-width:0 lets every column
     hold its fair 1/7 share regardless of content, so cards fall back to
     their own already-correct text-overflow:ellipsis truncation instead of
     the whole column overflowing.
     Unconditional as of 2026-09-17: the Content-tab rebuild now renders
     this same calendar in a narrower flex column (alongside the "Needs
     review" rail) instead of the full page width, so the same lopsided-
     column effect started showing up at desktop widths too -- whichever
     day(s) have post cards (e.g. today, or any day with an approval
     pending) grew visibly wider than empty neighboring days, which made
     their cards look like they had less breathing room / tighter padding
     against the cell edge even though the padding value itself never
     changed (Mark's "padding overlapping the border" report on the new
     Content layout, 2026-09-17). Removing the max-width:700px gate so
     every day column always holds its fair 1/7 share regardless of
     viewport fixes both the old mobile symptom and this one. */
  .quinn-cal-cell { min-width: 0; }
  @media (max-width:800px) { .quinn-channels-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media (max-width:540px) { .quinn-composer { padding:0; } .quinn-composer #quinn-gen-card { min-height:100vh; border-radius:0; } .quinn-gen-head,.quinn-gen-body { padding:17px; } .quinn-gen-status { display:none; } .quinn-schedule,.quinn-creative-grid,.quinn-draft-choices { grid-template-columns:1fr; } .quinn-home-insight { align-items:flex-start; } .quinn-buffer-bar { flex-wrap:wrap; } .quinn-buffer-connect,.quinn-buffer-connected { margin-left:41px; } }
  .quinn-cal-cell {
    background: #fff;
    padding: 7px 6px 8px;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  /* q-today / q-past used to tint the cell background (coral wash / light
     gray) -- Mark: "the calendar background should all use this [white]
     background color... They should all be consistent." Both now stay the
     same white as every other cell; q-today still gets the coral date
     circle + hidden default date number below, so today stays identifiable
     without a background color doing double duty. */
  .quinn-cal-cell.q-today { background: #fff; }
  .quinn-cal-cell.q-past  { background: #fff; }
  .quinn-cal-cell-date {
    font-size: 13.5px;
    font-weight: 700;
    color: #b8b8c2;
    margin-bottom: 1px;
    line-height: 1;
  }
  .quinn-cal-cell.q-today .quinn-cal-cell-date { color: transparent; }
  .quinn-calendar-toolbar { display:flex; align-items:center; gap:8px; width:100%; }
  .quinn-cal-nav { width:38px; height:30px; border:1px solid var(--border); border-radius:7px; background:#fff; color:var(--slate); cursor:pointer; font-size:17px; }
  .quinn-cal-today { padding:6px 10px; border:1px solid var(--border); border-radius:7px; background:#fff; color:var(--slate); font-family: inherit; cursor:pointer; }
  .quinn-cal-range { min-width:150px; color:var(--ink); font-size:14px; font-weight:800; }
  .quinn-cal-view-switch { margin-left:auto; display:flex; padding:3px; border:1px solid var(--border); border-radius:8px; background:var(--off-white); }
  .quinn-cal-view { padding:6px 10px; border:0; border-radius:6px; background:transparent; color:#8b8b94; font-family: inherit; cursor:pointer; }
  .quinn-cal-view.active { background:#fff; color:var(--teal-700); box-shadow:0 1px 4px rgba(44,46,51,.1); }
  .quinn-cal.week-view .quinn-cal-cell { min-height:250px; padding:10px 8px; }
  .quinn-cal.week-view .quinn-cal-dow { padding:9px 5px; background:var(--off-white); }
  .quinn-cal.week-view .quinn-cal-card { margin-bottom:8px; }
  .quinn-cal.week-view .quinn-cal-caption { font-size:13px; }
  .quinn-list-view { display:grid; gap:8px; background:#fff; padding:12px; }
  .quinn-list-row { display:grid; grid-template-columns:90px 110px 1fr auto; align-items:center; gap:12px; padding:11px 12px; border:1px solid var(--border); border-radius:9px; background:var(--off-white); cursor:pointer; }
  .quinn-list-row:hover { border-color:var(--teal-500); background:var(--teal-100); }
  .quinn-list-date { font-size:13.5px; font-weight:800; color:var(--ink); }
  .quinn-list-platform { display:flex; align-items:center; gap:5px; font-size:13px; font-weight:700; color:var(--slate); }
  .quinn-list-title { font-size:14px; color:var(--slate); }
  .quinn-list-status { font-size:11.5px; font-weight:800; text-transform:uppercase; color:var(--teal-600); }
  .quinn-list-empty { padding:34px; text-align:center; color:#999; font-size:14px; }
  /* The max-width:700px override for .quinn-list-row/.quinn-list-title further
     up this file (in the toolbar/week-slot media block) never actually takes
     effect: it's positioned BEFORE these unconditional base rules in the
     file, and at equal specificity the later rule always wins the cascade
     regardless of viewport -- so .quinn-list-row stayed locked to its
     4-column desktop grid (90px 110px 1fr auto) at every width, squeezing
     the 110px platform-name column down to a sliver and wrapping
     "Instagram + Facebook" onto three lines (found 2026-09-05, mobile
     optimization pass). Repeating the override here, after the base rules,
     lets it win instead. Also gives .quinn-list-status its own full-width
     row -- with only .quinn-list-title explicitly spanning columns 1/-1,
     grid auto-placement would otherwise drop the status badge into the
     narrow 75px date column by itself. */
  @media (max-width:700px) {
    .quinn-list-row { grid-template-columns:75px 1fr; row-gap:4px; }
    .quinn-list-title { grid-column:1/-1; }
    .quinn-list-status { grid-column:1/-1; }
  }
  .quinn-cal-date-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 2px;
    flex-shrink: 0;
  }
  /* Compact icon-chip event cards (2026-09-19, "Option E" from the calendar
     mockups canvas) -- replaces the old two-tone header+title card. Icons
     stay the same real size as before (quinnPlatformIcons() untouched); the
     card itself shrinks to just the icon cluster in a small colored chip,
     with time+title moved to a plain caption line underneath instead of
     living inside a card body. Mark: "keep the icons the same, but the post
     doesn't have to spend the full width... just a little square icon."
     Status colors per Mark's spec: needs review = coral, queued = black,
     posted = light gray (see .quinn-cal-legend below, kept in sync). */
  .quinn-cal-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .quinn-cal-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border-radius: 6px;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
  }
  .quinn-cal-chip svg, .quinn-cal-chip img { flex-shrink: 0; }
  .quinn-cal-caption {
    font-size: 11.5px;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }
  .quinn-cal-caption b { font-weight: 700; }
  /* Posted = black */
  .quinn-cal-card.published .quinn-cal-chip { background: var(--ink); }
  /* Queued = teal 600 */
  .quinn-cal-card.scheduled .quinn-cal-chip { background: var(--teal-600); }
  /* Needs review = coral */
  .quinn-cal-card.pending   .quinn-cal-chip { background: var(--coral-500); }
  .quinn-cal-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13.5px;
    color: var(--dim);
  }
  .quinn-cal-legend-item {
    display: flex; align-items: center; gap: 5px; font-weight: 600;
  }
  .legend-dot {
    width: 8px; height: 8px; border-radius: 50%;
  }

  /* Multiple photos with a primary (2026-10-23) */
  .quinn-compose-thumb-wrap.is-primary { border-color:var(--coral); }
  .quinn-compose-primary { position:absolute; left:3px; bottom:3px; padding:1px 5px; border-radius:999px; background:var(--coral); color:#fff; font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; pointer-events:none; }
  .quinn-compose-make-primary { position:absolute; left:3px; bottom:3px; width:20px; height:20px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.92); color:var(--slate); font-size:14px; line-height:20px; cursor:pointer; box-shadow:0 1px 4px rgba(17,17,20,.2); opacity:0; transition:opacity .15s; }
  .quinn-compose-thumb-wrap:hover .quinn-compose-make-primary, .quinn-compose-make-primary:focus-visible { opacity:1; }
  .quinn-compose-make-primary:hover { color:var(--coral); }
  @media (hover:none) { .quinn-compose-make-primary { opacity:1; } }

  /* Media library picker (2026-10-23) */
  #quinn-media-library { z-index:9300; }
  .quinn-ml-dialog { width:min(640px,100%); display:flex; flex-direction:column; max-height:min(640px,calc(100vh - 32px)); }
  .quinn-ml-icon { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; border-radius:10px; background:rgba(255,255,255,.65); color:var(--coral); font-size:18px; }
  .quinn-ml-dialog .quinn-buffer-close { margin-left:auto; }
  .quinn-ml-bar { display:flex; align-items:center; gap:10px; padding:12px 18px; border-bottom:1px solid var(--border); font-size:14px; font-weight:700; color:var(--ink); }
  .quinn-ml-select { flex:1; min-width:0; height:32px; padding:0 10px; border:1px solid var(--border); border-radius:7px; background:#fff; font:inherit; font-weight:500; }
  .quinn-ml-grid { flex:1; overflow:auto; display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:8px; padding:14px 18px; }
  .quinn-ml-tile { position:relative; aspect-ratio:1; padding:0; border:2px solid transparent; border-radius:9px; overflow:hidden; background:var(--off-white); cursor:pointer; }
  .quinn-ml-tile img { width:100%; height:100%; object-fit:cover; display:block; }
  .quinn-ml-tile.on { border-color:var(--coral); }
  .quinn-ml-check { position:absolute; top:5px; right:5px; width:20px; height:20px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.9); color:transparent; font-size:14px; border:1px solid var(--border); }
  .quinn-ml-tile.on .quinn-ml-check { background:var(--coral); color:#fff; border-color:var(--coral); }
  .quinn-ml-empty { grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:8px; min-height:140px; color:var(--slate); font-size:14px; text-align:center; }
  .quinn-ml-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; border-top:1px solid var(--border); font-size:14px; color:var(--slate); }
  .quinn-ml-add { padding:8px 14px; border:0; border-radius:8px; background:var(--coral); color:#fff; font-family: inherit; cursor:pointer; }
  .quinn-ml-add:disabled { opacity:.45; cursor:default; }

  /* Property picker (2026-10-23) */
  .quinn-gen-listing-facts { display:flex; align-items:flex-start; gap:8px; margin-top:8px; padding:9px 11px; border-radius:8px; background:var(--coral-50,#fff4f0); border:1px solid var(--coral-100,#fde0d6); font-size:14px; font-weight:600; color:var(--ink); line-height:1.4; }
  .quinn-gen-listing-facts[hidden] { display:none; }
  .quinn-gen-listing-facts i { color:var(--coral); font-size:16px; margin-top:1px; }
  .quinn-gen-listing-facts small { display:block; font-weight:400; color:var(--slate); font-size:13.5px; }
  #quinn-gen-listing-field[hidden] { display:none; }

  /* Edit-post mode footer (2026-10-23) */
  .qc-foot .quinn-save-draft-btn[hidden] { display:none; }
  .qc-foot .quinn-edit-save-btn { background:var(--coral); color:#fff; border-color:var(--coral); }
/* Post window header: coral outline channel icons (2026-10-23) */
.qpm-platform-row .qpm-hic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--coral-500); background: #FDE7E2; color: var(--coral-500); display: inline-grid; place-items: center; flex: none; }
.qpm-platform-row .qpm-hic .ti { font-size: 19px; }
/* Coral outline channel icons (quinnCoralIcon, 2026-10-23) */
.quinn-coral-ic { display: inline-grid; place-items: center; flex: none; border-radius: 8px; border: 1px solid var(--coral-500); background: #FDE7E2; color: var(--coral-500); line-height: 1; }
.quinn-coral-row { display: inline-flex; gap: 6px; flex: none; }
.quinn-today-perf-chip .quinn-coral-ic { border-radius: 7px; }
