/* RuneLite side panel (net.runelite.client.ui.ClientUI web build); colours follow RuneLite's ColorScheme. */
:root {
	--rl-darker: #1e1e1e;
	--rl-dark: #282828;
	--rl-medium: #4d4d4d;
	--rl-light: #a5a5a5;
	--rl-darker-hover: #3c3c3c;
	--rl-dark-hover: #232323;
	--rl-scroll-track: #191919;
	--rl-orange: #dc8a00;
	--rl-blue: #19c2ff;
	--rl-green: #37f046;
	--rl-red: #e61e1e;
	--rl-nav-w: 34px;
	--rl-panel-w: 242px;
	--rl-safe-right: env(safe-area-inset-right, 0px);
}

/* Desktop: the stage gives up the side bar's width, so the resizable canvas fills what is left. */
body.rl-open #stage {
	right: calc(var(--rl-safe-right) + var(--rl-nav-w));
}

body.rl-open.rl-expanded #stage {
	right: calc(var(--rl-safe-right) + var(--rl-nav-w) + var(--rl-panel-w));
}

.rl-sidebar {
	position: fixed;
	top: env(safe-area-inset-top, 0px);
	right: var(--rl-safe-right);
	bottom: env(safe-area-inset-bottom, 0px);
	display: none;
	z-index: 7;
	color: #fff;
	font: 12px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-user-select: none;
	user-select: none;
}

body.rl-open .rl-sidebar {
	display: flex;
}

.rl-sidebar [hidden] {
	display: none !important;
}

.rl-sidebar button {
	font: inherit;
	color: inherit;
}

.rl-sidebar ::-webkit-scrollbar {
	width: 7px;
}

.rl-sidebar ::-webkit-scrollbar-track {
	background: var(--rl-scroll-track);
}

.rl-sidebar ::-webkit-scrollbar-thumb {
	background: var(--rl-medium);
}

.rl-sidebar * {
	scrollbar-width: thin;
	scrollbar-color: var(--rl-medium) var(--rl-scroll-track);
}

/* Navigation strip */

.rl-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: var(--rl-nav-w);
	padding: 6px 0;
	box-sizing: border-box;
	overflow-y: auto;
	background: var(--rl-darker);
	border-left: 1px solid #111;
}

.rl-nav-button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 30px;
	height: 30px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

.rl-nav-button img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	opacity: 0.85;
}

.rl-nav-button:hover {
	background: var(--rl-darker-hover);
}

.rl-nav-button:hover img,
.rl-nav-button.selected img {
	opacity: 1;
}

.rl-nav-button.selected {
	background: var(--rl-dark);
	box-shadow: inset 2px 0 0 var(--rl-orange);
}

.rl-nav-button:focus-visible,
.rl-sidebar button:focus-visible {
	outline: 1px solid var(--rl-orange);
	outline-offset: -1px;
}

/* Panel area */

.rl-panel-area {
	display: none;
	flex-direction: column;
	width: var(--rl-panel-w);
	background: var(--rl-dark);
	border-left: 1px solid #111;
}

body.rl-expanded .rl-panel-area {
	display: flex;
}

.rl-panel-head {
	display: none;
	align-items: center;
	height: 32px;
	padding: 0 4px 0 10px;
	background: var(--rl-darker);
	border-bottom: 1px solid #111;
}

.rl-panel-title {
	flex: 1;
	color: var(--rl-orange);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rl-panel-host {
	position: relative;
	flex: 1;
	min-height: 0;
}

.rl-plugin-panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--rl-dark);
}

.rl-plugin-panel[hidden] {
	display: none;
}

.rl-plugin-panel.rl-wrapped {
	display: block;
	padding: 6px;
	overflow-y: auto;
}

.rl-muxer > .rl-plugin-panel {
	position: absolute;
}

.rl-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rl-top-panel {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px;
}

/* Common controls */

.rl-button {
	min-height: 24px;
	padding: 3px 10px;
	color: #fff;
	background: var(--rl-darker);
	border: 1px solid #111;
	border-radius: 2px;
	cursor: pointer;
}

.rl-button:hover {
	background: var(--rl-darker-hover);
}

.rl-button.rl-primary {
	border-color: var(--rl-orange);
}

