/* 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); }
/* She ends above the floating finish bar before any scrolling (batch 9:
   js/maya-clears-the-bar.js measures her top and the bar's room on her). */
#route-content .cr .rc-maya { max-height: max(360px, calc(100vh - var(--maya-top, 16px) - var(--maya-bar-room, 0px))); }
#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; }
/* Round 2 (c2): the body drawn as markdown (bold, lists), left-aligned. */
#route-content .cr .rc-cbody.rc-md { white-space: normal; text-align: left; }
#route-content .cr .rc-cbody.rc-md p { margin: 0 0 8px; }
#route-content .cr .rc-cbody.rc-md p:last-child { margin-bottom: 0; }
/* 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 */
/* It floats now (batch 9, app-styles-v2.css), so it keeps clear of Help: level
   with Help and short of it while Maya is pinned beside it (over 1120px, as
   the course guide's bar), above Help once the page is one column. */
#route-content .cr .rc-finish { position: sticky; bottom: calc(14px + var(--help-room, 0px)); 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 (min-width: 1121px) {
  #route-content .cr .rc-finish { bottom: 14px; margin-right: max(0px, calc(var(--help-room-x, 0px) - 36px)); }
}
@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; }
  /* Stacked on a phone it stays at the end of the page, as the course
     guide's bar does (batch 9): pinned, it would cover a quarter of the screen. */
  #route-content .cr .rc-finish { position: static; }
}

/* §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; }

/* Community review round 4 (c2, Tom): the floating bar sat over the article,
   and with the count, the button and the hint sharing one row the button was
   squeezed to three lines ("Preview / & add / media"). The community's review
   is one article, so the bar sits BELOW it, where it is read last and covers
   nothing; the button never wraps and the hint takes what room is left. */
#route-content .cr .rc-finish { position: static; flex-wrap: wrap; }
#route-content .cr .rc-pmeta { flex: none; white-space: nowrap; }
#route-content .cr .rc-actions { flex: none; }
#route-content .cr .rc-final { white-space: nowrap; }
#route-content .cr .rc-pubhint { flex: 1 1 240px; min-width: 0; }
@media (min-width: 1121px) {
  #route-content .cr .rc-finish { margin-right: 0; }
}
