.hp-guide-more button,
.hp-guide-more select,
.hp-guide-more input {
	box-sizing: border-box;
	width: auto;
	margin: 0;
	font: inherit;
	font-size: 13px;
}

.hp-guide-more [hidden] {
	display: none !important;
}

.hp-guide-widget.hp-guide-more button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #1e293b;
	font-weight: 600;
	cursor: pointer;
}

.hp-guide-panel {
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.hp-guide-panel-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: hsl(217, 18%, 22%);
	color: #f8fafc;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.hp-guide-panel-head i {
	color: #38bdf8;
}

.hp-guide-panel-body {
	padding: 10px 12px;
}

.hp-guide-quals .hp-guide-widget-body {
	max-width: 640px;
}

.hp-guide-quals-name {
	padding: 4px 2px;
	font-weight: 600;
}

.hp-guide-quals-summary {
	margin: 4px 0 8px;
	color: #64748b;
	font-weight: 600;
}

.hp-guide-quals-summary.is-actual {
	color: #1b7f3d;
}

.hp-guide-quals-summary.is-potential {
	color: #c05600;
}

.hp-guide-quals-summary .hp-guide-qual-actual {
	margin-right: 6px;
}

.hp-guide-quals-summary .hp-guide-qual-potential {
	margin-right: 6px;
}

.hp-guide-quals-layout {
	display: grid;
	grid-template-columns: 212px 1fr;
	align-items: stretch;
}

.hp-guide-quals-side {
	padding-right: 10px;
	border-right: 1px solid hsl(220, 4%, 50%);
}

.hp-guide-quals-side-label {
	margin-bottom: 6px;
	color: #64748b;
	font-size: 12px;
}

.hp-guide-quals-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hp-guide-widget.hp-guide-quals .hp-guide-quals-nav button {
	display: flex;
	justify-content: space-between;
	width: 100%;
	border-radius: 2px;
	text-align: left;
}

.hp-guide-quals-nav button.is-on {
	background: hsl(130, 60%, 89%);
	border-color: hsl(130, 60%, 22%);
	color: #0f172a;
}

.hp-guide-qual-actual {
	color: #1b7f3d;
}

.hp-guide-qual-potential {
	color: #eb822c;
}

.hp-guide-qual-none {
	color: #878787;
}

.hp-guide-quals-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding-left: 14px;
}

.hp-guide-qual-label.is-actual {
	color: #1b7f3d;
	font-size: 12px;
	font-weight: 600;
}

.hp-guide-qual-label.is-potential {
	color: #c05600;
	font-size: 12px;
	font-weight: 600;
}

.hp-guide-quals-cols ul {
	min-height: 180px;
	margin: 4px 0 0;
	padding: 4px 8px;
	border: 1px solid hsl(220, 4%, 50%);
	border-radius: 2px;
	list-style: none;
	font-size: 13px;
}

.hp-guide-cols-layout,
.hp-guide-settings-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
}

.hp-guide-cols .hp-guide-panel,
.hp-guide-settings .hp-guide-panel,
.hp-guide-slip .hp-guide-panel {
	flex: 1 1 320px;
	max-width: 460px;
}

.hp-guide-cols-profile {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-weight: 600;
}

.hp-guide-cols-profile span {
	display: flex;
	gap: 6px;
}

.hp-guide-cols-tags {
	margin-bottom: 8px;
	text-transform: uppercase;
}

.hp-guide-cols-tag-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
}

.hp-guide-cols-tag-panel button.is-on {
	background: hsl(130, 60%, 89%);
	border-color: hsl(130, 60%, 22%);
}

.hp-guide-settings-field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	width: 100%;
	margin: 0 0 12px;
	font-weight: 600;
}

.hp-guide-cols-profile select,
.hp-guide-settings select,
.hp-guide-slip select,
.hp-guide-slip input {
	padding: 6px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
}

