.mm-active-class{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff3cc;border-bottom:2px solid #ebc786;padding:10px max(20px,calc((100vw - 1240px)/2));color:#2d254f}.mm-active-class .btn{font-size:13px;padding:8px 14px}.mm-class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.mm-class-card{background:#fffaf0;border:2px solid #f0d2ab;border-radius:18px;padding:18px}.mm-class-name{font-size:22px;font-weight:800;color:#2f2854}.mm-class-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.mm-class-actions .btn{font-size:12px;padding:9px 12px}@media(max-width:650px){.mm-active-class{flex-wrap:wrap;padding:12px 20px}}

/* v7.1 — compact instructor round navigation (Rounds 1–6) */
.mm-class-round-nav{margin:12px 0 28px;background:#fff7df;border:3px solid #fff;border-radius:28px;padding:24px 26px;box-shadow:0 7px 0 #ce9e66;color:#30294f}
.mm-class-round-nav-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}
.mm-class-round-nav-heading .eyebrow{margin:0 0 5px;font-size:12px;letter-spacing:1.4px;color:#a85e2f;font-weight:900}
.mm-class-round-nav-heading h2{margin:0 0 6px;font-size:clamp(24px,2.2vw,30px);line-height:1.15;color:#30294f}
.mm-class-round-nav-heading p:not(.eyebrow){font-size:14px;color:#71657b;margin:0}
.mm-class-round-count{background:#f0e4ff;border:1px solid #d4baff;border-radius:99px;font-size:12px;white-space:nowrap;font-weight:800;padding:8px 12px;color:#6536a8}
.mm-class-round-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mm-class-round-tile{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;background:#fffefa;border:2px solid #efd9b9;border-radius:18px;padding:15px 16px;min-height:146px}
.mm-class-round-tile-current{background:#f5eeff;border-color:#bb92f4}
.mm-class-round-text{display:flex;flex-direction:column;gap:7px;min-width:0}
.mm-class-round-number{font-size:11px;font-weight:900;letter-spacing:1px;color:#98633e}
.mm-class-round-text strong{font-weight:850;font-size:16px;line-height:1.25;color:#30294f}
.mm-class-round-text small{font-size:12px;color:#726780;line-height:1.35}
.mm-class-round-tile .mm-class-round-action.btn{font-size:12px;line-height:1.1;padding:10px 13px;border-radius:13px;min-height:36px;max-width:100%;white-space:normal;box-shadow:0 4px 0 #b090d0}
.mm-class-round-tile .btn-light.mm-class-round-action{box-shadow:0 4px 0 #d1ae6c}
.mm-class-round-action:focus-visible{outline:3px solid #744cd1;outline-offset:3px}
@media(max-width:900px){.mm-class-round-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.mm-class-round-nav{padding:18px}.mm-class-round-grid{grid-template-columns:1fr}.mm-class-round-tile{min-height:0}.mm-class-round-nav-heading{align-items:flex-start}.mm-class-round-count{display:none}}

/* Pilot UI patch: class management only. All existing JS handlers and round navigation remain intact. */
.mm-classes-dashboard{display:flex;flex-direction:column;gap:14px;max-width:1240px;margin:0 auto}
.mm-classes-dashboard>.eyebrow{margin:0}
.mm-classes-dashboard>.headline{margin:0;line-height:1.15}
.mm-classes-dashboard>.lead{margin:0 0 4px;max-width:760px;font-size:15px;line-height:1.5}
/* Class sessions first; creation and instructions are secondary. */
.mm-classes-dashboard>.panel{order:1;margin-top:4px!important;padding:20px 22px}
.mm-classes-dashboard>.cols{order:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.mm-classes-dashboard>#mmClassRosterHost{order:3;min-width:0}
.mm-classes-dashboard>.cols>.panel{min-width:0;padding:20px 22px}
.mm-classes-dashboard .panel h2{margin:0 0 14px;font-size:clamp(19px,2vw,24px);line-height:1.2}
.mm-classes-dashboard .mm-class-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}
.mm-classes-dashboard .mm-class-card{min-width:0;padding:18px;border-radius:16px;box-shadow:none}
.mm-classes-dashboard .mm-class-name{font-size:20px;line-height:1.25;overflow-wrap:anywhere;margin-bottom:8px}
.mm-classes-dashboard .mm-class-card>.help{line-height:1.5;overflow-wrap:anywhere}
.mm-classes-dashboard .mm-class-card>p{margin:10px 0}
.mm-classes-dashboard .mm-class-actions{gap:8px;margin-top:14px;align-items:center}
.mm-classes-dashboard .mm-class-actions .btn{font-size:12px;line-height:1.25;padding:9px 12px;min-height:38px;white-space:normal;max-width:100%}
.mm-classes-dashboard .mm-class-card>.mm-class-actions>.btn:first-child{flex:1 1 100%;text-align:center}
.mm-classes-dashboard .form-group{margin-bottom:12px}
.mm-classes-dashboard .form-control{max-width:100%;box-sizing:border-box}
.mm-classes-dashboard .panel .help{font-size:12px;line-height:1.45}
.mm-classes-dashboard #mmClassRosterHost .panel{margin-top:0!important;padding:20px 22px}
.mm-classes-dashboard #mmClassRosterHost .admin-scroll{max-width:100%;overflow-x:auto}
.mm-classes-dashboard #mmClassRosterHost .admin-table{min-width:820px}
@media(max-width:800px){.mm-classes-dashboard>.cols{grid-template-columns:1fr}}
@media(max-width:560px){.mm-classes-dashboard{gap:12px}.mm-classes-dashboard>.panel,.mm-classes-dashboard>.cols>.panel,.mm-classes-dashboard #mmClassRosterHost .panel{padding:16px}.mm-classes-dashboard .mm-class-grid{grid-template-columns:1fr}.mm-classes-dashboard .mm-class-actions .btn{flex:1 1 auto}}

/* v3 — focused class-management layout; scoped to this screen only. */
.mm-v3-dashboard{display:block;max-width:1160px;margin:0 auto}
.mm-v3-dashboard .mm-v3-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.mm-v3-dashboard .mm-v3-heading .eyebrow{margin:0 0 8px}
.mm-v3-dashboard .mm-v3-heading .headline{margin:0 0 8px;line-height:1.05}
.mm-v3-subtitle{margin:0;color:#514967;font-size:15px;line-height:1.5}
.mm-v3-create-toggle{flex:none;white-space:nowrap}
.mm-v3-summary{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}
.mm-v3-summary span{background:#fff9e9;border:1px solid #eacb9d;border-radius:12px;padding:10px 15px;color:#544867;font-size:13px}
.mm-v3-summary strong{font-size:18px;color:#30294f;margin-right:4px}
.mm-v3-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.mm-v3-section-head h2{margin:0!important;font-size:22px!important}
.mm-v3-class-list{display:grid;grid-template-columns:1fr;gap:12px}
.mm-v3-dashboard .mm-v3-card{padding:18px 20px;border:2px solid #e9cba5;border-radius:18px;background:#fffaf1;box-shadow:0 4px 0 #d8ab73}
.mm-v3-class-top{display:flex;justify-content:space-between;align-items:center;gap:20px}
.mm-v3-class-info{min-width:0;flex:1}
.mm-v3-dashboard .mm-v3-class-info .mm-class-name{font-size:21px;margin:0 0 9px;line-height:1.3}
.mm-v3-meta{display:flex;align-items:center;gap:9px 18px;flex-wrap:wrap;font-size:13px;color:#655a6e}
.mm-v3-code strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.3px;color:#332951}
.mm-v3-status{display:inline-block;padding:5px 10px;border-radius:999px;background:#eee7f5;color:#604a76;font-weight:800;font-size:11px}
.mm-v3-status.is-open{background:#e3f5cf;color:#356323}
.mm-v3-primary{min-width:176px;flex:none;font-size:13px!important;padding:12px 16px!important;white-space:nowrap}
.mm-v3-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border-top:1px solid #ead8bd;margin-top:16px;padding-top:13px}
.mm-v3-toolbar>.btn{font-size:12px;padding:9px 13px;min-height:37px}
.mm-v3-spacer{flex:1}
.mm-v3-more{position:relative}
.mm-v3-more summary{list-style:none;cursor:pointer;border:1px solid #ddc8ac;border-radius:11px;background:#fff;color:#3a3055;font-size:12px;font-weight:800;padding:10px 13px;user-select:none}
.mm-v3-more summary::-webkit-details-marker{display:none}
.mm-v3-more[open] summary{background:#f0e7ff}
.mm-v3-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:10;display:flex;flex-direction:column;gap:7px;min-width:170px;padding:10px;background:#fffaf1;border:1px solid #d9bd9d;border-radius:13px;box-shadow:0 10px 20px #30294f25}
.mm-v3-menu .btn{width:100%;font-size:12px;padding:9px 12px;text-align:left}
.mm-v3-danger{border:2px solid #b42318!important;color:#9b1c1c!important}
.mm-v3-create-panel{margin-top:20px!important;padding:20px!important}
.mm-v3-create-panel[hidden]{display:none!important}
.mm-v3-create-form{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr) auto;align-items:end;gap:12px}
.mm-v3-create-form .form-group{margin:0}
.mm-v3-create-form .btn{margin-bottom:1px;white-space:nowrap}
.mm-v3-footer-note{font-size:12px;color:#6c5a65;margin:20px 0 4px}
.mm-v3-empty{padding:30px;border:2px dashed #e6c49b;border-radius:15px;background:#fff8e8}
.mm-v3-dashboard #mmClassRosterHost:not(:empty){margin-top:20px}
@media(max-width:740px){.mm-v3-class-top{align-items:stretch;flex-direction:column}.mm-v3-primary{width:100%}.mm-v3-create-form{grid-template-columns:1fr}.mm-v3-dashboard .mm-v3-heading{align-items:flex-start}.mm-v3-summary{gap:7px}}
@media(max-width:520px){.mm-v3-dashboard .mm-v3-heading{flex-direction:column}.mm-v3-create-toggle{width:100%}.mm-v3-dashboard .mm-v3-card{padding:15px}.mm-v3-spacer{display:none}.mm-v3-more{margin-left:auto}.mm-v3-menu{right:0}}

/* V4: side-by-side class list and creation form */
.mm-v4-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.mm-v4-classes{min-width:0}
.mm-v4-workspace.mm-v4-split{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)}
.mm-v4-workspace .mm-v3-create-panel{margin-top:0!important;min-width:0}
.mm-v4-workspace.mm-v4-split .mm-v3-create-form{grid-template-columns:1fr;gap:12px}
.mm-v4-workspace.mm-v4-split .mm-v3-create-form .btn{justify-self:start}
.mm-v4-workspace.mm-v4-split .mm-v3-class-top{flex-wrap:wrap}
.mm-v4-workspace.mm-v4-split .mm-v3-primary{min-width:0}
.mm-v3-dashboard .mm-v3-heading{margin-bottom:12px}
.mm-v3-dashboard .mm-v3-summary{margin-bottom:15px}
@media(max-width:950px){.mm-v4-workspace.mm-v4-split{grid-template-columns:1fr}}


/* Instructor live leaderboard: isolated full-screen overlay */
.mm-live-launch{border:2px solid #8b6add!important;color:#5437a2!important}
.mm-live-presenting{overflow:hidden}
.mm-live-overlay{position:fixed;inset:0;z-index:99999;overflow:auto;background:linear-gradient(135deg,#272044,#47306c);color:#fff;padding:clamp(16px,3vw,42px);font-family:inherit}
.mm-live-shell{max-width:1420px;margin:auto}
.mm-live-header{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:25px}
.mm-live-eyebrow{font-size:12px;letter-spacing:2px;font-weight:900;color:#ffca7b;margin:0 0 9px}
.mm-live-header h1{font-size:clamp(32px,4vw,56px);color:white;margin:0 0 6px;line-height:1.1}
.mm-live-header p:not(.mm-live-eyebrow){margin:0;color:#e6dff2}
.mm-live-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mm-live-indicator{font-weight:900;font-size:12px;color:#a5efb1;letter-spacing:.5px}
.mm-live-btn{font:inherit;font-weight:800;font-size:13px;cursor:pointer;padding:11px 16px;border-radius:12px;border:1px solid #a999c8;background:#fff;color:#30264c}
.mm-live-btn:focus-visible{outline:3px solid #ffd274;outline-offset:3px}
.mm-live-close{background:#ffdd89;border-color:#ffdd89}
.mm-live-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}
.mm-live-metrics>div{background:#ffffff16;border:1px solid #ffffff35;border-radius:16px;padding:18px 22px;display:flex;flex-direction:column;gap:6px}
.mm-live-metrics strong{font-size:clamp(28px,3vw,42px);line-height:1;font-variant-numeric:tabular-nums}
.mm-live-metrics strong small{font-size:17px;color:#d6cde6}
.mm-live-metrics span{font-size:13px;color:#ded6ee}
.mm-live-board{display:flex;flex-direction:column;gap:11px}
.mm-live-team{display:flex;align-items:center;gap:18px;background:#fffaf2;color:#30264c;border-radius:18px;padding:18px 22px;box-shadow:0 5px 0 #16102b55}
.mm-live-rank{font-size:25px;font-weight:900;background:#eee5ff;border-radius:14px;width:54px;height:54px;display:grid;place-items:center;flex:none}
.mm-live-team-info{flex:1;min-width:0}
.mm-live-team-info>strong{font-size:clamp(17px,2vw,24px);overflow-wrap:anywhere}
.mm-live-rounds{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.mm-live-round{background:#ede8e2;color:#70657d;padding:5px 9px;border-radius:8px;font-weight:800;font-size:12px}
.mm-live-round.is-done{background:#d6f2cf;color:#27602e}
.mm-live-score{text-align:right;flex:none}
.mm-live-score strong{display:block;font-size:clamp(26px,3vw,40px);font-variant-numeric:tabular-nums;line-height:1.1}
.mm-live-score strong small{font-size:18px;color:#857998}
.mm-live-score>span{font-size:11px;color:#6c6177}
.mm-live-empty{background:#fffaf2;color:#30264c;padding:28px;border-radius:16px}
.mm-live-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#d6cde6;margin-top:24px}
@media(max-width:650px){.mm-live-metrics{grid-template-columns:1fr}.mm-live-team{padding:14px;gap:10px}.mm-live-rank{width:38px;height:38px;font-size:18px}.mm-live-round{padding:4px 6px}}

/* Instructor CMO dashboard */
.mm-cmo-overlay{position:fixed;inset:0;z-index:10000;background:#f4f6fb;overflow:auto;color:#18223b}.mm-cmo-shell{max-width:1500px;margin:auto;padding:28px 24px 60px}.mm-cmo-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:24px}.mm-cmo-head h1{font-size:clamp(26px,3vw,38px);margin:4px 0}.mm-cmo-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mm-cmo-actions span,.mm-cmo-note{color:#58657b;font-size:14px}.mm-cmo-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.mm-cmo-summary>div{background:white;border:1px solid #dce2ed;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:5px}.mm-cmo-summary strong{font-size:30px}.mm-cmo-summary span{font-size:13px;color:#59667b}.mm-cmo-scroll{overflow:auto;background:white;border:1px solid #dce2ed;border-radius:14px;margin:12px 0 30px}.mm-cmo-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}.mm-cmo-table th,.mm-cmo-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #e9edf4}.mm-cmo-table thead th{background:#edf1f8;position:sticky;top:0;z-index:1}.mm-cmo-table th:first-child{position:sticky;left:0;background:#f5f7fb;z-index:2}.mm-cmo-table thead th:first-child{z-index:3;background:#edf1f8}.mm-cmo-table small{display:block;font-weight:400;color:#66758a}.mm-cmo-team-link{border:0;background:none;color:#3747a7;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}.mm-cmo-table tr:hover td{background:#fafbff}@media(max-width:650px){.mm-cmo-shell{padding:16px 12px}.mm-cmo-summary{grid-template-columns:1fr}.mm-cmo-actions{width:100%}}

/* Instructor CMO: submitted decisions and strategic rationale */
.mm-cmo-strategy{margin-top:28px}.mm-cmo-strategy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:14px}.mm-cmo-strategy-card{border:1px solid #dbe2ed;border-radius:12px;padding:17px;background:#fff;min-width:0}.mm-cmo-strategy-card h4{margin:0 0 12px;font-size:17px}.mm-cmo-strategy-card h4 small{font-size:12px;font-weight:400;color:#64748b}.mm-cmo-strategy-card dl{display:grid;grid-template-columns:minmax(90px,1fr) 1.5fr;gap:7px 12px;margin:0 0 15px;font-size:13px}.mm-cmo-strategy-card dt{font-weight:600;text-transform:capitalize;color:#475569}.mm-cmo-strategy-card dd{margin:0;overflow-wrap:anywhere}.mm-cmo-strategy-card h5{margin:12px 0 6px;font-size:13px}.mm-cmo-rationale{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:14px}

/* Sortable CMO comparison and category standings */
.mm-cmo-sort{background:transparent;border:0;padding:0;color:inherit;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap;text-align:left}.mm-cmo-sort:hover{text-decoration:underline}.mm-cmo-sort:focus-visible{outline:2px solid #4459b9;outline-offset:3px}.mm-cmo-sort span{color:#52639d;margin-left:5px}.mm-cmo-rank-section{margin:18px 0 28px}.mm-cmo-rank-section h3{margin-bottom:8px}.mm-cmo-leaders{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.mm-cmo-leaders>div{background:#fff;border:1px solid #dce2ed;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px}.mm-cmo-leaders strong{font-size:12px;color:#53627c}.mm-cmo-leaders span{font-weight:750;overflow-wrap:anywhere}.mm-cmo-leaders small{color:#53627c}

/* Per-class CMO leaderboard weighting */
.mm-cmo-weight-settings{background:#fff;border:1px solid #dce2ed;border-radius:14px;padding:20px;margin-bottom:24px}
.mm-cmo-weight-top,.mm-cmo-weight-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mm-cmo-weight-top h2{margin:0 0 4px;font-size:20px}.mm-cmo-weight-top p{margin:0 0 14px}
.mm-cmo-weight-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;margin:14px 0}
.mm-cmo-weight-grid label{font-size:13px;font-weight:700;color:#34415a;display:flex;flex-direction:column;gap:8px}
.mm-cmo-weight-grid label span{display:flex;align-items:center;gap:7px}
.mm-cmo-weight-grid input{min-width:0;width:100%;box-sizing:border-box;border:1px solid #b8c3d4;border-radius:8px;padding:9px;font:inherit;color:#18223b}
.mm-cmo-weight-grid input:focus-visible{outline:2px solid #4459b9;outline-offset:2px}
.mm-cmo-weight-footer{border-top:1px solid #e7ebf2;padding-top:14px}.mm-cmo-weight-footer strong{color:#24324e}.mm-cmo-weight-footer span{flex:1;color:#59667b;font-size:13px}
@media(max-width:850px){.mm-cmo-weight-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}}

/* CMO Dashboard 2.0: scoped visual refresh; no changes to game screens. */
.mm-cmo-overlay{background:#f5f3fb;color:#30294f;z-index:100001}
.mm-cmo-shell{max-width:1440px;padding:clamp(16px,3vw,38px) clamp(14px,3vw,38px) 72px}
.mm-cmo-head{background:#fff9eb;border:2px solid #edd3aa;border-radius:24px;padding:24px 28px;box-shadow:0 5px 0 #dfb77e;margin-bottom:24px}
.mm-cmo-head .eyebrow{font-weight:900;letter-spacing:1.7px;color:#a75a2d;font-size:12px}
.mm-cmo-head h1{color:#30294f;font-size:clamp(28px,3vw,42px);line-height:1.15;font-weight:900}
.mm-cmo-actions .btn{border-radius:14px;min-height:42px}
.mm-cmo-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 30px}
.mm-cmo-summary>div{background:#fffaf1;border:2px solid #ead2b0;border-radius:20px;padding:24px;box-shadow:0 4px 0 #e5c7a1}
.mm-cmo-summary strong{font-size:clamp(32px,3vw,46px);font-weight:900;line-height:1.1;color:#653ac0;font-variant-numeric:tabular-nums}
.mm-cmo-summary strong small{font-size:17px;color:#8c7c9f}
.mm-cmo-summary span{font-weight:750;color:#685878;margin-top:4px}
.mm-cmo-weight-settings{background:#fff;border:2px solid #e2d6ef;border-radius:20px;padding:22px 24px;margin-bottom:28px}
.mm-cmo-weight-top h2{font-size:22px;color:#30294f}
.mm-cmo-weight-grid input{border:2px solid #ded1ed;border-radius:11px;background:#fdfbff}
.mm-cmo-section-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap;margin:30px 0 10px}
.mm-cmo-section-heading h2{margin:0;color:#30294f;font-size:clamp(21px,2.2vw,28px)}
.mm-cmo-kicker{font-size:11px;font-weight:900;letter-spacing:1.5px;color:#a65d31;margin:0 0 5px}
.mm-cmo-chip{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eee3ff;color:#633e9c;font-weight:850;font-size:12px}
.mm-cmo-scroll{border:2px solid #e6dceb;border-radius:18px;box-shadow:0 3px 0 #e2d6e9;margin:15px 0 26px}
.mm-cmo-table{font-size:13px}
.mm-cmo-table th,.mm-cmo-table td{padding:15px 16px;border-bottom:1px solid #eee8f3}
.mm-cmo-table thead th,.mm-cmo-table thead th:first-child{background:#f1e8ff;color:#392b59}
.mm-cmo-table th:first-child{background:#faf6ff}
.mm-cmo-table tbody tr:nth-child(even){background:#fdfbff}
.mm-cmo-team-link{color:#653ac0;text-decoration:none;font-weight:850}
.mm-cmo-team-link:hover{text-decoration:underline}
.mm-cmo-leaders{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:16px 0 32px}
.mm-cmo-leaders>div{border:2px solid #e8d6bc;border-radius:17px;background:#fff9ed;padding:20px}
.mm-cmo-leaders strong{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:#8a5c42}
.mm-cmo-leaders span{font-size:18px;color:#30294f}
.mm-cmo-strategy-card{background:#fffaf3;border:2px solid #ebd8bf;border-radius:17px;padding:20px}
.mm-cmo-strategy-card h4{color:#30294f}
.mm-cmo-rationale{background:white;border:1px solid #ebd8bf;border-radius:10px;padding:12px}
.mm-cmo-note{line-height:1.55}
@media(max-width:800px){.mm-cmo-head{padding:18px}.mm-cmo-summary{grid-template-columns:1fr}.mm-cmo-summary>div{padding:18px}.mm-cmo-weight-settings{padding:16px}}

/* CMO dashboard refresh · UI-only, shared by Quick Play and Classic */
.mm-cmo-overlay{background:radial-gradient(circle at 15px 15px,rgba(255,255,255,.28) 1.4px,transparent 1.6px) 0 0/38px 38px,linear-gradient(115deg,#ffbd74,#ffdc91 65%,#ffc179);color:#30264e}
.mm-cmo-shell{max-width:1500px;margin:auto;padding:clamp(16px,2.8vw,36px) clamp(14px,2.8vw,36px) 70px}
.mm-cmo-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:#fff9eb;border:2px solid rgba(255,255,255,.95);border-radius:26px;padding:22px 26px;box-shadow:0 6px 0 #d8a66c;margin-bottom:20px}
.mm-cmo-head h1{font-size:clamp(27px,3vw,43px);letter-spacing:-.035em;margin:5px 0 7px}
.mm-cmo-head p{margin:0}.mm-cmo-head .eyebrow{color:#a85b2e}
.mm-cmo-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}
.mm-cmo-actions .btn{min-height:44px;white-space:nowrap;box-shadow:0 4px 0 #d7aa6e}
.mm-cmo-live{display:inline-flex;align-items:center;gap:8px;color:#496743;font-size:12px;font-weight:900;letter-spacing:.04em;margin-right:8px}
.mm-cmo-live-dot{height:9px;width:9px;background:#5fc74e;border-radius:50%;box-shadow:0 0 0 3px #e4f6d8}
.mm-cmo-settings{background:#fffaf1;border:2px solid #ebd1a8;border-radius:20px;margin:0 0 22px;box-shadow:0 4px 0 #d9aa72;overflow:hidden}
.mm-cmo-settings>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;list-style:none}
.mm-cmo-settings>summary::-webkit-details-marker{display:none}
.mm-cmo-settings>summary strong{display:block;font-size:17px;color:#30264e}
.mm-cmo-settings>summary small{display:block;color:#76667f;margin-top:3px;font-size:12px}
.mm-cmo-settings-toggle{color:#6840a8;background:#f0e5ff;padding:9px 13px;border-radius:999px;font-weight:850;font-size:12px;white-space:nowrap}
.mm-cmo-settings[open] .mm-cmo-settings-toggle{background:#e5d4ff}
.mm-cmo-weight-settings{margin:0;border:0;border-top:1px solid #ecd7b9;border-radius:0;box-shadow:none;background:#fffdf7;padding:20px 22px}
.mm-cmo-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}
.mm-cmo-summary>div{background:#fff9ee;border:2px solid #ebd1a8;border-radius:20px;padding:20px 22px;box-shadow:0 5px 0 #d9aa72}
.mm-cmo-summary strong{color:#7140c7;font-size:clamp(30px,3.3vw,46px)}
.mm-cmo-summary span{font-size:13px}
.mm-cmo-section-heading{margin-top:28px}
.mm-cmo-scroll{background:#fffdf9;border:2px solid #ead8bd;border-radius:18px;box-shadow:0 4px 0 #dcb98c;overflow-x:auto}
.mm-cmo-table{min-width:720px;border-collapse:separate;border-spacing:0;width:100%;font-size:13px}
.mm-cmo-table th,.mm-cmo-table td{padding:14px 15px;vertical-align:middle}
.mm-cmo-table thead th,.mm-cmo-table thead th:first-child{background:#f0e5ff;color:#30264e}
.mm-cmo-table tbody tr:nth-child(even){background:#fffbf3}
.mm-cmo-table tbody tr:hover{background:#f7efff}
.mm-cmo-table th:first-child{background:inherit}
.mm-cmo-team-link{color:#6b3ac3;font-weight:900}
.mm-cmo-leaders{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:13px}
.mm-cmo-leaders>div{background:#fff9ee;border:2px solid #ebd1a8;box-shadow:0 3px 0 #dcb98c;border-radius:18px;padding:18px}
.mm-cmo-strategy-card{background:#fffaf1;border-color:#ead1ac}
.mm-cmo-note{color:#625775}
@media(max-width:850px){.mm-cmo-head{align-items:flex-start;padding:18px}.mm-cmo-actions{justify-content:flex-start}.mm-cmo-summary{grid-template-columns:1fr}.mm-cmo-settings>summary{padding:15px}.mm-cmo-settings-toggle{font-size:11px}}

/* CMO warm palette: scoped to instructor analytics only (Classic and Quick Play). */
.mm-cmo-overlay{background-color:#ffc47e;background-image:radial-gradient(rgba(255,255,255,.32) 1.25px,transparent 1.25px),linear-gradient(115deg,#ffb66e 0%,#ffdb94 60%,#ffbb76 100%);background-size:38px 38px,100% 100%;color:#30294f}
.mm-cmo-head{background:linear-gradient(120deg,#fffaf0,#fff0c9);border-color:#f0cf9a;box-shadow:0 6px 0 #c99050}
.mm-cmo-head h1,.mm-cmo-section-heading h2,.mm-cmo-rank-section h3,.mm-cmo-strategy h3,.mm-cmo-weight-top h2,.mm-cmo-overlay h2,.mm-cmo-overlay h3{color:#30294f}
.mm-cmo-actions span,.mm-cmo-note{color:#6d6174}
.mm-cmo-summary>div,.mm-cmo-leaders>div,.mm-cmo-strategy-card{background:#fff8e9;border-color:#e8c99d;box-shadow:0 4px 0 #d4aa6e}
.mm-cmo-summary strong{color:#a94f27}
.mm-cmo-summary strong small{color:#8b705e}
.mm-cmo-summary span{color:#66566c}
.mm-cmo-weight-settings{background:#fff9ed;border-color:#ebcb9b;box-shadow:0 4px 0 #d4aa6e}
.mm-cmo-weight-grid label{color:#30294f}
.mm-cmo-weight-grid input{background:#fffdfa;border-color:#e9c99a;color:#30294f}
.mm-cmo-weight-grid input:focus-visible,.mm-cmo-sort:focus-visible{outline-color:#b25a2c}
.mm-cmo-weight-footer{border-top-color:#e9d4b3}
.mm-cmo-weight-footer strong{color:#30294f}
.mm-cmo-chip{background:#ffe3aa;color:#8d4627}
.mm-cmo-scroll{background:#fffaf1;border-color:#e9cfaa;box-shadow:0 4px 0 #d4aa6e}
.mm-cmo-table thead th,.mm-cmo-table thead th:first-child{background:#f7dfb8;color:#30294f}
.mm-cmo-table th:first-child{background:#fff3dc}
.mm-cmo-table th,.mm-cmo-table td{border-bottom-color:#ead9be}
.mm-cmo-table tbody tr:nth-child(even){background:#fff5e5}
.mm-cmo-table tbody tr:hover td{background:#ffedc9}
.mm-cmo-team-link{color:#994720}
.mm-cmo-sort span{color:#9c603b}
.mm-cmo-leaders strong{color:#98572f}
.mm-cmo-leaders span,.mm-cmo-strategy-card h4{color:#30294f}
.mm-cmo-leaders small{color:#735e55}
.mm-cmo-strategy-card h4 small{color:#816c60}
.mm-cmo-strategy-card dt{color:#6e5d56}
.mm-cmo-rationale{background:#fffdfa;border-color:#e8cfab}
.mm-cmo-overlay .btn.btn-purple{background:linear-gradient(#ffdf86,#ffc85b)!important;border-color:#e9b448!important;color:#33294a!important;box-shadow:0 5px 0 #c99347!important}
.mm-cmo-overlay .btn.btn-purple:not(:disabled):hover{background:linear-gradient(#ffe8a1,#ffd36d)!important}
.mm-cmo-overlay .btn.btn-light{background:#fffaf2!important;border-color:#e9d2b0!important;color:#30294f!important;box-shadow:0 5px 0 #d1a668!important}
.mm-cmo-overlay .btn:disabled{opacity:.5;cursor:not-allowed}

/* Six-round CMO instructor insights */
.mm-cmo-insights{margin:24px 0 28px;padding:24px;border:2px solid #e8c997;border-radius:20px;background:#fff9ed;box-shadow:0 5px 0 #d3a66b;color:#30294f}
.mm-cmo-insights-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.mm-cmo-insights-head h3{font-size:clamp(1.25rem,2vw,1.65rem);margin:4px 0 6px}
.mm-cmo-insights-kicker{font-size:.72rem;font-weight:900;letter-spacing:.12em;color:#a95029;margin:0}
.mm-cmo-insights-tag{display:inline-block;border-radius:999px;background:#ffe6b1;padding:8px 12px;font-size:.8rem;font-weight:800;color:#794326}
.mm-cmo-insights-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.mm-cmo-insights-metric{background:#fffdf7;border:1px solid #ecd5af;border-radius:13px;padding:14px;min-width:0}
.mm-cmo-insights-metric span{display:block;color:#765e51;font-size:.8rem;font-weight:700;margin-bottom:6px}
.mm-cmo-insights-metric strong{display:block;font-size:clamp(1rem,1.7vw,1.45rem);overflow-wrap:anywhere;color:#a44c24}
.mm-cmo-insights-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mm-cmo-insight{display:flex;align-items:flex-start;gap:12px;padding:14px;border-radius:12px;background:#fffdf9;border:1px solid #e9d8bc;min-width:0}
.mm-cmo-insight-symbol{flex:0 0 30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:900;background:#f4e9d8;color:#855b37}
.mm-cmo-insight-positive .mm-cmo-insight-symbol{background:#d9efd5;color:#276a35}
.mm-cmo-insight-caution .mm-cmo-insight-symbol{background:#ffe0bc;color:#995018}
.mm-cmo-insight h4{margin:0 0 6px;font-size:.98rem;color:#30294f}
.mm-cmo-insight p{margin:0;font-size:.88rem;line-height:1.5;color:#66584f}
.mm-cmo-insights-disclaimer{margin:18px 0 0;font-size:.8rem;line-height:1.5;color:#78685c;border-top:1px solid #ebd9bb;padding-top:13px}
@media(max-width:850px){.mm-cmo-insights-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-cmo-insights-list{grid-template-columns:1fr}}
@media(max-width:480px){.mm-cmo-insights{padding:15px}.mm-cmo-insights-metrics{gap:8px}.mm-cmo-insights-metric{padding:10px}}

/* Compact six-round strategy cards: expand long student reasoning on demand. */
.mm-cmo-strategy-grid{align-items:start}
.mm-cmo-reason-details{margin:12px 0 10px;border:1px solid #e8cfab;border-radius:12px;background:#fffdfa;overflow:hidden}
.mm-cmo-reason-details>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;padding:12px 13px;list-style:none;font-size:13px;font-weight:800;color:#30294f}
.mm-cmo-reason-details>summary::-webkit-details-marker{display:none}
.mm-cmo-reason-details>summary:focus-visible{outline:3px solid #a95029;outline-offset:-3px}
.mm-cmo-reason-toggle{font-size:12px;color:#995027;font-weight:800;white-space:nowrap}
.mm-cmo-reason-details[open] .mm-cmo-reason-toggle{font-size:0}
.mm-cmo-reason-details[open] .mm-cmo-reason-toggle::after{content:'Collapse';font-size:12px}
.mm-cmo-reason-preview{margin:0;padding:0 13px 12px;font-size:13px;line-height:1.5;color:#64564f;overflow-wrap:anywhere}
.mm-cmo-reason-details[open] .mm-cmo-reason-preview{display:none}
.mm-cmo-reason-full{display:none;padding:0 12px 12px}
.mm-cmo-reason-details[open] .mm-cmo-reason-full{display:block}
.mm-cmo-reason-full .mm-cmo-rationale{margin:0;max-height:240px;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:480px){.mm-cmo-reason-details>summary{flex-wrap:wrap}}
