/* Complaint Workspace — CRC design, scoped under .crc-scope */

.crc-scope {
  --g:#176334;--gm:#1c793f;--gl:#f0f7f3;--gd:#0d361d;--gx:#f7faf8;--gb:#a2cdb3;
  --am:#9A5A0A;--al:#FEF3E2;--ab:#F0C070;
  --rd:#8B2020;--rl:#FDEAEA;--rb:#E8A0A0;
  --bl:#1A4A80;--bll:#E8F0FA;--bb:#A0C0E8;
  --s50:#FAFAF8;--s100:#F0EEE8;--s150:#E8E5DE;--s200:#D8D4CA;
  --s400:#928E84;--s500:#706C62;--s600:#524E46;--s700:#3A3630;--s900:#1C1814;
  --font:'Poppins','DM Sans',system-ui,sans-serif;
  --tr:all .22s cubic-bezier(.4,0,.2,1);
  /* Radius scale — consolidates what was previously an ad hoc mix of
     8/10/12/14/16/20px used near-interchangeably for similar-weight
     elements. Four tiers now, each with one job:
       --r-tag:   small badges/status pills/secondary chips (was 10px AND 12px)
       --r-card:  standard content cards (comm/staff/mini cards, inputs)
       --r-card-lg: emphasis cards (quote, suggestion, id header, CTA button)
       --r-pill:  fully-rounded pills/chips (case chip, story btn, tags) */
  --r-tag:10px;--r-card:14px;--r-card-lg:16px;--r-pill:20px;
}
.crc-scope * {box-sizing:border-box;}
.crc-scope, .crc-scope {height:100%;}
.crc-scope {margin:0;font-family:var(--font);background:var(--s50);color:var(--s900);overflow:hidden;}
@media (prefers-reduced-motion: reduce) { .crc-scope * {animation-duration:.001ms !important; transition-duration:.001ms !important;} }

.crc-scope #crcNextStep {margin-top:64px;} /* sits below the fixed top row (24 Sep) */
.crc-scope .topbar {position:fixed;top:0;left:0;right:0;height:64px;background:rgba(250,250,248,.92);backdrop-filter:blur(6px);border-bottom:1px solid var(--s150);display:flex;align-items:center;padding:0 20px;gap:16px;z-index:40;}
.crc-scope .back-btn {width:34px;height:34px;border-radius:50%;border:none;background:none;color:var(--s500);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--tr);flex:0 0 auto;}
.crc-scope .back-btn:hover {background:var(--s100);color:var(--s900);}
.crc-scope .back-btn:disabled {opacity:0;pointer-events:none;}
.crc-scope .path {flex:1;display:flex;align-items:center;overflow-x:auto;scrollbar-width:none;}
.crc-scope .path::-webkit-scrollbar {display:none;}
.crc-scope .path-node {flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:var(--s200);position:relative;transition:var(--tr);cursor:pointer;}
.crc-scope .path-node + .path-node {margin-left:14px;}
.crc-scope .path-node::before {content:'';position:absolute;left:-14px;top:50%;width:14px;height:2px;background:var(--s200);transform:translateY(-50%);}
.crc-scope .path-node:first-child::before {display:none;}
.crc-scope .path-node.done {background:var(--g);}
.crc-scope .path-node.done::before {background:var(--g);}
.crc-scope .path-node.current {width:15px;height:15px;margin-top:-3px;margin-bottom:-3px;background:var(--gl);border:2.5px solid var(--g);box-shadow:0 0 0 4px var(--gl);}
.crc-scope .path-node.locked {background:var(--s150);cursor:not-allowed;}
.crc-scope .path-node.skipped {background:#fff;border:1.5px dashed var(--s300,#c8c4ba);cursor:not-allowed;}
.crc-scope .case-chip {flex:0 0 auto;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--s200);border-radius:var(--r-pill);padding:6px 14px 6px 8px;font-size:12px;font-weight:600;color:var(--s700);cursor:pointer;transition:var(--tr);}
.crc-scope .case-chip:hover {border-color:var(--gb);}
.crc-scope .chip-dot {width:8px;height:8px;border-radius:50%;background:var(--g);flex:0 0 auto;}
.crc-scope .chip-dot.risk {background:var(--am);}

