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

/* 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 */
#route-content .cr .rc-maya { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; position: sticky; top: 16px; height: calc(74vh + 46px); }
#route-content .cr .rc-maya-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border-soft); background: linear-gradient(180deg, var(--accent-softer, var(--accent-soft)), var(--surface)); }
#route-content .cr .rc-maya-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #f17d6e, #e85a8a 55%, #b15dde); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 16px; flex-shrink: 0; }
#route-content .cr .rc-maya-head .rc-mh { flex: 1; min-width: 0; }
#route-content .cr .rc-maya-head .rc-mh .n { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
#route-content .cr .rc-maya-head .rc-mh .r { font-size: 12px; color: var(--text-3); margin-top: 1px; }
#route-content .cr .rc-nowsec { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }

#route-content .cr .rc-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
#route-content .cr .rc-mmsg { display: flex; gap: 10px; max-width: 100%; }
#route-content .cr .rc-mmsg .rc-ava { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; }
#route-content .cr .rc-mmsg.coach .rc-ava { background: linear-gradient(135deg, #f17d6e, #e85a8a 55%, #b15dde); }
#route-content .cr .rc-mmsg.user { flex-direction: row-reverse; }
#route-content .cr .rc-mmsg.user .rc-ava { background: linear-gradient(135deg, #b07aff, #6a4cf1); }
#route-content .cr .rc-mbub { padding: 11px 14px; border-radius: 13px; font-size: 13.5px; line-height: 1.5; background: var(--surface-2); color: var(--text); }
#route-content .cr .rc-mmsg.coach .rc-mbub { border-bottom-left-radius: 4px; }
#route-content .cr .rc-mmsg.user .rc-mbub { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
#route-content .cr .rc-mbub b { font-weight: 600; }

#route-content .cr .rc-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; }
#route-content .cr .rc-mchip { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
#route-content .cr .rc-mchip:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }

#route-content .cr .rc-foot { border-top: 1px solid var(--border-soft); padding: 12px 16px; background: var(--surface-2); }
#route-content .cr .rc-composer { background: var(--surface); border: 1.5px solid var(--border); border-radius: 13px; padding: 9px 11px; display: flex; align-items: flex-end; gap: 8px; transition: border-color .15s, box-shadow .15s; }
#route-content .cr .rc-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
#route-content .cr .rc-composer textarea { flex: 1; border: none; outline: none; background: transparent; resize: none; font-family: inherit; font-size: 13.5px; line-height: 1.45; color: var(--text); min-height: 22px; max-height: 80px; }
#route-content .cr .rc-composer textarea::placeholder { color: var(--text-4); }
#route-content .cr .rc-send { background: var(--accent); color: #fff; border: none; border-radius: 9px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
#route-content .cr .rc-send:hover { background: var(--accent-deep); }
#route-content .cr .rc-send svg { width: 15px; height: 15px; }
#route-content .cr .rc-voice { background: linear-gradient(135deg, #f17d6e, #e85a8a); color: #fff; border: none; border-radius: 9px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
#route-content .cr .rc-voice:hover { filter: brightness(1.06); }
#route-content .cr .rc-voice.recording { animation: rc-micpulse 1.2s ease-in-out infinite; }
@keyframes rc-micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,90,138,0.45); } 50% { box-shadow: 0 0 0 6px rgba(232,90,138,0); } }
#route-content .cr .rc-voice svg { width: 15px; height: 15px; }
#route-content .cr .rc-hint { font-size: 11px; color: var(--text-4); margin: 0 2px 7px; display: flex; align-items: center; gap: 6px; }
#route-content .cr .rc-hint svg { width: 12px; height: 12px; color: var(--salmon, #e85a8a); }
#route-content .cr .rc-approve { margin-top: 10px; width: 100%; background: var(--good); color: #fff; border: none; border-radius: 11px; padding: 11px; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
#route-content .cr .rc-approve:hover { filter: brightness(1.05); }
#route-content .cr .rc-approve svg { width: 15px; height: 15px; }
#route-content .cr .rc-approve.is-approved { background: var(--surface); color: var(--good); border: 1px solid #c4e6d3; }

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