/*The Takes step: the part's screens on a stage that is also the preview, takes or contacts beside it, the parts along the bottom. Desktop only*/
.tk {
	--pc: var(--accent);
}
.mode-singers .tk-takes-only,
.mode-takes .tk-singers-only {
	display: none !important;
}
.tk-work {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: var(--s5);
	align-items: start;
	padding-bottom: var(--s4);
}
.tk-work[hidden] {
	display: none;
}

/*Small segmented buttons*/
.tk-seg {
	display: inline-flex;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	height: 32px;
	flex: none;
}
.tk-seg-btn {
	border: 0;
	background: var(--bg-raised);
	color: var(--text-muted);
	padding: 0 11px;
	font: 500 0.9rem var(--font);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.tk-seg-btn + .tk-seg-btn {
	border-left: 1px solid var(--line);
}
.tk-seg-btn:hover:not(:disabled) {
	color: var(--text);
}
.tk-seg-btn.is-on {
	background: color-mix(in srgb, var(--accent) 18%, var(--bg-raised));
	color: var(--accent);
	font-weight: 600;
}
.tk-seg-btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}
.tk-seg-big {
	height: 38px;
}
.tk-seg-big .tk-seg-btn {
	padding: 0 16px;
	font-size: 1rem;
}
.tk-count {
	font: 12px var(--font-mono);
	opacity: 0.8;
}
.tk-lbl {
	font-size: 12px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/*Part header*/
.tk-head {
	display: flex;
	align-items: flex-end;
	gap: var(--s3);
	flex-wrap: wrap;
	margin-bottom: var(--s3);
}
.tk-head-title {
	margin-right: auto;
	min-width: 0;
}
.tk-title {
	font-size: 1.6rem;
}
.tk-pn {
	color: var(--pc);
}
.tk-sub {
	color: var(--text-muted);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 60ch;
}

/*Layout popover*/
.tk-lay-wrap {
	position: relative;
}
.tk-lay-btn {
	min-height: 38px;
	padding: 0 var(--s3);
	font-weight: 500;
}
.tk-caret {
	color: var(--text-muted);
}
.tk-pop {
	position: absolute;
	top: 44px;
	right: 0;
	z-index: 30;
	width: 340px;
	padding: 10px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
	background: #121a2c;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.tk-pop-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	text-align: left;
	font: 0.85rem var(--font);
}
.tk-pop-item:hover,
.tk-pop-item:focus-visible {
	background: #1b2540;
	outline: none;
}
.tk-pop-item.is-on {
	border-color: color-mix(in srgb, var(--accent) 60%, transparent);
	color: var(--accent);
}
.tk-pop-hint {
	grid-column: 1 / 3;
	margin: 0;
	padding: 4px 6px 0;
	color: var(--text-muted);
	font-size: 12px;
}

/*A layout drawn small*/
.tk-icon {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 17px;
	flex: none;
}
.tk-pop .tk-icon {
	width: 44px;
	height: 25px;
}
.tk-icon i {
	position: absolute;
	border: 1.5px solid #121a2c;
	background: #56628a;
	border-radius: 1px;
}
.tk-lay-btn .tk-icon i,
.tk-pop-item.is-on .tk-icon i,
.tk-icon i.is-on {
	background: var(--accent);
}

/*Stage: kept short enough that, scrolled to it, the whole of it (borders included) sits above the parts bar*/
.tk-stage-wrap {
	position: relative;
	background: var(--bg-sunk);
	border: 1px solid var(--line-soft);
	border-radius: 8px;
	padding: 14px;
	user-select: none;
}
.pv-stage.tk-stage {
	max-width: max(560px, calc((100vh - 340px) * 16 / 9));
	margin: 0 auto;
	border: 0;
	border-radius: 3px;
	background: #000;
}
.tk-slots {
	position: absolute;
	inset: 0;
	z-index: 2;
}
.tk-slot {
	position: absolute;
	overflow: hidden;
	outline: none;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}
.tk-slot.is-empty,
.tk-slot.is-singers {
	background: repeating-linear-gradient(135deg, #0b1120 0 10px, #0d1426 10px 20px);
}
.tk-slot.is-linked,
.tk-slot:focus-visible {
	box-shadow: inset 0 0 0 2px var(--accent);
}
.tk-slot.has-take {
	cursor: grab;
}
.tk-sound {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 0.85rem;
	background: #0b1120;
}

/*Drop and pick targets*/
.tk-slot.is-drop::after,
.tk-slot.is-target::after {
	content: attr(data-drop);
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(231, 183, 95, 0.18);
	box-shadow: inset 0 0 0 2px var(--accent);
	color: #fff;
	font-weight: 600;
	text-shadow: 0 1px 3px #000;
	pointer-events: none;
}
.tk-slot.is-singers.is-drop::after,
.tk-slot.is-singers.is-target::after,
.tk-slot.is-empty.is-drop::after,
.tk-slot.is-empty.is-target::after {
	background: rgba(231, 183, 95, 0.06);
	content: "";
}
.tk-slot.is-target {
	cursor: pointer;
}

/*An empty screen in Takes mode*/
.tk-empty-box {
	position: absolute;
	inset: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px;
	border: 1.5px dashed #34405f;
	border-radius: 4px;
	color: var(--text-muted);
	font-size: 0.85rem;
	text-align: center;
}
.tk-empty-box b {
	font: 500 1.6rem var(--font-display);
	color: #56628a;
}
.tk-slot.is-drop .tk-empty-box,
.tk-slot.is-target .tk-empty-box {
	border-color: var(--accent);
	color: var(--accent);
}
.tk-slot.is-drop .tk-empty-box b,
.tk-slot.is-target .tk-empty-box b {
	color: var(--accent);
}
.tk-small {
	font-size: 12px;
}
.tk-mono {
	font: 11.5px var(--font-mono);
	opacity: 0.8;
}

/*A screen with a take: name chip and orientation at rest*/
.tk-name-chip,
.tk-waytag {
	position: absolute;
	z-index: 2;
	border-radius: 12px;
	background: rgba(6, 10, 18, 0.62);
	transition: opacity 0.15s;
}
.tk-name-chip {
	left: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 16px);
	padding: 2px 8px 2px 4px;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tk-waytag {
	right: 8px;
	top: 8px;
	padding: 2px 8px;
}
.tk-sn {
	display: inline-flex;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: var(--text);
	color: var(--bg);
	font-size: 11px;
	font-weight: 700;
	flex: none;
}
.tk-warn {
	color: var(--accent);
	font-weight: 700;
}
.tk-inv {
	color: #c6ccd9;
	font-weight: 500;
}

/*Its controls, on hover or focus, video-player style*/
.tk-ov {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 10px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s;
	background: linear-gradient(to bottom, rgba(5, 8, 15, 0.8) 0, rgba(5, 8, 15, 0.2) 40%, rgba(5, 8, 15, 0.2) 55%, rgba(5, 8, 15, 0.88) 100%);
}
.tk-slot.has-take:hover .tk-ov,
.tk-slot.has-take:focus-within .tk-ov,
.tk-slot.is-menu .tk-ov {
	opacity: 1;
	pointer-events: auto;
}
.tk-slot.has-take:hover .tk-name-chip,
.tk-slot.has-take:focus-within .tk-name-chip,
.tk-slot.is-menu .tk-name-chip,
.tk-slot.has-take:hover .tk-waytag,
.tk-slot.has-take:focus-within .tk-waytag {
	opacity: 0;
}
.tk-ov-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}
.tk-ov-who {
	min-width: 0;
}
.tk-ov-name {
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tk-ov-meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
	color: #c6ccd9;
}
.tk-ov-mid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}
.tk-ov-t {
	font-size: 11.5px;
	color: #c6ccd9;
	margin-right: 2px;
}
.tk-ov-btm {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}
.tk-ob {
	height: 28px;
	padding: 0 9px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(12, 18, 32, 0.75);
	color: var(--text);
	cursor: pointer;
	font: 600 12.5px var(--font);
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.tk-ob:hover,
.tk-ob:focus-visible {
	background: rgba(30, 42, 70, 0.95);
	border-color: rgba(255, 255, 255, 0.4);
	outline: none;
}
.tk-ob-x {
	width: 28px;
	padding: 0;
	justify-content: center;
	font-size: 16px;
}
.tk-seg-ov {
	height: 28px;
	border-color: rgba(255, 255, 255, 0.18);
}
.tk-seg-ov .tk-seg-btn {
	background: rgba(12, 18, 32, 0.75);
	color: #c6ccd9;
	font-size: 12.5px;
	padding: 0 9px;
}
.tk-seg-ov .tk-seg-btn.is-on {
	background: rgba(231, 183, 95, 0.25);
	color: var(--accent);
}
.tk-shift {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #c6ccd9;
}
.tk-shift input {
	width: 80px;
}
.tk-size {
	margin-left: auto;
	font: 11.5px var(--font-mono);
	color: #c6ccd9;
}
.tk-slot.is-small .tk-ov-meta,
.tk-slot.is-small .tk-size,
.tk-slot.is-small .tk-ov-t,
.tk-slot.is-small .tk-shift {
	display: none;
}

/*Singers on a screen*/
.tk-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 24px;
	padding: 0 6px 0 3px;
	border-radius: 12px;
	background: rgba(20, 29, 49, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
.tk-chip.is-quiet {
	opacity: 0.7;
	border-style: dashed;
}
.tk-chip[draggable="true"] {
	cursor: grab;
}
.tk-chip.is-picked {
	border-color: var(--accent);
	color: var(--accent);
}
.tk-chip-tick {
	color: var(--ok);
	font-size: 11.5px;
}
.tk-chip-x {
	width: 18px;
	height: 18px;
	margin-right: -3px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}
.tk-chip-x:hover,
.tk-chip-x:focus-visible {
	background: rgba(229, 122, 110, 0.25);
	color: #fff;
	outline: none;
}
.tk-av {
	width: 17px;
	height: 17px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: var(--part-ink);
	font-size: 9.5px;
	font-weight: 700;
}
.tk-av-big {
	width: 34px;
	height: 34px;
	font-size: 13px;
}

/*Singers mode: who is invited to each screen and which way they hold the phone*/
.tk-alloc {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
}
.tk-alloc-top {
	display: flex;
	align-items: center;
	gap: 8px;
}
.tk-num {
	font: 500 1.5rem/1 var(--font-display);
	color: var(--pc);
}
.tk-alloc .way {
	font-size: 13.5px;
}
.tk-dims {
	margin-left: auto;
	font: 11.5px var(--font-mono);
	color: var(--text-muted);
}
.tk-wayline {
	font-size: 12px;
	color: var(--text-muted);
}
.tk-people {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-content: flex-start;
}
.tk-drop {
	margin-top: auto;
	padding: 6px;
	border: 1.5px dashed #34405f;
	border-radius: 4px;
	color: var(--text-muted);
	font-size: 12.5px;
	text-align: center;
}
.tk-slot.is-drop .tk-drop,
.tk-slot.is-target .tk-drop {
	border-color: var(--accent);
	color: var(--accent);
}
.tk-slot.is-small .tk-wayline,
.tk-slot.is-small .tk-dims {
	display: none;
}

/*While a border moves or the part plays, the controls step aside*/
.tk-stage.is-dragging .tk-ov,
.tk-stage.is-dragging .tk-name-chip,
.tk-stage.is-dragging .tk-waytag,
.tk-stage.is-dragging .tk-alloc,
.tk-stage.is-dragging .tk-empty-box {
	opacity: 0 !important;
}
.tk-stage.is-playing .tk-slots {
	pointer-events: none;
}
.tk-stage.is-playing .tk-ov,
.tk-stage.is-playing .tk-name-chip,
.tk-stage.is-playing .tk-waytag {
	display: none;
}
.tk-stage.is-playing .tk-slot {
	box-shadow: none;
}
.tk-stage .bd-layer {
	z-index: 6;
}
.tk-stage.is-locked .tk-slot.has-take {
	cursor: default;
}

/*Swap menu*/
.tk-menu {
	position: absolute;
	z-index: 40;
	min-width: 220px;
	max-height: 320px;
	overflow-y: auto;
	padding: 6px;
	background: #121a2c;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
.tk-menu button {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border: 0;
	border-radius: 5px;
	background: none;
	color: var(--text);
	cursor: pointer;
	text-align: left;
	font: 0.85rem var(--font);
}
.tk-menu button:hover,
.tk-menu button:focus-visible {
	background: #1b2540;
	outline: none;
}
.tk-menu button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.tk-menu-t {
	padding: 4px 8px;
	font-size: 11.5px;
	color: var(--text-muted);
}
.tk-menu-note {
	margin-left: auto;
	color: var(--text-muted);
	font-size: 12px;
}

/*Transport and the part's own buttons*/
.tk-transport {
	display: flex;
	align-items: center;
	gap: var(--s3);
	margin-top: var(--s3);
}
.tk-play {
	width: 40px;
	height: 40px;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tk-scrub {
	position: relative;
	flex: 1;
	height: 26px;
	cursor: pointer;
	outline: none;
	touch-action: none;
}
.tk-scrub:focus-visible .tk-scrub-track {
	box-shadow: 0 0 0 2px var(--blue);
}
.tk-scrub-track,
.tk-scrub-fill {
	position: absolute;
	left: 0;
	top: 11px;
	height: 4px;
	border-radius: 2px;
}
.tk-scrub-track {
	right: 0;
	background: var(--line);
}
.tk-scrub-fill {
	background: var(--pc);
}
.tk-scrub-head {
	position: absolute;
	top: 5px;
	width: 3px;
	height: 16px;
	margin-left: -1px;
	border-radius: 2px;
	background: var(--playhead);
}
.tk-time {
	min-width: 120px;
	text-align: right;
	font: 13px var(--font-mono);
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}
.tk-foot {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: var(--s3);
	padding-top: var(--s3);
	border-top: 1px solid var(--line-soft);
}
.tk-hint {
	margin-right: auto;
	color: var(--text-muted);
	font-size: 0.82rem;
}
.tk-lock {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: var(--s3);
	padding: 8px 12px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--ok) 10%, var(--bg-sunk));
	color: var(--ok);
}
.tk-lock .btn {
	margin-left: auto;
}
.tk-lock[hidden] {
	display: none;
}
.tk-note {
	margin: var(--s2) 0 0;
}
.tk-note:empty {
	display: none;
}
.tk-song-foot .final-bar {
	margin-top: var(--s3);
}

/*Singers with no screen yet*/
.tk-unplaced {
	margin-top: var(--s3);
	padding: 10px 12px;
	border: 1px dashed var(--accent);
	border-radius: 8px;
	color: var(--text-muted);
	font-size: 0.85rem;
}
.tk-unplaced b {
	color: var(--accent);
}
.tk-unplaced-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.tk-chip.is-loose {
	cursor: pointer;
}

/*Side panel*/
.tk-side-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 10px;
}
.tk-side-head h3 {
	font-size: 1.1rem;
}
.tk-side-head small {
	color: var(--text-muted);
}
.tk-side-intro {
	font-size: 0.82rem;
	color: var(--text-muted);
	margin-bottom: 10px;
}
.tk-search {
	width: 100%;
	margin-bottom: 10px;
}
.tk-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: calc(100vh - 330px);
	min-height: 320px;
	overflow-y: auto;
	padding-right: 4px;
}
.tk-group {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px solid var(--line-soft);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}
.tk-group:first-child {
	margin-top: 0;
	border-top: 0;
	padding-top: 0;
}
.tk-group .tk-icon {
	width: 24px;
	height: 14px;
}
.tk-group .way {
	text-transform: none;
	letter-spacing: 0;
}
.tk-group-n {
	margin-left: auto;
	text-transform: none;
	letter-spacing: 0;
}
.tk-waiting {
	margin: 0;
	padding: 4px 0;
	font-size: 0.82rem;
	color: var(--text-muted);
}
.tk-waiting b {
	color: var(--text);
	font-weight: 600;
}