.rl-button.rl-wide {
	display: block;
	width: 100%;
	margin-top: 5px;
}

.rl-icon-button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 22px;
	height: 22px;
	padding: 0;
	color: var(--rl-light);
	background: transparent;
	border: 0;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.rl-icon-button:hover {
	color: #fff;
	filter: brightness(1.3);
}

.rl-icon-button img {
	max-width: 16px;
	max-height: 16px;
}

.rl-input,
.rl-select {
	box-sizing: border-box;
	min-width: 0;
	padding: 3px 5px;
	color: #fff;
	background: var(--rl-darker);
	border: 1px solid #111;
	border-radius: 2px;
	font: inherit;
	-webkit-user-select: text;
	user-select: text;
}

.rl-input:focus,
.rl-select:focus {
	outline: none;
	border-color: var(--rl-orange);
}

.rl-select {
	max-width: 120px;
	height: 22px;
	padding: 0 2px;
}

.rl-textarea {
	display: block;
	width: 100%;
	min-height: 54px;
	resize: vertical;
}

.rl-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 6px;
	cursor: pointer;
}

.rl-toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.rl-toggle-track {
	position: relative;
	flex: none;
	width: 25px;
	height: 13px;
	background: var(--rl-medium);
	border-radius: 7px;
	transition: background 0.12s;
}

.rl-toggle-track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 9px;
	height: 9px;
	background: #c8c8c8;
	border-radius: 50%;
	transition: transform 0.12s;
}

.rl-toggle input:checked + .rl-toggle-track {
	background: var(--rl-blue);
}

.rl-toggle input:checked + .rl-toggle-track::after {
	background: #fff;
	transform: translateX(12px);
}

.rl-toggle input:focus-visible + .rl-toggle-track {
	outline: 1px solid var(--rl-orange);
	outline-offset: 1px;
}

.rl-spinner {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 3px;
}

.rl-spinner .rl-input {
	width: 64px;
	height: 22px;
	text-align: right;
}

.rl-spinner-units {
	color: var(--rl-light);
}

/* Plugin list */

.rl-search {
	flex: 1;
}

.rl-search .rl-input {
	width: 100%;
	height: 30px;
	padding-left: 26px;
	background: var(--rl-darker) no-repeat 8px 50% / 12px 12px
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='5' fill='none' stroke='%23a5a5a5' stroke-width='2'/%3E%3Cpath d='M10.5 10.5 15 15' stroke='%23a5a5a5' stroke-width='2'/%3E%3C/svg%3E");
}

.rl-plugin-list {
	padding: 0 10px 10px;
}

.rl-plugin-item {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 20px;
	margin-bottom: 5px;
}

.rl-pin {
	flex: none;
	width: 21px;
	height: 20px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.rl-pin::before {
	content: "\2605";
	color: #5a5a5a;
	font-size: 14px;
}

.rl-pin.selected::before {
	color: var(--rl-blue);
}

.rl-plugin-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rl-label-menu {
	cursor: pointer;
}

.rl-label-menu:hover {
	color: var(--rl-orange);
}

.rl-plugin-buttons {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Config panel */

.rl-config-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 600;
}

.rl-config-main {
	padding: 8px 10px 10px;
}

.rl-config-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	min-height: 22px;
	margin-bottom: 5px;
}

.rl-config-item.rl-stacked {
	flex-direction: column;
	align-items: stretch;
	gap: 3px;
}

.rl-config-name {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.rl-section {
	margin-bottom: 5px;
}

.rl-section-header {
	display: flex;
	align-items: center;
	gap: 5px;
	width: 100%;
	padding: 0 1px 3px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rl-medium);
	text-align: left;
	cursor: pointer;
}

.rl-section-arrow {
	flex: none;
	width: 0;
	height: 0;
	margin: 0 4px 0 3px;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid #5a5a5a;
	transition: transform 0.1s;
}

.rl-section.open .rl-section-arrow {
	transform: rotate(90deg);
}

.rl-section-name,
.rl-title-name {
	color: var(--rl-orange);
	font: 16px/1 var(--rl-font-bold, inherit);
}

.rl-section-contents {
	padding: 6px 0;
	border-bottom: 1px solid var(--rl-medium);
}

