:root {
	color-scheme: dark;
	font-family:
		Inter, Arial, Helvetica, sans-serif;
	background: #000;
	color: #fff;
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: #000;
}

.slate-shell {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.slate-board {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1920px;
	height: 1080px;
	border: 8px solid #fff;
	background: #000;
	display: grid;
	grid-template-rows: 110px 120px 250px 505px 95px;
	transform: translate(-50%, -50%) scale(var(--slate-scale, 1));
	transform-origin: center;
}

.clapper {
	position: relative;
	display: grid;
	grid-template-columns: 80px repeat(7, 1fr);
	border-bottom: 4px solid #fff;
	background: #fff;
	overflow: hidden;
}

.hinge {
	background: #fff;
	border-right: 4px solid #fff;
}

.stripe {
	transform: skewX(-18deg) scaleX(1.08);
	transform-origin: bottom;
}

.stripe.black {
	background: #000;
}

.stripe.white {
	background: #fff;
}

.top-row,
.time-panel,
.slate-grid,
.neighbor-row {
	border-bottom: 3px solid #fff;
}

.top-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 520px;
	align-items: stretch;
	gap: 0;
	padding: 0;
	min-width: 0;
}

.top-cell {
	min-width: 0;
	height: 100%;
	padding: 12px 16px;
	border-right: 3px solid #fff;
	overflow: hidden;
}

.prodo-logo {
	position: absolute;
	right: 18px;
	top: 12px;
	display: block;
	width: 160px;
	height: 86px;
	object-fit: contain;
	z-index: 2;
}

.label {
	margin: 0 0 6px;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	font-weight: 850;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
p {
	margin: 0;
}

h1 {
	font-size: 74px;
	line-height: 0.95;
	font-weight: 950;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
}

.connection {
	position: absolute;
	right: 20px;
	bottom: 14px;
	max-width: 360px;
	height: 24px;
	text-align: right;
	font-size: 18px;
	line-height: 1;
	font-weight: 950;
	text-transform: uppercase;
	background: #000;
	color: #fff;
	overflow: hidden;
	overflow-wrap: anywhere;
	z-index: 2;
}

.connection.ok {
	background: #000;
	color: #fff;
}

.time-panel {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 0;
	align-items: center;
	padding: 0;
	min-width: 0;
}

.time-block,
.cue-box {
	height: 100%;
	min-width: 0;
	padding: 18px 20px 12px;
	overflow: hidden;
}

.time-block {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
}

.cue-box {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	align-items: center;
	border-left: 4px solid #fff;
	background: #000;
}

.timecode {
	align-self: center;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 205px;
	line-height: 1;
	font-weight: 950;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
}

.slate-line {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 230px;
	line-height: 1;
	font-weight: 950;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	align-self: center;
}

.slate-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(3, 1fr);
	padding: 0;
	min-width: 0;
}

.field {
	min-width: 0;
	min-height: 0;
	padding: 10px 14px;
	border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
	overflow: hidden;
}

.field p:last-child,
.neighbor-row p:last-child {
	display: block;
	height: calc(100% - 26px);
	font-size: 38px;
	line-height: 1.12;
	font-weight: 850;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.field.wide,
.field.active-title {
	grid-column: span 3;
}

.field.third {
	grid-column: span 2;
}

.field.active-title p:last-child {
	font-size: 54px;
	line-height: 1.08;
	text-transform: uppercase;
}

.location-stack {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: center;
	height: calc(100% - 26px);
	overflow: hidden;
}

.location-stack p {
	min-width: 0;
	min-height: 0;
	font-size: 30px;
	line-height: 1;
	font-weight: 850;
	overflow: hidden;
	white-space: nowrap;
}

.field .length-value {
	display: grid;
	place-items: center start;
	height: calc(100% - 26px);
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 110px;
	line-height: 1;
	font-weight: 950;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.neighbor-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 0;
	min-width: 0;
}

.neighbor-row > div {
	min-width: 0;
	padding: 10px 18px;
	overflow: hidden;
}

.neighbor-row > div:first-child {
	border-right: 3px solid #fff;
}

.neighbor-row p:last-child {
	height: calc(100% - 26px);
	font-size: 36px;
	white-space: nowrap;
}

.fit-text {
	max-width: 100%;
	max-height: 100%;
	word-break: break-word;
}

.fit-text[data-fit-mode="single"] {
	white-space: nowrap;
}
