/* Shared counselor queue and detail view. No consumer selectors. */
.cdcw-workspace{max-width:1280px;margin:24px 0;color:#17233d;font:15px/1.5 system-ui,sans-serif;box-sizing:border-box}
.cdcw-workspace *{box-sizing:border-box}.cdcw-workspace fieldset{border:0;padding:0;margin:0;min-width:0}.cdcw-workspace h2{font-size:28px;line-height:1.25;margin:0 0 12px}.cdcw-workspace h3{font-size:19px;margin:0 0 12px}.cdcw-workspace h4{font-size:15px;margin:20px 0 6px}.cdcw-workspace p{margin:8px 0 16px}.cdcw-workspace small{color:#52627b;font-size:13px}.cdcw-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.cdcw-metrics>div{border:1px solid #d9e1ed;border-radius:10px;background:#fff;padding:16px}.cdcw-metrics strong{display:block;font-size:28px}.cdcw-metrics span{display:block}.cdcw-queue{display:grid;gap:12px;margin-top:20px}
.cdcw-workspace details.cdcw-record{scroll-margin-top:64px;padding:0;border:1px solid #d9e1ed;border-radius:10px;background:#fff;overflow:hidden}.cdcw-workspace details.cdcw-record>summary{display:grid;grid-template-columns:.75fr 1.25fr .6fr 1.15fr 1.25fr auto;align-items:start;gap:16px;padding:18px;cursor:pointer;list-style:none;min-height:60px;margin:0}.cdcw-workspace details.cdcw-record>summary>span{margin:0}.cdcw-record>summary::-webkit-details-marker{display:none}.cdcw-summary-field{min-width:0;overflow-wrap:anywhere}.cdcw-workspace .cdcw-summary-field>small{display:block;font-size:12px;font-weight:650;margin:0 0 5px;color:#52627b}.cdcw-workspace .cdcw-summary-field>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:0;color:#17233d}.cdcw-record[open]>summary .cdcw-summary-field>span{display:block}.cdcw-workspace .cdcw-open{color:#1555c6;font-weight:650;font-size:13px;margin:0}.cdcw-open:after{content:' +';}.cdcw-record[open] .cdcw-open:after{content:' ▴'}
.cdcw-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;border-top:1px solid #e1e7ef;padding:20px;max-width:1040px}.cdcw-panel{min-width:0;overflow-wrap:anywhere}.cdcw-workspace .cdse-assignment-cell{min-width:0}.cdcw-workspace .cdcw-history{grid-column:1 / -1;border-top:1px solid #e1e7ef;padding-top:14px}.cdcw-workspace .cdcw-history summary,.cdcw-workspace .cdcw-draft summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650}.cdcw-workspace .cdcw-draft{margin-bottom:16px;background:#f5f8fd;padding:0 12px;border-radius:8px}.cdcw-workspace label{display:block;font-weight:600;margin:12px 0}.cdcw-workspace textarea,.cdcw-workspace input[type=date]{display:block;width:100%;max-width:100%;border:1px solid #b8c6d9;border-radius:6px;background:#fff;color:#17233d;padding:10px;font:inherit;margin-top:6px}.cdcw-workspace textarea{resize:vertical;min-height:96px}.cdcw-workspace .cdse-assignment-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.cdcw-workspace .cdse-assignment-row label{white-space:normal}.cdcw-workspace .cdse-counselor-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.cdcw-workspace .cdse-counselor-controls input,.cdcw-workspace .cdse-counselor-controls select{max-width:100%;min-width:0}.cdcw-workspace .cdse-counselor-controls label{min-width:0;max-width:100%}.cdcw-workspace .cdse-assignment-help{display:block;margin-top:12px}
.cdcw-workspace .cdcw-primary,.cdcw-workspace .button-primary{background:#1465f5;color:#fff;border:1px solid #1465f5;border-radius:6px;padding:10px 16px;min-height:44px;white-space:normal;height:auto;line-height:1.4;cursor:pointer;font:600 14px/1.4 system-ui,sans-serif}.cdcw-workspace .cdcw-secondary{background:#fff;color:#1555c6;border:1px solid #b8c6d9;border-radius:6px;padding:10px 14px;min-height:44px;cursor:pointer;font:600 14px/1.4 system-ui,sans-serif}.cdcw-workspace button:disabled{opacity:.55;cursor:default}.cdcw-workspace :focus-visible{outline:3px solid #e69b00;outline-offset:3px}.cdcw-workspace .cdcw-preview{background:#f0f5ff;padding:16px;margin-top:16px;border-radius:8px}.cdcw-workspace [hidden]{display:none!important}.cdcw-workspace [data-cdcw-task]{white-space:pre-wrap;overflow-wrap:anywhere}.cdcw-notice{background:#eaf1ff;padding:12px;border-radius:8px}.cdcw-workspace .cdcw-check{font-weight:400}
@media(max-width:1000px){.cdcw-workspace details.cdcw-record>summary{grid-template-columns:repeat(3,minmax(0,1fr))}.cdcw-detail{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.cdcw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cdcw-workspace details.cdcw-record>summary{grid-template-columns:1fr 1fr;gap:12px;padding:14px}.cdcw-detail{padding:14px}.cdcw-workspace h2{font-size:24px}.cdcw-workspace .cdse-counselor-controls label{width:100%}.cdcw-workspace .cdse-counselor-controls input,.cdcw-workspace .cdse-counselor-controls select{width:100%}}

.cdcw-workspace .cdcw-task-copy{white-space:pre-wrap}.cdcw-workspace .cdcw-guidance-note{font-size:13px;color:#52627b}.cdcw-workspace select[name="assistance_focus"]{display:block;width:100%;max-width:100%;min-height:44px;margin-top:6px;white-space:normal}

/* Saved work stays subordinate and loads only when opened. */
.cdcw-saved-investigation{margin:16px 0;padding:14px;border:1px solid #dfe4ee;border-radius:10px;background:#fff}
.cdcw-saved-investigation summary{cursor:pointer;font-weight:600;padding:8px 0}
.cdcw-saved-investigation details{border-top:1px solid #dfe4ee;padding:8px 0}
.cdcw-saved-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6;margin-bottom:16px}
.cdcw-saved-copy ul{padding-left:20px}
.cdcw-draft-option{border-top:1px solid #dfe4ee;margin-top:16px;padding-top:16px}

.cdcw-workspace .cdcw-priority-help{display:block;font-weight:400;line-height:1.5;margin:6px 0 10px}.cdcw-workspace .cdcw-guidance-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px}

.cdcw-workspace .cdcw-frame{background:#fff;border:1px solid #d9e1ee;border-radius:10px;padding:16px;margin:16px 0}.cdcw-workspace .cdcw-frame h4{margin:0 0 8px}.cdcw-workspace .cdcw-frame dl{margin:12px 0}.cdcw-workspace .cdcw-frame dt{font-weight:600;margin-top:12px}.cdcw-workspace .cdcw-frame dd{margin:3px 0 0;line-height:1.5;font-size:14px;overflow-wrap:anywhere}.cdcw-workspace .cdcw-frame [data-cdcw-frame-status]{font-size:13px;color:#52627b}.cdcw-workspace .cdcw-frame button{margin:4px 8px 4px 0}

.cdcw-workspace .cdcw-demo-priorities{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.cdcw-workspace [data-demo-draft-result] p{white-space:pre-wrap;overflow-wrap:anywhere}.cdcw-workspace [data-demo-draft-result] button{margin-bottom:16px}


/* 0.1.177: make the adaptive investigation state primary for counselors. */
.cdcw-workspace .cdcw-glance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.cdcw-workspace .cdcw-glance>div,.cdcw-workspace .cdcw-staff-suggestion{border:1px solid #d9e1ed;border-radius:9px;background:#f8faff;padding:13px;min-width:0}
.cdcw-workspace .cdcw-glance-wide{grid-column:1 / -1}
.cdcw-workspace .cdcw-glance small,.cdcw-workspace .cdcw-staff-suggestion small{display:block;margin:0 0 5px;font-size:12px;font-weight:700;color:#52627b;text-transform:uppercase;letter-spacing:.025em}
.cdcw-workspace .cdcw-glance strong,.cdcw-workspace .cdcw-staff-suggestion strong{display:block;color:#17233d;line-height:1.45;overflow-wrap:anywhere}
.cdcw-workspace .cdcw-glance span,.cdcw-workspace .cdcw-staff-suggestion span{display:block;margin-top:4px;color:#52627b;line-height:1.45;overflow-wrap:anywhere}
.cdcw-workspace .cdcw-next-move{background:#eef5ff;border-color:#bfd2f2}
.cdcw-workspace .cdcw-next-move strong{font-size:16px}
.cdcw-workspace .cdcw-staff-suggestion{margin:12px 0 16px;background:#fffaf0;border-color:#ead8ad}
@media(max-width:600px){.cdcw-workspace .cdcw-glance{grid-template-columns:1fr}.cdcw-workspace .cdcw-glance-wide{grid-column:auto}.cdcw-workspace .cdcw-field-reason{grid-column:1 / -1}.cdcw-workspace .cdcw-field-next{grid-column:1 / -1}}


/* 0.1.179: simpler counselor AI control. */
.cdcw-workspace .cdcw-ai-control{margin-top:14px}
.cdcw-workspace .cdcw-ai-control>label{margin-top:0}
.cdcw-workspace .cdcw-ai-helper{margin:10px 0;border-top:1px solid #e1e7ef}
.cdcw-workspace .cdcw-ai-helper>summary{cursor:pointer;min-height:44px;padding:11px 0;font-weight:650;color:#1555c6}
.cdcw-workspace .cdcw-ai-helper .cdcw-demo-priorities{margin:4px 0 12px}
.cdcw-workspace .cdcw-ai-control>.cdcw-primary{margin-top:12px}
.cdcw-workspace .cdcw-ai-context dl{display:grid;grid-template-columns:140px 1fr;gap:5px 14px}
.cdcw-workspace .cdcw-ai-context dt{margin-top:8px}
.cdcw-workspace .cdcw-ai-context dd{margin-top:8px}
@media(max-width:600px){.cdcw-workspace .cdcw-ai-context dl{grid-template-columns:1fr;gap:0}.cdcw-workspace .cdcw-ai-context dd{margin-top:2px;margin-bottom:8px}}

/* 0.1.180: live public demo conversion and sharing, kept subordinate to the AI task. */
.cdcw-demo-convert{margin-top:16px;padding:14px 15px;border:1px solid #d9e4ff;border-radius:10px;background:#f8faff}
.cdcw-demo-convert>strong,.cdcw-demo-convert>span{display:block}.cdcw-demo-convert>span{margin:4px 0 10px;color:#52627b;font-size:13px;line-height:1.45}
.cdcw-demo-convert>div{display:flex;flex-wrap:wrap;gap:8px}.cdcw-link-button{display:inline-flex;align-items:center;text-decoration:none}
.cdcw-demo-convert p{margin:8px 0 0;font-size:12px;color:#52627b}

/* 0.1.181: quieter live demo, stable in-place AI revisions. */
.cdcw-demo-workspace .cdcw-detail{grid-template-columns:minmax(0,1fr);max-width:920px}
.cdcw-demo-workspace details.cdcw-record>summary{grid-template-columns:.55fr minmax(0,1.35fr) minmax(0,1.35fr) auto}
.cdcw-demo-workspace details.cdcw-record>summary .cdcw-field-state,
.cdcw-demo-workspace details.cdcw-record>summary .cdcw-field-reason{display:none}
.cdcw-demo-main{display:grid;gap:18px}
.cdcw-demo-brief{border:1px solid #d9e1ed;border-radius:10px;background:#f8faff;padding:16px}
.cdcw-demo-brief>small{display:block;margin-bottom:4px;font-size:12px;font-weight:700;color:#52627b;text-transform:uppercase;letter-spacing:.025em}
.cdcw-demo-brief>strong{display:block;font-size:17px;line-height:1.45}
.cdcw-demo-brief>p{margin:10px 0 0;color:#52627b}
.cdcw-demo-context-more{margin-top:10px;border-top:1px solid #e1e7ef}
.cdcw-demo-context-more>summary{cursor:pointer;min-height:42px;padding:10px 0 0;font-weight:650;color:#1555c6}
.cdcw-demo-context-more dl{display:grid;grid-template-columns:170px minmax(0,1fr);gap:7px 14px;margin:12px 0}
.cdcw-demo-context-more dt{font-weight:650;color:#52627b}.cdcw-demo-context-more dd{margin:0}
.cdcw-demo-workspace .cdcw-ai-control{margin:0;padding:0}
.cdcw-demo-workspace .cdcw-ai-helper{margin:6px 0}
.cdcw-ai-action-row{display:flex;align-items:center;gap:10px;margin-top:12px;min-height:44px}
.cdcw-demo-workspace [data-cdcw-demo-draft]{min-width:190px}
.cdcw-ai-spinner{width:18px;height:18px;border:2px solid #c7d5ea;border-top-color:#1465f5;border-radius:50%;animation:cdcw-spin .75s linear infinite;flex:0 0 auto}
@keyframes cdcw-spin{to{transform:rotate(360deg)}}
.cdcw-demo-workspace .cdcw-ai-status{min-height:22px;margin:4px 0 0}
.cdcw-demo-action-form{margin:0}
.cdcw-demo-workspace .cdcw-ai-result{border:1px solid #bfd2f2;border-radius:10px;background:#eef5ff;padding:15px;margin:0}
.cdcw-demo-workspace .cdcw-ai-result label{margin:0}
.cdcw-demo-workspace .cdcw-ai-result textarea{min-height:105px;background:#fff}
.cdcw-demo-workspace .cdcw-ai-result [data-demo-result-why]{margin:8px 0 0;min-height:20px}
.cdcw-demo-assign{margin-top:10px;border-top:1px solid #e1e7ef}
.cdcw-demo-assign>summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:650;color:#1555c6}
.cdcw-demo-assign-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cdcw-demo-footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-top:4px}
.cdcw-demo-footer [data-demo-share-status]{font-size:12px;color:#52627b}
.cdcw-workspace a.cdcw-link-button{color:#1555c6!important;text-decoration:none!important}
.cdcw-workspace a.cdcw-link-button:hover{color:#0d47a8!important}
@media(max-width:700px){
  .cdcw-demo-workspace details.cdcw-record>summary{grid-template-columns:1fr auto}
  .cdcw-demo-workspace details.cdcw-record>summary .cdcw-field-question,
  .cdcw-demo-workspace details.cdcw-record>summary .cdcw-field-next{grid-column:1 / -1}
  .cdcw-demo-context-more dl{grid-template-columns:1fr;gap:2px}
  .cdcw-demo-context-more dd{margin-bottom:8px}
}

/* 0.1.184: transparent decision lenses and guidance explanation. */
.cdcw-workspace .cdcw-lenses{border:0;padding:0;margin:14px 0}.cdcw-workspace .cdcw-lenses legend{font-weight:650;margin-bottom:6px}.cdcw-workspace .cdcw-lens-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cdcw-workspace .cdcw-lens{display:flex;gap:9px;align-items:flex-start;border:1px solid #d9e1ed;border-radius:9px;background:#fff;padding:10px 11px;margin:0;cursor:pointer}.cdcw-workspace .cdcw-lens input{margin:3px 0 0;flex:0 0 auto}.cdcw-workspace .cdcw-lens span{display:block}.cdcw-workspace .cdcw-lens strong{display:block;font-size:13px;line-height:1.35;color:#17233d}.cdcw-workspace .cdcw-lens small{display:block;margin-top:3px;color:#52627b;font-size:12px;line-height:1.4;font-weight:400}.cdcw-workspace .cdcw-lens:has(input:checked){background:#eef5ff;border-color:#9bbcf1}.cdcw-workspace .cdcw-strength{margin-top:12px}.cdcw-workspace .cdcw-guidance-explanation{margin:12px 0;padding:12px 13px;border-left:3px solid #2d6cdf;background:#f8faff}.cdcw-workspace .cdcw-guidance-explanation strong{display:block;margin-bottom:4px}.cdcw-workspace .cdcw-guidance-explanation p{margin:0;line-height:1.5}.cdcw-workspace .cdcw-why-response{margin:10px 0}.cdcw-workspace .cdcw-why-response>summary{cursor:pointer;color:#1555c6;font-weight:650}.cdcw-workspace .cdcw-why-response dl{margin:10px 0}.cdcw-workspace .cdcw-why-response dt{font-weight:650;margin-top:8px}.cdcw-workspace .cdcw-why-response dd{margin:2px 0 0;color:#52627b;line-height:1.45}.cdcw-workspace .cdcw-tension-note{margin-top:10px;padding:10px 12px;border:1px solid #ead8ad;border-radius:8px;background:#fffaf0}.cdcw-workspace .cdcw-synthesis{margin-top:10px}.cdcw-workspace .cdcw-synthesis dl{display:grid;grid-template-columns:155px 1fr;gap:5px 12px}.cdcw-workspace .cdcw-synthesis dt{font-weight:650;color:#52627b}.cdcw-workspace .cdcw-synthesis dd{margin:0;line-height:1.45}
@media(max-width:700px){.cdcw-workspace .cdcw-lens-grid{grid-template-columns:1fr}.cdcw-workspace .cdcw-synthesis dl{grid-template-columns:1fr;gap:2px}.cdcw-workspace .cdcw-synthesis dd{margin-bottom:8px}}

/* 0.1.185: Clarity Dojo decision-snapshot sharing for the public fictional demo. */
body.cdcw-share-open{overflow:hidden}
.cdcw-shared-snapshot{margin:0 0 18px;padding:18px;border:1px solid #b9cceb;border-radius:12px;background:#f8faff}
.cdcw-snapshot-eyebrow{margin:0 0 4px!important;font-size:12px!important;font-weight:750!important;letter-spacing:.035em;text-transform:uppercase;color:#1555c6!important}
.cdcw-shared-snapshot h3,.cdcw-share-dialog h3{margin:0 0 14px;color:#17233d;font-size:20px;line-height:1.3}
.cdcw-snapshot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cdcw-snapshot-grid>div{min-width:0;padding:12px 13px;border:1px solid #d9e1ed;border-radius:9px;background:#fff}
.cdcw-snapshot-grid>div[hidden]{display:none!important}
.cdcw-snapshot-grid small{display:block;margin:0 0 5px;font-size:11px;font-weight:750;letter-spacing:.025em;text-transform:uppercase;color:#52627b}
.cdcw-snapshot-grid strong,.cdcw-snapshot-grid p{display:block;margin:0;color:#17233d;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.cdcw-snapshot-grid .cdcw-snapshot-next{grid-column:1/-1;border-color:#9bbcf1;background:#eef5ff}
.cdcw-snapshot-grid .cdcw-snapshot-next strong{font-size:15px}
.cdcw-snapshot-lenses{margin:0 0 6px!important;color:#1555c6!important;font-size:12px!important;font-weight:700}
.cdcw-shared-snapshot>[data-demo-shared-edit]{margin-top:14px}
.cdcw-share-layer{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(18,31,53,.52);backdrop-filter:blur(2px)}
.cdcw-share-layer[hidden]{display:none!important}
.cdcw-share-dialog{width:min(760px,100%);max-height:min(860px,calc(100vh - 48px));overflow:auto;padding:22px;border:1px solid #cbd8ea;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(18,31,53,.26)}
.cdcw-share-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.cdcw-share-head>div{min-width:0}
.cdcw-share-close{flex:0 0 auto;width:40px;height:40px;padding:0;border:1px solid #d9e1ed!important;border-radius:50%!important;background:#fff!important;color:#33415c!important;font-size:26px!important;line-height:1!important;cursor:pointer}
.cdcw-share-close:hover,.cdcw-share-close:focus{background:#f3f6fb!important;border-color:#9bbcf1!important;color:#1555c6!important}
.cdcw-share-intro{margin:0 0 14px;color:#52627b;line-height:1.55}
.cdcw-share-preview{padding:14px;border:1px solid #d9e4ff;border-radius:12px;background:#f8faff}
.cdcw-share-preview .cdcw-snapshot-grid>div{background:#fff}
.cdcw-share-privacy{margin:12px 0;color:#52627b;font-size:12px;line-height:1.5}
.cdcw-share-link-label{display:block;margin:14px 0 0;font-weight:650;color:#17233d}
.cdcw-share-link-label input{display:block;width:100%;margin-top:6px;padding:10px 11px;border:1px solid #cbd5e4;border-radius:8px;background:#fff;color:#52627b;font:inherit;font-size:12px;box-sizing:border-box}
.cdcw-share-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.cdcw-share-status{min-height:20px;margin:8px 0 0;color:#52627b;font-size:12px}
@media(max-width:700px){
  .cdcw-share-layer{align-items:flex-end;padding:0;background:rgba(18,31,53,.48)}
  .cdcw-share-dialog{width:100%;max-height:92vh;border-radius:16px 16px 0 0;padding:18px 16px 22px}
  .cdcw-snapshot-grid{grid-template-columns:1fr}
  .cdcw-snapshot-grid .cdcw-snapshot-next{grid-column:auto}
  .cdcw-share-actions{display:grid;grid-template-columns:1fr}
  .cdcw-share-actions button{width:100%}
}

/* 0.1.187 public live-demo allowance and limit state. */
.cdcw-demo-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    margin: 12px 0 18px;
    padding: 10px 12px;
    border: 1px solid #d9e2f2;
    border-radius: 10px;
    background: #f8faff;
    font-size: 0.92rem;
}
.cdcw-demo-usage strong { color: #172235; }
.cdcw-demo-usage span { color: #52627a; }
.cdcw-ai-allowance {
    font-size: 0.82rem;
    color: #60708a;
    font-weight: 600;
}
.cdcw-demo-limit-panel {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #cdd9ec;
    border-radius: 12px;
    background: #fff;
}
.cdcw-demo-limit-panel > strong {
    display: block;
    margin-bottom: 6px;
    color: #172235;
}
.cdcw-demo-limit-panel p { margin: 0 0 12px; }
@media (max-width: 520px) {
    .cdcw-demo-usage { display: block; }
    .cdcw-demo-usage span { display: block; margin-top: 3px; }
    .cdcw-ai-allowance { display: block; width: 100%; margin-top: 4px; }
}
