/* V22: keeps confirmation within fullscreen and gives operator clear LMS status */
.cbt-v22-dialog{position:fixed;inset:0;z-index:2147483646;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(8,24,52,.76);font-family:inherit}
.cbt-v22-dialog-panel{width:min(520px,100%);padding:28px;background:#fff;color:#102f57;border:1px solid #a7cbea;border-radius:20px;box-shadow:0 20px 85px rgba(0,0,0,.35)}
.cbt-v22-dialog-panel h2{font-size:1.3rem;margin:0 0 12px;color:#123f74}
.cbt-v22-dialog-panel p{line-height:1.65;margin:0 0 23px}
.cbt-v22-dialog-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.cbt-v22-dialog-actions button{min-height:44px}
.cbt-v22-participants{margin:20px 0;padding:20px;border:1px solid #accff0;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(16,65,123,.07)}
.cbt-v22-participants h3{color:#173f75;margin-bottom:10px}
.cbt-v22-participants p,.cbt-v22-policy-status{color:#375875;line-height:1.5}
.cbt-v22-control-row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.cbt-v22-control-row select{min-width:min(340px,100%);flex:1;border:1px solid #9bc4e9;border-radius:12px;padding:10px;color:#153b70;background:#f7fbff}
.cbt-v22-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:15px 0}
.cbt-v22-stat{border:1px solid #c4dcee;border-radius:12px;padding:12px;background:#f1f8ff;display:grid;gap:5px;color:#254c79}
.cbt-v22-stat strong{font-size:1.35rem;color:#0f508a}
.cbt-v22-table-wrap{max-height:650px;overflow:auto;border:1px solid #c8dbef;border-radius:14px}
.cbt-v22-table{width:100%;border-collapse:collapse;min-width:980px;text-align:left;color:#173b65}
.cbt-v22-table th{background:#deedfc;position:sticky;top:0;z-index:1;padding:12px;font-weight:700}
.cbt-v22-table td{padding:10px 12px;border-top:1px solid #e4eef7;vertical-align:top;font-size:.9rem}
.cbt-v22-table tbody tr:nth-child(2n){background:#f8fbff}
.cbt-v22-status{font-weight:700;color:#145487}
@media(max-width:640px){.cbt-v22-dialog-panel{padding:20px}.cbt-v22-dialog-actions{flex-direction:column}.cbt-v22-dialog-actions button{width:100%}}

/* V22 FIX4: prominent, accessible server refresh placed next to the quiz list. */
.cbt-quiz-sync-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0;padding:12px 16px;background:#f2f8ff;border:1px solid #cbdffa;border-radius:16px}
.cbt-quiz-sync-toolbar .btn{font-weight:700}
.cbt-quiz-sync-toolbar .cbt-sync-stamp{font-size:.86rem;color:#28527c}

/* FIX5: inline policy editor and provenance of server values. */
.cbt-policy-origin{display:inline-block;margin-left:6px;color:#426483;font-size:.78rem;font-weight:600}
.cbt-policy-editor-v22{margin-top:16px;padding:16px;border:1px solid #9cc5e6;background:#eef7ff;border-radius:15px;color:#173c64}
.cbt-policy-editor-v22 h4{font-size:1.05rem;margin:0 0 10px;color:#124373}
.cbt-policy-editor-v22 p{font-size:.92rem;line-height:1.55;margin:8px 0}
.cbt-policy-editor-row{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:14px 0}
.cbt-policy-editor-row label{display:grid;gap:5px;font-weight:700;min-width:150px}
.cbt-policy-editor-row input{width:145px;max-width:100%;border:1px solid #76a9d4;border-radius:10px;padding:9px 12px;background:#fff;color:#123c67;font:inherit}
.cbt-policy-editor-row .btn{min-height:43px}
.cbt-policy-save-status{font-weight:700;color:#1f6d4f}
.cbt-policy-save-status.bad{color:#a5202b}

/* CBT V23: per-participant operational actions with adequate touch targets. */
.cbt-v23-actions{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0;align-items:center}
.cbt-v23-actions .btn,.cbt-v23-action{min-height:37px;border:1px solid #a6c9e7;border-radius:10px;padding:7px 11px;color:#154b78;background:#eef7ff;font-weight:700;cursor:pointer}
.cbt-v23-actions .btn:disabled,.cbt-v23-action:disabled{opacity:.35;cursor:not-allowed}
.cbt-v23-actions .btn:hover:not(:disabled),.cbt-v23-action:hover:not(:disabled){background:#cce8ff}
.cbt-v22-table{min-width:1300px}


/* V23 FIX1: inline confirmation replaces action reason prompts and native popups. */
.cbt-v23-confirm-inline{flex:1 1 100%;min-width:220px;margin:8px 0 6px;padding:13px 15px;border:1px solid #b2cbe5;border-radius:12px;background:#f0f7ff;color:#18466f}
.cbt-v23-confirm-inline strong{display:block;margin-bottom:6px}
.cbt-v23-confirm-inline p{margin:6px 0 10px;font-size:.89rem;line-height:1.45}
.cbt-v23-confirm-inline label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cbt-v23-minutes{width:92px;min-height:37px;padding:5px 9px;border:1px solid #89b6d9;border-radius:9px;background:#fff;color:#153c62}
.cbt-v23-confirm-controls{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}

/* V23 FIX2: compact row actions, no timer-driven table replacement */
.cbt-v23-actions{display:block;margin:0;min-width:158px}
.cbt-v23-action-menu{position:relative;max-width:230px}
.cbt-v23-action-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;user-select:none}
.cbt-v23-action-menu>summary::-webkit-details-marker{display:none}
.cbt-v23-action-choices{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:8px 3px 5px}
.cbt-v23-action-choices>.cbt-v23-action{min-width:145px;text-align:left}
.cbt-v23-action-menu .cbt-v23-confirm-inline{min-width:230px;max-width:360px}
.cbt-v22-table-wrap{overflow:auto;scrollbar-gutter:stable;}
