/* Dense, paged sheets: attendance stays in the normal class view. */
body.boardmode { overflow:hidden; }
body.boardmode #workspace .shell, body.boardmode #workspace .pilot { display:none; }
#dayboard[hidden] { display:none; }
#dayboard { position:fixed;inset:var(--deckhand-board-top,64px) 0 0;z-index:30;display:flex;flex-direction:column;gap:8px;padding:14px 18px max(10px,env(safe-area-inset-bottom));box-sizing:border-box;background:#edf3f6;color:#193647;overflow:hidden;font-size:12px;line-height:1.3; }
#dayboard *,#dayboard *::before,#dayboard *::after { box-sizing:border-box; }
#dayboard .board-toolbar { display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto; }
#dayboard h2 { margin:0;font-size:20px;line-height:1.2;color:#12659b; }
#dayboard .board-toolbar p { margin:3px 0 0;font-size:12px;color:#526976; }
#dayboard .board-toolbar label { display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700; }
#dayboard select { width:130px;min-height:44px;background:#fff;border:1px solid #a7bdcb;border-radius:7px;padding:7px 10px;color:#183d53;font:inherit;font-size:14px; }
#dayboard .board-legend { display:flex;flex-wrap:wrap;gap:5px 18px;font-size:12px;font-weight:700;flex:0 0 auto; }
#dayboard .board-legend-present { color:#126d39; }#dayboard .board-legend-absent { color:#b62b31; }#dayboard .board-legend-waiting { color:#875200; }
#dayboard .board-notice { margin:0;padding:5px 8px;border-radius:5px;background:#deebf2;color:#355a70;font-size:12px;flex:0 0 auto; }
#dayboard .board-notice-warning { background:#fff0ce;color:#785017; }
#dayboard .board-sheet { display:grid;grid-template-columns:repeat(var(--board-columns,2),minmax(0,1fr));gap:12px;min-height:0;flex:1 1 0;overflow:hidden;align-items:start; }
#dayboard .board-column { display:flex;flex-direction:column;gap:8px;min-width:0; }
#dayboard .board-block { width:100%;border:1px solid #b5cbd8;background:#fff;border-radius:5px;overflow:hidden;box-shadow:0 1px 2px #143c5310; }
#dayboard .board-time { display:flex;justify-content:space-between;align-items:center;gap:5px;padding:4px 8px;background:#126faf;color:#fff;font-size:13px;font-weight:800;line-height:1.2;overflow-wrap:anywhere; }
#dayboard .board-time small { font-size:12px;font-weight:500; }
#dayboard .board-class { display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:1px;margin:0;padding:5px 8px;min-height:44px;border:0;border-radius:0;background:#e9f3f8;color:#193b51;text-align:left;box-shadow:none;font:inherit;white-space:normal; }
#dayboard .board-class:hover,#dayboard .board-class:focus-visible { background:#d8eaf5; }
#dayboard .board-class strong { display:block;font-size:13px;line-height:1.2;overflow-wrap:anywhere; }
#dayboard .board-teacher { color:#195f8c;font-size:12px;font-weight:700;overflow-wrap:anywhere; }
#dayboard .board-count { color:#516873;font-size:12px;line-height:1.2; }
#dayboard .board-overbooked { color:#a1202b;font-weight:800; }
#dayboard .board-checked { display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 6px;padding:3px 8px;font-size:12px;line-height:1.2;color:#506d7e;border-top:1px solid #dfebf1; }
#dayboard .board-needs-update { color:#805110;background:#fff1d5; }
#dayboard .board-students { padding:0 7px 4px;margin:0;list-style:none; }
#dayboard .board-student { display:flex;align-items:flex-start;gap:5px;padding:3px 0;border-top:1px solid #e5edf1;min-width:0;font-size:12px;line-height:1.2; }
#dayboard .board-status { flex:0 0 17px;display:inline-flex;justify-content:center;align-items:center;height:17px;font-size:14px;font-weight:900;line-height:1;border-radius:4px; }
#dayboard .board-present .board-status { color:#0b6630;background:#d8f0df; }#dayboard .board-absent .board-status { color:#aa1d28;background:#fde0e2; }#dayboard .board-waiting .board-status { color:#805006;background:#ffe6a6; }#dayboard .board-pending .board-status { color:#617889;background:#eef2f5; }
#dayboard .board-student-name { flex:1;min-width:0;overflow-wrap:anywhere; }
#dayboard .board-student-name small { display:inline;margin-left:5px;color:#48657b;font-size:12px;font-weight:700; }
#dayboard .board-empty,#dayboard .board-continued { padding:3px 8px;font-size:12px;color:#516777; }
#dayboard .board-continued { background:#eff5f9;font-weight:700;border-top:1px solid #dfebf1; }
#dayboard .board-placeholder { padding:8px;color:#745121;background:#fff4dd;font-size:12px; }
#dayboard .board-placeholder p { margin:3px 0 5px; }
#dayboard .board-placeholder button { min-height:44px;padding:5px 10px;border:1px solid #bb9a57;border-radius:5px;background:#fff;color:#745121;font:inherit; }
#dayboard .board-break .board-time { background:#647b89; }
#dayboard .board-break p { display:flex;justify-content:space-between;gap:8px;margin:0;padding:9px 8px;background:#e9eff2;font-size:12px; }
#dayboard .board-footer { display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;padding-top:1px; }
#dayboard .board-footer button { min-width:106px;min-height:44px;border:1px solid #a1b8c7;border-radius:7px;background:#fff;color:#185c86;padding:8px 12px;font:inherit;font-size:14px;font-weight:700; }
#dayboard .board-footer button:disabled { opacity:.45; }
#dayboard .board-footer>div { display:flex;flex-direction:column;align-items:center;gap:1px;font-size:12px;text-align:center; }
#dayboard .board-page-number { font-size:14px; }
#dayboard .board-page-range { color:#4e6574; }
#dayboard .board-measure { position:absolute;left:0;top:0;visibility:hidden;pointer-events:none;height:auto; }
#dayboard .board-no-data { margin:auto;text-align:center;max-width:420px; }
#dayboard .board-no-data p { font-size:15px; }
#dayboard .board-no-data button { min-height:44px;font:inherit;font-size:15px; }
@media(max-width:560px) { #dayboard { padding:9px 10px;gap:6px; }#dayboard .board-toolbar label { flex-direction:column;gap:2px;align-items:flex-end; }#dayboard .board-legend { gap:5px 9px; }#dayboard .board-footer button { min-width:88px;padding:6px 8px; } }
@media(max-height:640px) { #dayboard { padding-top:7px;gap:5px; }#dayboard .board-toolbar h2 { font-size:17px; }#dayboard .board-toolbar p { display:none; } }

/* One time per page, with readable student details and explicit note expansion. */
#dayboard .board-current-time { font-size:28px;font-weight:850; }
#dayboard .board-class { padding:4px 8px; }
#dayboard .board-class strong { font-size:14px; }
#dayboard .board-teacher { font-size:13px;line-height:1.3; }
#dayboard .board-student { gap:4px;padding:1px 0;font-size:13px;line-height:1.3; }
#dayboard .board-student-details { display:block;flex:1;min-width:0;min-height:44px;margin:0;padding:2px 0;border:0;border-radius:3px;background:transparent;color:inherit;box-shadow:none;text-align:left;font:inherit;white-space:normal;overflow-wrap:anywhere; }
#dayboard button.board-student-details:hover,#dayboard button.board-student-details:focus-visible { background:#eef6fb;outline:2px solid #1d71b8;outline-offset:1px; }
#dayboard .board-student-name { font-weight:750; }
#dayboard .board-age { white-space:nowrap;font-size:12px;color:#516777; }
#dayboard .board-badges { display:inline;margin-left:4px;font-size:11px;line-height:1.35;font-weight:750;color:#6c4c19; }
#dayboard .board-note-preview { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;line-height:1.35;color:#415b6b;white-space:pre-wrap; }
#dayboard .board-note-preview strong { color:#195f8c;font-size:11px;font-weight:700; }
.board-note-dialog { width:min(580px,94vw);max-height:90dvh;padding:20px;border:0;border-radius:16px;overflow:auto;color:#193647; }
.board-note-heading { display:flex;justify-content:space-between;align-items:flex-start;gap:12px; }
.board-note-heading span { font-size:12px;letter-spacing:.07em;font-weight:750;color:#526976; }
.board-note-heading h2 { margin:6px 0 0;font-size:23px;overflow-wrap:anywhere; }
.board-note-heading button { flex:none;min-width:44px;min-height:44px;padding:4px;font-size:26px; }
.board-note-dialog [data-board-note-text] { white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6; }