.hp-guide-settings select {
	width: 100%;
}

.hp-guide-cols-block-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	padding: 8px 0 4px;
	border-top: 2px solid #ccc;
	color: #0f172a;
	font-weight: 700;
}

.hp-guide-cols-block-head button {
	padding: 2px 8px;
	font-size: 11px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.hp-guide-cols-row {
	display: grid;
	grid-template-columns: 20px 6.75rem 1fr;
	gap: 6px;
	align-items: center;
	padding: 4px 0;
	font-weight: 600;
}

.hp-guide-cols-row input {
	accent-color: #2563eb;
}

.hp-guide-cols-desc {
	color: #444;
	font-weight: 400;
}

.hp-guide-cols-card {
	border-collapse: collapse;
	background: #fff;
}

.hp-guide-cols-card th,
.hp-guide-cols-card td {
	padding: 6px 10px;
	border: 1px solid hsl(220, 4%, 80%);
}

.hp-guide-cols-card th {
	background: hsl(217, 18%, 37%);
	color: #fff;
}

.hp-guide-cols-card .is-off {
	display: none;
}

.hp-guide-settings-card {
	border-collapse: collapse;
	background: #fff;
}

.hp-guide-settings-card th,
.hp-guide-settings-card td {
	padding: 6px 10px;
	border: 1px solid hsl(220, 4%, 80%);
	text-align: center;
}

.hp-guide-settings-card th {
	background: hsl(217, 18%, 37%);
	color: #fff;
}

.hp-guide-settings-stat {
	min-width: 64px;
	font-weight: 700;
	letter-spacing: -0.5px;
	text-align: center;
}

.hp-guide-settings-stat span {
	display: block;
}

.hp-guide-runner .hp-guide-widget-body,
.hp-guide-runner .hp-guide-panel {
	width: 100%;
	max-width: none;
}

.hp-guide-runner-wait,
.hp-guide-runner-chart-wait {
	display: flex;
	justify-content: center;
	padding: 36px 0;
	color: hsl(217, 18%, 37%);
	font-size: 32px;
}

.hp-guide-runner.is-ready .hp-guide-runner-wait,
.hp-guide-runner:not(.is-ready) .hp-guide-runner-tabs,
.hp-guide-runner:not(.is-ready) .hp-guide-panel-body {
	display: none;
}

.hp-guide-runner-note {
	margin: 0 0 6px;
	color: #64748b;
	font-size: 12px;
	white-space: pre-wrap;
}

.hp-guide-runner-scroll {
	overflow-x: auto;
}

.hp-guide-runner-entry {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hp-guide-runner-entry > div {
	flex: 1 1 220px;
	padding: 8px 10px;
	border: 1px solid hsl(220, 4%, 50%);
	border-radius: 4px;
}

.hp-guide-runner-title {
	margin-bottom: 8px;
	padding-bottom: 4px;
	border-bottom: 2px solid hsl(217, 18%, 50%);
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.hp-guide-runner-entry p {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 2px 0;
	border-bottom: 1px solid hsl(220, 4%, 78%);
}

.hp-guide-runner-split {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.hp-guide-runner-side {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 78px;
}

.hp-guide-widget.hp-guide-runner .hp-guide-runner-side button {
	width: 100%;
}

.hp-guide-widget.hp-guide-runner .hp-guide-runner-view button {
	width: auto;
}

.hp-guide-runner-side button.is-on,
.hp-guide-runner-view button.is-on {
	background: hsl(217, 18%, 50%);
	color: #fff;
}

.hp-guide-runner-detail {
	flex: 1;
	min-width: 0;
}

.hp-guide-runner-view {
	display: flex;
	gap: 3px;
	margin: 0 0 8px;
}

.hp-guide-runner-stats {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.hp-guide-runner .hp-guide-runner-stats th,
.hp-guide-runner .hp-guide-runner-stats td {
	padding: 3px 6px;
	border-bottom: 1px solid hsl(220, 4%, 89%);
	text-align: center;
}

.hp-guide-runner-stats th {
	background: hsl(217, 18%, 37%);
	color: #fff;
}

.hp-guide-runner-stats td.metric {
	text-align: left;
	font-weight: 600;
}

.hp-guide-runner-stats th.bw {
	background: hsl(24, 70%, 42%);
}

.hp-guide-runner-stats td.bw {
	background: hsl(30, 80%, 94%);
}

.hp-guide-runner-key p {
	margin: 4px 0;
	line-height: 1.4;
}

.hp-guide-runner-charts {
	width: 100%;
}

.hp-guide-runner-chart-toggles {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 10px;
}

.hp-guide-runner-chart-toggles label {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-size: 13px;
}

.hp-guide-runner-chart-toggles input {
	width: 16px;
	height: 16px;
	margin: 0;
}

.hp-guide-runner-chart-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}

.hp-guide-runner-chart {
	flex: 0 0 calc((100% - 30px) / 4);
	max-width: calc((100% - 30px) / 4);
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 1px 2px 0;
	overflow: hidden;
}

.hp-guide-runner-chart-title {
	color: #1474af;
	font-size: 13px;
	font-weight: 600;
}

.hp-guide-runner-chart-frame {
	height: 140px;
}

.hp-guide-runner-chart-frame canvas {
	display: block;
	width: 100%;
	height: 140px;
}

.hp-guide-runner-chart-empty {
	margin: 0;
	padding: 12px;
	background: #f0f0f0;
	color: #666;
	text-align: center;
}

.hp-guide-runner-tabs {
	display: flex;
	gap: 3px;
	padding: 8px 8px 0;
}

.hp-guide-runner-tabs button {
	width: 100px;
	padding: 4px;
	border: 1px solid hsl(220, 4%, 37%);
	border-radius: 1px;
	background: hsl(220, 4%, 78%);
	text-transform: uppercase;
}

.hp-guide-runner-tabs button.is-on {
	background: hsl(217, 18%, 50%);
	color: #fff;
}

.hp-guide-runner table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.hp-guide-runner th,
.hp-guide-runner td {
	padding: 4px 6px;
	border-bottom: 1px solid hsl(220, 4%, 89%);
	text-align: left;
}

.hp-guide-runner [data-panel="previous"] th,
.hp-guide-runner [data-panel="previous"] td {
	white-space: nowrap;
}

.hp-guide-runner th {
	background: hsl(217, 18%, 37%);
	color: #fff;
}

.hp-guide-widget.hp-guide-runner th.sort-th {
	position: relative;
	padding-top: 7px;
	padding-bottom: 7px;
	cursor: pointer;
	user-select: none;
}

.hp-guide-runner .sort-up,
.hp-guide-runner .sort-down {
	position: absolute;
	left: 2px;
	right: 2px;
	height: 0;
}

.hp-guide-runner .sort-up {
	top: 1px;
	border-bottom: 2px solid #e1e1e1;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

.hp-guide-runner .sort-down {
	bottom: 1px;
	border-top: 2px solid #e1e1e1;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}

.hp-guide-runner .sort-up.on {
	border-bottom: 3px solid #ffe700;
}

.hp-guide-runner .sort-down.on {
	border-top: 3px solid #ffe700;
}

.hp-guide-runner .hp-guide-runner-mtp td,
.hp-guide-runner td.is-right {
	text-align: right;
}

.hp-guide-runner .hp-guide-runner-mtp th {
	text-align: center;
}

.hp-guide-slip .hp-guide-panel-body {
	background: #f8fafc;
}

.hp-guide-slip-horse {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 4px;
	background: hsl(217, 18%, 22%);
	color: #f8fafc;
	font-weight: 700;
}

.hp-guide-slip-horse i {
	margin-right: 8px;
	color: #38bdf8;
}

.hp-guide-slip-card {
	margin: 0 0 10px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
}

.hp-guide-slip-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.hp-guide-slip-title i {
	margin-right: 6px;
	color: #38bdf8;
}

.hp-guide-slip-toggles {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.hp-guide-slip-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.hp-guide-slip-row .is-on {
	color: #0f172a;
}

.hp-guide-slip-sched {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0f172a;
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
}

.hp-guide-slip-field {
	display: grid;
	grid-template-columns: 148px 1fr;
	gap: 8px;
	align-items: center;
	margin: 0 0 8px;
	font-weight: 600;
}

.hp-guide-slip-field input,
.hp-guide-slip-field select {
	width: 100%;
}

.hp-guide-slip-stake {
	grid-template-columns: 148px 72px 1fr;
}

.hp-guide-switch {
	position: relative;
	width: 44px;
	height: 22px;
	margin: 0 12px;
}

.hp-guide-switch input {
	position: absolute;
	opacity: 0;
}

.hp-guide-switch span {
	display: block;
	width: 44px;
	height: 22px;
	border-radius: 11px;
	background: #cbd5e1;
	cursor: pointer;
}

.hp-guide-switch span:before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}

.hp-guide-switch input:checked + span:before {
	transform: translateX(22px);
}

.hp-guide-switch.is-back span {
	background: #38bdf8;
}

.hp-guide-switch.is-back input:checked + span {
	background: #e11d48;
}

.hp-guide-switch.is-hedge span,
.hp-guide-switch.is-hedge input:checked + span {
	background: #059669;
}

.hp-guide-switch.is-book span,
.hp-guide-switch.is-book input:checked + span {
	background: #d97706;
}

.hp-guide-switch.is-sched input:checked + span {
	background: #e11d48;
}

.hp-guide-slip [data-order] {
	display: flex;
	width: 100%;
	height: 40px;
	border: 0;
	background: #5788a5;
	color: #fff;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.hp-guide-slip [data-order].is-lay {
	background: #c36868;
}

.hp-guide-slip-foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.hp-guide-slip [hidden] {
	display: none !important;
}

.hp-guide-bet-row {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 8px;
	background: #fff;
	border: 1px solid hsl(220, 4%, 80%);
}

.hp-guide-bet-name {
	font-weight: 700;
}

.hp-guide-bet-badges {
	position: absolute;
	top: 4px;
	right: 4px;
	bottom: 4px;
	display: flex;
	gap: 2px;
	align-items: center;
}

.hp-guide-bet-badges span {
	padding: 3px 2px;
	border: 1px solid;
	border-radius: 2px;
	font-size: 12px;
	font-weight: 600;
	line-height: 9px;
}

.hp-guide-bet-badges .is-back {
	background: hsl(217, 18%, 78%);
}

.hp-guide-bet-badges .is-lay {
	background: hsl(0, 60%, 78%);
}

.hp-guide-bet-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.hp-guide-widget.hp-guide-pop .hp-guide-card-ctrl {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0;
	padding: 6px 10px;
	border: 1px solid hsl(220, 4%, 63%);
	border-radius: 4px;
	background: #fff;
	color: #24292e;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.hp-guide-widget.hp-guide-pop .hp-guide-card-ctrl.is-paused {
	color: #878787;
}

.hp-guide-widget.hp-guide-pop.is-inline .hp-guide-card-ctrl {
	display: none;
}

.hp-guide-widget.hp-guide-pop.is-inline .hp-guide-pop-dialog:not([open]) {
	display: flex !important;
	flex-direction: column;
	position: static;
	inset: auto;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	margin: 0;
	overflow: visible;
}

.hp-guide-pop .hp-guide-pop-dialog {
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	border: 1px solid #1e293b;
	border-radius: 6px;
	background: #fff;
	color: #24292e;
	overflow: hidden;
}

.hp-guide-pop .hp-guide-pop-dialog.is-wide {
	width: min(760px, calc(100vw - 32px));
}

.hp-guide-pop .hp-guide-pop-dialog:not([open]) {
	display: none !important;
}

.hp-guide-pop .hp-guide-pop-dialog[open] {
	display: flex;
	flex-direction: column;
}

.hp-guide-pop .hp-guide-pop-dialog::backdrop {
	background: rgba(15, 23, 42, 0.45);
}

.hp-guide-pop .hp-guide-pop-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 18px;
	background: hsl(217, 18%, 22%);
	color: #f8fafc;
}

.hp-guide-pop .hp-guide-pop-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.hp-guide-pop .hp-guide-pop-title i {
	color: #38bdf8;
}

.hp-guide-widget.hp-guide-pop .hp-guide-pop-x {
	padding: 6px 8px;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.hp-guide-pop .hp-guide-pop-dialog > .hp-guide-widget-demo {
	margin: 8px 18px 0;
}

.hp-guide-pop .hp-guide-pop-body {
	padding: 12px 18px;
	overflow: auto;
}

.hp-guide-pop .hp-guide-pop-foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 10px 18px;
	background: #f1f5f9;
	border-top: 1px solid #e2e8f0;
}

.hp-guide-widget.hp-guide-pop .hp-guide-pop-foot button {
	min-width: 80px;
	padding: 6px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #1e293b;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
}

.hp-guide-widget.hp-guide-pop .hp-guide-pop-foot button.is-primary {
	background: #0284c7;
	border-color: #0284c7;
	color: #fff;
}

.hp-guide-pop .hp-guide-pop-dialog > .hp-guide-widget-cap {
	margin: 0 18px 10px;
}

.hp-guide-pause-race {
	font-weight: 600;
	padding: 2px 0 6px;
}

.hp-guide-pause-hint,
.hp-guide-sq-hint {
	margin: 0 0 10px;
	color: #666;
	font-size: 13px;
}

.hp-guide-pause-bulk {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.hp-guide-widget.hp-guide-pop .hp-guide-pause-bulk button {
	padding: 4px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	color: #1e293b;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
}

.hp-guide-pause-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hp-guide-pause-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.hp-guide-pause-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #878787;
	box-shadow: 0 0 0 2px #fff;
}

.hp-guide-pause-dot.is-on {
	background: #1b7f3d;
}

.hp-guide-sq {
	display: flex;
	gap: 16px;
	min-height: 280px;
}

.hp-guide-sq-projects {
	flex: 0 0 180px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-right: 12px;
	border-right: 1px solid hsl(220, 4%, 50%);
}

.hp-guide-widget.hp-guide-pop .hp-guide-sq-projects button {
	display: flex;
	justify-content: flex-start;
	width: 100%;
	padding: 6px 8px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
}

.hp-guide-widget.hp-guide-pop .hp-guide-sq-projects button.is-on {
	background: #64d68a;
	font-weight: 600;
}

.hp-guide-sq-races {
	flex: 1;
	min-width: 0;
	padding: 4px 6px;
	border-radius: 6px;
	background: #eef0f2;
	overflow: auto;
}

.hp-guide-sq-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 1.5px 1px;
}

.hp-guide-sq-table th,
.hp-guide-sq-table td {
	padding: 4px 8px;
	border: 1px solid hsl(220, 4%, 63%);
	background: #fff;
	font-size: 13px;
	font-weight: 400;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
}

.hp-guide-sq-table th {
	background: #f4f5f6;
	color: #666;
	font-size: 12px;
	font-weight: 600;
}

.hp-guide-sq-table th:first-child,
.hp-guide-sq-table td:first-child {
	text-align: left;
}

.hp-guide-sq-table tbody tr {
	cursor: pointer;
}

.hp-guide-sq-table tbody tr:hover td {
	background: hsl(130, 60%, 89%);
}