/*A take*/
.tk-card {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 0 12px;
	padding: 8px;
	border: 1px solid var(--line-soft);
	border-radius: 8px;
	background: var(--bg-raised);
	outline: none;
	cursor: grab;
}
.tk-card:hover {
	border-color: var(--line);
}
.tk-card:focus-visible {
	border-color: var(--blue);
}
.tk-card.is-picked {
	border-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 8%, var(--bg-raised));
}
.tk-card.is-linked {
	border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}
.tk-card.is-unusable {
	cursor: default;
}
.tk-card.is-dragging,
.tk-person.is-dragging,
.tk-chip.is-dragging {
	opacity: 0.4;
}
.tk-thumb {
	position: relative;
	width: 96px;
	height: 54px;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}
.tk-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}
.tk-thumb-none {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: var(--text-muted);
}
.tk-card.is-unusable .tk-thumb {
	filter: grayscale(1) brightness(0.6);
}
.tk-dur {
	position: absolute;
	right: 3px;
	bottom: 3px;
	padding: 0 4px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.7);
	font: 11px var(--font-mono);
}
.tk-card-main {
	min-width: 0;
}
.tk-row1 {
	display: flex;
	align-items: center;
	gap: 8px;
}
.tk-who {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tk-where {
	margin-left: auto;
	font-size: 12.5px;
	color: var(--text-muted);
	white-space: nowrap;
}
.tk-where.is-on {
	color: var(--text);
	font-weight: 600;
}
.tk-where.is-wait {
	color: var(--accent);
	font-weight: 600;
}
.tk-row2 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 3px;
	font-size: 12.5px;
	color: var(--text-muted);
}
.tk-row3 {
	margin-top: 2px;
	font-size: 12px;
	color: var(--text-muted);
}
.tk-st {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
}
.tk-st::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.tk-st-ready {
	color: var(--ok);
}
.tk-st-check {
	color: var(--accent);
}
.tk-st-failed {
	color: var(--danger);
}
.tk-st-processing {
	color: var(--blue);
}
.tk-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--blue);
	font: 600 12.5px var(--font);
	cursor: pointer;
}
.tk-link:hover:not(:disabled) {
	text-decoration: underline;
}
.tk-link:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.tk-link.is-danger {
	color: var(--danger);
}

