/* @cortal/run-view: the look of a Cortal run (steps, how it decided, the page it read, results, the
   work list). One file for the landing site and the app; edit it here, never in a copy. The landing
   build copies it to public/home/run-view.css and links it before home.css. */
.tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	border-radius: 22%;
	font-weight: 600;
	flex: none;
	font-family: Switzer, sans-serif;
}
.ca-group {
	padding: 8px 0 2px;
}
.ca-label {
	display: flex;
	justify-content: space-between;
	padding: 4px 8px 8px;
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #706d65;
	font-weight: 500;
}
.ca-label em {
	font-style: normal;
	background: #f0e6d0;
	color: #7a5c23;
	border-radius: 4px;
	padding: 0 5px;
	letter-spacing: 0;
	font-size: 10px;
}
.ca-row {
	display: flex;
	gap: 10px;
	padding: 7px 8px;
	border-radius: 6px;
	align-items: flex-start;
}
.ca-row.is-sel {
	background: #eeeae0;
}
/* A row that opens something (the app's runs): the same row, with a hover and a focus ring. */
a.ca-row {
	color: inherit;
	text-decoration: none;
	outline: none;
}
a.ca-row:hover {
	background: rgba(238, 234, 224, 0.6);
}
a.ca-row.is-sel:hover {
	background: #eeeae0;
}
a.ca-row:focus-visible {
	box-shadow: 0 0 0 3px rgba(17, 19, 18, 0.12);
}
.ca-dot {
	width: 14px;
	height: 14px;
	display: grid;
	place-items: center;
	flex: none;
	margin-top: 2px;
}
.ca-dot::after {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #111312;
}
.ca-dot.need::after {
	background: #8a6a2c;
}
.ca-dot.work::after {
	background: transparent;
	border: 1.5px dashed #706d65;
	width: 9px;
	height: 9px;
}
.ca-dot.done::after {
	display: none;
}
.ca-dot.stopped::after {
	border-radius: 1.5px;
	background: #8f8b82;
}
.ca-dot.done {
	color: #55534c;
}
.ca-row-txt {
	min-width: 0;
	flex: 1;
}
.ca-row-txt strong {
	display: block;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ca-row-txt span {
	display: block;
	font-size: 12px;
	color: #706d65;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ca-row time {
	font-size: 11px;
	color: #706d65;
	margin-top: 2px;
	white-space: nowrap;
}
.ca-b1 {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 12px;
	border-bottom: 1px solid rgba(17, 19, 18, 0.11);
	font-size: 12px;
	background: #fdfbf7;
}
.ca-b1 span {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.ca-b1 b {
	font-weight: 500;
}
.ca-b1 em {
	font-style: normal;
	background: #eeeae0;
	border-radius: 4px;
	padding: 1px 7px;
	color: #55534c;
}
.ca-b1r {
	margin-left: auto;
}
.ca-b2 {
	display: flex;
	gap: 14px;
	align-items: center;
	height: 46px;
	padding: 0 12px;
	font-size: 14px;
	color: #706d65;
	background: #fdfbf7;
	border-bottom: 1px solid rgba(17, 19, 18, 0.11);
}
.ca-b2 div {
	flex: 1;
	background: #f5f3ed;
	border: 1px solid rgba(17, 19, 18, 0.11);
	border-radius: 5px;
	height: 30px;
	display: flex;
	align-items: center;
	padding: 0 10px;
	font-size: 12px;
}
.run {
	flex: 1;
	min-width: 0;
	padding: 20px 24px;
	background: #fdfbf7;
	overflow: hidden;
}
.run-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.run-head h5 {
	font-size: 17px;
	font-weight: 600;
}
/* The line under the title; not the system tiles beside it, whose letters stay white. */
.run-head > div:first-child > span {
	font-size: 12.5px;
	color: #706d65;
}
.run-sys {
	display: flex;
	gap: 7px;
}
.run-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.run-list li {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid rgba(17, 19, 18, 0.08);
	opacity: 0.14;
	transition: opacity 0.3s var(--ease, cubic-bezier(0.2, 0, 0, 1));
}
.run-list li.is-in {
	opacity: 1;
}
.run-k {
	width: 48px;
	flex: none;
	font-size: 11.5px;
	font-weight: 500;
	border-radius: 4px;
	text-align: center;
	padding: 2px 0;
	height: 21px;
	background: #eeeae0;
	color: #55534c;
}
.k-do {
	background: #111312;
	color: #fff;
}
.k-check {
	background: #e4efe7;
	color: #245e43;
}
.k-fork {
	background: #ece6f5;
	color: #55398c;
}
.k-wait {
	background: #f3ead8;
	color: #7a5c23;
}
.k-ask {
	background: #f9e4d9;
	color: #8a4b12;
}
.run-t {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.run-t strong {
	font-size: 14.5px;
	font-weight: 500;
}
.run-list p {
	font-size: 13px;
	color: #706d65;
	line-height: 1.4;
	margin-top: 1px;
}
.by {
	font-style: normal;
	font-size: 11px;
	font-weight: 500;
	border-radius: 4px;
	padding: 1px 6px;
	white-space: nowrap;
}
.by-code {
	background: #e4efe7;
	color: #245e43;
}
.by-agent {
	background: #ece6f5;
	color: #55398c;
}
.by-ask {
	background: #f3ead8;
	color: #7a5c23;
}
.by-stop {
	background: #f3ead8;
	color: #7a5c23;
}
.run {
	overflow: auto;
	scrollbar-width: thin;
}
.run-list li {
	display: block;
	padding: 0;
}
.run-list li button {
	all: unset;
	display: flex;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
	padding: 9px 8px;
	cursor: pointer;
	border-radius: 6px;
	transition: background-color 0.15s;
}
.run-list li.is-sel button {
	background: #eeeae0;
}
@media (hover: hover) {
	.run-list li button:hover {
		background: #f3f0e8;
	}
}
.run-list li button:focus-visible {
	outline: 2px solid #245e43;
}
.run-go {
	margin-left: auto;
	align-self: center;
	color: #b0ada3;
}
.run-list li > button > div {
	min-width: 0;
}
button.by {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}
.pn-tabs {
	display: flex;
	gap: 2px;
	padding: 8px 10px;
	border-bottom: 1px solid rgba(17, 19, 18, 0.11);
	flex: none;
}
.pn-tabs button {
	all: unset;
	font-size: 12.5px;
	padding: 5px 9px;
	border-radius: 6px;
	cursor: pointer;
	color: #55534c;
	white-space: nowrap;
}
.pn-tabs button.on {
	background: #eeeae0;
	color: #111312;
	font-weight: 500;
}
.pn {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow: auto;
	flex: 1;
	min-height: 0;
	font-size: 14px;
}
.pn h6 {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}
.pn .by {
	width: fit-content;
}
.pn-l {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #706d65;
	font-weight: 500;
	margin-top: 8px;
}
.pn-code {
	margin: 0;
	background: #16201c;
	color: #d6e8dc;
	border-radius: 6px;
	padding: 10px 12px;
	font:
		12.5px / 1.5 ui-monospace,
		"SF Mono",
		Menlo,
		monospace;
	white-space: pre-wrap;
}
.pn-t {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}
.pn-t td {
	padding: 7px 0;
	border-bottom: 1px solid rgba(17, 19, 18, 0.08);
}
.pn-t td:first-child {
	color: #706d65;
	width: 44%;
}
.pn-res {
	display: flex;
	gap: 7px;
	align-items: center;
	background: #e4efe7;
	color: #245e43;
	border-radius: 6px;
	padding: 8px 10px;
	font-weight: 500;
	margin-top: 8px;
}
.pn-res-stop {
	background: #f3ead8;
	color: #7a5c23;
}
.pn-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 12px;
	color: #706d65;
	margin-top: 2px;
}
.pn-note {
	background: #f5f3ed;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 13px;
	line-height: 1.45;
	margin-top: 6px;
}
.pn-ul {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 4px;
	font-size: 13.5px;
}
.pn-dec {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.pn-dec-btn {
	all: unset;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	border: 1px solid rgba(17, 19, 18, 0.11);
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s;
}
.pn-dec-btn.on {
	background: #eeeae0;
	border-color: transparent;
}
@media (hover: hover) {
	.pn-dec-btn:not(.on):hover {
		background: #f3f0e8;
	}
}
.pn-dec-btn:focus-visible {
	outline: 2px solid #245e43;
}
.pn-dec strong,
.pn-dec-one strong {
	font-weight: 600;
	line-height: 1.3;
}
.pn-dec .by,
.pn-dec-one .by {
	width: fit-content;
}
.pn-dec .pn-l,
.pn-dec-one .pn-l {
	margin-top: 4px;
}
.pn-dec-saw {
	font-size: 13px;
	color: #55534c;
}
.pn-dec-one {
	gap: 4px;
}
.pn-empty {
	color: #706d65;
}
.pn-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.pn-choices span {
	border: 1px solid #e2e2d9;
	border-radius: 6px;
	padding: 3px 9px;
	font-size: 13px;
}
.pn-choices span.on {
	background: #e4efe7;
	border-color: #e4efe7;
	color: #245e43;
	font-weight: 500;
}
.pn-small {
	font-size: 12.5px;
	color: #706d65;
}
.pn-b {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.pn-bar {
	flex: none;
}
.pn-page {
	margin: 12px;
	flex: 1;
	background: #fff;
	border: 1px solid rgba(17, 19, 18, 0.1);
	border-radius: 6px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pn-page h6 {
	font-size: 16px;
	font-weight: 600;
}
.wait {
	list-style: none;
	margin: 0;
	padding: 0;
}
.wait li {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid rgba(17, 19, 18, 0.07);
}
.wait li > div {
	flex: 1;
}
.wait strong {
	display: block;
	font-weight: 500;
	font-size: 13.5px;
	line-height: 1.25;
}
.wait span {
	font-size: 12px;
	color: #706d65;
}
.wait em {
	font-style: normal;
	font-size: 12px;
	color: #706d65;
}
.wait i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d9d6cc;
	flex: none;
}
.w-done i {
	background: #245e43;
}
.w-done em {
	color: #245e43;
}
.w-waiting i {
	background: #b4842f;
	animation: wp 1.6s ease-in-out infinite;
}
.w-waiting em {
	color: #8a6a2c;
	font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
	.w-waiting i {
		animation: none;
	}
}
.run-list li > button {
	display: flex;
}
.t-matrix {
	display: inline-grid;
	grid-template-columns: repeat(4, 2px);
	gap: 1px;
	flex: none;
}
.t-matrix i {
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: #d9d9d9;
	animation: matrixPulse 1200ms ease-in-out infinite;
	animation-delay: var(--d);
}
.t-shimmer {
	background: linear-gradient(
		90deg,
		#7c7c7c 0%,
		#7c7c7c 40%,
		#0d0d0d 50%,
		#7c7c7c 60%,
		#7c7c7c 100%
	);
	background-size: 400% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: shimmerText 2000ms linear infinite;
}
.pb {
	margin: 0;
}
.pb-head {
	all: unset;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 24px;
	font-size: 13px;
	color: #55534c;
	cursor: pointer;
}
.pb-head:hover {
	color: #111312;
}
.pb-chev {
	width: 12px;
	height: 12px;
	transition: transform 180ms var(--ease, cubic-bezier(0.2, 0, 0, 1));
}
.pb.open .pb-chev {
	transform: rotate(90deg);
}
.pb-time {
	font-variant-numeric: tabular-nums;
	color: #8b8880;
}
.pb-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 320ms var(--ease, cubic-bezier(0.2, 0, 0, 1));
}
.pb.open .pb-body {
	grid-template-rows: 1fr;
}
.pb-body > div {
	overflow: hidden;
	min-height: 0;
}
.pb-steps {
	list-style: none;
	margin: 0;
	padding: 6px 0 0;
}
.pb-line {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 3px 0;
	font-size: 13px;
	line-height: 18px;
	color: #706d65;
}
.pb-step.now .pb-line {
	color: #111312;
}
.pb-step.todo .pb-line {
	color: #a8a59b;
}
.pb-mark {
	position: relative;
	width: 16px;
	height: 18px;
	flex: none;
	display: grid;
	place-items: center;
}
.pb-step:not(:last-child) > .pb-line .pb-mark::after {
	content: "";
	position: absolute;
	left: 7.5px;
	top: 17px;
	bottom: -5px;
	width: 1px;
	background: rgba(17, 19, 18, 0.14);
}
.pb-spin {
	width: 14px;
	height: 14px;
	animation: pbturn 0.9s linear infinite;
}
.pb-spin circle {
	fill: none;
	stroke-width: 1.5;
}
.pb-spin .t {
	stroke: rgba(17, 19, 18, 0.14);
}
.pb-spin .h {
	stroke: #111312;
	stroke-dasharray: 11 40;
	stroke-linecap: round;
}
.pb-tick {
	width: 14px;
	height: 14px;
	stroke: #8b8880;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pb-todo {
	display: block;
	width: 12px;
	height: 12px;
	border: 1px dashed rgba(17, 19, 18, 0.25);
	border-radius: 50%;
}
.pb-stop {
	display: block;
	width: 10px;
	height: 2px;
	border-radius: 1px;
	background: #7a5c23;
}
@media (prefers-reduced-motion: reduce) {
	.t-matrix i,
	.t-shimmer,
	.pb-spin {
		animation: none;
	}
	.t-shimmer {
		color: #706d65;
		background: none;
	}
}
.run-list li {
	border: 0;
	opacity: 0.34;
}
.run-list li.is-in,
.run-list li.is-now {
	opacity: 1;
}
.run-list li > button {
	padding: 7px 8px 7px 2px;
	gap: 9px;
	align-items: flex-start;
}
.run-list .pb-mark {
	height: 21px;
}
.run-list li .pb-mark::after {
	content: "";
	position: absolute;
	left: 7.5px;
	top: 20px;
	height: calc(100% + 6px);
	width: 1px;
	background: rgba(17, 19, 18, 0.12);
}
.run-list li:last-child .pb-mark::after {
	display: none;
}
.run-list li > button {
	position: relative;
}
.sp {
	position: relative;
	margin: 10px;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(17, 19, 18, 0.12);
	border-radius: 6px;
	overflow: hidden;
	font:
		400 13px / 1.4 system-ui,
		-apple-system,
		sans-serif;
}
.sp-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #fff;
	padding: 8px 12px;
	flex: none;
}
.sp-top b {
	font-weight: 600;
}
.sp-top i {
	font-style: normal;
	font-size: 11px;
	opacity: 0.8;
}
.sp-body {
	flex: 1;
	min-height: 0;
	display: flex;
}
.sp-nav {
	width: 96px;
	flex: none;
	background: #f6f7f8;
	border-right: 1px solid #e5e7ea;
	padding: 8px 0;
	display: flex;
	flex-direction: column;
}
.sp-nav span {
	padding: 5px 10px;
	color: #4b5563;
	font-size: 12px;
}
.sp-nav .on {
	background: #e8ebef;
	color: #111;
	font-weight: 500;
}
.sp-main {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
}
.sp-crumb {
	font-size: 11px;
	color: #6b7280;
}
.sp-main h6 {
	font-size: 15px;
	font-weight: 600;
	margin: 2px 0 10px;
	color: #111;
}
.sp-grid {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.sp-grid > div {
	border: 1px solid #e5e7ea;
	border-radius: 4px;
	padding: 6px 8px;
}
.sp-grid dt {
	font-size: 11px;
	color: #6b7280;
}
.sp-grid dd {
	margin: 0;
	font-weight: 500;
	color: #111;
}
.sp-grid .hl {
	outline: 2px solid rgba(45, 124, 246, 0.55);
	background: rgba(45, 124, 246, 0.07);
}
.sp-btns {
	display: flex;
	gap: 6px;
	margin-top: 12px;
}
.sp-btns span {
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 3px 10px;
	font-size: 12px;
	color: #374151;
}
.sp-cursor {
	position: absolute;
	right: 42%;
	bottom: 38%;
	animation: cur 4s var(--ease, cubic-bezier(0.2, 0, 0, 1)) infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
	.sp-cursor {
		animation: none;
	}
}
.run-detail {
	margin: 4px 0 12px;
	padding: 14px;
	border-radius: 10px;
	background: #f6f3ea;
	font-size: 14px;
	line-height: 1.45;
}
.run-detail .pn {
	padding: 0;
}
.run-detail:empty {
	display: none;
}
.run-detail {
	overflow: hidden;
}
.run-detail img {
	max-width: 100%;
}
.run-list li.is-sel .run-go {
	transform: rotate(90deg);
}
.run-go {
	transition: transform 0.2s var(--ease, cubic-bezier(0.2, 0, 0, 1));
}
@keyframes cur {
	to {
		transform: translate(-46px, -52px);
	}
}
@keyframes matrixPulse {
	0%,
	100% {
		background: #d9d9d9;
	}
	50% {
		background: #245e43;
	}
}
@keyframes pbturn {
	to {
		transform: rotate(360deg);
	}
}
@keyframes shimmerText {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: 0 0;
	}
}
@keyframes wp {
	50% {
		opacity: 0.35;
	}
}
/* A step that went wrong: what broke, what it tried, what it did instead, in the "needs you" amber. */
.run-fail {
	margin-top: 6px;
	padding: 2px 0 2px 10px;
	border-left: 2px solid #8a6a2c;
	font-size: 12.5px;
	line-height: 1.45;
	color: #55534c;
}
.run-fail b {
	font-weight: 500;
	color: #7a5c23;
	margin-right: 4px;
}
.run-fail-try {
	position: relative;
	padding-left: 12px;
	color: #706d65;
}
.run-fail-try::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 0.62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	border: 1px solid #b0ada3;
}
