/* content-review.css — the article create flow's "review" screens.
   =========================================================================
   DELIBERATE PARITY PORT of the website copy-review UX (launch-studio.css,
   #page-launch-review-copy .rc-*). The article skeleton-review and copy-review
   screens MUST look and behave identically to the website copy review so coaches
   only ever learn ONE refine-with-the-AI interaction. These rules are copied
   verbatim from launch-studio.css and only re-scoped to #route-content (the
   community Content route). If you change one, change the other — they are
   intentionally pixel-identical.

   ⚠ EXCEPT THE ASSISTANT PANEL, which is no longer copied at all: it lives in
   css/assistant-panel.css and this file keeps only its placement (2026-08-01).
   "Change one, change the other" was the right instruction while there were
   two; for the panel there is now one. The canvas, finish bar and preview
   below ARE still a verbatim copy, and the instruction still holds for them.

   Design tokens (--accent, --surface, --good,
   --accent-soft/-deep/-softer, --border-soft/-strong, --radius-lg, --text-3/-4,
   --salmon …) are global, defined once in theme.css / ui-kit.css.
   ========================================================================= */

/* header (welcome) */
#route-content .cr .welcome { margin-bottom: 16px; max-width: 760px; }
#route-content .cr .welcome-eyebrow { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
#route-content .cr .welcome-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
#route-content .cr .welcome h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 30px; margin: 0; letter-spacing: -0.02em; line-height: 1.06; }
#route-content .cr .welcome h1 .accent { color: var(--accent); }
#route-content .cr .welcome .lede { color: var(--text-2); font-size: 15px; margin-top: 8px; line-height: 1.5; }
#route-content .cr .welcome .lede b { color: var(--text); font-weight: 600; }
#route-content .cr .welcome .cr-back { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 0 0 10px; }

/* 3-pane grid */
#route-content .cr .rc-grid { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 18px; align-items: start; }

/* Assistant panel — the component is assistant-panel.css; PLACEMENT only here. */
#route-content .cr .rc-maya { position: sticky; top: 16px; height: calc(74vh + 46px); }
#route-content .cr .rc-thread { flex: 1; overflow-y: auto; }
#route-content .cr .rc-approve { margin-top: 10px; }

/* left — preview canvas */
#route-content .cr .rc-preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
#route-content .cr .rc-pvbar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
#route-content .cr .rc-pvbar .dots { display: flex; gap: 5px; }
#route-content .cr .rc-pvbar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); }
#route-content .cr .rc-pvbar .u { flex: 1; text-align: center; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; max-width: 320px; margin: 0 auto; }
#route-content .cr .rc-pvbar .hint { font-size: 11.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
#route-content .cr .rc-pvbar .hint svg { width: 13px; height: 13px; color: var(--accent); }

