/* Direction C · A refined — reusable components: Campaign timeline and
   Campaign rollout, in A's language (the working file): artboards on a
   pasteboard, white panels, one selection blue, square controls.

   Two tones, set on the component root:
     .cmp--blue   on the cobalt pasteboard (a hero, a feature band)
     .cmp--paper  on the light pasteboard (inside editorial sections)
   Everything else is shared. GSAP owns the transform/opacity of stages and
   rollout cells only while it animates them; nothing here transitions them. */

.cmp {
	--cmp-blue: #2443FF;
	--cmp-blue-deep: #1B33D9;
	--cmp-ink: #121318;
	--cmp-ink-2: #3E424C;
	--cmp-paste: #E4E6EB;
	--cmp-line: #D5D8E0;
	--cmp-panel: #FFFFFF;
	--cmp-mono: "Geist Mono", ui-monospace, monospace;
	--cmp-text: "Funnel Sans", system-ui, sans-serif;
	--cmp-display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
	--cmp-ease: cubic-bezier(0.23, 1, 0.32, 1);
	font-family: var(--cmp-text);
}

.cmp--blue {
	--cmp-ground: var(--cmp-blue-deep);
	--cmp-on: #FFFFFF;
	--cmp-on-2: #DCE2FF;
	--cmp-frame: rgba(255, 255, 255, 0.35);
	--cmp-ring: #FFFFFF;
	--cmp-chip: rgba(255, 255, 255, 0.14);
	--cmp-chip-on: #FFFFFF;
	--cmp-chip-on-ink: var(--cmp-blue-deep);
	background: var(--cmp-ground);
	color: var(--cmp-on);
}

.cmp--paper {
	--cmp-ground: var(--cmp-paste);
	--cmp-on: var(--cmp-ink);
	--cmp-on-2: var(--cmp-ink-2);
	--cmp-frame: #B9BEC9;
	--cmp-ring: var(--cmp-blue);
	--cmp-chip: #FFFFFF;
	--cmp-chip-on: var(--cmp-blue);
	--cmp-chip-on-ink: #FFFFFF;
	background: var(--cmp-ground);
	color: var(--cmp-on);
}

/* The last panel's bottom margin would otherwise collapse through the
   root and leave the white panel flush with the edge of the ground. */
.cmp-tl,
.cmp-ro {
	display: flow-root;
}

/* Several parts set their own display; the hidden attribute must still win. */
.cmp [hidden] {
	display: none !important;
}

.cmp :focus-visible {
	outline: 3px solid var(--cmp-ring);
	outline-offset: 3px;
}

.cmp__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 16px clamp(16px, 2vw, 28px) 0;
}

.cmp__title {
	margin: 0;
	font: 500 15px/1.35 var(--cmp-text);
	color: var(--cmp-on-2);
}

.cmp__title b {
	color: var(--cmp-on);
	font-weight: 650;
}

/* Square segmented control (markets), shared by both components. */
.cmp__seg {
	display: inline-flex;
	gap: 3px;
	padding: 3px;
	background: var(--cmp-chip);
}

.cmp--paper .cmp__seg {
	box-shadow: inset 0 0 0 1px var(--cmp-line);
}

.cmp__seg button {
	min-width: 48px;
	min-height: 40px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: var(--cmp-on);
	font: 600 14px/1 var(--cmp-text);
	cursor: pointer;
	transition: transform 140ms var(--cmp-ease);
}

.cmp__seg button[aria-pressed="true"] {
	background: var(--cmp-chip-on);
	color: var(--cmp-chip-on-ink);
}

.cmp__seg button:active {
	transform: scale(0.96);
}

.cmp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	background: var(--cmp-chip);
	color: var(--cmp-on);
	font: 600 14px/1 var(--cmp-text);
	cursor: pointer;
	transition: transform 140ms var(--cmp-ease);
}

.cmp--paper .cmp__btn {
	box-shadow: inset 0 0 0 1px var(--cmp-line);
}

.cmp__btn--primary {
	background: var(--cmp-chip-on);
	color: var(--cmp-chip-on-ink);
	box-shadow: none !important;
}

.cmp__btn:active {
	transform: scale(0.96);
}

.cmp__btn svg {
	width: 16px;
	height: 16px;
}

/* Artboard: a frame name above, the creative, its size beneath. */
.cmp-board {
	margin: 0;
	display: grid;
	gap: 7px;
	align-content: end;
	min-width: 0;
}