.crc-scope .drawer {position:fixed;top:64px;right:0;width:300px;max-height:calc(100vh - 84px);overflow-y:auto;background:#fff;border-left:1px solid var(--s150);border-bottom-left-radius:14px;box-shadow:-8px 12px 32px rgba(0,0,0,.08);padding:22px 22px 26px;transform:translateY(-12px);opacity:0;pointer-events:none;transition:all .22s cubic-bezier(.4,0,.2,1);z-index:39;}
.crc-scope .drawer.open {transform:translateY(0);opacity:1;pointer-events:auto;}
.crc-scope .drawer h3 {margin:0 0 14px;font-size:14px;}
.crc-scope .drawer .row {display:flex;justify-content:space-between;font-size:12.5px;padding:7px 0;border-bottom:1px solid var(--s100);}
.crc-scope .drawer .row .l {color:var(--s500);}
.crc-scope .drawer .row .v {font-weight:600;}
.crc-scope .drawer .health {margin-bottom:14px;padding:10px 12px;border-radius:var(--r-tag);font-size:12px;background:var(--gl);color:var(--gd);}
.crc-scope .drawer .health.attention {background:var(--al);color:var(--am);}
.crc-scope .drawer .health.risk {background:var(--rl);color:var(--rd);}
.crc-scope .readiness-label {font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--s400);margin:4px 0 8px;}
.crc-scope .readiness-list {display:flex;flex-direction:column;gap:5px;margin-bottom:10px;}
.crc-scope .readiness-list .ri {display:flex;align-items:center;gap:8px;font-size:12px;color:var(--s700);}
.crc-scope .readiness-list .ri .rm {width:14px;text-align:center;flex:0 0 auto;font-size:11px;}
.crc-scope .readiness-list .ri.done .rm {color:var(--g);}
.crc-scope .readiness-list .ri.partial .rm {color:var(--am);}
.crc-scope .readiness-list .ri.pending {color:var(--s400);}
.crc-scope .readiness-list .ri.pending .rm {color:var(--s300,#c8c4ba);}
.crc-scope .readiness-list .ri .rn {color:var(--s400);font-size:11px;}
.crc-scope .readiness-overall {font-size:12px;font-weight:700;padding:8px 10px;border-radius:var(--r-tag);margin-bottom:14px;}
.crc-scope .readiness-overall.ready {background:var(--gl);color:var(--gd);}
.crc-scope .readiness-overall.blocked {background:var(--al);color:var(--am);}
.crc-scope .chip-dot.attention {background:var(--am);}
.crc-scope .status-checklist {display:flex;flex-direction:column;gap:12px;margin:14px 0 14px;}
.crc-scope .status-checklist .si {display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--s700);line-height:1.45;}
.crc-scope .status-checklist .si {width:auto;height:auto;display:flex;align-items:flex-start;justify-content:flex-start;gap:8px;padding:4px 0;font-size:13px;border-radius:0;line-height:1.5;}
.crc-scope .status-checklist .si .m {width:16px;height:16px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:10px;color:#fff;margin-top:1px;}
.crc-scope .status-checklist .si.done .m {background:var(--g);}
.crc-scope .status-checklist .si.pending .m {background:var(--s200);color:var(--s500);}
.crc-scope .status-checklist .si.pending {color:var(--s500);}

.crc-scope .story-btn {flex:0 0 auto;display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--s200);border-radius:var(--r-pill);padding:7px 15px;font-size:12px;font-weight:600;color:var(--s700);cursor:pointer;transition:var(--tr);font-family:var(--font);margin-right:10px;}
.crc-scope .story-btn:hover {border-color:var(--gb);background:var(--gx);color:var(--gd);}

.crc-scope .story-overlay {position:fixed;inset:0;background:rgba(28,24,20,.45);display:flex;align-items:center;justify-content:center;z-index:60;opacity:0;pointer-events:none;transition:opacity .2s;padding:30px 16px;}
.crc-scope .story-overlay.open {opacity:1;pointer-events:auto;}
.crc-scope .story-panel {background:#fff;border-radius:var(--r-pill);max-width:560px;width:100%;max-height:85vh;overflow-y:auto;padding:28px 30px 34px;box-shadow:0 20px 60px rgba(0,0,0,.25);transform:translateY(14px);transition:transform .2s;}
.crc-scope .story-overlay.open .story-panel {transform:translateY(0);}
.crc-scope .story-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.crc-scope .story-head h2 {font-size:19px;margin:0;}
.crc-scope .story-close {background:none;border:none;font-size:16px;color:var(--s400);cursor:pointer;width:30px;height:30px;border-radius:50%;}
.crc-scope .story-close:hover {background:var(--s100);color:var(--s900);}
.crc-scope .story-intro {font-size:12.5px;color:var(--s500);margin:0 0 20px;line-height:1.5;}

.crc-scope .story-chapter {position:relative;padding-left:26px;padding-bottom:22px;}
.crc-scope .story-chapter::before {content:'';position:absolute;left:6px;top:4px;bottom:0;width:2px;background:var(--s150);}
.crc-scope .story-chapter:last-child::before {display:none;}
.crc-scope .story-chapter::after {content:'';position:absolute;left:1px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--g);border:2px solid #fff;box-shadow:0 0 0 1px var(--g);}
.crc-scope .story-chapter.upcoming::after {background:var(--s200);box-shadow:0 0 0 1px var(--s200);}
.crc-scope .story-chapter .st {font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--g);margin-bottom:4px;}
.crc-scope .story-chapter.upcoming .st {color:var(--s400);}
.crc-scope .story-chapter .sx {font-size:13.5px;color:var(--s700);line-height:1.55;}
.crc-scope .story-chapter.upcoming .sx {color:var(--s400);font-style:italic;}

.crc-scope .know-item {display:flex;align-items:flex-start;gap:10px;font-size:13.5px;color:var(--s700);padding:11px 0;border-bottom:1px solid var(--s100);line-height:1.5;}
.crc-scope .know-item:last-child {border-bottom:none;}
.crc-scope .know-dot {width:6px;height:6px;border-radius:50%;background:var(--s400);flex:0 0 auto;margin-top:7px;}

.crc-scope .nb-done {text-decoration:line-through;color:var(--s400);}
.crc-scope .nb-add {display:flex;gap:8px;margin:10px 0 4px;}
.crc-scope .nb-add input {flex:1;padding:8px 12px;border:1.5px solid var(--s200);border-radius:var(--r-tag);font-size:13px;font-family:var(--font);}
.crc-scope .obs-list {display:flex;flex-direction:column;gap:6px;}
.crc-scope .obs-item {font-size:13.5px;color:var(--s700);line-height:1.5;}

.crc-scope .nb-item {padding:9px 2px;border-bottom:1px solid var(--s100);}
.crc-scope .nb-item:last-child {border-bottom:none;}
.crc-scope .nb-row {display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--s700);cursor:pointer;}
.crc-scope .nb-meta {display:flex;align-items:center;gap:10px;margin-top:5px;margin-left:26px;}
.crc-scope .nb-tag {font-size:11px;color:var(--s400);}
.crc-scope .nb-promote {background:none;border:none;font-size:11px;font-weight:600;color:var(--g);cursor:pointer;padding:0;}
.crc-scope .nb-promote:hover {text-decoration:underline;}
.crc-scope .nb-promoted {font-size:11px;font-weight:600;color:var(--g);}
.crc-scope .promoted-list {background:var(--gx);border:1px solid var(--gb);border-radius:var(--r-tag);padding:12px 14px;margin-bottom:8px;}
.crc-scope .promoted-item {font-size:13px;color:var(--gd);padding:5px 0;}

