.bm-app{max-width:980px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1d1d1f}
.bm-app *{box-sizing:border-box}
.bm-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:13px;margin:0 0 14px}
.bm-legend span{display:flex;align-items:center;gap:6px}
.bm-sw{width:18px;height:18px;border-radius:4px;display:inline-block;border:1px solid rgba(0,0,0,.15)}
.bm-school,.bm-off{background:repeating-linear-gradient(135deg,#ececec 0 6px,#cfcfcf 6px 7px);color:#555}
.bm-game{background:#ffd84a;color:#4a3b00}
.bm-booked{background:#2f7df6;color:#fff}
.bm-hold{background:#dbe8fe;border:1px dashed #2f7df6;color:#1b4fa0}
.bm-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.bm-head h3{margin:0;font-size:24px;font-weight:600}
.bm-head button,.bm-back{background:#f2f2f4;border:0;border-radius:8px;padding:8px 14px;font-size:15px;cursor:pointer}
.bm-head button:hover,.bm-back:hover{background:#e4e4e8}
.bm-grid{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid #ddd;border-left:1px solid #ddd}
.bm-dow{padding:6px;text-align:center;font-size:12px;font-weight:600;color:#777;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:#fafafa}
.bm-cell{min-height:96px;padding:4px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;cursor:pointer;background:#fff;overflow:hidden;position:relative}
.bm-cell:hover{background:#f5f9ff}
.bm-cell.other{background:#fafafa;color:#aaa}
.bm-cell.past{opacity:.45;cursor:default}
.bm-cell .n{font-size:13px;font-weight:600;margin-bottom:3px}
.bm-cell.today .n{background:#e5352b;color:#fff;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}
.bm-chip{display:block;font-size:11px;line-height:1.25;padding:2px 4px;border-radius:3px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bm-dayview .bm-scroll{height:560px;overflow-y:auto;border:1px solid #ddd;border-radius:8px;position:relative;background:#fff}
.bm-hours{position:relative;height:1344px}
.bm-hr{position:absolute;left:0;right:0;height:56px;border-top:1px solid #e5e5e5}
.bm-hr b{position:absolute;left:6px;top:-9px;background:#fff;padding:0 4px;font-size:11px;font-weight:500;color:#888}
.bm-lane{position:absolute;left:64px;right:8px;top:0;bottom:0;cursor:pointer}
.bm-blk{position:absolute;left:0;right:0;border-radius:6px;padding:4px 8px;font-size:12px;overflow:hidden;pointer-events:none}
.bm-now{position:absolute;left:56px;right:0;height:2px;background:#e5352b;pointer-events:none}
.bm-pick{position:absolute;left:0;right:0;border-radius:6px;background:rgba(47,125,246,.25);border:2px solid #2f7df6;pointer-events:none}
.bm-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;overflow:auto;z-index:99999;padding:20px}
.bm-form{background:#fff;border-radius:14px;padding:22px;max-width:520px;width:100%}
.bm-form h3{margin:0 0 12px}
.bm-form label{display:block;font-size:13px;font-weight:600;margin:10px 0 4px}
.bm-form input,.bm-form select,.bm-form textarea{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px;font-size:15px;font-family:inherit}
.bm-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.bm-actions{display:flex;gap:10px;margin-top:16px}
.bm-actions button{flex:1;padding:12px;border-radius:8px;border:0;font-size:16px;cursor:pointer}
.bm-go{background:#2f7df6;color:#fff}.bm-go:disabled{opacity:.6}
.bm-cancel{background:#eee}
.bm-msg{margin:10px 0;padding:10px;border-radius:8px;font-size:14px}
.bm-err{background:#fdecea;color:#a1271b}.bm-ok{background:#e8f5e9;color:#1e6b34}
.bm-hp{position:absolute;left:-9999px}
@media(max-width:640px){.bm-cell{min-height:64px}.bm-chip{font-size:9px}.bm-row{grid-template-columns:1fr}}
