/* Custom Workbooks Project (2026-10-15): selection UI, shared by
   worksheets.html and chalkboard.php. */
.wb-build-btn { display: inline-block; margin-top: 1rem; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 700; padding: 12px 22px; border-radius: 10px; border: 2px solid #d4a017; background: #fff; color: var(--navy); box-shadow: 0 0 0 3px rgba(212,160,23,.22); }
.wb-build-btn:hover { border-color: #b78a12; }
.gal-card { position: relative; }
.cb-card { position: relative; }
.wb-sel-check { position: absolute; top: 10px; left: 10px; z-index: 5; width: 34px; height: 34px; background: #fff; border: 2px solid var(--navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.wb-sel-check input { width: 20px; height: 20px; cursor: pointer; accent-color: var(--navy); }
body.wb-sel-mode .gal-card { cursor: pointer; }
body.wb-sel-mode .cb-card { cursor: pointer; }
#wb-sel-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; background: #c0392b; color: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; box-shadow: 0 -4px 18px rgba(0,0,0,.3); }
#wb-sel-bar[hidden] { display: none !important; }
.wb-sel-status { font-weight: 700; font-size: 1rem; }
.wb-sel-btns { display: flex; gap: 8px; }
#wb-sel-bar button { font-family: inherit; font-weight: 700; padding: 10px 18px; border-radius: 10px; border: none; cursor: pointer; font-size: .95rem; }
.wb-sel-build { background: var(--amber); color: var(--navy-dark); }
.wb-sel-build:disabled { background: #9aa0a6; color: #3c4043; cursor: not-allowed; }
.wb-sel-cancel { background: transparent; color: #fff; border: 2px solid #fff !important; }
.wb-sel-clear { background: transparent; color: #fff; border: 2px solid #fff !important; }
.wb-sel-clear:disabled { opacity: .45; cursor: not-allowed; }
html.pwa-standalone #wb-sel-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