.crc-scope .comm-card {background:#fff;border:1px solid var(--s150);border-radius:var(--r-card);padding:16px 18px;margin-bottom:12px;}
.crc-scope .comm-head {display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
.crc-scope .comm-name {font-size:14.5px;font-weight:700;color:var(--s900);}
.crc-scope .comm-reason {font-size:12.5px;color:var(--s500);margin-top:2px;}
.crc-scope .comm-status {font-size:11px;font-weight:700;padding:4px 10px;border-radius:var(--r-tag);flex:0 0 auto;white-space:nowrap;}
.crc-scope .comm-status.done {background:var(--gl);color:var(--gd);display:flex;align-items:center;gap:5px;}
.crc-scope .comm-status.pending {background:var(--al);color:var(--am);}
.crc-scope .comm-meta {font-size:12px;color:var(--s500);margin-top:12px;cursor:pointer;}
.crc-scope .comm-message {background:var(--s50);border:1px solid var(--s150);border-radius:var(--r-tag);padding:12px 14px;font-size:13px;color:var(--s700);white-space:pre-line;margin-top:8px;line-height:1.5;}

.crc-scope .thread {border-left:2px solid var(--s150);margin:0 0 20px 6px;padding-left:16px;}
.crc-scope .thread-item {padding:8px 0;}
.crc-scope .thread-top {display:flex;justify-content:space-between;align-items:center;}
.crc-scope .thread-label {font-size:13.5px;font-weight:600;color:var(--s900);}
.crc-scope .thread-channel {font-size:11px;font-weight:700;color:var(--g);background:var(--gl);padding:2px 9px;border-radius:var(--r-tag);}
.crc-scope .thread-meta {font-size:12px;color:var(--s500);margin-top:3px;}

.crc-scope .channel-list {display:flex;flex-direction:column;gap:2px;}
.crc-scope .channel-opt {display:flex;align-items:center;gap:10px;padding:10px 4px;font-size:13.5px;color:var(--s700);cursor:pointer;}
.crc-scope .channel-radio {width:18px;height:18px;border-radius:50%;border:1.5px solid var(--s200);flex:0 0 auto;display:flex;align-items:center;justify-content:center;transition:var(--tr);}
.crc-scope .channel-radio.sel {border-color:var(--g);}
.crc-scope .channel-radio.sel::after {content:'';width:9px;height:9px;border-radius:50%;background:var(--g);}
.crc-scope .channel-opt.sel {color:var(--s900);font-weight:600;}
.crc-scope .drawer .health b {display:block;font-size:13px;}

.crc-scope .stage {display:flex;align-items:flex-start;justify-content:center;width:100%;}
.crc-scope .stage-inner {width:100%;max-width:640px;}
.crc-scope .q-eyebrow {font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--g);margin-bottom:10px;opacity:0;animation:riseIn .5s .05s cubic-bezier(.2,.8,.2,1) forwards;}
.crc-scope h1.question {font-size:clamp(22px,4vw,32px);font-weight:700;line-height:1.18;margin:0 0 10px;letter-spacing:-.01px;opacity:0;animation:riseIn .5s .1s cubic-bezier(.2,.8,.2,1) forwards;}
.crc-scope p.hint {font-size:14.5px;color:var(--s500);margin:0 0 26px;line-height:1.5;opacity:0;animation:riseIn .5s .15s cubic-bezier(.2,.8,.2,1) forwards;}
.crc-scope .q-body p.hint {opacity:1;animation:none;} /* q-body itself already fades/slides in as one block — a nested .hint re-animating independently on top of that caused visible overlap/jank, e.g. the confidence checklist on the "Was the complaint valid?" step */
.crc-scope .q-body {opacity:0;animation:riseIn .5s .2s cubic-bezier(.2,.8,.2,1) forwards;}
@keyframes riseIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}
.crc-scope .stage-inner.exit {animation:slideOutLeft .18s ease forwards;}
.crc-scope .stage-inner.exit-back {animation:slideOutRight .18s ease forwards;}
@keyframes slideOutLeft{to{opacity:0;transform:translateX(-24px);}}
@keyframes slideOutRight{to{opacity:0;transform:translateX(24px);}}

.crc-scope .client-quote {background:var(--gx);border:1px solid var(--gb);border-radius:var(--r-card-lg);padding:22px 22px 20px 30px;font-size:15.5px;font-style:italic;color:var(--gd);line-height:1.6;position:relative;white-space:pre-line;}
.crc-scope .client-quote::before {content:'"';position:absolute;top:6px;left:10px;font-size:36px;line-height:1;color:var(--gb);font-family:Georgia,serif;font-style:normal;}
.crc-scope .client-quote::before {content:'"';position:absolute;top:-8px;left:14px;font-size:52px;color:var(--gb);font-family:Georgia,serif;}
.crc-scope .attach-row {display:flex;gap:8px;margin-top:14px;}
.crc-scope .attach-pill {background:#fff;border:1px solid var(--s200);border-radius:var(--r-pill);padding:6px 12px;font-size:12px;font-weight:600;color:var(--s700);display:flex;align-items:center;gap:6px;}

.crc-scope .meta-grid {display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;border:1px solid var(--s150);border-radius:var(--r-card);overflow:hidden;margin-bottom:18px;}
.crc-scope .meta-cell {padding:13px 16px;border-bottom:1px solid var(--s100);border-right:1px solid var(--s100);}
.crc-scope .meta-cell:nth-child(2n) {border-right:none;}
.crc-scope .meta-cell:nth-last-child(-n+2) {border-bottom:none;}
.crc-scope .meta-cell .l {font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--s400);font-weight:700;margin-bottom:3px;}
.crc-scope .meta-cell .v {font-size:13.5px;font-weight:600;}
.crc-scope .priority-hi {color:var(--rd);}

.crc-scope .status-line {font-size:12.5px;color:var(--s500);margin-top:12px;}

