/* Shared draw controls retain the chalk palette and remain firm, legible buttons. */
body .tp-lever{display:inline-flex!important;align-items:center;justify-content:center;gap:12px;min-height:54px;min-width:192px;padding:8px 18px!important;border:1px solid var(--blue,#a4c6ca)!important;border-radius:6px!important;background:color-mix(in srgb,var(--blue,#a4c6ca) 13%,var(--paper,#242b26))!important;color:var(--ink,#eff2ec)!important;text-decoration:none!important;font:700 16px/1.25 'Segoe UI',Arial,sans-serif!important;white-space:nowrap;box-sizing:border-box;transition:background-color .18s ease-out,border-color .18s ease-out}
body .tp-lever:hover:not(:disabled){background:color-mix(in srgb,var(--blue) 23%,var(--paper))!important;border-color:var(--ink)!important}body .tp-lever:active:not(:disabled){background:color-mix(in srgb,var(--blue) 30%,var(--paper))!important}body .tp-lever:disabled{opacity:.65;cursor:wait}body .tp-lever:focus-visible{outline:2px solid var(--pink,#cfadbc);outline-offset:4px}body .tp-lever svg{display:block!important;width:42px!important;height:42px!important;flex:0 0 42px;fill:none;stroke:var(--ink);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}body .tp-lever .lever-base{stroke:var(--blue)}body .tp-lever .lever-arm circle{fill:var(--pink,#cfadbc);stroke:var(--pink,#cfadbc)}body .tp-lever .lever-highlight{stroke:var(--paper);stroke-width:1.4}body .tp-lever .lever-arm{transform-origin:26px 33px}body .tp-lever[data-lever-busy=true] .lever-arm{animation:tp-lever-pull .55s cubic-bezier(.16,1,.3,1) forwards}@keyframes tp-lever-pull{to{transform:rotate(50deg)}}
.assessment-output-options{margin:16px 0 20px}.assessment-output-options>label{display:inline-flex;align-items:center;gap:9px;min-height:44px;margin-right:18px}.assessment-output-options input[type=number]{max-width:100px}.assessment-output-options input[type=checkbox]{width:19px;height:19px}.level-r-options{margin:10px 0}.level-r-options summary{cursor:pointer;padding:8px 0;font-weight:600}.level-r-options>label{display:inline-flex;align-items:center;min-height:44px;gap:8px;margin-right:18px}.assessment-output-options [hidden]{display:none!important}
#groupBuilder{width:min(960px,calc(100vw - 24px));box-sizing:border-box;max-height:92dvh;overflow:auto;overscroll-behavior:contain}#groupBuilder .close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}#groupBuilder :is(select,input[type=number],input[type=text],input:not([type]),textarea){box-sizing:border-box;display:block;max-width:100%;padding:10px;margin:8px 0;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:4px;font:inherit}#groupBuilder textarea{width:100%}.group-build-fields{display:flex;align-items:end;flex-wrap:wrap;gap:12px 16px;margin:12px 0}.group-build-fields label{display:block}.group-build-fields input[type=checkbox]{width:19px;height:19px;margin-right:6px}.group-build-fields>button,#groupBuilder button:not(.close){min-height:44px}.group-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:18px 24px;list-style:none;padding:0;margin:20px 0}.group-results li{padding:14px 0;border-bottom:1px solid var(--line)}.group-results h3{margin:0 0 8px;font:700 18px/1.3 'Segoe UI',Arial,sans-serif;color:var(--blue)}.group-results p{margin:0;line-height:1.6;overflow-wrap:anywhere}.group-results li:nth-child(even) h3{color:var(--pink,#cfadbc)}#groupBuilder h3{margin-top:22px}#groupBuilder details{margin:20px 0}#groupBuilder summary{cursor:pointer;padding:8px 0;font-weight:600}#groupBuilder p{max-width:70ch}.group-student-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 16px}.group-student-choices label{display:flex;align-items:center;gap:8px;min-height:44px}.group-student-choices input{width:19px;height:19px}#groupBuilder [hidden],#groupDrawPlayer [hidden]{display:none!important}#groupBuilder :is(button,input,select,textarea,summary):focus-visible,#groupDrawPlayer button:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
#groupDrawPlayer{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:24px;box-sizing:border-box;background:var(--bg);color:var(--ink);overflow:auto;border:0;border-radius:0}.group-draw-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px}.group-draw-header h2{margin:8px 0;font-size:26px}.group-brand{font:22px 'Patrick Hand','Segoe Print',cursive;color:var(--ink)}#groupDrawStatus{font-size:18px;line-height:1.5;min-height:1.5em}.group-room-preview{height:390px;width:100%;overflow:hidden;border:1px solid var(--line);position:relative;background:var(--bg);margin:14px 0}.group-room-frame{position:relative;margin:auto}.group-room-mini{position:relative;border:1px solid var(--line);box-sizing:border-box}.group-room-mini .group-mini-desk{position:absolute;background:transparent;padding:0;min-width:0!important;min-height:0!important;width:var(--desk-w);height:var(--desk-h)}.group-room-mini .desk-top{display:block;width:100%;height:100%;color:var(--ink)}.group-room-mini .desk-name{font-family:'Patrick Hand','Segoe Print',cursive}.group-room-mini .desk-art{width:100%;height:100%;position:absolute;inset:0;fill:none;stroke:var(--ink);stroke-width:1.6}.group-room-mini .group-mini-desk.group-chosen{outline:3px solid var(--blue)!important;outline-offset:4px}.group-room-mini .group-mini-desk:disabled{opacity:.45}.group-room-mini .fixture{pointer-events:none}.group-room-mini .fixture svg{width:100%;height:100%;fill:none;stroke:var(--ink);stroke-width:1.6}#groupDrawRoom{height:calc(100dvh - 195px);min-height:280px}#groupDrawResults{font-size:20px}#groupDrawResults h3{font-size:24px}@media(max-width:600px){#groupDrawPlayer{padding:16px}.group-draw-header{display:block}.group-build-fields{gap:10px}body .tp-lever{min-width:180px}.group-room-preview{height:300px}.group-student-choices{grid-template-columns:1fr}.group-results{grid-template-columns:1fr}#groupDrawRoom{height:55dvh}}
@media(prefers-reduced-motion:reduce){body .tp-lever .lever-arm{animation:none!important}body .tp-lever{transition:none}}

#groupDrawResults{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 32px}#groupDrawResults li{padding:16px 0 22px}#groupDrawResults p{line-height:1.7}@media(max-width:850px){#groupDrawResults{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){#groupDrawResults{grid-template-columns:1fr}}

body :is(#groupDrawLever,#studentPickerStart,#revealRoll,#revealAgain,#randomSeats).tp-lever{border:1px solid var(--blue,#a4c6ca)!important;border-radius:6px!important;background-color:color-mix(in srgb,var(--blue,#a4c6ca) 13%,var(--paper,#242b26))!important}
