/* v0.98 · Competency laboratory. Static, browser-memory-only UI. */
*{box-sizing:border-box}
body.competency-demo-body{margin:0;color:#233e50;background:#f3f7f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.competency-demo-body [hidden]{display:none!important}
.competency-demo-body :is(button,textarea,input,select){font:inherit}
.competency-demo-body button{cursor:pointer}
.competency-demo-body button:disabled{opacity:.46;cursor:not-allowed}
.cd-skip{position:absolute;z-index:50;top:-100px;left:15px;background:#fff;padding:12px 15px;border-radius:8px}
.cd-skip:focus{top:15px}
.cd-main{max-width:1320px;margin:0 auto;padding:34px clamp(16px,4vw,54px) 28px}
.cd-top{display:flex;align-items:flex-start;justify-content:space-between;gap:25px}
.cd-eyebrow,.cd-section-kicker{color:#bc7145;font-size:10px;font-weight:850;letter-spacing:.11em}
.cd-top h1{margin:10px 0 12px;max-width:790px;font-size:clamp(27px,3vw,40px);line-height:1.18;letter-spacing:-.035em}
.cd-lead{font-size:13px;color:#627b8b;max-width:830px;line-height:1.75;margin:0}
.cd-demo-label{border:1px solid #eedbcb;background:#fdf1e8;border-radius:99px;padding:8px 12px;color:#9a5a32;font-size:10px;font-weight:850;white-space:nowrap}
.cd-privacy{background:#e9f3f5;border:1px solid #d1e4e8;color:#426778;border-radius:11px;padding:14px 18px;font-size:12px;line-height:1.65;margin:22px 0}
.cd-context{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 24px}
.cd-context>div{background:#fff;border:1px solid #e0e9ed;border-radius:13px;padding:18px 20px}
.cd-context :is(small,strong,span){display:block}
.cd-context small{font-size:9px;letter-spacing:.08em;font-weight:850;color:#92a0aa}
.cd-context strong{font-size:17px;margin:9px 0;color:#20475c}
.cd-context span{color:#8093a0;font-size:10.5px}
.cd-toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:18px}
.cd-toolbar>label{font-size:11px;color:#537080;font-weight:750;display:grid;gap:7px;width:min(420px,100%)}
.cd-toolbar select,.cd-editor :is(input,textarea),.cd-evidence-rows :is(select,textarea),.cd-profile-level,.cd-profile-importance{border:1px solid #d7e4e9;border-radius:9px;background:#fff;color:#284a5b;padding:10px 12px;width:100%;font-size:12px}
.cd-toolbar select{height:44px}
.cd-journey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px}
.cd-journey a{background:#fff;color:#42677a;font-size:11px;font-weight:750;text-decoration:none;border:1px solid #deeaed;padding:13px;border-radius:11px;display:flex;align-items:center;gap:11px}
.cd-journey a:hover{background:#edf7f7;border-color:#a4d0d0}
.cd-journey span{font-weight:850;color:#ba744f;font-size:13px}
.cd-section{background:#fff;border:1px solid #e0e9ee;border-radius:17px;padding:26px;margin-bottom:20px;scroll-margin-top:22px}
.cd-heading{display:flex;justify-content:space-between;gap:22px;align-items:start;margin-bottom:20px}
.cd-heading h2{font-size:22px;line-height:1.3;color:#203c50;letter-spacing:-.025em;margin:7px 0}
.cd-heading p,.cd-focus>p{font-size:12px;line-height:1.65;color:#78909e;margin:0;max-width:740px}
.cd-state{font-size:10.5px;background:#eff5f7;border:1px solid #e0e9ef;border-radius:24px;color:#5d7583;padding:9px 12px;white-space:nowrap}
.cd-dictionary-grid{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.5fr);gap:20px}
.cd-dictionary-list{display:grid;align-content:start;gap:9px}
.cd-dictionary-entry{background:#f9fbfc;border:1px solid #e1eaed;padding:14px;text-align:left;border-radius:10px;display:grid;gap:6px;color:#315769}
.cd-dictionary-entry strong{font-size:12px}
.cd-dictionary-entry span{font-size:10px;color:#8ba0ab}
.cd-dictionary-entry[aria-pressed="true"]{border-color:#6daab5;background:#eef8f7;box-shadow:inset 3px 0 #347f8b}
.cd-editor{border:1px solid #e6edef;background:#fafcfd;border-radius:13px;padding:18px}
.cd-editor h3{font-size:15px;margin:0 0 16px}
.cd-editor form{display:grid;gap:13px}
.cd-editor form>label{display:grid;gap:7px;font-size:11px;font-weight:750;color:#466575}
.cd-editor textarea{resize:vertical;min-height:54px}
.cd-anchors{margin:0;padding:0;border:0}
.cd-anchors legend{font-size:11px;color:#466575;font-weight:750;margin-bottom:10px}
.cd-anchor{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:8px}
.cd-anchor label{font-size:10.5px;font-weight:850;color:#7b929e}
.cd-anchor textarea{min-height:45px}
.cd-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px}
.cd-primary,.cd-ghost{border-radius:9px;padding:11px 15px;font-size:11px;font-weight:800}
.cd-primary{border:1px solid #206d7a;background:#206d7a;color:#fff}
.cd-primary:hover:not(:disabled){background:#145769}
.cd-ghost{border:1px solid #d4e3e8;background:#fff;color:#436c7a}
.cd-ghost:hover{background:#edf7f8}
.cd-hint{font-size:11px;color:#8295a0;line-height:1.65}
.cd-table-wrap{width:100%;overflow-x:auto;border:1px solid #e2ebef;border-radius:11px}
.cd-table{width:100%;border-collapse:collapse;min-width:590px}
.cd-table th{text-align:left;color:#728998;background:#f7fafb;font-size:10px;letter-spacing:.03em;padding:14px;border-bottom:1px solid #e2ebef}
.cd-table td{padding:13px 14px;border-bottom:1px solid #eff3f5;color:#345466;font-size:11.5px;vertical-align:middle}
.cd-table tbody tr:last-child td{border-bottom:0}
.cd-table td strong{font-size:12px}
.cd-table td small{display:block;font-size:10px;color:#879aa5;margin-top:4px}
.cd-table select{min-width:100px}
.cd-evidence-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cd-evidence-card{padding:17px;border:1px solid #e0eaed;border-radius:12px;background:#fafcfd;display:grid;gap:13px}
.cd-evidence-card h3{font-size:13px;color:#294c60;margin:0}
.cd-evidence-card small{font-size:10.5px;color:#8094a0}
.cd-evidence-card label{display:grid;gap:7px;color:#547182;font-size:10.5px;font-weight:750}
.cd-evidence-card textarea{resize:vertical;min-height:66px}
.cd-review{display:flex;align-items:flex-start;gap:10px;background:#f6f9f9;border:1px solid #e3eaea;border-radius:10px;padding:14px;font-size:11px;color:#476473;line-height:1.6;margin-top:17px}
.cd-review input{margin-top:2px;accent-color:#1e7884}
#cd-review-status{font-size:11px;color:#7b909d}
.cd-empty{border:1px dashed #bcd1d9;border-radius:11px;background:#f8fbfc;color:#78909d;text-align:center;padding:30px 20px;font-size:12px}
.cd-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-bottom:17px}
.cd-summary div{background:#f7fafb;border:1px solid #e4edf0;padding:15px;border-radius:11px}
.cd-summary small{color:#79909e;font-size:10px;display:block}
.cd-summary strong{color:#255568;font-size:26px;font-weight:800;display:block;margin-top:7px}
.cd-gap-tag{display:inline-block;padding:6px 10px;border-radius:20px;background:#eff3f6;color:#5a7181;font-size:10px;font-weight:750;white-space:nowrap}
.cd-gap-tag.needs{background:#fff1e5;color:#a76135}
.cd-gap-tag.good{background:#e8f5ee;color:#2e7657}
.cd-gap-tag.missing{background:#f0f3f6;color:#687c88}
.cd-focus{margin-top:20px}
.cd-focus h3{font-size:16px;color:#294b5a;margin:0 0 7px}
.cd-focus-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}
.cd-focus-card{padding:17px;border:1px solid #dbe9ec;border-radius:12px;background:#f4f9f9}
.cd-focus-card strong{color:#225464;font-size:13px}
.cd-focus-card p{font-size:11px;line-height:1.65;color:#718993;margin:8px 0}
.cd-focus-card span{font-size:10px;font-weight:800;color:#b97048}
.cd-footer{border-top:1px solid #dce6eb;padding-top:20px;margin-top:15px;color:#7b919d;font-size:10.5px;line-height:1.6}
.cd-footer a{color:#2c7482;text-decoration:none}
@media(max-width:950px){.cd-context{grid-template-columns:repeat(2,1fr)}.cd-journey{grid-template-columns:repeat(2,1fr)}.cd-dictionary-grid{grid-template-columns:1fr}}
@media(max-width:660px){.cd-main{padding:22px 13px}.cd-top,.cd-heading{display:block}.cd-top .cd-demo-label,.cd-heading .cd-state{display:inline-block;margin-top:13px}.cd-toolbar{align-items:stretch;flex-direction:column}.cd-journey{gap:7px}.cd-journey a{padding:10px;font-size:10px}.cd-section{padding:18px}.cd-evidence-rows,.cd-focus-cards{grid-template-columns:1fr}.cd-context>div{padding:13px}.cd-context strong{font-size:14px}.cd-summary{gap:5px}.cd-summary div{padding:9px}.cd-summary strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){.competency-demo-body *{scroll-behavior:auto!important;transition:none!important}}
