/* Bourdon-style sheet. The sheet scrolls inside a box of fixed height, so
   the pause button, the time bar and "I have finished" stay in view on a
   phone. A mark underlines the letter, as the form's instructions ask. */

.bd-source { font-size: 13.5px; color: var(--text-soft); }
/* Clears the page's floating toolbar when Start scrolls the sheet into view. */
.bd-wrap { scroll-margin-top: 80px; }

.bd-head {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 8px 120px 8px 16px;
	border: 1px solid var(--border);
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
	background: var(--surface);
	font-size: 15px;
}
.bd-targets { font-size: 19px; letter-spacing: 0.04em; }

.bd-stage {
	cursor: default;
	justify-content: flex-start;
	align-items: stretch;
	border-radius: 0 0 14px 14px;
	max-height: min(68vh, 620px);
	overflow-y: auto;
	padding: 14px 12px;
}
.bd-stage .odak-stage-msg { align-self: center; margin: auto 0; }

.bd-sheet { display: grid; gap: 4px; }
.bd-sheet[hidden] { display: none; }
.bd-row { display: grid; grid-template-columns: repeat(22, minmax(0, 1fr)); gap: 2px; }
.bd-row:nth-child(10n) { margin-bottom: 12px; }

.bd-cell {
	position: relative;
	height: 38px;
	min-width: 0;
	padding: 0;
	font: inherit;
	font-size: 19px;
	line-height: 1;
	color: var(--text);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 5px;
	cursor: pointer;
	touch-action: manipulation;
}
.bd-cell:hover { border-color: var(--border); }
.bd-cell:focus-visible { outline: 3px solid var(--accent); outline-offset: -1px; }
.bd-cell[aria-pressed="true"]::after {
	content: "";
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 5px;
	height: 3px;
	border-radius: 2px;
	background: var(--accent-strong);
}

@media (max-width: 620px) {
	.bd-row { grid-template-columns: repeat(11, minmax(0, 1fr)); row-gap: 4px; }
	.bd-cell { height: 42px; }
}
