.lb-strava-panel,
.lb-strava-panel * {
	box-sizing: border-box;
}

.lb-strava-panel {
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 12px;
	background: #fff;
	color: #1d1d1f;
}

.lb-strava-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.lb-strava-head h2 {
	margin: 0 0 4px;
	font-size: 1.12rem;
	line-height: 1.2;
	font-weight: 800;
}

.lb-strava-head h2 i {
	color: #fc4c02;
	margin-right: 6px;
}

.lb-strava-head p {
	margin: 0;
	color: #6e6e73;
	font-size: 0.88rem;
	line-height: 1.45;
}

.lb-strava-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.lb-strava-btn,
.lb-strava-link-btn {
	appearance: none;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.lb-strava-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 9px 16px;
	border-radius: 999px;
	background: #fc4c02;
	color: #fff !important;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none !important;
}

.lb-strava-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.lb-strava-link-btn {
	background: transparent;
	color: #6e6e73;
	font-size: 0.84rem;
	font-weight: 700;
	padding: 8px 0;
}

.lb-strava-empty {
	padding: 18px;
	border-radius: 10px;
	background: #f6f7f8;
	color: #6e6e73;
	font-size: 0.92rem;
	line-height: 1.5;
}

.lb-strava-notice {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.5;
}

.lb-strava-notice strong {
	color: #1d1d1f;
	font-weight: 850;
}

.lb-strava-notice span {
	color: #454a52;
}

.lb-strava-notice-warning {
	border: 1px solid rgba(252, 76, 2, 0.18);
	background: #fff7f2;
}

.lb-strava-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px;
	border-radius: 10px;
	margin-bottom: 14px;
	background: #f4f7f5;
	border: 1px solid rgba(60, 60, 67, 0.08);
}

.lb-strava-tone-rest {
	background: #fff4f2;
}

.lb-strava-tone-run {
	background: #eff8f2;
}

.lb-strava-kicker {
	display: block;
	margin-bottom: 3px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #6e6e73;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.lb-strava-summary-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 3px;
}

.lb-strava-summary-kicker .lb-strava-kicker {
	margin-bottom: 0;
}

.lb-strava-mini-help-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid rgba(60, 60, 67, 0.18);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.72);
	color: #4a4a4d;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.lb-strava-mini-help-btn:hover {
	border-color: rgba(252, 76, 2, 0.45);
	color: #fc4c02;
}

.lb-strava-summary strong {
	display: block;
	font-size: 1.15rem;
	line-height: 1.2;
}

.lb-strava-summary p {
	margin: 6px 0 0;
	color: #4a4a4d;
	font-size: 0.9rem;
	line-height: 1.45;
}

.lb-strava-summary-help {
	margin: 12px 0 0;
	max-width: 620px;
	background: rgba(255, 255, 255, 0.62);
}

.lb-strava-summary-help p {
	font-size: 0.84rem;
}

.lb-strava-ratio {
	flex: 0 0 auto;
	text-align: right;
}

.lb-strava-ratio span {
	display: block;
	font-size: 1.9rem;
	font-weight: 900;
	line-height: 1;
}

.lb-strava-ratio small {
	display: block;
	margin-top: 5px;
	color: #6e6e73;
	font-size: 0.72rem;
	font-weight: 700;
}

.lb-strava-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.lb-strava-metrics div {
	padding: 14px;
	border-radius: 10px;
	background: #f8f9fa;
}

.lb-strava-metrics strong,
.lb-strava-metrics span {
	display: block;
}

.lb-strava-metrics strong {
	font-size: 1.12rem;
	line-height: 1.2;
}

.lb-strava-metrics span {
	margin-top: 4px;
	color: #6e6e73;
	font-size: 0.75rem;
	font-weight: 700;
}

.lb-strava-load-card {
	margin-top: 14px;
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.lb-strava-load-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 16px 10px;
}

.lb-strava-load-head h3 {
	margin: 0 0 10px;
	text-align: center;
	font-size: 1.04rem;
	font-weight: 750;
	color: #4a4a4d;
}

.lb-strava-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	justify-content: center;
	color: #4a4a4d;
	font-size: 0.88rem;
}