.rl-title {
	margin: 4px 0 5px;
}

.rl-title-name {
	padding-bottom: 3px;
}

.rl-title-contents {
	padding-left: 5px;
}

.rl-color-button {
	position: relative;
	flex: none;
	min-width: 86px;
	height: 22px;
	padding: 0 6px;
	color: #fff;
	background:
		linear-gradient(var(--rl-swatch, #000), var(--rl-swatch, #000)),
		repeating-conic-gradient(#8a8a8a 0 25%, #c8c8c8 0 50%) 0 0 / 8px 8px;
	border: 1px solid #111;
	border-radius: 2px;
	font: 11px/1 ui-monospace, Menlo, Consolas, monospace;
	text-shadow: 0 0 2px #000, 0 0 1px #000;
	cursor: pointer;
}

.rl-color-button.light {
	color: #000;
	text-shadow: 0 0 2px #fff;
}

.rl-dimension {
	display: flex;
	align-items: center;
}

.rl-dimension .rl-input {
	width: 52px;
}

.rl-hotkey {
	flex: none;
	min-width: 86px;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rl-hotkey:focus {
	outline: none;
	border-color: var(--rl-orange);
	color: var(--rl-orange);
}

.rl-notification {
	display: flex;
	align-items: center;
	gap: 4px;
}

.rl-enum-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px 6px;
}

.rl-enum-option {
	min-width: 0;
}

.rl-parse-label {
	text-align: center;
	min-height: 15px;
}

.rl-parse-label.valid {
	color: #00ff00;
}

.rl-parse-label.invalid {
	color: #ff0000;
}

.rl-info {
	margin: 10px 0 0;
	color: var(--rl-light);
}

/* XP tracker */

.rl-xp-overall {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background: var(--rl-darker);
}

.rl-xp-overall[hidden] {
	display: none;
}

.rl-xp-overall-info,
.rl-xp-stats {
	display: grid;
	gap: 0 4px;
	font: 16px/1.05 var(--rl-font-small, inherit);
}

.rl-xp-stats {
	flex: 1;
	grid-template-columns: 1fr 1fr;
	padding: 9px 2px;
}

.rl-xp-key {
	color: var(--rl-light);
}

.rl-xp-value {
	color: #fff;
}

.rl-xp-stat {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rl-xp-box {
	padding-top: 5px;
}

.rl-xp-container {
	background: var(--rl-darker);
	cursor: pointer;
}

.rl-xp-header {
	display: flex;
	align-items: center;
}

.rl-xp-header[hidden] {
	display: none;
}

.rl-xp-icon {
	flex: none;
	width: 35px;
	object-fit: none;
}

.rl-xp-progress {
	display: flex;
	align-items: center;
	padding: 0 7px 7px;
}

.rl-xp-box.compact .rl-xp-progress {
	padding: 5px 5px 5px 1px;
}

.rl-xp-compact-icon {
	flex: none;
	width: 25px;
	object-fit: none;
}

.rl-xp-compact-icon[hidden] {
	display: none;
}

.rl-progress {
	--rl-progress-color: var(--rl-green);
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	height: 16px;
	overflow: hidden;
	background: #3d3831;
	font: 16px/1 var(--rl-font-small, inherit);
	text-shadow: 1px 1px 0 #000;
}

.rl-progress-fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--rl-progress-color);
}

.rl-progress-markers {
	position: absolute;
	inset: 0;
}

.rl-progress-marker {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--rl-progress-color);
}

.rl-progress-left,
.rl-progress-center,
.rl-progress-right {
	position: relative;
	padding-top: 2px;
	white-space: nowrap;
}

.rl-progress-left {
	padding-left: 5px;
}

.rl-progress-center {
	flex: 1;
	text-align: center;
}

.rl-progress-right {
	padding-right: 5px;
}

.rl-progress.dimmed .rl-progress-fill,
.rl-progress.dimmed .rl-progress-marker {
	filter: brightness(0.5);
}

.rl-progress.dimmed .rl-progress-left,
.rl-progress.dimmed .rl-progress-right {
	color: #808080;
}

.rl-error-panel {
	padding: 20px 10px;
	text-align: center;
}

.rl-error-panel[hidden] {
	display: none;
}

.rl-error-title {
	margin-bottom: 6px;
	font: 16px/1.2 var(--rl-font-bold, inherit);
	color: #fff;
}

.rl-error-text {
	color: var(--rl-light);
	font: 16px/1.1 var(--rl-font-small, inherit);
}

/* Notes */

.rl-notes {
	padding: 10px;
	box-sizing: border-box;
}

.rl-notes-header {
	padding: 1px 0 10px;
}

.rl-notes-container {
	flex: 1;
	display: flex;
	min-height: 0;
	padding: 10px;
	background: var(--rl-darker);
}

.rl-notes-editor {
	flex: 1;
	height: auto;
	min-height: 0;
	padding: 0;
	background: transparent;
	border: 0;
	resize: none;
}

/* Popup menu, modal and colour picker (attached to the body) */

.rl-menu {
	position: fixed;
	z-index: 30;
	min-width: 120px;
	padding: 5px;
	background: var(--rl-darker);
	border: 1px solid #111;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
	font: 12px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rl-menu-item {
	display: block;
	width: 100%;
	padding: 5px 10px;
	color: #fff;
	background: transparent;
	border: 0;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.rl-menu-item:hover,
.rl-menu-item:focus {
	outline: none;
	background: var(--rl-darker-hover);
}

.rl-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	font: 12px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rl-modal {
	width: min(320px, calc(100vw - 32px));
	padding: 14px;
	color: #fff;
	background: var(--rl-dark);
	border: 1px solid var(--rl-medium);
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.rl-modal-title {
	margin-bottom: 8px;
	color: var(--rl-orange);
	font-weight: 600;
}

.rl-modal-message {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.rl-modal .rl-input {
	width: 100%;
	margin-top: 10px;
}

.rl-modal-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 14px;
}

.rl-color-popover {
	position: fixed;
	z-index: 35;
	width: 210px;
	padding: 10px;
	color: #fff;
	background: var(--rl-dark);
	border: 1px solid var(--rl-medium);
	border-radius: 3px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
	font: 12px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rl-color-title {
	margin-bottom: 8px;
	color: var(--rl-orange);
	font-weight: 600;
}

.rl-color-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.rl-color-row:last-child {
	margin-bottom: 0;
}

.rl-color-swatch {
	flex: none;
	width: 32px;
	height: 32px;
	border: 1px solid #111;
	background:
		linear-gradient(var(--rl-swatch, #000), var(--rl-swatch, #000)),
		repeating-conic-gradient(#8a8a8a 0 25%, #c8c8c8 0 50%) 0 0 / 8px 8px;
}

.rl-color-input {
	flex: 1;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 1px solid #111;
	cursor: pointer;
}

.rl-color-label {
	flex: none;
	color: var(--rl-light);
}

.rl-color-alpha {
	flex: 1;
	accent-color: var(--rl-orange);
}

.rl-color-hex {
	flex: 1;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	text-transform: uppercase;
}

/* Loot tracker */

.rl-loot-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
	height: 30px;
	box-sizing: border-box;
	padding: 5px 10px 5px 5px;
	background: var(--rl-darker);
}

.rl-loot-title-container {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.rl-loot-details-title {
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rl-loot-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.rl-loot-button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.rl-loot-button img {
	display: block;
}

.rl-loot-overall {
	display: flex;
	align-items: center;
	margin-top: 5px;
	padding: 8px 10px;
	background: var(--rl-darker);
}

.rl-loot-overall-icon {
	flex: none;
}

.rl-loot-overall-info {
	display: grid;
	min-width: 0;
	padding: 2px 0 2px 10px;
	font: 16px/1.05 var(--rl-font-small, inherit);
}

.rl-loot-stat {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rl-loot-key {
	color: var(--rl-light);
}

.rl-loot-value {
	color: #fff;
}

.rl-loot-box {
	padding-top: 5px;
	cursor: pointer;
}

.rl-loot-box-title {
	display: flex;
	align-items: baseline;
	padding: 7px;
	background: #151515;
	font: 16px/1 var(--rl-font-small, inherit);
}

.rl-loot-box.ignored .rl-loot-box-title {
	background: var(--rl-darker-hover);
}

.rl-loot-name {
	min-width: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rl-loot-sub {
	flex: none;
	padding-left: 5px;
	white-space: nowrap;
}

.rl-loot-price {
	flex: none;
	margin-left: auto;
	padding-left: 5px;
	white-space: nowrap;
}

.rl-loot-items {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	margin-top: 1px;
}

.rl-loot-slot {
	display: flex;
	justify-content: center;
	height: 42px;
	box-sizing: border-box;
	padding-top: 5px;
	background: var(--rl-darker);
}

.rl-loot-item {
	position: relative;
	width: 32px;
	height: 32px;
}

.rl-loot-item img {
	display: block;
	image-rendering: pixelated;
}

.rl-loot-item img:not([src]) {
	visibility: hidden;
}

.rl-loot-item.ignored img {
	opacity: 0.3;
}

.rl-loot-qty {
	position: absolute;
	top: -1px;
	left: 0;
	color: #ff0;
	font: 16px/1 var(--rl-font-small, inherit);
	text-shadow: 1px 1px 0 #000;
	white-space: nowrap;
	pointer-events: none;
}

.rl-loot-qty-k {
	color: #fff;
}

.rl-loot-qty-m {
	color: #00ff80;
}

/* Time tracking */

/* Tab strip (com.scapewar.web.ui.Tabs, RuneLite's MaterialTabGroup) */

.rl-tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.rl-tabs-tab {
	padding: 5px 10px 4px;
	color: #808080;
	background: transparent;
	border: 0;
	border-bottom: 1px solid transparent;
	cursor: pointer;
}

.rl-tabs-tab:hover,
.rl-tabs-tab.selected {
	color: #fff;
}

.rl-tabs-tab.selected {
	border-bottom-color: var(--rl-orange);
}

.rl-tabs-icon-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--rl-darker);
}

.rl-tabs-icon-tab:hover {
	background: var(--rl-darker-hover);
}

.rl-tabs-icon {
	display: block;
	width: 24px;
	height: 24px;
}

/* Undecorated icon button (com.scapewar.web.ui.ImageButton) */

.rl-image-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.rl-image-button img {
	display: block;
}

/* Time tracking */

.rl-tt-tabs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: 27px;
	gap: 7px;
	flex: none;
	padding: 10px 10px 0;
}

.rl-tt-display {
	padding: 10px 10px 8px;
}

.rl-tt-title,
.rl-tt-estimate,
.rl-tt-group,
.rl-tt-clock-header-title,
.rl-tt-clock-info,
.rl-tt-lap {
	font: 16px/1.05 var(--rl-font-small, inherit);
}

.rl-tt-title {
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rl-tt-timeable .rl-tt-title,
.rl-tt-clock-info {
	text-shadow: 1px 1px 0 #000;
}

.rl-tt-estimate {
	color: #808080;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rl-tt-overview-list {
	display: grid;
	grid-auto-rows: 1fr;
	gap: 8px;
}

.rl-tt-overview {
	display: flex;
	align-items: center;
	padding: 7px;
	background: var(--rl-darker);
}

.rl-tt-overview.rl-tt-selectable {
	cursor: pointer;
}

.rl-tt-overview.rl-tt-selectable:hover {
	background: var(--rl-darker-hover);
}

.rl-tt-overview-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 32px;
}

.rl-tt-overview-text {
	display: grid;
	grid-template-rows: 1fr 1fr;
	align-items: center;
	flex: 1;
	min-width: 0;
	padding: 5px 7px;
}

.rl-tt-overview-arrow {
	flex: none;
}

.rl-tt-group {
	padding-top: 15px;
}

.rl-tt-group.rl-tt-first {
	padding-top: 4px;
}

.rl-tt-timeable {
	padding-top: 7px;
}

.rl-tt-timeable.rl-tt-first {
	padding-top: 0;
}

.rl-tt-timeable-top {
	display: flex;
	align-items: center;
	padding: 7px 0 6px 7px;
	background: var(--rl-darker);
}

.rl-tt-layered-icon {
	position: relative;
	flex: none;
	width: 36px;
	height: 32px;
}

.rl-tt-item-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rl-tt-overlay-icon {
	position: absolute;
	left: 12px;
	top: 11px;
	width: 24px;
	height: 21px;
}

.rl-tt-timeable-info {
	display: grid;
	grid-template-rows: 1fr 1fr;
	align-items: center;
	flex: 1;
	min-width: 0;
	padding: 4px 0 4px 4px;
}

.rl-tt-timeable-icons {
	display: flex;
	align-items: center;
	flex: none;
}

.rl-tt-contract-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 32px;
}

.rl-tt-contract-icon.rl-tt-empty {
	display: none;
}

.rl-tt-notify {
	width: 20px;
	height: 16px;
	padding-right: 10px;
	box-sizing: content-box;
}

.rl-tt-progress {
	position: relative;
	height: 4px;
	overflow: hidden;
}

.rl-tt-progress-fill {
	height: 100%;
}

.rl-tt-info-text {
	margin-top: 7px;
	padding: 2px 4px;
	color: #fff;
	background: var(--rl-darker);
	white-space: pre-wrap;
	-webkit-user-select: text;
	user-select: text;
}

/* Clocks */

.rl-tt-clocks {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rl-tt-clock-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rl-tt-clock-header.rl-tt-large {
	padding-top: 11px;
}

.rl-tt-clock-header-title {
	color: #fff;
}

.rl-tt-clock-info {
	padding: 7px 8px 6px;
	color: #737373;
}

.rl-tt-clock {
	padding-top: 3px;
}

.rl-tt-clock-name {
	background: var(--rl-darker);
	border: 1px solid var(--rl-darker);
	border-bottom-color: var(--rl-dark);
}

.rl-tt-clock-main {
	padding-top: 5px;
	background: var(--rl-darker);
}

.rl-sidebar .rl-tt-clock-name-input,
.rl-sidebar .rl-tt-clock-display {
	display: block;
	width: 100%;
	height: 24px;
	padding: 0 0 0 8px;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 0;
	font: 16px/24px var(--rl-font, inherit);
}

.rl-sidebar .rl-tt-clock-display {
	padding: 0;
	text-align: center;
}

.rl-tt-clock-display[readonly] {
	pointer-events: none;
	cursor: default;
	-webkit-user-select: none;
	user-select: none;
}

.rl-tt-clock-name-input::selection,
.rl-tt-clock-display::selection {
	color: #fff;
	background: rgba(220, 138, 0, 0.47);
}

.rl-tt-clock-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 0;
}

.rl-tt-clock-left,
.rl-tt-clock-right {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 6px;
}

.rl-tt-laps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding-top: 5px;
}

.rl-tt-lap {
	padding: 4px 5px 3px;
	color: #737373;
	text-align: center;
}

.rl-xp-box.dragging {
	opacity: 0.4;
}

/* Screenshots */

.rl-shot-top {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 8px;
}

.rl-shot-count {
	color: var(--rl-light);
	font: 16px/1.1 var(--rl-font-small, inherit);
	text-align: center;
}

.rl-shot-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.rl-sidebar .rl-shot {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	padding: 5px;
	text-align: left;
	color: #fff;
	background: var(--rl-darker);
	border: 0;
	cursor: pointer;
}

.rl-sidebar .rl-shot:hover {
	background: var(--rl-darker-hover);
}

.rl-shot-image {
	display: block;
	width: 100%;
	height: auto;
	background: #000;
}

.rl-shot-name {
	overflow: hidden;
	font: 16px/1.1 var(--rl-font, inherit);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rl-shot-folder {
	overflow: hidden;
	color: var(--rl-light);
	font: 16px/1.1 var(--rl-font-small, inherit);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Touch screens and narrow windows: the side bar overlays the canvas and has a close button; swipe right closes it. */
@media (pointer: coarse), (max-width: 760px) {
	body.rl-open #stage,
	body.rl-open.rl-expanded #stage {
		right: var(--rl-safe-right);
	}

	.rl-sidebar {
		box-shadow: -6px 0 18px rgba(0, 0, 0, 0.5);
	}

	.rl-panel-area {
		width: min(var(--rl-panel-w), calc(100vw - var(--rl-nav-w) - 48px));
	}

	.rl-panel-head {
		display: flex;
	}

	.rl-nav-button {
		width: 32px;
		height: 34px;
	}

	.rl-sidebar .rl-panel-close {
		width: 32px;
		height: 32px;
		font-size: 24px;
	}
}
