/* The desktop app locks the outer workspace; this view owns its scroll. */
#view-training-checklist { overflow-y:auto; overflow-x:hidden; }
#training-checklist-root { flex:0 0 auto; min-width:0; width:100%; }
.tc-shell { max-width:1600px; margin:auto; padding:24px; }
.tc-heading,.tc-record-heading,.tc-item-heading,.tc-item-footer { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.tc-heading h2,.tc-record-heading h2 { margin:4px 0 8px; font-size:28px; }
.tc-heading p,.tc-record-heading p { margin:0; color:var(--color-text-secondary); }
.tc-message { min-height:24px; padding:12px 16px; border:1px solid var(--color-border); border-radius:10px; background:var(--color-surface); }
.tc-message.is-error { color:#ee9c93; border-color:#b35b55; }
.tc-grid { display:grid; grid-template-columns:290px minmax(0,1fr); gap:20px; align-items:start; }
.tc-library { padding:14px; position:sticky; top:16px; max-height:85vh; overflow:auto; }
.tc-library .panel-header { padding:0 0 14px; }.tc-library .form-field { margin-bottom:14px; }
.tc-record { display:grid; gap:5px; width:100%; text-align:left; padding:14px; margin-bottom:8px; border:1px solid var(--color-border); border-radius:10px; color:var(--color-text); background:var(--color-surface); cursor:pointer; }
.tc-record:hover,.tc-record.is-selected { border-color:var(--color-primary); background:rgba(215,168,75,.08); }
.tc-record small,.tc-record span,.tc-updated { color:var(--color-text-secondary); font-size:12px; }
.tc-detail { padding:24px; min-width:0; }.tc-empty { padding:30px 12px; color:var(--color-text-secondary); }
.tc-tools,.tc-item-actions { display:flex; flex-wrap:wrap; gap:8px; }
.tc-progress { padding:16px; border-radius:10px; background:rgba(215,168,75,.09); margin:20px 0 12px; }
.tc-progress > div { display:flex; justify-content:space-between; gap:10px; margin-bottom:10px; }.tc-progress span { font-size:13px; }
.tc-progress progress { width:100%; height:10px; accent-color:var(--color-primary); }
.tc-prerequisite { padding:12px; border-left:3px solid var(--color-primary); font-size:13px; }
.tc-profile,.tc-history { border:1px solid var(--color-border); border-radius:10px; padding:14px; margin:18px 0; }
.tc-profile summary,.tc-history summary { cursor:pointer; font-weight:700; }.tc-profile form { padding-top:16px; }
.tc-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.tc-profile textarea { min-height:80px; margin-bottom:12px; }
.tc-group > h3 { font-size:16px; color:var(--color-primary); border-bottom:1px solid var(--color-border); padding-bottom:10px; margin:26px 0 14px; }
.tc-item { padding:18px; margin-bottom:12px; border:1px solid var(--color-border); border-radius:12px; background:var(--color-surface); }
.tc-item h4 { margin:0 0 6px; font-size:15px; }.tc-item h4 small { font-weight:400; color:var(--color-text-secondary); }.tc-item-heading p { font-size:12px; margin:0 0 8px; color:var(--color-text-secondary); }
.tc-item textarea { min-height:65px; resize:vertical; margin-bottom:12px; }.tc-item .form-label { font-size:12px; }.tc-item-footer { align-items:center; margin-bottom:10px; }
.tc-status { flex-shrink:0; }.tc-status select { padding:8px 10px; color:var(--color-text); background:var(--color-surface); border:1px solid #ba6b65; border-radius:8px; font-weight:700; }
.tc-status.is-passed select { border-color:#56ae79; color:#7bd09a; }.tc-status.is-in_progress select { border-color:#d7a84b; }.tc-status.is-needs_review select { border-color:#ad91e6; }
.tc-signature { display:grid; gap:5px; background:#f9f7ee; padding:8px 14px; border:1px solid #c8c1a9; border-radius:8px; }.tc-signature > span { font-size:29px; line-height:1.4; }.tc-signature small { color:#4c5360; font-size:11px; }
.tc-completion { padding:20px; border:1px solid var(--color-primary); border-radius:12px; margin-top:24px; }.tc-completion .tc-signature { max-width:450px; }.tc-completion p { font-size:13px; }
.tc-history ol { padding-left:20px; }.tc-history li { padding:12px 0; border-bottom:1px solid var(--color-border); font-size:12px; }.tc-history p { margin:5px 0; }.tc-history-note { white-space:pre-wrap; }
html[data-access-state="training"] .primary-navigation .nav-tab:not([data-view="training-checklist"]),html[data-access-state="training"] .navigation-quick-actions,html[data-access-state="training"] .workspace-role-toggle,html[data-access-state="training"] .case-indicator,html[data-access-state="training"] .training-toolbar { display:none !important; }
@media(max-width:1000px) { .tc-grid { grid-template-columns:1fr; }.tc-library { position:static; max-height:280px; }.tc-record-heading,.tc-heading { flex-wrap:wrap; } }
@media(max-width:650px) { .tc-shell { padding:12px; }.tc-detail { padding:14px; }.tc-item-heading,.tc-item-footer,.tc-progress > div { flex-direction:column; gap:10px; }.tc-fields { grid-template-columns:1fr; }.tc-tools .button { flex:1; }.tc-item { padding:14px; } }
@media print { #view-training-checklist { overflow:visible; height:auto; } }