.cmp-board__name {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font: 500 13px/1.25 var(--cmp-text);
	color: var(--cmp-on);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cmp-board__name span {
	font: 400 13px/1.25 var(--cmp-mono);
	color: var(--cmp-on-2);
}

.cmp-board__screen {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	height: var(--h, 160px);
}

.cmp-board__screen .lc-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.cmp-board__screen .lc-frame .lc-stage {
	flex: none;
	outline: 1px solid var(--cmp-frame);
}

/* A supplied file on the shared clock (timeline.js, FileStage): its frame at
   the file's own size, scaled from the corner to the box timeline.js gives
   it. It takes no pointer: the files have no controls of their own, and the
   transport is the only thing to operate. */
.cmp-board__screen .lc-file {
	position: relative;
	flex: none;
	overflow: hidden;
	outline: 1px solid var(--cmp-frame);
}

/* Until the clock is first used, each file shows its opening poster over the
   file (which is loaded and waiting at its start); afterwards the file's own
   frames show, whatever the clock does. */
.cmp-board__screen .lc-file__poster {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
}

.cmp-tl.is-used .lc-file__poster {
	display: none;
}

.cmp-board__screen .lc-file iframe {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	border: 0;
	transform-origin: 0 0;
	pointer-events: none;
}

.cmp-board__screen noscript img,
.cmp-board__screen .lc-fallback {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}

/* ===================================================================
   Campaign timeline
   =================================================================== */

.cmp-tl__screens {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(16px, 2vw, 28px);
	padding: 18px clamp(16px, 2vw, 28px) 22px;
}

/* The small boards are too narrow for name and size on one line, so the
   size always sits under the name: the screens stay aligned in each row. */
.cmp-tl__cams .cmp-board__name {
	display: block;
}

.cmp-tl__cams .cmp-board__name span {
	display: block;
	margin-top: 2px;
}

.cmp-tl__program .cmp-board__screen {
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Supplied files (template-parts/c/timeline.php). No monitor and no fixed
   slots: each board is its file's own size (--fw, --ratio) wherever there is
   room, and smaller only when the width runs out — never larger. Wide banners
   run across the top; the other formats stand in columns of their native
   width (--cw) beneath, a strip under the rectangle it belongs with, and the
   columns wrap onto further rows rather than shrinking to share one. The
   section grows as tall as the files need. Each name and size sits directly
   over its file, at its width. */
.cmp-tl__files {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(20px, 2.4vw, 32px);
	padding: 18px clamp(16px, 2vw, 28px) 22px;
}

.cmp-tl__cols {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(20px, 2.4vw, 32px) clamp(20px, 3vw, 40px);
	width: 100%;
}

.cmp-tl__col {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2vw, 24px);
	width: min(100%, var(--cw));
}

.cmp-board--file {
	width: min(100%, var(--fw));
}

.cmp-board--file .cmp-board__name {
	display: block;
}

.cmp-board--file .cmp-board__name span {
	display: block;
	margin-top: 2px;
}

.cmp-board--file .cmp-board__screen {
	height: auto;
	aspect-ratio: var(--ratio);
}

.cmp-tl__cams {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px 14px;
	align-content: space-between;
}

.cmp-tl__cams .cmp-board--wide {
	grid-column: span 4;
}

.cmp-tl__cams .cmp-board--half {
	grid-column: span 2;
}

.cmp-tl__transport {
	display: grid;
	grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
	gap: 10px;
	align-items: center;
	margin: 0 clamp(16px, 2vw, 28px);
	padding: 10px;
	background: var(--cmp-panel);
	color: var(--cmp-ink);
}

.cmp-tl__transport .cmp__btn {
	background: var(--cmp-paste);
	color: var(--cmp-ink);
	box-shadow: none;
}

.cmp-tl__transport .cmp__btn--primary {
	background: var(--cmp-blue);
	color: #fff;
	min-width: 52px;
	min-height: 52px;
}

.cmp-tl__scrub {
	width: 100%;
	height: 44px;
	margin: 0;
	accent-color: var(--cmp-blue);
	cursor: pointer;
}

.cmp-tl__tc {
	font: 500 15px/1 var(--cmp-mono);
	font-variant-numeric: tabular-nums;
	min-width: 12ch;
	text-align: right;
}

.cmp-tl__tracks-wrap {
	margin: 0 clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px);
	padding: 8px 10px 12px;
	background: var(--cmp-panel);
	color: var(--cmp-ink);
	border-top: 1px solid var(--cmp-line);
}

.cmp-tl__tracks-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	font: 600 14px/1.3 var(--cmp-text);
}

