.kc-workspace{padding:18px;background:#fff;border:1px solid #dce5ee;border-radius:6px;font-size:14px;min-width:0}.kc-workspace h2{font-size:18px;font-weight:500;overflow-wrap:anywhere}.kc-workspace .muted{font-size:13px;line-height:1.5}.kc-toolbar,.kc-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.kc-toolbar input{flex:1;min-width:160px}.kc-workspace button{margin:0}.kc-record{display:block;width:100%;text-align:left;margin-top:8px!important;font-weight:400}.kc-form{max-width:920px}.kc-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;border:1px solid #dce5ee;padding:14px;margin:12px 0}.kc-form legend{font-size:14px;color:#365773}.kc-form label,.kc-decision label{font-size:13px;font-weight:400;margin:0}.kc-form label:has(textarea){grid-column:1/-1}.kc-form textarea,.kc-decision textarea{min-height:76px;resize:vertical}.kc-check{margin:8px 0;border:1px solid #dce5ee;border-radius:5px;padding:0;background:#fafbfd}.kc-check>summary{padding:10px 12px;font-size:14px;font-weight:400;min-height:44px;margin:0!important;overflow-wrap:anywhere}.kc-check-fields{padding:12px;border-top:1px solid #dce5ee;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kc-form .kc-confirm{display:flex;align-items:flex-start;gap:8px;margin:14px 0}.kc-confirm input{width:18px;height:18px;flex:0 0 18px;margin:2px 0}.kc-feedback:empty{display:none}.kc-feedback{color:#934b22}.kc-actions{margin:12px 0}.kc-status{font-size:13px;color:#526f80}.kc-decision{margin-top:20px;border-top:1px solid #dce5ee;padding-top:16px}.kc-workspace>details{font-size:13px}.kc-workspace input,.kc-workspace select,.kc-workspace textarea{min-width:0;max-width:100%;font:inherit}.kc-workspace input:not([type=checkbox]),.kc-workspace select{min-height:40px}.kc-workspace button{min-height:40px;font-size:14px}
@media(max-width:900px){.kc-workspace input:not([type=checkbox]),.kc-workspace select,.kc-workspace textarea{font-size:16px}.kc-workspace button{min-height:44px}}
@media(max-width:600px){.kc-workspace{padding:12px}.kc-form fieldset,.kc-check-fields{grid-template-columns:minmax(0,1fr)}.kc-actions>button{flex:1 1 100%}.kc-toolbar input{flex-basis:100%}}
/* Isolate this form from the legacy global two-column form grid. */
#workspace .kc-workspace .kc-form{display:block;width:100%;max-width:920px;margin:16px 0;padding:0;border:0;background:transparent;box-shadow:none}
#workspace .kc-workspace .kc-form>fieldset{width:100%;min-width:0;max-width:100%;grid-template-areas:"scope risk" "scope-note risk-note" "next next"}
#workspace .kc-workspace .kc-form>fieldset>.kc-scope{grid-area:scope}
#workspace .kc-workspace .kc-form>fieldset>.kc-scope-note{grid-area:scope-note}
#workspace .kc-workspace .kc-form>fieldset>.kc-risk{grid-area:risk}
#workspace .kc-workspace .kc-form>fieldset>.kc-risk-note{grid-area:risk-note}
#workspace .kc-workspace .kc-form>fieldset>.kc-next{grid-area:next;max-width:260px}
#workspace .kc-workspace .kc-form>.kc-check{display:block;width:100%}
#workspace .kc-workspace .kc-form>.kc-actions{display:flex}
#workspace .kc-workspace .kc-decision{display:block;max-width:920px}
@media(max-width:600px){#workspace .kc-workspace .kc-form>fieldset{grid-template-areas:"scope" "scope-note" "risk" "risk-note" "next"}}

.kc-findings{margin:20px 0}
.kc-findings h3{font-size:15px;margin:0 0 8px}
.kc-finding-details{margin:0 0 8px;border:1px solid #dce5ee;border-radius:5px;background:#fafbfd}
.kc-finding-details>summary{padding:10px 12px;margin:0!important;overflow-wrap:anywhere}
.kc-form .kc-finding{min-width:0;border-radius:5px}
.kc-finding legend{max-width:100%;overflow-wrap:anywhere}
.kc-finding button{justify-self:start}
.kc-workspace select[multiple]{width:100%;height:auto;min-height:76px}
.kc-report-actions{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:12px 0}
.kc-report-actions label,.kc-report-actions select{margin:0}
.kc-history-entry{border-top:1px solid #dce5ee;padding:8px 0}
@media(max-width:600px){.kc-form .kc-finding{grid-template-columns:minmax(0,1fr)}}

/* Register, check list and save actions share one compact surface. */
#workspace:has(.kc-workspace:not([hidden])) #shared-page-actions{display:none}
#workspace .kc-workspace{padding:0;overflow:visible;color:#233e54}
#workspace .kc-workspace .kc-toolbar{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;
 width:100%;max-width:none;padding:12px 16px;margin:0;box-sizing:border-box;
 border:0;border-bottom:1px solid #dce5ee;border-radius:0;background:none;box-shadow:none;
}
.kc-toolbar input{width:100%;margin:0}
.kc-register{width:100%;border-collapse:collapse;table-layout:fixed}
.kc-register th,.kc-register td{padding:4px 16px;text-align:start;overflow-wrap:anywhere}
.kc-register th{background:#f1f5f8;color:#526b81;font-size:13px;font-weight:600;padding-block:9px}
.kc-register th:last-child{width:30%}
.kc-register td{border-top:1px solid #e1e9f0}
.kc-register td:last-child{color:#526b81;font-size:13px}
.kc-register tr:focus-within,.kc-register tbody tr:hover{background:#edf4fa}
#workspace .kc-register .kc-record{
 margin:0!important;border:0;background:transparent;box-shadow:none;
 padding:6px 0;color:#204f79;font-weight:600;white-space:normal;
 overflow-wrap:anywhere;min-height:44px;
}
.kc-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 16px}
.kc-empty,.kc-workspace>.kc-feedback:not(:empty){padding:0 16px}
.kc-detail-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:12px 16px;border-bottom:1px solid #dce5ee}
.kc-detail-heading h2{margin:0;min-width:0;overflow-wrap:anywhere}
#workspace .kc-detail-heading>button{grid-column:1/-1;justify-self:start;background:none;border:0;padding:4px 0;color:#204f79}
.kc-status,.kc-check-state{padding:2px 8px;border-radius:4px;background:#edf2f6;color:#435d72;font-size:13px;line-height:1.5}
:is(.kc-status,.kc-check-state):is([data-state="attention"],[data-state="in_review"],[data-state="changes_requested"]){background:#fff1dd;color:#78420e}
:is(.kc-status,.kc-check-state):is([data-state="documented"],[data-state="reviewed"]){background:#e6f2ee;color:#23554a}
.kc-help,.kc-history{margin:10px 16px;padding:0;border:0;background:transparent}
.kc-help>summary,.kc-history>summary{padding:7px 24px 7px 0;color:#204f79;min-height:44px;align-content:center}
.kc-help p{margin:0 0 8px;color:#526b81}
#workspace .kc-workspace .kc-form{
 max-width:none;margin:0;padding:0 16px;box-sizing:border-box;
}
#workspace .kc-workspace .kc-form>fieldset{margin:6px 0 14px;padding:10px 12px;box-sizing:border-box}
#workspace .kc-workspace .kc-form textarea{min-height:56px}
#workspace .kc-workspace .kc-form>.kc-assessment {
 margin:8px 0 24px;
 padding:0;
 border:0;
 gap:14px 20px;
}
.kc-assessment>legend {
 padding:0;
 margin:0 0 12px;
 font-weight:600;
 color:#183b59;
}
#workspace .kc-assessment>label {
 display:grid;
 min-inline-size:0;
 gap:6px;
 align-content:start;
}
#workspace .kc-assessment>label>:is(select,textarea,input[type="date"]) {
 box-sizing:border-box;
 inline-size:100%;
 min-block-size:44px;
 margin:0;
 padding:8px 12px;
 border:0;
 border-radius:4px;
 background-color:#edf3f8;
 color:#183b59;
 box-shadow:none;
}
#workspace .kc-assessment>label>textarea {
 min-block-size:84px;
 resize:vertical;
}
#workspace .kc-assessment>label>:is(select,textarea,input[type="date"]):focus {
 outline:2px solid #28669b;
 outline-offset:2px;
}
#workspace .kc-assessment>label>:is(select,textarea,input[type="date"]):disabled {
 background-color:#f3f5f7;
 color:#53697b;
}
@media(forced-colors:active) {
 #workspace .kc-assessment>label>:is(select,textarea,input[type="date"]) {border:1px solid ButtonText}
 #workspace .kc-assessment>label>:is(select,textarea,input[type="date"]):focus {outline-color:Highlight}
}
.kc-checks h3,.kc-section-heading h3{margin:0;padding:0;border:0}
.kc-checks h3{margin:0 0 5px}
.kc-checks .kc-check{margin:0;border:0;border-top:1px solid #e1e9f0;border-radius:0;background:transparent}
.kc-checks .kc-check:last-child{border-bottom:1px solid #e1e9f0}
#workspace .kc-checks .kc-check>summary{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;
 padding:4px 22px 4px 8px;min-height:44px;box-sizing:border-box;
}
.kc-checks .kc-check[open]>summary{background:#edf4fa}
.kc-checks .kc-check>summary::after{top:calc(50% - 4px)}
.kc-section-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 6px}
.kc-findings{margin:14px 0}
#workspace .kc-workspace .kc-form>.kc-save-bar{
 position:sticky;bottom:0;z-index:5;justify-content:flex-end;gap:6px;
 padding:8px 0;margin:0;border-top:1px solid #dce5ee;background:#fff;
 padding-bottom:max(8px,env(safe-area-inset-bottom));
}
.kc-save-bar .kc-feedback{flex:1 1 100%;margin:0}
.kc-form :is(input,select,textarea){scroll-margin-bottom:120px}
.kc-workspace .kc-decision{margin:12px 16px;padding:12px 0 0}
.kc-history{border-top:1px solid #dce5ee}
.kc-history-entry p{margin:0}
@media(max-width:600px){
 .kc-detail-heading{grid-template-columns:minmax(0,1fr)}
 .kc-status{justify-self:start}
 .kc-register th,.kc-register td{padding-inline:10px}
 .kc-register th:last-child{width:33%}
 #workspace .kc-workspace .kc-form>.kc-save-bar>button{flex:1 1 auto}
 .kc-check-state{max-width:16ch;text-align:end;overflow-wrap:anywhere}
}
@media print{.kc-save-bar,.kc-help{display:none!important}}