.crc-scope .opt-grid {display:flex;flex-wrap:wrap;gap:10px;}
.crc-scope .opt {border:1.5px solid var(--s200);background:#fff;padding:12px 18px;border-radius:var(--r-card);font-size:14px;font-weight:500;cursor:pointer;transition:var(--tr);color:var(--s700);}
.crc-scope .opt:hover {border-color:var(--gb);background:var(--gx);transform:translateY(-1px);}
.crc-scope .opt.sel {background:var(--g);border-color:var(--g);color:#fff;box-shadow:0 4px 14px rgba(30,92,30,.25);}
.crc-scope .opt.sel.rd {background:var(--rd);border-color:var(--rd);box-shadow:0 4px 14px rgba(139,32,32,.2);}

.crc-scope .template-row {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.crc-scope .tpl {background:#fff;border:1.5px solid var(--s200);border-radius:var(--r-pill);padding:7px 14px;font-size:12.5px;font-weight:600;cursor:pointer;transition:var(--tr);color:var(--s700);}
.crc-scope .tpl:hover {border-color:var(--gb);background:var(--gx);}
.crc-scope .tpl.sel {background:var(--g);border-color:var(--g);color:#fff;}

.crc-scope .check-list {display:flex;flex-direction:column;gap:1px;background:var(--s100);border-radius:var(--r-card);overflow:hidden;border:1px solid var(--s150);}
.crc-scope .check-item {background:#fff;display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;transition:var(--tr);}
.crc-scope .check-item:hover {background:var(--gx);}
.crc-scope .chk {width:20px;height:20px;border-radius:6px;border:1.5px solid var(--s200);flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;transition:var(--tr);}
.crc-scope .chk.on {background:var(--g);border-color:var(--g);transform:scale(1.05);}
.crc-scope .known-line {display:flex;align-items:center;gap:12px;padding:12px 4px;font-size:14.5px;color:var(--s700);}
.crc-scope .known-line .tick {color:var(--g);font-weight:700;width:18px;text-align:center;}
.crc-scope .known-line.missing {color:var(--s400);}
.crc-scope .known-line.missing .tick {color:#c8c4ba;}

.crc-scope .staff-card {background:#fff;border:1px solid var(--s150);border-radius:var(--r-card);margin-bottom:10px;overflow:hidden;transition:var(--tr);}
.crc-scope .staff-head {display:flex;align-items:center;gap:14px;padding:16px 18px;cursor:pointer;}
.crc-scope .avatar {width:38px;height:38px;border-radius:50%;background:var(--gl);color:var(--g);font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.crc-scope .staff-name {font-weight:600;font-size:14.5px;}
.crc-scope .staff-status {font-size:12px;font-weight:600;margin-left:auto;padding:4px 10px;border-radius:var(--r-tag);}
.crc-scope .staff-status.notsent {background:var(--s100);color:var(--s500);}
.crc-scope .staff-status.awaiting {background:var(--al);color:var(--am);}
.crc-scope .staff-status.received {background:var(--gl);color:var(--gd);}
.crc-scope .staff-status.overridden {background:var(--s150);color:var(--s600);}
.crc-scope .mini-btn {border:1px solid var(--s200);background:#fff;padding:7px 14px;border-radius:var(--r-tag);font-size:12.5px;font-weight:600;cursor:pointer;transition:var(--tr);}
.crc-scope .mini-btn:hover {border-color:var(--g);color:var(--g);}
.crc-scope .staff-body {padding:0 18px 18px;border-top:1px solid var(--s100);}
.crc-scope .sq {font-size:12px;font-weight:700;color:var(--s500);margin:12px 0 4px;}
.crc-scope .sa {font-size:13.5px;color:var(--s700);line-height:1.5;}
.crc-scope .privacy-note {font-size:11.5px;color:var(--s400);font-style:italic;margin-top:10px;}

.crc-scope textarea, .crc-scope input[type=text] {width:100%;padding:13px 15px;border:1.5px solid var(--s200);border-radius:var(--r-card);font-size:14.5px;font-family:var(--font);transition:var(--tr);}
.crc-scope textarea {min-height:90px;resize:vertical;}
.crc-scope textarea:focus, .crc-scope input:focus {outline:none;border-color:var(--g);box-shadow:0 0 0 4px var(--gl);}

.crc-scope .suggestion-card {background:linear-gradient(135deg,var(--al),#fff);border:1px solid var(--ab);border-radius:var(--r-card-lg);padding:18px 20px;margin-bottom:22px;}
.crc-scope .suggestion-card .tag {font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--am);margin-bottom:6px;}
.crc-scope .suggestion-card .rec {font-size:16px;font-weight:700;color:var(--s900);}
.crc-scope .suggestion-card .why {font-size:12.5px;color:var(--s500);margin-top:4px;}
.crc-scope .sim-toggle {display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--s500);background:var(--s50);border:1px dashed var(--s200);padding:8px 12px;border-radius:var(--r-pill);margin-bottom:20px;cursor:pointer;}
.crc-scope .section-label {font-size:12.5px;font-weight:700;color:var(--s500);text-transform:uppercase;letter-spacing:.4px;margin:22px 0 10px;}
.crc-scope .section-label:first-of-type {margin-top:0;}
.crc-scope .note-banner {background:var(--bll);border:1px solid var(--bb);border-radius:var(--r-tag);padding:12px 16px;font-size:12.5px;color:var(--bl);margin-bottom:20px;line-height:1.5;}

.crc-scope .id-header {display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--s150);border-radius:var(--r-card-lg);padding:18px 20px;margin-bottom:18px;}
.crc-scope .id-avatar {width:52px;height:52px;border-radius:50%;background:var(--gl);color:var(--g);font-weight:700;font-size:19px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.crc-scope .id-name {font-size:17px;font-weight:700;color:var(--s900);}
.crc-scope .id-sub {font-size:12.5px;color:var(--s500);margin-top:2px;}
.crc-scope .id-priority {margin-left:auto;flex:0 0 auto;text-align:right;}
.crc-scope .id-priority .pbadge {background:var(--rl);color:var(--rd);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;padding:4px 12px;border-radius:var(--r-pill);}
.crc-scope .id-priority .psub {font-size:11px;color:var(--s400);margin-top:5px;}

.crc-scope .fact-row {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;}
.crc-scope .fact-chip {background:var(--s50);border:1px solid var(--s150);border-radius:var(--r-pill);padding:6px 13px;font-size:12px;font-weight:600;color:var(--s700);display:inline-flex;align-items:center;gap:6px;}
.crc-scope .fact-chip.pos {background:var(--gl);border-color:var(--gb);color:var(--gd);}
.crc-scope .fact-chip .ic {flex:0 0 auto;opacity:.75;}

.crc-scope .quote-wrap {position:relative;}

.crc-scope .photo-row {display:flex;gap:8px;}
.crc-scope .attach-summary {margin-top:14px;margin-bottom:4px;}
.crc-scope .photo-thumb {width:52px;height:52px;border-radius:var(--r-tag);background:linear-gradient(135deg,var(--gb),var(--gl));border:1px solid var(--gb);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:var(--g);flex:0 0 auto;}
.crc-scope .photo-thumb-link{width:64px;height:64px;border-radius:var(--r-tag);border:1px solid var(--gb);flex:0 0 auto;display:block;overflow:hidden;position:relative;cursor:pointer;background:var(--gl);text-decoration:none;}
.crc-scope .photo-thumb-link img{width:100%;height:100%;object-fit:cover;display:block;}
.crc-scope .photo-thumb-link.is-video{display:flex;align-items:center;justify-content:center;color:var(--g);}
.crc-scope .photo-thumb-link .thumb-more{position:absolute;inset:0;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;}
.crc-scope .attach-caption {display:flex;align-items:center;gap:6px;font-size:12px;color:var(--s500);margin-top:8px;}

.crc-scope .two-up {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0;}

/* ADDED — Client Interactions / CRC Phase Redesign. Persistent case summary
   panel + status banner + collapsible phase rail, replacing the old
   unlabeled dot rail. Split into a narrow left rail (phase checklist) +
   main panel (case identity/next-action/health + step content) so the
   step content isn't pushed down by a tall full-width banner — see
   .crc-split/.crc-rail/.crc-main/.crc-context below. */
.crc-scope {--crc-rail-w: 320px;}
.crc-scope .crc-split {position:absolute;top:64px;bottom:0;left:0;right:0;display:flex;}
/* The short complaint process (6 Oct 2026; redesigned 7 Oct) */
.crc-scope.crc-quick-on .crc-rail, .crc-scope.crc-quick-on .actionbar {display:none !important;}
/* Simple view heading (7 Oct 2026): one header in the case itself; the old
   top-bar bits, next-step line and deadline strip are hidden. */
.crc-scope.crc-quick-on .topbar .back-btn, .crc-scope.crc-quick-on .topbar .path, .crc-scope.crc-quick-on .topbar .story-btn:not(.cq-keep), .crc-scope.crc-quick-on .topbar .case-chip, .crc-scope.crc-quick-on #crcNextStep, .crc-scope.crc-quick-on #crcPolicy {display:none !important;}
.crc-scope.crc-quick-on .topbar {justify-content:flex-end;}
.crc-scope.crc-quick-on #crcPolicyBanner {margin-top:64px;}
.crc-scope.crc-quick-on #crcPolicyBanner > div {padding-top:8px !important;padding-bottom:8px !important;font-size:13px;}
.cq-due {font-size:11.5px;font-weight:800;padding:2px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;} .cq-due.late {background:#fee2e2;color:#b91c1c;}
.cx-more {position:relative;display:inline-block;} .cx-more > summary {list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;} .cx-more > summary::-webkit-details-marker {display:none;}
.cx-more-menu {position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 12px 32px rgba(16,24,40,.14);padding:6px;min-width:230px;z-index:60;}
.cx-more-menu button {display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:none;background:none;padding:9px 10px;border-radius:8px;font-size:13px;font-weight:600;color:#1f2937;cursor:pointer;font-family:inherit;}
.cx-more-menu button:hover {background:#f3f4f6;} .cx-more-menu hr {border:none;border-top:1px solid #f1f5f9;margin:4px 0;}
.cq {--cq-g:#1E5C1E;--cq-gl:#ecf6ee;--cq-line:#e6e9e7;--cq-mute:#64748b;--cq-ai:#6d28d9;max-width:900px;margin:0 auto;padding:4px 4px 48px;font-size:14px;color:#1f2937;line-height:1.5;}
.cq-head {display:flex;align-items:center;gap:14px;margin:0 0 18px;flex-wrap:wrap;}
.cq-hav {width:46px;height:46px;border-radius:50%;background:var(--cq-gl);color:var(--cq-g);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;flex:none;}
.cq-eyebrow {font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--cq-g);}
.cq-title {font-size:22px;font-weight:800;color:#111827;line-height:1.2;margin:2px 0 4px;}
.cq-meta {display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:12.5px;color:var(--cq-mute);}
.cq-meta > span:not(.cq-prio)+span:not(.cq-prio)::before {content:'·';margin-right:8px;}
.cq-prio {font-size:11px;font-weight:800;padding:2px 9px;border-radius:999px;background:#f1f5f9;color:#475569;}
.cq-prio.high, .cq-prio.critical, .cq-prio.urgent {background:#fee2e2;color:#b91c1c;} .cq-prio.medium {background:#fef3c7;color:#92400e;}
.cq-head-a {display:flex;gap:14px;align-items:center;}
.cq-steps {display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 18px;}
.cq-step {display:flex;align-items:center;gap:10px;text-align:left;background:#fff;border:1.5px solid var(--cq-line);border-radius:12px;padding:10px 12px;cursor:pointer;font-family:inherit;color:#94a3b8;transition:border-color .15s,box-shadow .15s;}
.cq-step:disabled {cursor:default;opacity:.75;}
.cq-step b {display:block;font-size:14px;color:inherit;} .cq-step small {display:block;font-size:11.5px;color:#94a3b8;font-weight:500;}
.cq-step.done {color:var(--cq-g);border-color:#cfe6d3;background:#f7fbf8;}
.cq-step.now {color:#111827;border-color:var(--cq-g);box-shadow:0 0 0 3px rgba(30,92,30,.10);}
.cq-step.viewing {box-shadow:0 0 0 3px rgba(30,92,30,.18);}
.cq-dot {width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#eef1f4;color:#64748b;font-size:13px;font-weight:800;flex:none;}
.cq-step.done .cq-dot {background:var(--cq-g);color:#fff;} .cq-step.now .cq-dot {background:#111827;color:#fff;}
.cq-card {background:#fff;border:1px solid var(--cq-line);border-radius:14px;padding:18px 20px;margin:0 0 14px;box-shadow:0 1px 2px rgba(16,24,40,.04);}
.cq-label {font-size:11px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;}
.cq-hint {color:var(--cq-mute);font-size:12.5px;font-weight:400;text-transform:none;letter-spacing:0;}
.cq-p {margin:0 0 10px;color:#334155;}
.cq-sub {font-size:11px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.5px;margin:16px 0 8px;}
.cq-quote {margin:0;padding:12px 16px;border-left:4px solid var(--cq-g);background:#f8faf9;border-radius:0 10px 10px 0;font-size:15px;line-height:1.6;color:#111827;}
.cq-want {margin-top:10px;font-size:13.5px;} .cq-want span {font-size:11px;font-weight:800;color:var(--cq-g);text-transform:uppercase;letter-spacing:.5px;margin-right:8px;}
.cq-facts {display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.cq-fact {background:#f8fafc;border:1px solid #eef1f4;border-radius:10px;padding:6px 10px;font-size:13px;font-weight:600;color:#1f2937;}
.cq-fact small {display:block;font-size:10.5px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.4px;}
.cq-att {display:flex;flex-wrap:wrap;gap:8px;} .cq-att img {width:104px;height:104px;object-fit:cover;border-radius:10px;border:1px solid var(--cq-line);display:block;}
.cq-thumb {padding:0;border:none;background:none;cursor:zoom-in;font-family:inherit;} .cq-thumb span {display:none;}
.cq-thumb.bad {width:104px;height:104px;border:1px dashed var(--cq-line);border-radius:10px;background:#f8fafc;display:flex;align-items:center;justify-content:center;padding:6px;cursor:pointer;} .cq-thumb.bad span {display:block;font-size:11.5px;color:#475569;word-break:break-all;}
.cq-nav {position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.15);border:none;color:#fff;width:44px;height:44px;border-radius:50%;font-size:26px;cursor:pointer;} .cq-nav.l {left:16px;} .cq-nav.r {right:16px;}
.cq-nopv {color:#fff;font-size:14px;padding:40px;} #cq-viewer img {max-width:90vw;max-height:82vh;object-fit:contain;border-radius:6px;}
.cq-coach {border:1px solid var(--cq-line);border-radius:12px;padding:12px;margin-top:10px;background:#fff;} .cq-coach-h {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;font-size:13.5px;}
.cq-file {font-size:12.5px;} .cq-notes {background:#fffdf5;border:1px solid #f5ecc9;border-radius:10px;padding:10px 12px;font-size:13px;}
.cq-collapse summary {cursor:pointer;list-style:none;display:flex;flex-direction:column;gap:4px;} .cq-collapse summary::-webkit-details-marker {display:none;}
.cq-collapse[open] summary {margin-bottom:12px;} .cq-collapse[open] .cq-peek {display:none;}
.cq-peek {color:#334155;font-size:13.5px;} .cq-collapse summary::after {content:'Show more';font-size:12px;color:#1d4ed8;font-weight:700;} .cq-collapse[open] summary::after {content:'Show less';}
.cq-tiles {display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;}
.cq-tile {display:flex;gap:10px;align-items:flex-start;border:1.5px solid var(--cq-line);border-radius:12px;padding:10px 12px;cursor:pointer;background:#fff;transition:border-color .15s,background .15s;}
.cq-tile input {position:absolute;opacity:0;pointer-events:none;}
.cq-tile b {display:block;font-size:13px;font-weight:600;color:#1f2937;line-height:1.35;} .cq-tile small {display:block;font-size:11.5px;color:var(--cq-mute);margin-top:2px;}
.cq-box {width:20px;height:20px;border-radius:6px;border:1.5px solid #cbd5e1;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#fff;flex:none;margin-top:1px;}
.cq-tile.on {border-color:var(--cq-g);background:var(--cq-gl);} .cq-tile.on .cq-box {background:var(--cq-g);border-color:var(--cq-g);}
.cq-tile:focus-within {box-shadow:0 0 0 3px rgba(30,92,30,.18);}
.cq-prior {display:flex;gap:10px;align-items:center;padding:8px 10px;border:1px solid #eef1f4;border-radius:10px;margin-bottom:6px;text-decoration:none;color:#1f2937;font-size:13px;} .cq-prior:hover {background:#f8fafc;}
.cq-prior span {color:var(--cq-mute);flex:1;} .cq-pilltag {flex:none !important;font-size:11px;font-weight:700;background:#f1f5f9;border-radius:999px;padding:1px 8px;}
.cq-grid2 {display:grid;grid-template-columns:1fr 1fr;gap:14px;} .cq-grid2 > .cq-card {margin:0 0 14px;}
@media (max-width:760px){ .cq-grid2, .cq-steps {grid-template-columns:1fr;} }
.cq-person, .cq-acc summary {display:flex;align-items:center;gap:10px;padding:8px 0;}
.cq-person + .cq-person, .cq-acc + .cq-acc, .cq-person + .cq-acc, .cq-acc + .cq-person {border-top:1px solid #f1f5f9;}
.cq-acc summary {cursor:pointer;list-style:none;} .cq-acc summary::-webkit-details-marker {display:none;}
.cq-acc-b {padding:4px 0 10px 44px;}
.cq-av {width:34px;height:34px;border-radius:50%;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:none;}
.cq-pn {flex:1;min-width:0;} .cq-pn b {display:block;font-size:13.5px;} .cq-pn small {display:block;font-size:12px;color:var(--cq-mute);}
.cq-st {display:inline-block;font-size:11.5px;font-weight:800;padding:3px 10px;border-radius:999px;background:#f1f5f9;color:#475569;white-space:nowrap;}
.cq-st.ok {background:#dcfce7;color:#166534;} .cq-st.wait, .cq-st.warn {background:#fef3c7;color:#92400e;} .cq-st.bad {background:#fee2e2;color:#b91c1c;}
.cq-qa {padding:8px 12px;border-left:3px solid #e2e8f0;margin:6px 0;background:#fafbfc;border-radius:0 8px 8px 0;} .cq-qa small {display:block;color:var(--cq-mute);font-size:12px;margin-bottom:2px;}
.cq-donebox {display:inline-block;background:#ecfdf3;color:#166534;font-weight:700;border-radius:10px;padding:8px 12px;font-size:13px;} .cq-donebox.sm {padding:5px 10px;font-size:12.5px;}
.cq-btn {border:1.5px solid var(--cq-g);background:var(--cq-g);color:#fff;border-radius:10px;padding:8px 14px;font-weight:700;cursor:pointer;font-family:inherit;font-size:13px;transition:filter .15s;}
.cq-btn:hover {filter:brightness(1.08);} .cq-btn.sm {padding:5px 11px;font-size:12px;border-radius:8px;} .cq-btn.lg {padding:11px 20px;font-size:14px;}
.cq-btn.ghost {background:#fff;color:var(--cq-g);} .cq-btn.primary {background:var(--cq-g);}
.cq-btn.ai {background:var(--cq-ai);border-color:var(--cq-ai);} .cq-btn.ai.ghost {background:#fff;color:var(--cq-ai);}
.cq-btn:disabled {opacity:.4;cursor:not-allowed;filter:none;}
.cq-link {background:none;border:none;color:#1d4ed8;font-weight:700;cursor:pointer;padding:0;font-family:inherit;font-size:12.5px;}
.cq-link:hover {text-decoration:underline;}
.cq-actions {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;position:sticky;bottom:10px;z-index:3;padding:12px 14px;margin-top:6px;background:#fff;border:1px solid var(--cq-line);border-radius:14px;box-shadow:0 8px 24px rgba(16,24,40,.10);}
.cq-in {width:100%;box-sizing:border-box;border:1.5px solid #e2e8f0;border-radius:10px;padding:9px 12px;font-family:inherit;font-size:13.5px;line-height:1.55;background:#fff;}
.cq-in:focus, .cq-mail textarea:focus {outline:none;border-color:var(--cq-g);box-shadow:0 0 0 3px rgba(30,92,30,.12);}
.cq-seg {display:inline-flex;flex-wrap:wrap;gap:0;border:1.5px solid var(--cq-line);border-radius:12px;overflow:hidden;}
.cq-seg button {border:none;background:#fff;padding:9px 16px;font-weight:700;font-size:13px;cursor:pointer;font-family:inherit;color:#334155;display:inline-flex;align-items:center;gap:6px;}
.cq-seg button + button {border-left:1.5px solid var(--cq-line);}
.cq-seg button small {font-size:10px;font-weight:800;color:var(--cq-ai);background:#f3e8ff;border-radius:6px;padding:0 5px;}
.cq-seg button.on.yes {background:#fee2e2;color:#991b1b;} .cq-seg button.on.partly {background:#fef3c7;color:#92400e;} .cq-seg button.on.no {background:#dcfce7;color:#166534;}
.cq-causes {display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px 18px;}
.cq-cg small {display:block;font-size:11px;font-weight:800;color:#94a3b8;text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px;}
.cq-chk {display:flex;align-items:flex-start;gap:8px;padding:6px 8px;border-radius:8px;cursor:pointer;font-size:13px;line-height:1.4;} .cq-chk:hover {background:#f8fafc;}
.cq-chk input {margin-top:3px;accent-color:var(--cq-g);} .cq-chk.on {background:var(--cq-gl);font-weight:600;}
.cq-chks {display:flex;flex-wrap:wrap;gap:6px 16px;}
.cq-aitag {font-size:10px;font-weight:800;color:var(--cq-ai);background:#f3e8ff;border-radius:6px;padding:0 5px;}
.cq-chip {display:inline-block;font-size:12px;font-weight:600;background:#f1f5f9;color:#334155;border-radius:999px;padding:3px 10px;margin:0 6px 6px 0;}
.cq-proc {display:flex;gap:12px;align-items:flex-start;border:1.5px dashed #b7d7bd;background:#f7fbf8;border-radius:12px;padding:12px 14px;}
.cq-proc.chosen {border-style:solid;border-color:var(--cq-g);}
.cq-always {margin-top:12px;font-size:12.5px;color:#166534;background:#ecfdf3;border-radius:8px;padding:7px 10px;font-weight:600;}
.cq-mail {border:1.5px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#fff;}
.cq-mail-h {padding:8px 12px;border-bottom:1px solid #eef1f4;background:#f8fafc;font-size:13px;} .cq-mail-h small {color:#94a3b8;font-weight:700;margin-right:6px;}
.cq-mail textarea {width:100%;box-sizing:border-box;border:none;padding:12px 14px;font-family:inherit;font-size:13.5px;line-height:1.6;resize:vertical;display:block;}
.cq-ai {border-color:#e4dcfb;background:linear-gradient(180deg,#faf8ff 0%,#fff 60%);}
.cq-ai-h {display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap;} .cq-ai-h b {font-size:14px;color:#3b0764;}
.cq-ai-badge {font-size:10.5px;font-weight:900;letter-spacing:.5px;color:#fff;background:linear-gradient(135deg,#7c3aed,#4f46e5);border-radius:6px;padding:2px 7px;}
.cq-ai-meta {font-size:12px;color:var(--cq-mute);}
.cq-ai-sec {margin-bottom:12px;} .cq-ai-sec small, .cq-ai-tile small {display:block;font-size:11px;font-weight:800;color:#7c3aed;text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px;}
.cq-ai-sec ul {margin:0;padding-left:18px;} .cq-ai-sec li {margin:3px 0;}
.cq-ai-row {display:grid;grid-template-columns:1fr 1.4fr;gap:10px;} @media (max-width:760px){ .cq-ai-row {grid-template-columns:1fr;} }
.cq-ai-tile {background:#fff;border:1px solid #ede9fe;border-radius:10px;padding:10px 12px;}
.cq-ai-load span {display:block;height:12px;border-radius:6px;margin:0 0 9px;background:linear-gradient(90deg,#efeafe 25%,#e2d9fd 50%,#efeafe 75%);background-size:200% 100%;animation:cqShimmer 1.2s infinite linear;}
@keyframes cqShimmer {0%{background-position:200% 0;}100%{background-position:-200% 0;}}
.cq-banner {display:flex;align-items:flex-start;gap:10px;border-radius:12px;padding:10px 12px;margin:0 0 12px;font-size:13px;line-height:1.5;}
.cq-banner > div {flex:1;} .cq-bi {width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;flex:none;color:#fff;margin-top:1px;}
.cq-banner.warn {background:#fffbeb;border:1px solid #fde68a;color:#78350f;} .cq-banner.warn .cq-bi {background:#d97706;}
.cq-banner.info {background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;} .cq-banner.info .cq-bi {background:#2563eb;}
.cq-banner.danger {background:#fef2f2;border:1px solid #fecaca;color:#7f1d1d;} .cq-banner.danger .cq-bi {background:#dc2626;}
.cq-plan {border-left:4px solid var(--cq-g);} .cq-plan-o {font-size:17px;font-weight:800;color:#111827;}
.cq-do-h {display:flex;align-items:center;gap:10px;margin-bottom:12px;} .cq-do-h b {font-size:15px;}
.cq-do.done {background:#fbfdfb;border-color:#d7eadb;} .cq-do.done .cq-dot {background:var(--cq-g);color:#fff;}
.cq-do-b {padding-left:38px;} @media (max-width:760px){ .cq-do-b {padding-left:0;} }
.crc-scope .crc-rail {flex:0 0 var(--crc-rail-w);width:var(--crc-rail-w);overflow-y:auto;background:rgba(250,250,248,.97);backdrop-filter:blur(6px);border-right:1px solid var(--s150);padding:18px 12px 100px;}
.crc-scope .crc-main {flex:1;min-width:0;overflow-y:auto;padding:28px 24px 120px;display:flex;flex-direction:column;align-items:center;}
.crc-scope .crc-context {width:100%;max-width:640px;margin-bottom:6px;}
@media (max-width: 900px) {
  .crc-scope .crc-split {flex-direction:column;position:static;}
  .crc-scope .crc-rail {width:100%;flex:0 0 auto;border-right:none;border-bottom:1px solid var(--s150);max-height:34vh;}
}
.crc-scope .crc-summary-panel {display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--s150);border-radius:var(--r-card);padding:12px 14px;margin:0 0 10px;width:100%;}
.crc-scope .crc-summary-id {display:flex;align-items:center;gap:10px;min-width:0;}
.crc-scope .crc-summary-name {font-weight:700;font-size:13.5px;color:var(--s900);}
.crc-scope .crc-summary-caseid {font-weight:500;color:var(--s500);font-size:12px;}
.crc-scope .crc-summary-sub {font-size:11px;color:var(--s500);margin-top:2px;}
.crc-scope .crc-summary-stats {display:flex;gap:10px 14px;flex-wrap:wrap;}
.crc-scope .crc-summary-stat {display:flex;flex-direction:column;gap:2px;min-width:56px;}
.crc-scope .crc-summary-stat .l {font-size:9.5px;font-weight:700;color:var(--s500);text-transform:uppercase;letter-spacing:.4px;}
.crc-scope .crc-summary-stat .v {font-size:12.5px;font-weight:600;color:var(--s900);}
.crc-scope .crc-sla-pill {display:inline-block;padding:2px 10px;border-radius:var(--r-pill);font-size:11px;font-weight:700;width:fit-content;}
.crc-scope .crc-sla-pill.sla-red {background:var(--danger-soft);color:var(--danger);}
.crc-scope .crc-sla-pill.sla-amber {background:var(--warning-soft);color:var(--warning);}
.crc-scope .crc-sla-pill.sla-green {background:var(--success-soft);color:var(--success);}
.crc-scope .crc-next-action {background:#fff;border:1px solid var(--s150);border-left:4px solid var(--g);border-radius:var(--r-tag);padding:11px 14px;margin:0 0 10px;width:100%;}
.crc-scope .crc-next-action.overdue {border-left-color:var(--danger);background:var(--danger-soft);}
.crc-scope .crc-next-action-label {font-size:10px;font-weight:700;letter-spacing:.5px;color:var(--s500);margin-bottom:3px;}
.crc-scope .crc-next-action.overdue .crc-next-action-label {color:var(--danger);}
.crc-scope .crc-next-action-title {font-size:14.5px;font-weight:700;color:var(--s900);}
.crc-scope .crc-assess {background:#fff;border:1px solid var(--s150);border-left:4px solid #2563eb;border-radius:var(--r-tag);padding:11px 14px;margin:0 0 10px;width:100%;font-size:12px;color:var(--s700);}
.crc-scope .crc-assess.late {border-left-color:var(--danger);}
.crc-scope .crc-assess.late .crc-next-action-label {color:var(--danger);}
.crc-scope .crc-assess.done {border-left-color:var(--g);}
.crc-scope .crc-assess-row {margin-top:2px;line-height:1.45;}
.crc-scope .crc-assess-steps {list-style:none;margin:8px 0 0;padding:0;}
.crc-scope .crc-assess-steps li {display:flex;align-items:center;gap:6px;padding:2px 0;color:var(--s500);}
.crc-scope .crc-assess-steps li span {width:11px;height:11px;border:1.5px solid var(--s300,#cbd5e1);border-radius:50%;display:inline-block;flex-shrink:0;}
.crc-scope .crc-assess-steps li.ok {color:var(--s800,#1f2937);}
.crc-scope .crc-assess-steps li.ok svg {color:var(--g);flex-shrink:0;}
.crc-scope .crc-assess-since {font-size:10px;font-weight:700;letter-spacing:.5px;color:var(--s500);margin:10px 0 3px;}
.crc-scope .crc-assess-log {display:flex;justify-content:space-between;gap:8px;padding:2px 0;line-height:1.35;}
.crc-scope .crc-assess-log span {color:var(--s400);white-space:nowrap;font-size:11px;}
.crc-scope .crc-next-action-sub {font-size:12px;color:var(--s500);margin-top:2px;}
.crc-scope .crc-health-card {background:#fff;border:1px solid var(--s150);border-radius:var(--r-tag);padding:10px 14px;margin:0 0 10px;width:100%;cursor:pointer;}
.crc-scope .crc-health-card.tone-watch {border-color:color-mix(in srgb, var(--warning) 35%, var(--s150));}
.crc-scope .crc-health-card.tone-critical {border-color:color-mix(in srgb, var(--danger) 35%, var(--s150));}
.crc-scope .crc-health-top {display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--s900);}
.crc-scope .crc-health-issues {display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}
.crc-scope .crc-health-issue {font-size:11px;font-weight:600;padding:3px 10px;border-radius:var(--r-pill);}
.crc-scope .crc-health-issue.level-critical {background:var(--danger-soft);color:var(--danger);}
.crc-scope .crc-health-issue.level-warning {background:var(--warning-soft);color:var(--warning);}
.crc-scope .crc-health-issue.level-info {background:var(--s100);color:var(--s500);}
.crc-scope .crc-health-issue.level-ok {background:var(--success-soft);color:var(--success);}
.crc-scope .phase-rail {display:flex;flex-direction:column;gap:4px;width:100%;}
.crc-scope .phase-chip-group {display:flex;flex-direction:column;}
.crc-scope .phase-chip {display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:var(--r-tag);background:#fff;border:1px solid var(--s150);cursor:pointer;font-size:12.5px;font-weight:600;color:var(--s700);}
.crc-scope .phase-chip.phase-locked {cursor:default;color:var(--s400);background:var(--s50);}
.crc-scope .phase-chip.phase-current {border-color:var(--g);background:var(--gl);color:var(--g);}
.crc-scope .phase-chip.phase-done {color:var(--s600);}
.crc-scope .phase-chip-icon {width:19px;height:19px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:700;background:var(--s150);color:var(--s500);flex:0 0 auto;}
.crc-scope .phase-chip.phase-done .phase-chip-icon {background:var(--g);color:#fff;}
.crc-scope .phase-chip.phase-current .phase-chip-icon {background:var(--g);color:#fff;}
.crc-scope .phase-chip-progress {margin-left:auto;font-size:10.5px;color:var(--s400);font-weight:600;}
.crc-scope .phase-substeps {display:flex;flex-wrap:wrap;gap:6px;padding:6px 14px 8px 41px;}
.crc-scope .phase-substep {font-size:11px;font-weight:600;padding:4px 10px;border-radius:var(--r-pill);background:var(--s100);color:var(--s500);cursor:default;}
.crc-scope .phase-substep.done {background:var(--gl);color:var(--g);cursor:pointer;}
.crc-scope .phase-substep.current {background:var(--g);color:#fff;cursor:pointer;}
.crc-scope .phase-substep.locked {background:var(--s100);color:var(--s300);}
.crc-scope .phase-substep.skipped {background:var(--s100);color:var(--s300);text-decoration:line-through;}
.crc-scope .crc-topbar-phase {font-size:12px;font-weight:600;color:var(--s600);}

.crc-scope .mini-card {background:#fff;border:1px solid var(--s150);border-radius:var(--r-card);padding:14px 16px;}
.crc-scope .mini-card .l {font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--s400);font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:6px;}
.crc-scope .mini-card .l .ic {opacity:.75;flex:0 0 auto;}
.crc-scope .mini-card .v {font-size:13px;color:var(--s700);line-height:1.5;}
.crc-scope .waiting-card {text-align:center;padding:44px 30px;background:#fff;border:1px solid var(--s150);border-radius:var(--r-pill);}
.crc-scope .waiting-card .icon {width:52px;height:52px;border-radius:50%;background:var(--gl);color:var(--g);display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:22px;}
.crc-scope .waiting-card h3 {margin:0 0 8px;font-size:16.5px;}
.crc-scope .waiting-card p {color:var(--s500);font-size:13.5px;margin:0;}
.crc-scope .check-anim {display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--g);color:#fff;font-size:12px;transform:scale(0);animation:pop .35s cubic-bezier(.34,1.56,.64,1) forwards;}
@keyframes pop{to{transform:scale(1);}}
.crc-scope .finale {text-align:center;padding:60px 20px;}
.crc-scope .finale .burst {display:flex;justify-content:center;color:var(--g);margin-bottom:14px;animation:burstIn .5s cubic-bezier(.34,1.56,.64,1);}
@keyframes burstIn{0%{transform:scale(.3);opacity:0;}100%{transform:scale(1);opacity:1;}}

.crc-scope .actionbar {position:fixed;bottom:0;left:var(--crc-rail-w);right:0;background:linear-gradient(to top, var(--s50) 60%, rgba(250,250,248,0));padding:24px 20px 26px;display:flex;justify-content:center;z-index:38;}
@media (max-width: 900px) {
  .crc-scope .actionbar {left:0;}
}
.crc-scope .actionbar-inner {width:100%;max-width:620px;display:flex;flex-direction:column;gap:10px;}
.crc-scope .btn-continue {width:100%;padding:16px;border:none;border-radius:var(--r-card-lg);background:var(--g);color:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:var(--tr);box-shadow:0 6px 20px rgba(30,92,30,.25);}
.crc-scope .btn-continue:hover {background:var(--gd);transform:translateY(-1px);}
.crc-scope .btn-continue:disabled {background:var(--s150);color:var(--s400);box-shadow:none;cursor:not-allowed;transform:none;}
.crc-scope .btn-continue.escalate {background:var(--am);box-shadow:0 6px 20px rgba(154,90,10,.25);}
.crc-scope .btn-continue.escalate:hover {background:#7a4708;}
.crc-scope .btn-override {width:100%;padding:14px;border:1.5px solid #dc2626;border-radius:var(--r-card-lg);background:#fff;color:#dc2626;font-size:14px;font-weight:700;cursor:pointer;font-family:var(--font);transition:var(--tr);}
.crc-scope .btn-override:hover {background:#fef2f2;}
.crc-scope .btn-override:disabled {opacity:.5;cursor:not-allowed;}
.crc-scope .toast {position:fixed;bottom:100px;left:50%;transform:translateX(-50%) translateY(10px);background:var(--s900);color:#fff;padding:11px 20px;border-radius:24px;font-size:13px;font-weight:600;opacity:0;pointer-events:none;transition:all .25s;z-index:99;}
.crc-scope .toast.show {opacity:1;transform:translateX(-50%) translateY(0);}