.cmp-tl__tracks-head .cmp__btn {
	background: transparent;
	color: var(--cmp-blue);
	box-shadow: none;
	min-height: 40px;
	padding: 0 4px;
}

.cmp-tl__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font: 400 13px/1.3 var(--cmp-text);
	color: var(--cmp-ink-2);
}

.cmp-tl__legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	vertical-align: -1px;
	background: var(--chan);
}

.cmp-tl__tracks {
	position: relative;
	display: grid;
	gap: 5px;
	padding-top: 8px;
}

.cmp-tl__track {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	font: 500 13px/1.2 var(--cmp-text);
}

.cmp-tl__lane {
	position: relative;
	height: 22px;
	background: #EEF0F4;
}

.cmp-tl__clip {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	background: var(--chan);
}

.cmp-tl__key {
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	background: #FFFFFF;
	border: 2px solid var(--cmp-ink);
	transform: rotate(45deg);
}

.cmp-tl__playhead {
	position: absolute;
	top: 8px;
	bottom: 0;
	width: 2px;
	background: var(--cmp-ink);
	pointer-events: none;
}

[data-chan="display"] { --chan: #2443FF; }
[data-chan="social"] { --chan: #8FA2FF; }
[data-chan="screens"] { --chan: #121318; }
[data-chan="mobile"] { --chan: #5B6FFF; }

/* ===================================================================
   Campaign rollout
   =================================================================== */

.cmp-ro__controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px clamp(16px, 2.4vw, 36px);
	align-items: end;
	padding: 18px clamp(16px, 2vw, 28px) 4px;
}

.cmp-ro__filters {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.cmp-ro__filters fieldset {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.cmp-ro__filters legend {
	float: left;
	width: 84px;
	padding: 0;
	font: 600 14px/40px var(--cmp-text);
	color: var(--cmp-on-2);
}

.cmp-chip {
	position: relative;
	display: inline-flex;
}

.cmp-chip input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.cmp-chip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 12px;
	background: var(--cmp-chip);
	color: var(--cmp-on);
	font: 600 14px/1 var(--cmp-text);
	transition: transform 140ms var(--cmp-ease);
}

.cmp--paper .cmp-chip span {
	box-shadow: inset 0 0 0 1px var(--cmp-line);
}

.cmp-chip input:checked + span {
	background: var(--cmp-chip-on);
	color: var(--cmp-chip-on-ink);
	box-shadow: none;
}

.cmp-chip input:focus-visible + span,
.cmp-ro__filters.is-keyboard .cmp-chip input:focus + span {
	outline: 3px solid var(--cmp-ring);
	outline-offset: 2px;
}

.cmp-chip input:active + span {
	transform: scale(0.96);
}

.cmp-ro__tally {
	margin: 0;
	text-align: right;
}

/* How to use the grid: one line beneath the controls, spanning both columns. */
.cmp-ro__hint {
	grid-column: 1 / -1;
	grid-row: 2;
	margin: 0;
	font: 600 15px/1.35 var(--cmp-text);
	color: var(--cmp-on);
}

.cmp-ro__hint[hidden] {
	display: none;
}

/* A finished campaign's line and its Play All, one row beneath the count:
   the line where the hint always sat, the button at the row's end; they
   stack on a narrow screen. */
.cmp-ro__how {
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
}

.cmp-ro__how[hidden] {
	display: none;
}

.cmp-ro__how .cmp-ro__hint {
	flex: 1 1 28rem;
	max-width: 62ch;
}

.cmp-ro__play-all {
	flex: none;
}

.cmp-ro__play-all:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Play All's frame, laid over the cell's still at the still's size by
   rollout.js; the file loads behind the still and replaces it once started
   (assets/js/preview.js), as in the enlarged view. It never takes a click:
   the cell beneath opens the enlarged view. */
.cmp-ro__live {
	position: absolute;
	overflow: hidden;
	pointer-events: none;
}

.cmp-ro__live iframe {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	border: 0;
	transform-origin: 0 0;
	background: #FFFFFF;
}

.cmp-ro__live:not(.is-live) iframe {
	opacity: 0;
}

.cmp-ro__count {
	display: block;
	font: 700 clamp(34px, 3.4vw, 54px)/0.95 var(--cmp-display);
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.cmp-ro__count-note {
	display: block;
	margin-top: 6px;
	font: 500 14px/1.35 var(--cmp-text);
	color: var(--cmp-on-2);
}

.cmp-ro__scroll {
	overflow-x: auto;
	padding: 14px clamp(16px, 2vw, 28px) 6px;
	scrollbar-width: thin;
}

.cmp-ro__grid {
	display: grid;
	grid-template-columns: 92px repeat(var(--cols, 9), minmax(0, 1fr));
	gap: 10px 10px;
	min-width: calc(92px + var(--cols, 9) * 108px);
}

.cmp-ro__col {
	align-self: end;
	padding-bottom: 2px;
	font: 600 13px/1.25 var(--cmp-text);
}

.cmp-ro__col span {
	display: block;
	font: 400 13px/1.3 var(--cmp-mono);
	color: var(--cmp-on-2);
}

.cmp-ro__row {
	align-self: center;
	font: 650 15px/1.2 var(--cmp-text);
}

.cmp-ro__row span {
	display: block;
	margin-top: 3px;
	font: 400 13px/1.2 var(--cmp-mono);
	color: var(--cmp-on-2);
}

.cmp-ro__cell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: clamp(104px, 8.6vw, 136px);
	padding: 8px;
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	cursor: zoom-in;
	overflow: hidden;
}

.cmp--paper .cmp-ro__cell {
	background: #FFFFFF;
}

.cmp-ro__cell .lc-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.cmp-ro__cell .lc-frame .lc-stage {
	flex: none;
}

.cmp-ro__cell noscript img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

/* A finished file's cell: its backup image, at its own proportions. The
   keyline gives a light creative an edge on the white cell. */
.cmp-ro__backup {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.cmp-ro__backup img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	box-shadow: 0 0 0 1px var(--cmp-line);
}

.cmp-ro__cell::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 2px transparent;
	transition: box-shadow 140ms ease;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.cmp-ro__cell:hover::after {
		box-shadow: inset 0 0 0 2px var(--cmp-ring);
	}
}

[data-hide] {
	display: none !important;
}

.cmp-ro__manifest {
	margin: 14px clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px);
	background: var(--cmp-panel);
	color: var(--cmp-ink);
}

.cmp-ro__manifest summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 0 16px;
	font: 650 15px/1.3 var(--cmp-text);
	cursor: pointer;
	list-style: none;
}

.cmp-ro__manifest summary::-webkit-details-marker {
	display: none;
}

.cmp-ro__manifest summary::after {
	content: "Show";
	font: 600 14px/1 var(--cmp-text);
	color: var(--cmp-blue);
}

.cmp-ro__manifest[open] summary::after {
	content: "Hide";
}

.cmp-ro__list {
	max-height: 300px;
	overflow: auto;
	border-top: 1px solid var(--cmp-line);
}

.cmp-ro__list table {
	width: 100%;
	border-collapse: collapse;
	font: 400 15px/1.35 var(--cmp-text);
}

.cmp-ro__list caption {
	padding: 12px 16px 4px;
	text-align: left;
	font-size: 14px;
	color: var(--cmp-ink-2);
}

.cmp-ro__list th,
.cmp-ro__list td {
	padding: 10px 16px;
	text-align: left;
	border-bottom: 1px solid #EEF0F4;
	white-space: nowrap;
}

.cmp-ro__list th {
	position: sticky;
	top: 0;
	background: #FFFFFF;
	font-weight: 650;
	font-size: 14px;
	color: var(--cmp-ink-2);
}

.cmp-ro__list td:first-child {
	font: 400 14px/1.35 var(--cmp-mono);
	color: var(--cmp-ink);
}

/* The enlarged view: an artboard in a selection frame, with its decisions. */
.cmp-inspect {
	width: min(1120px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	background: #FFFFFF;
	color: var(--cmp-ink);
	box-shadow: 0 30px 80px rgba(10, 16, 60, 0.35);
	font-family: var(--cmp-text);
}

.cmp-inspect::backdrop {
	background: rgba(13, 26, 120, 0.55);
}

.cmp-inspect__body {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
}

.cmp-inspect__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	height: min(72vh, 640px);
	padding: 40px 32px;
	background: var(--cmp-blue-deep);
}

.cmp-inspect__sel {
	position: relative;
	display: inline-block;
	line-height: 0;
	outline: 1.5px solid #fff;
}

.cmp-inspect__sel i {
	position: absolute;
	z-index: 2;
	width: 9px;
	height: 9px;
	background: #fff;
	border: 1.5px solid var(--cmp-blue);
}

.cmp-inspect__sel i:nth-child(1) { left: -5px; top: -5px; }
.cmp-inspect__sel i:nth-child(2) { right: -5px; top: -5px; }
.cmp-inspect__sel i:nth-child(3) { left: -5px; bottom: -5px; }
.cmp-inspect__sel i:nth-child(4) { right: -5px; bottom: -5px; }

/* A finished file plays in a frame at its true size; fitFile() in
   rollout.js scales it down only when the stage is smaller. */
.cmp-inspect__sel[hidden] {
	display: none;
}

.cmp-inspect__frame {
	position: relative;
	overflow: hidden;
}

.cmp-inspect__frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	border: 0;
	transform-origin: 0 0;
	background: #FFFFFF;
}