/*A contact*/
.tk-person {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 0 10px;
	align-items: center;
	padding: 8px 10px;
	border: 1px solid var(--line-soft);
	border-radius: 8px;
	background: var(--bg-raised);
	outline: none;
	cursor: grab;
}
.tk-person:hover {
	border-color: var(--line);
}
.tk-person:focus-visible {
	border-color: var(--blue);
}
.tk-person.is-picked {
	border-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 8%, var(--bg-raised));
}
.tk-person.is-here {
	border-color: color-mix(in srgb, var(--pc) 50%, var(--line));
}
.tk-person-main {
	min-width: 0;
}
.tk-person-name {
	display: flex;
	gap: 8px;
	align-items: baseline;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tk-person-name small {
	color: var(--text-muted);
	font-weight: 400;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tk-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 3px;
	font-size: 12px;
	color: var(--text-muted);
}
.tk-tag {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	height: 19px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--bg-sunk);
	border: 1px solid var(--line);
	color: var(--text);
	font: 600 11.5px var(--font-mono);
	cursor: pointer;
}
.tk-tag-n {
	color: var(--tc);
}
.tk-tag.is-cur {
	border-color: var(--accent);
}
.tk-tag.is-open {
	cursor: default;
	font-family: var(--font);
}

/*Parts bar, docked to the bottom of the window: parts in song order, placed by time*/
.tk-parts {
	position: sticky;
	bottom: 0;
	z-index: 20;
	margin: 0 calc(-1 * var(--s4));
	padding: 8px var(--s4) 10px;
	background: color-mix(in srgb, var(--bg-sunk) 96%, transparent);
	border-top: 1px solid var(--line);
	backdrop-filter: blur(6px);
}
.tk-parts-head {
	display: flex;
	align-items: center;
	gap: var(--s4);
	margin-bottom: 4px;
	font-size: 0.82rem;
	color: var(--text-muted);
}
.tk-parts-head h3 {
	font-size: 1rem;
	color: var(--text);
}
.tk-stats {
	display: flex;
	gap: var(--s4);
}
.tk-stats .pv-stat {
	flex-direction: row;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
}
.tk-stats .pv-stat-value {
	font-size: 0.85rem;
}
.tk-keys {
	margin-left: auto;
}
.tk-keys kbd {
	font: 12px var(--font-mono);
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 0 4px;
}
.tk-bar-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 4px;
	outline: none;
	scrollbar-color: #2b3654 transparent;
}
.tk-bar-scroll:focus-visible {
	box-shadow: 0 0 0 2px var(--blue);
	border-radius: 4px;
}
.tk-track {
	position: relative;
	height: 92px;
}
.tk-bar-info {
	position: absolute;
	top: 0;
	height: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 3px;
	overflow: hidden;
	font: 600 12px/1 var(--font-display);
}
.tk-bar-n.is-none {
	color: var(--text-muted);
	font-weight: 400;
}
.tk-bar-info .tk-icon {
	width: 18px;
	height: 11px;
}
.tk-bar-info .tk-icon i {
	border-width: 1px;
	border-color: var(--bg-sunk);
	background: #2b3654;
}
.tk-bar-info .tk-icon i.is-on {
	background: var(--text);
}
.tk-bar-seg {
	position: absolute;
	top: 44px;
	height: 28px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	overflow: hidden;
	border: 1px solid var(--bg);
	border-radius: 3px;
	background: var(--pc);
	color: var(--part-ink);
	font: 700 12.5px/1 var(--font-mono);
	cursor: pointer;
	opacity: 0.55;
}
.tk-bar-seg:hover {
	opacity: 0.85;
}
.tk-bar-seg.is-off {
	background: transparent;
	border: 1px dashed #2b3654;
	cursor: default;
	opacity: 0.6;
}
.tk-bar-seg.is-sel {
	opacity: 1;
	z-index: 1;
	box-shadow: 0 4px 0 -1px #fff;
}
.tk-bar-seg.is-final {
	opacity: 1;
	outline: 2px solid #fff;
	outline-offset: -3px;
}
.tk-bar-seg:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
	z-index: 2;
}
.tk-ruler {
	position: absolute;
	top: 76px;
	left: 0;
	right: 0;
	height: 16px;
	border-top: 1px solid var(--line-soft);
}
.tk-ruler span {
	position: absolute;
	top: 2px;
	font: 11px var(--font-mono);
	color: var(--text-muted);
	transform: translateX(-50%);
}
.tk-ruler span:first-child {
	transform: none;
}
.tk-empty:empty {
	display: none;
}