.lb-strava-legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.lb-strava-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid currentColor;
	background: currentColor;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.lb-strava-dot-ctl { color: #4c86d9; }
.lb-strava-dot-atl { color: #ff4f4a; }
.lb-strava-dot-tsb { color: #b77958; }

.lb-strava-help-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(60, 60, 67, 0.18);
	background: #f7f8f9;
	color: #1d1d1f;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 900;
	cursor: pointer;
	flex: 0 0 auto;
}

.lb-strava-help {
	margin: 0 16px 12px;
	padding: 12px;
	border-radius: 10px;
	background: #f6f7f8;
	color: #4a4a4d;
	font-size: 0.86rem;
	line-height: 1.5;
}

.lb-strava-help strong {
	display: block;
	margin-bottom: 4px;
	color: #1d1d1f;
}

.lb-strava-help p {
	margin: 0;
}

.lb-strava-chart-wrap {
	width: 100%;
	overflow: hidden;
	background: #fbfbfc;
	position: relative;
}

.lb-strava-chart {
	display: block;
	width: 100%;
	height: 300px;
	cursor: crosshair;
	touch-action: manipulation;
}

.lb-strava-chart-tip {
	position: absolute;
	z-index: 2;
	min-width: 148px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(29, 29, 31, 0.92);
	color: #fff;
	font-size: 0.76rem;
	line-height: 1.35;
	pointer-events: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.lb-strava-chart-tip strong,
.lb-strava-chart-tip span {
	display: block;
}

.lb-strava-reset-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 7px 12px;
	border: 1px solid rgba(44, 154, 209, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #1d1d1f;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 850;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.lb-strava-reset-zoom:hover {
	border-color: rgba(44, 154, 209, 0.55);
	color: #2c9ad1;
}

.lb-strava-reset-zoom[hidden] {
	display: none;
}

.lb-strava-day-detail {
	margin: 0 16px 16px;
	padding: 12px;
	border-radius: 10px;
	background: #f8f9fa;
	border: 1px solid rgba(60, 60, 67, 0.08);
	color: #4a4a4d;
	font-size: 0.84rem;
	line-height: 1.45;
}

.lb-strava-day-detail strong,
.lb-strava-day-detail span,
.lb-strava-day-detail em {
	display: block;
}

.lb-strava-day-detail strong {
	color: #1d1d1f;
	font-size: 0.94rem;
	line-height: 1.2;
}

.lb-strava-day-detail span,
.lb-strava-day-detail em {
	margin-top: 4px;
}

.lb-strava-day-detail ul {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lb-strava-day-detail li {
	padding: 8px;
	border-radius: 8px;
	background: #fff;
}

.lb-strava-day-detail li span,
.lb-strava-day-detail li em,
.lb-strava-day-detail li small {
	display: block;
	margin-top: 3px;
}

.lb-strava-day-detail li em {
	color: #2c9ad1;
	font-size: 0.74rem;
	font-style: normal;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.lb-strava-day-detail li small {
	color: #6e6e73;
}

.lb-strava-day-detail li.lb-strava-planned-workout {
	border: 1px solid rgba(44, 154, 209, 0.18);
	background: rgba(44, 154, 209, 0.06);
}

.lb-strava-day-detail li a {
	color: #fc4c02;
	font-weight: 850;
	text-decoration: none;
}

.lb-strava-day-detail li a:hover {
	text-decoration: underline;
}

.lb-strava-routes {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(60, 60, 67, 0.1);
}

.lb-strava-routes-head {
	margin-bottom: 12px;
}

.lb-strava-routes-head h3 {
	margin: 0 0 4px;
	font-size: 1.02rem;
	line-height: 1.2;
	font-weight: 850;
}

.lb-strava-routes-head p {
	margin: 0;
	color: #6e6e73;
	font-size: 0.84rem;
	line-height: 1.45;
}

.lb-strava-route-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.lb-strava-route-card {
	display: flex;
	min-width: 0;
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.lb-strava-route-map {
	width: 150px;
	min-width: 150px;
	min-height: 116px;
	background: #eef1f3;
	position: relative;
}

.lb-strava-route-map span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	color: #6e6e73;
	font-size: 0.78rem;
	text-align: center;
}

.lb-strava-route-map .leaflet-container {
	width: 100% !important;
	height: 100% !important;
}

.lb-strava-route-info {
	flex: 1;
	min-width: 0;
	padding: 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.lb-strava-route-info a,
.lb-strava-route-info span {
	display: block;
}

.lb-strava-route-info a {
	color: #1d1d1f;
	font-size: 0.92rem;
	font-weight: 850;
	line-height: 1.25;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.lb-strava-route-info a:hover {
	color: #fc4c02;
	text-decoration: underline;
}

.lb-strava-route-info span {
	margin-top: 4px;
	color: #6e6e73;
	font-size: 0.76rem;
	font-weight: 700;
}

.lb-strava-route-info div {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.lb-strava-route-info b {
	padding: 5px 7px;
	border-radius: 7px;
	background: #f6f7f8;
	font-size: 0.76rem;
	line-height: 1;
}

.lb-strava-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-top: 10px;
	color: #6e6e73;
	font-size: 0.78rem;
}

.lb-strava-plan {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(60, 60, 67, 0.1);
}

.lb-strava-plan-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.lb-strava-plan-head h3 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
	margin: 0 0 4px;
	font-size: 1.02rem;
	line-height: 1.2;
	font-weight: 850;
}

.lb-strava-plan-help {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.lb-strava-plan-help button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid rgba(252, 76, 2, 0.28);
	border-radius: 999px;
	background: rgba(252, 76, 2, 0.08);
	color: #d13f00;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1;
	cursor: help;
}

.lb-strava-plan-help button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(252, 76, 2, 0.16);
}

.lb-strava-plan-help-popover {
	position: absolute;
	z-index: 20;
	top: calc(100% + 10px);
	left: 50%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(390px, calc(100vw - 48px));
	padding: 15px 16px;
	border: 1px solid rgba(252, 76, 2, 0.16);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
	color: #343941;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.58;
	text-transform: none;
	transform: translate(-50%, 4px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.lb-strava-plan-help-popover strong {
	color: #1d1d1f;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.25;
}

.lb-strava-plan-help-popover span {
	display: block;
}

.lb-strava-plan-help-popover::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 50%;
	width: 10px;
	height: 10px;
	border-left: 1px solid rgba(252, 76, 2, 0.16);
	border-top: 1px solid rgba(252, 76, 2, 0.16);
	background: #fff;
	transform: translateX(-50%) rotate(45deg);
}

.lb-strava-plan-help:hover .lb-strava-plan-help-popover,
.lb-strava-plan-help:focus-within .lb-strava-plan-help-popover {
	transform: translate(-50%, 0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.lb-strava-plan-head p {
	margin: 0;
	color: #6e6e73;
	font-size: 0.84rem;
	line-height: 1.45;
}

.lb-strava-plan-settings {
	margin: 0 0 14px;
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
	overflow: hidden;
}

.lb-strava-plan-settings summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 50px;
	padding: 12px 14px;
	color: #1d1d1f;
	cursor: pointer;
	list-style: none;
}

.lb-strava-plan-settings summary::-webkit-details-marker {
	display: none;
}

.lb-strava-plan-settings summary::after {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 2px solid #7a7f87;
	border-bottom: 2px solid #7a7f87;
	transform: rotate(45deg);
	transition: transform 0.18s ease;
	flex: 0 0 auto;
}

.lb-strava-plan-settings[open] summary::after {
	transform: rotate(225deg);
}

.lb-strava-plan-settings summary span {
	font-weight: 850;
	font-size: 0.92rem;
	line-height: 1.2;
}

.lb-strava-plan-settings summary small {
	margin-left: auto;
	color: #6e6e73;
	font-size: 0.78rem;
	line-height: 1.25;
	text-align: right;
}

.lb-strava-plan-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0 14px 14px;
}

.lb-strava-plan-form label,
.lb-strava-day-picker {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.lb-strava-plan-form label {
	position: relative;
	padding: 10px;
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 10px;
	background: linear-gradient(180deg, #fff, #fbfbfc);
	box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
}

.lb-strava-plan-form label > span,
.lb-strava-day-picker > span {
	color: #6e6e73;
	font-size: 0.74rem;
	font-weight: 800;
}

.lb-strava-plan-form select,
.lb-strava-plan-form input[type="date"],
.lb-strava-plan-form input[type="number"],
.lb-strava-plan-form input[type="text"] {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid rgba(60, 60, 67, 0.14);
	border-radius: 8px;
	background: #fff;
	color: #1d1d1f;
	font: inherit;
	font-size: 0.88rem;
}

.lb-strava-plan-form select:focus,
.lb-strava-plan-form input[type="date"]:focus,
.lb-strava-plan-form input[type="number"]:focus,
.lb-strava-plan-form input[type="text"]:focus {
	outline: none;
	border-color: rgba(252, 76, 2, 0.58);
	box-shadow: 0 0 0 3px rgba(252, 76, 2, 0.12);
}

.lb-strava-plan-form label[hidden] {
	display: none;
}

.lb-strava-time-selects {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.lb-strava-time-selects select {
	min-width: 0;
	padding-left: 7px;
	padding-right: 7px;
}

.lb-strava-intensity-card {
	margin: 0 0 14px;
	padding: 14px;
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 10px;
	background: #fbfbfc;
}

.lb-strava-intensity-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.lb-strava-intensity-head strong,
.lb-strava-intensity-head span {
	display: block;
}

.lb-strava-intensity-head strong {
	color: #1d1d1f;
	font-size: 0.98rem;
	font-weight: 850;
}

.lb-strava-intensity-head span {
	margin-top: 3px;
	color: #6e6e73;
	font-size: 0.84rem;
	line-height: 1.45;
}

.lb-strava-intensity-head small {
	flex: 0 0 auto;
	padding: 5px 8px;
	border-radius: 999px;
	background: #fff1eb;
	color: #b83600;
	font-size: 0.72rem;
	font-weight: 850;
}

.lb-strava-intensity-table {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.lb-strava-intensity-table > div {
	min-width: 0;
	padding: 10px;
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 8px;
	background: #fff;
}

.lb-strava-intensity-table strong,
.lb-strava-intensity-table b,
.lb-strava-intensity-table span {
	display: block;
}

.lb-strava-intensity-table strong {
	color: #1d1d1f;
	font-size: 0.84rem;
	font-weight: 850;
}

.lb-strava-intensity-table b {
	margin-top: 5px;
	color: #fc4c02;
	font-size: 0.82rem;
}

.lb-strava-intensity-table span {
	margin-top: 5px;
	color: #6e6e73;
	font-size: 0.76rem;
	line-height: 1.4;
}

.lb-strava-cooper-help {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(60, 60, 67, 0.1);
	color: #4f5358;
	font-size: 0.84rem;
	line-height: 1.5;
}

.lb-strava-cooper-help strong {
	display: block;
	margin-bottom: 4px;
	color: #1d1d1f;
}

.lb-strava-cooper-help p {
	margin: 0;
}

.lb-strava-day-picker {
	grid-column: 1 / -1;
}

.lb-strava-day-picker > div {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.lb-strava-day-picker label {
	position: relative;
	display: block;
}

.lb-strava-day-picker input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.lb-strava-day-picker label span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	border: 1px solid rgba(60, 60, 67, 0.16);
	border-radius: 8px;
	background: #f8f9fa;
	color: #1d1d1f;
	font-size: 0.78rem;
	font-weight: 850;
}

.lb-strava-day-picker input:checked + span {
	border-color: #fc4c02;
	background: #fff1eb;
	color: #b83600;
}

.lb-strava-enable {
	grid-column: span 2;
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 8px !important;
	padding-top: 4px;
}

.lb-strava-enable input {
	width: 18px;
	height: 18px;
}

.lb-strava-plan-form button {
	justify-self: end;
	align-self: end;
}

.lb-strava-calendar-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	padding: 16px;
	border: 1px solid rgba(252, 76, 2, 0.22);
	border-radius: 10px;
	background: #fff6f0;
}

.lb-strava-calendar-box strong,
.lb-strava-calendar-box span {
	display: block;
}

.lb-strava-calendar-box strong {
	font-size: 0.96rem;
	line-height: 1.2;
}

.lb-strava-calendar-box span {
	margin-top: 4px;
	color: #6e6e73;
	font-size: 0.82rem;
	line-height: 1.4;
}

.lb-strava-calendar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

.lb-strava-calendar-actions a,
.lb-strava-calendar-actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(60, 60, 67, 0.16);
	background: #fff;
	color: #1d1d1f !important;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
}

.lb-strava-calendar-actions a:first-child {
	background: #fc4c02;
	border-color: #fc4c02;
	color: #fff !important;
}

.lb-strava-plan-weeks {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lb-strava-week {
	border: 1px solid rgba(60, 60, 67, 0.1);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.lb-strava-week summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	cursor: pointer;
	list-style: none;
}

.lb-strava-week summary::-webkit-details-marker {
	display: none;
}

.lb-strava-week summary::before {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 2px solid #6e6e73;
	border-bottom: 2px solid #6e6e73;
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
	flex: 0 0 auto;
}

.lb-strava-week[open] summary::before {
	transform: rotate(45deg);
}

.lb-strava-week summary > span {
	flex: 1;
	min-width: 0;
}

.lb-strava-week summary strong,
.lb-strava-week summary small {
	display: block;
}

.lb-strava-week summary strong {
	font-size: 0.94rem;
	line-height: 1.2;
}

.lb-strava-week summary small {
	margin-top: 3px;
	color: #6e6e73;
	font-size: 0.74rem;
	font-weight: 750;
}

.lb-strava-week summary b {
	flex: 0 0 auto;
	font-size: 0.9rem;
}

.lb-strava-plan-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 12px 12px;
}

.lb-strava-workout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(60, 60, 67, 0.08);
	border-radius: 8px;
	background: #fafafa;
}

.lb-strava-workout strong,
.lb-strava-workout span {
	display: block;
}

.lb-strava-workout strong {
	font-size: 0.9rem;
	line-height: 1.2;
}

.lb-strava-workout span {
	margin-top: 3px;
	color: #6e6e73;
	font-size: 0.76rem;
	font-weight: 700;
}

.lb-strava-workout b {
	flex: 0 0 auto;
	font-size: 0.92rem;
}

@media (max-width: 700px) {
	.lb-strava-panel {
		padding: 16px;
	}

	.lb-strava-head,
	.lb-strava-summary {
		flex-direction: column;
		align-items: stretch;
	}

	.lb-strava-actions {
		justify-content: flex-start;
	}

	.lb-strava-ratio {
		text-align: left;
	}

	.lb-strava-metrics {
		grid-template-columns: 1fr;
	}

	.lb-strava-intensity-head {
		flex-direction: column;
	}

	.lb-strava-intensity-table {
		grid-template-columns: 1fr;
	}

	.lb-strava-load-head {
		align-items: flex-start;
	}

	.lb-strava-load-head h3,
	.lb-strava-legend {
		text-align: left;
		justify-content: flex-start;
	}

	.lb-strava-plan-head,
	.lb-strava-plan-form,
	.lb-strava-calendar-box {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: stretch;
	}

	.lb-strava-plan-help-popover {
		left: auto;
		right: -6px;
		width: min(330px, calc(100vw - 44px));
		transform: translate(0, 4px);
	}

	.lb-strava-plan-help-popover::before {
		left: auto;
		right: 11px;
		transform: rotate(45deg);
	}

	.lb-strava-plan-help:hover .lb-strava-plan-help-popover,
	.lb-strava-plan-help:focus-within .lb-strava-plan-help-popover {
		transform: translate(0, 0);
	}

	.lb-strava-plan-settings summary {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 4px 12px;
	}

	.lb-strava-plan-settings summary small {
		grid-column: 1;
		margin-left: 0;
		text-align: left;
	}

	.lb-strava-plan-settings summary::after {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.lb-strava-calendar-actions {
		justify-content: flex-start;
	}

	.lb-strava-enable {
		grid-column: auto;
	}

	.lb-strava-plan-form button {
		justify-self: stretch;
	}

	.lb-strava-day-picker > div {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.lb-strava-route-list {
		grid-template-columns: 1fr;
	}

	.lb-strava-route-map {
		width: 130px;
		min-width: 130px;
	}
}

@media (max-width: 480px) {
	.lb-strava-route-card {
		flex-direction: column;
	}

	.lb-strava-route-map {
		width: 100%;
		min-width: 0;
		height: 150px;
	}
}