/* The file's opening poster fills the same box the playing file will; the
   file loads out of sight behind it and replaces it once it has started
   (assets/js/preview.js). */
.cmp-inspect__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.cmp-inspect__frame:not(.is-live) iframe {
	opacity: 0;
}

.cmp-inspect__frame.is-live .cmp-inspect__poster {
	visibility: hidden;
}

.cmp-inspect__text {
	display: grid;
	align-content: start;
	gap: 14px;
	padding: 26px 26px 28px;
	overflow: auto;
	max-height: min(72vh, 640px);
}

.cmp-inspect__text h2 {
	margin: 0;
	font: 700 clamp(26px, 2.4vw, 36px)/1.05 var(--cmp-display);
	letter-spacing: -0.02em;
}

.cmp-inspect__file {
	margin: 0;
	font: 400 14px/1.4 var(--cmp-mono);
	color: var(--cmp-blue-deep);
	overflow-wrap: anywhere;
}

.cmp-inspect__note {
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
}

.cmp-inspect dl {
	margin: 0;
	border-top: 1px solid var(--cmp-line);
}

.cmp-inspect dl div {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--cmp-line);
	font-size: 15px;
}

.cmp-inspect dt {
	font-weight: 650;
}

.cmp-inspect dd {
	margin: 0;
	font: 400 14px/1.4 var(--cmp-mono);
}