#route-content .cr .rc-canvas { --s-bg:#fcfaf6; --s-ink:#1c2e22; --s-ink2:#51625a; --s-acc:#2d5d3a; --s-border:rgba(28,46,34,0.10); background: var(--s-bg); max-height: 74vh; overflow-y: auto; padding: 14px; }
#route-content .cr .rc-csec { position: relative; border-radius: 14px; padding: 26px 30px; margin-bottom: 10px; cursor: pointer; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s, background .15s; background: transparent; }
#route-content .cr .rc-csec:hover { background: #fff; box-shadow: 0 10px 30px -18px rgba(28,46,34,0.3); }
#route-content .cr .rc-csec.sel { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft), 0 14px 36px -18px rgba(28,46,34,0.3); }
#route-content .cr .rc-csec .rc-tagrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
#route-content .cr .rc-csec .rc-role { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-acc); font-weight: 500; }
#route-content .cr .rc-csec .rc-state { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: "Inter", sans-serif; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.01em; }
#route-content .cr .rc-csec .rc-state.pending { background: var(--surface-3); color: var(--text-3); }
#route-content .cr .rc-csec .rc-state.edited { background: var(--accent-soft); color: var(--accent-deep); }
#route-content .cr .rc-csec .rc-state.approved { background: #dcefe2; color: #1c7a4a; }
#route-content .cr .rc-csec .rc-state svg { width: 11px; height: 11px; }
#route-content .cr .rc-csec.changed { animation: rc-flash 1.1s ease; }
@keyframes rc-flash { 0% { background: var(--accent-softer, var(--accent-soft)); } 100% { background: #fff; } }
#route-content .cr .rc-chead { font-family: "Fraunces", "Bricolage Grotesque", serif; color: var(--s-ink); letter-spacing: -0.015em; line-height: 1.16; font-size: 23px; }
#route-content .cr .rc-cbody { font-family: "Inter", sans-serif; color: var(--s-ink2); line-height: 1.55; margin-top: 8px; font-size: 14px; white-space: pre-wrap; }
#route-content .cr .rc-csec.hero { text-align: center; padding: 40px 30px; }
#route-content .cr .rc-csec.hero .rc-chead { font-size: 34px; }
#route-content .cr .rc-csec.hero .rc-cbody { font-size: 15.5px; max-width: 44ch; margin-left: auto; margin-right: auto; }
/* skeleton beats (outline review reuses the section card with a bullet list) */
#route-content .cr .rc-cbeats { margin: 10px 0 0; padding-left: 18px; color: var(--s-ink2); font-family: "Inter", sans-serif; font-size: 13.5px; line-height: 1.5; }
#route-content .cr .rc-cbeats li { margin: 3px 0; }

/* right — Maya refine panel */

/* finish bar */
#route-content .cr .rc-finish { position: sticky; bottom: 14px; margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 24px 50px -28px rgba(21,23,43,0.5); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#route-content .cr .rc-pmeta { display: flex; align-items: center; gap: 14px; }
#route-content .cr .rc-pcount { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 15px; }
#route-content .cr .rc-pcount b { color: var(--accent); }
#route-content .cr .rc-prog { width: 180px; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
#route-content .cr .rc-prog i { display: block; height: 100%; background: var(--accent); border-radius: 4px; width: 0%; transition: width .4s; }
#route-content .cr .rc-actions { display: flex; gap: 10px; align-items: center; }
#route-content .cr .rc-final { background: var(--accent); color: #fff; border: none; border-radius: 11px; padding: 12px 22px; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 10px 24px -10px rgba(106,76,241,0.6); cursor: pointer; }
#route-content .cr .rc-final:hover { background: var(--accent-deep); }
#route-content .cr .rc-final[disabled] { opacity: 0.5; box-shadow: none; cursor: not-allowed; }
#route-content .cr .rc-final svg { width: 15px; height: 15px; }
#route-content .cr .rc-final.ready { background: var(--good); box-shadow: 0 10px 24px -10px rgba(28,142,90,0.6); }

#route-content .cr .rc-canvas-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-3); font-size: 13.5px; gap: 14px; }
#route-content .cr .rc-canvas-loading .sp { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: ls-spin .9s linear infinite; }
@keyframes ls-spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  #route-content .cr .rc-grid { grid-template-columns: 1fr; }
  #route-content .cr .rc-maya { position: static; height: auto; max-height: 620px; }
  #route-content .cr .rc-canvas { max-height: none; }
}
@media (max-width: 760px) {
  #route-content .cr .welcome h1 { font-size: 24px; }
  #route-content .cr .rc-csec.hero .rc-chead { font-size: 26px; }
  #route-content .cr .rc-finish { flex-direction: column; align-items: stretch; }
}

/* §AUDIT-GAPS.2 — his words: "the Done is on the left-hand column not on the
   far right." The finish bar's actions push right whatever container the bar
   lands in, and inside the two-column canvas the bar spans the full row. */
#route-content .cr .rc-actions { margin-left: auto; }
#route-content .cr .rc-grid > .rc-finish { grid-column: 1 / -1; }
