/* Train365 5.3 — compact shared controls, trainer quick cards, bulk certificates & templates */
#app input[type="checkbox"],#modal-layer input[type="checkbox"],.t370-modal input[type="checkbox"]{
 box-sizing:border-box!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;margin:2px 7px 2px 0!important;padding:0!important;flex:0 0 16px!important;vertical-align:middle;accent-color:#62b51f;border-radius:4px!important;box-shadow:none!important;transform:none!important;
}
#app label:has(> input[type="checkbox"]),#modal-layer label:has(> input[type="checkbox"]){display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.t530-trainer-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:12px 0;color:#3a5173;font-size:12px}.t530-trainer-mini>span,.t530-trainer-mini>a{display:inline-flex;align-items:center;min-height:27px;padding:5px 8px;border:1px solid #d8e3f1;border-radius:8px;background:#f7faff;color:#274673;text-decoration:none}.t530-trainer-mini .t530-pill.yes{background:#ecf9e6;color:#1e692d;border-color:#b7e8a1}.t530-trainer-mini .t530-pill.no{background:#f2f4f7;color:#617083}.t530-trainer-mini>a{font-weight:700;color:#17386b;cursor:pointer}.t530-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.t530-card{background:#fff;border:1px solid #d8e3f2;border-radius:18px;padding:clamp(16px,3vw,24px);margin:18px 0;box-shadow:0 5px 16px #16396308}.t530-card h3{margin:0 0 8px}.t530-card>p{color:#536784}.t530-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.t530-form>label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px}.t530-form .t530-full{grid-column:1/-1}.t530-form input,.t530-form textarea,.t530-card textarea,#t530-invite-link{width:100%;border:1px solid #d1dfef;background:#fbfdff;border-radius:10px;padding:12px;font:inherit;min-height:40px}.t530-form>button{align-self:end}.t530-templates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}.t530-template{display:flex;flex-direction:column;gap:8px;text-align:left;min-width:0;background:#f7faff;border:1px solid #d7e3f2;border-radius:14px;padding:16px;color:#18355c;cursor:pointer}.t530-template:focus-visible,.t530-template:hover{outline:2px solid #a4dc5a}.t530-template small{color:#5181b6;font-size:12px}.t530-template span{font-size:12px;line-height:1.5;color:#536c8a}.t530-template strong{font-size:14px}.t410-profile .t530-trainer-mini{grid-template-columns:repeat(4,minmax(0,1fr))}#t530-import-result,#t530-invite-result,#t530-template-status,#t530-bulk-feedback{color:#244b6d;padding-top:9px;overflow-wrap:anywhere}
@media(max-width:1050px){.t530-templates{grid-template-columns:repeat(2,minmax(0,1fr))}.t410-profile .t530-trainer-mini{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.t530-templates,.t530-form{grid-template-columns:1fr}.t530-trainer-mini{grid-template-columns:repeat(2,minmax(0,1fr))}.t530-card{padding:16px}.t530-actions>.btn{width:100%}}
#t370-overlay input[type="checkbox"],.t32-overlay input[type="checkbox"]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;margin:2px 7px 2px 0!important;padding:0!important;flex:0 0 16px!important;accent-color:#62b51f;transform:none!important}
.t530-card{color:#18355c}.t530-card h3,.t530-card h4,.t530-card strong,.t530-card summary{color:#18355c}.t530-card input,.t530-card textarea{color:#18355c}.t530-card label{color:#2e4b70}.t530-card .btn.secondary{background:#f4f7fd;color:#17386b}

/* Train365 5.4 certificate flow – mirrors legacy wizard, no email dispatch. */
.t540-cert{padding:0!important;overflow:hidden}.t540-cert .t540-head{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(112deg,#17386b,#2c497e);color:#fff;padding:20px 24px}.t540-cert .t540-head h3,.t540-cert .t540-head p{color:#fff}.t540-cert .t540-head h3{font-size:22px;margin:6px 0}.t540-cert .t540-head p{margin:0;font-size:13px;opacity:.87}.t540-eyebrow{color:#83d9ff;font-size:11px;font-weight:900;letter-spacing:.1em}.t540-head-icon{background:#f2c147;color:#0c2444;border-radius:12px;padding:10px 14px;font-weight:800}
.t540-cert .t540-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f4f7fb;border-bottom:1px solid #dbe6f2;gap:2px}.t540-steps span{display:flex;gap:9px;align-items:center;min-width:0;padding:13px 15px;color:#516a89;font-weight:700}.t540-steps span b{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:100%;background:#e5ecf7;color:#24456e}.t540-steps span.active{background:#fff;color:#17386b}.t540-steps span.active b{background:#17386b;color:white}
.t540-cert #t540-cert-form{padding:22px}.t540-cert .t540-panel[hidden]{display:none!important}.t540-cert .t540-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.t540-grid>label{display:flex;flex-direction:column;gap:7px;font-weight:700;color:#29456c}.t540-grid input,.t540-grid select,.t540-date-grid input,.t540-person input,.t540-paste textarea{min-height:43px;width:100%;border:1px solid #cbd8e9;background:#fff;border-radius:10px;padding:10px 12px;font:inherit;color:#17386b}.t540-grid input:focus,.t540-grid select:focus,.t540-person input:focus,.t540-date-grid input:focus{outline:2px solid #a3dd57}.t540-grid small{font-weight:400;color:#6c7c8d}.t540-course-wrap{position:relative}.t540-course-wrap #t540-course-results{position:absolute;top:calc(100% + 3px);left:0;right:0;max-height:245px;overflow:auto;z-index:8;background:white;border-radius:10px;box-shadow:0 18px 42px #10294b36}.t540-course-option{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;background:#fff;padding:11px;color:#1b3a69;cursor:pointer}.t540-course-option:hover,.t540-course-option:focus-visible{background:#eef6ff}.t540-course-option span{color:#107c41}.t540-course-option small{margin-left:auto;background:#eaf6e1;padding:3px 8px;border-radius:9px;font-weight:700}.t540-cert .t540-mini{margin:4px 0 0!important;font-size:12px;align-self:flex-start}.t540-dates-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 12px}.t540-date-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.t540-date-grid label{display:flex;align-items:center;gap:5px}.t540-date-grid label span{font-size:11px;color:#6984a2}.t540-remove{border:1px solid #dce4ed;border-radius:9px;background:white;color:#234565;font-weight:900;width:32px;height:36px;cursor:pointer}.t540-note{color:#627e9d;font-size:12px}
.t540-cert .t540-people{display:grid;gap:8px;margin:16px 0}.t540-person{display:grid;grid-template-columns:1fr 1fr 1.5fr 36px;align-items:end;gap:8px;padding:11px;border:1px solid #dbe4ef;border-radius:12px;background:#f6f9fe}.t540-person label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}.t540-paste{margin-top:12px}.t540-paste details{border:1px solid #dce4ef;border-radius:11px;padding:11px}.t540-paste textarea{display:block;margin:10px 0}.t540-review{display:grid;grid-template-columns:1fr 1fr;gap:15px}.t540-review>div{padding:15px;border:1px solid #dce4ed;background:#f5f9fe;border-radius:12px}.t540-review dl{display:grid;grid-template-columns:auto 1fr;gap:8px}.t540-review dt{font-weight:700;color:#6984a2}.t540-review dd{margin:0;overflow-wrap:anywhere}.t540-review-people{max-height:350px;overflow:auto}.t540-review-people p{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #dbe4ef;padding:5px}.t540-review-people small{color:#607e9d}.t540-warning{color:#a7600b;background:#fff8e7;padding:10px;border-radius:9px}.t540-form-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;border-top:1px solid #dce4ef;margin-top:17px;padding-top:16px;flex-wrap:wrap}.t540-form-actions [role=status]{margin-right:auto;color:#a43c36}.t540-archive{padding:14px 24px 22px;border-top:1px solid #dce4ef}.t540-history-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px;border-bottom:1px solid #e2e9f1}.t540-history-row span{display:flex;flex-direction:column}.t540-history-row small{color:#58728e}.t540-success{margin:12px 24px;padding:12px;background:#ecf8e9;border:1px solid #bcdfb0;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}
@media(max-width:900px){.t540-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.t540-review{grid-template-columns:1fr}.t540-person{grid-template-columns:1fr 1fr}.t540-person label:nth-child(3){grid-column:1/-1}}
@media(max-width:600px){.t540-cert .t540-grid,.t540-date-grid,.t540-person{grid-template-columns:1fr}.t540-steps span{flex-direction:column;align-items:flex-start;font-size:11px;padding:10px}.t540-person label:nth-child(3){grid-column:auto}.t540-review-people p{flex-direction:column}.t540-cert #t540-cert-form{padding:15px}.t540-head{padding:16px!important}}

/* Train365 5.5 certificate template settings */
.t550-manager{border:1px solid #c9d8ec;border-radius:16px;background:#f7faff;padding:18px;margin:20px 0;color:#17386b}
.t550-manager summary{cursor:pointer;display:flex;flex-direction:column;gap:6px;font-size:15px}.t550-manager summary small{font-size:12px;color:#526985;font-weight:400}
.t550-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.t550-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.t550-editor>label:not(.t550-check){display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:12px}.t550-editor input:not([type="checkbox"]):not([type="file"]),.t550-editor select{min-height:42px;border:1px solid #cbdaf0;background:white;border-radius:10px;padding:9px;font:inherit;color:#17386b}.t550-colors{border:1px solid #cbdaf0;border-radius:11px;padding:10px;display:flex;flex-wrap:wrap;gap:12px;grid-column:1/-1}.t550-colors label{display:flex;align-items:center;gap:8px;font-size:12px}.t550-colors input{width:62px;height:36px;padding:2px;border:none;background:transparent}.t550-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500!important}.t550-check input{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;margin:0!important;accent-color:#64d31c}.t550-upload{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;border-top:1px solid #dde6f2;padding-top:14px}.t550-upload label{font-size:12px;display:flex;flex-direction:column;gap:5px;min-width:0}.t550-upload input{width:100%;max-width:100%}.t550-editor>button,.t550-editor>p,.t550-editor>small{grid-column:1/-1}.t550-template-choice{grid-column:1/-1}.t550-template-choice small{color:#61718a}.t550-editor .btn{justify-self:start}
@media(max-width:720px){.t550-editor{grid-template-columns:1fr}.t550-upload{grid-template-columns:1fr}.t550-toolbar{display:grid;grid-template-columns:1fr 1fr}}

.t550-single-legacy{margin:20px 0;border:1px solid #d7e3f3;border-radius:12px;padding:14px 18px}.t550-single-legacy summary{cursor:pointer;font-weight:700;color:inherit}.t550-single-legacy .t510-grid{margin-top:16px}

/*6.2 operational execution*/
.t620-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line,#dce5ef)}.t620-section h4{font-size:16px;margin:0 0 14px}.t620-scores{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:12px;margin:16px 0}.t620-scores>div{display:flex;flex-direction:column;border:1px solid var(--line,#dce5ef);background:var(--surface-2,#f6f9fc);padding:14px;border-radius:10px}.t620-scores small{color:var(--muted,#64758b)}.t620-scores strong{font-size:22px;margin-top:6px}.t620-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}.t620-search label{flex:1;min-width:180px}.t620-person-result{display:grid;grid-template-columns:minmax(140px,1fr) minmax(190px,2fr) auto;gap:12px;align-items:end;padding:14px 0;border-top:1px solid var(--line,#dce5ef)}.t620-section input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important}.t620-section label{display:grid;gap:6px;margin:10px 0}.t620-section .t450-check{display:flex}.t620-section td{vertical-align:top}.t620-section input[readonly]{width:100%;font-family:ui-monospace,monospace}@media(max-width:720px){.t620-scores{grid-template-columns:1fr 1fr}.t620-person-result{grid-template-columns:1fr}.t620-search{display:grid;grid-template-columns:1fr}.t620-section .wb-buttons{display:flex;flex-wrap:wrap}}

.t620-feedback{padding:12px 0;border-bottom:1px solid var(--line)}.t620-feedback summary{cursor:pointer;font-weight:600}.t620-feedback dd{margin:4px 0 12px}.t620-comments{white-space:pre-wrap;overflow-wrap:anywhere}

/*6.4 reviewed teacher transfer*/
.t640-transition{margin-top:20px}.t640-transition h2{font-size:21px}.t640-profile,.t640-account{border:1px solid var(--line,#dce5ef);border-radius:12px;padding:15px;margin:14px 0;background:var(--surface-2,#f6f9fc)}.t640-profile summary,.t640-account summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;cursor:pointer}.t640-transition label{display:grid;gap:6px}.t640-transition .t450-check{display:flex;align-items:center;gap:8px}.t640-transition input[type=checkbox]{width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important}.t640-profile table{margin-top:14px}.t640-profile th small{display:block;font-size:12px;font-weight:400;margin-top:5px}.t640-profile td{white-space:pre-wrap;overflow-wrap:anywhere;max-width:320px;vertical-align:top}.t640-profile th{min-width:120px}.t640-state{padding:6px 10px;border-radius:8px;background:var(--surface,#fff);border:1px solid var(--line,#dce5ef);font-size:12px;font-weight:600}.t640-state-ready{border-color:#107c41;color:#107c41}.t640-state-blocked,.t640-state-review_required{border-color:#b88020}.t640-invitation{margin-top:14px;padding-top:14px;border-top:1px solid var(--line,#dce5ef)}.t640-activation-link{display:grid;gap:10px;padding:14px;border:1px solid var(--line,#dce5ef);border-radius:10px}.t640-activation-link input{width:100%;font-family:ui-monospace,monospace}.t640-blockers{padding-left:20px}.t640-transition .stack{display:grid;gap:14px}.t640-transition textarea{min-height:90px}.t640-transition .t520-stats{grid-template-columns:repeat(5,minmax(120px,1fr));margin:16px 0}.t640-transition #t640-profile-approval{padding:16px 0;display:grid;gap:12px}
@media(max-width:900px){.t640-transition .t520-stats{grid-template-columns:repeat(2,minmax(120px,1fr))}}@media(max-width:600px){.t640-transition .t450-grid,.t640-transition .t630-controls{display:grid;grid-template-columns:1fr}.t640-profile,.t640-account{padding:12px}.t640-profile summary,.t640-account summary{align-items:flex-start;flex-direction:column}.t640-profile td{min-width:160px}}