.cmp-inspect__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cmp-inspect .cmp__btn {
	background: #FFFFFF;
	color: var(--cmp-ink);
	box-shadow: inset 0 0 0 1.5px var(--cmp-ink);
}

.cmp-inspect .cmp__btn--primary {
	background: var(--cmp-blue);
	color: #FFFFFF;
	box-shadow: none;
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
	.cmp-tl__screens {
		grid-template-columns: minmax(0, 1fr);
	}

	.cmp-inspect__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.cmp-inspect__stage {
		height: 42vh;
		padding: 28px 20px;
	}

	.cmp-inspect__text {
		max-height: none;
	}
}

@media (max-width: 640px) {
	/* Phone: the program stays large; the other formats become one swipeable
	   row of equal-height boards instead of a long column of small ones. */
	.cmp-tl__cams {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		overscroll-behavior-x: contain;
	}

	.cmp-tl__cams .cmp-board {
		flex: 0 0 42%;
		scroll-snap-align: start;
	}

	.cmp-tl__cams .cmp-board--wide {
		flex-basis: 80%;
	}

	.cmp-tl__cams {
		align-items: flex-end;
	}

	.cmp-tl__cams .cmp-board__screen {
		height: 132px !important;
	}

	.cmp-tl__cams .cmp-board--wide .cmp-board__screen {
		height: 84px !important;
	}

	.cmp-tl__cams {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cmp-tl__cams .cmp-board--wide {
		grid-column: span 2;
	}

	.cmp-tl__cams .cmp-board--half {
		grid-column: span 1;
	}

	.cmp-tl__transport {
		grid-template-columns: auto auto auto minmax(0, 1fr);
	}

	.cmp-tl__transport .cmp-tl__scrub {
		grid-column: 1 / -1;
		order: 6;
	}

	.cmp-tl__track {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.cmp-ro__controls {
		grid-template-columns: minmax(0, 1fr);
	}

	.cmp-ro__tally {
		text-align: left;
	}

	.cmp-ro__filters legend {
		float: none;
		width: 100%;
		line-height: 1.4;
		margin-bottom: 4px;
	}

	.cmp-ro__grid {
		grid-template-columns: 64px repeat(var(--cols, 9), 96px);
		min-width: 0;
	}

	.cmp-ro__cell {
		height: 96px;
	}

	.cmp-ro__list td:nth-child(4),
	.cmp-ro__list th:nth-child(4),
	.cmp-ro__list td:nth-child(5),
	.cmp-ro__list th:nth-child(5) {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cmp__seg button,
	.cmp__btn,
	.cmp-chip span {
		transition: none;
	}
}
