.tof-tempest-weather {
	max-width: 1120px;
	margin: 24px auto;
	color: #1f2933;
}

.tof-tempest-weather__form {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
	margin-bottom: 16px;
}

.tof-tempest-weather__form--hidden {
	display: none;
}

.tof-tempest-weather__configured-range {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	margin-bottom: 14px;
}

.tof-tempest-weather__configured-range strong {
	font-size: 22px;
	line-height: 1.25;
	color: #102a43;
}

.tof-tempest-weather__configured-range span {
	color: #52606d;
	font-weight: 700;
}

.tof-tempest-weather__field {
	display: grid;
	gap: 6px;
}

.tof-tempest-weather__field label {
	font-size: 13px;
	font-weight: 700;
}

.tof-tempest-weather__field input {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid #cbd5df;
	border-radius: 6px;
	background: #fff;
	color: #1f2933;
}

.tof-tempest-weather__button {
	min-height: 42px;
	padding: 9px 16px;
	border: 0;
	border-radius: 6px;
	background: #0f766e;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.tof-tempest-weather__button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.tof-tempest-weather__notice {
	margin: 10px 0;
	font-weight: 700;
}

.tof-tempest-weather__notice--info {
	color: #0f766e;
}

.tof-tempest-weather__notice--error {
	color: #b42318;
}

.tof-tempest-weather__title {
	margin: 22px 0 12px;
	font-size: 20px;
	line-height: 1.25;
}

.tof-tempest-weather__wind-gauge {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	margin-bottom: 16px;
	padding: 16px;
	border: 1px solid #d8e0e8;
	border-radius: 8px;
	background: #fff;
}

.tof-tempest-weather__live-panel {
	margin-bottom: 22px;
}

.tof-tempest-weather__live-panel .tof-tempest-weather__wind-gauge {
	margin-bottom: 12px;
	border-color: #b7e4df;
	background: #f7fffd;
}

.tof-tempest-weather__live-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.tof-tempest-weather__live-updated {
	margin-top: 8px;
	color: #52606d;
	font-size: 13px;
	font-weight: 700;
}

.tof-tempest-weather__compass {
	position: relative;
	width: 134px;
	height: 134px;
	border: 1px solid rgba(130, 154, 177, 0.48);
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #ffffff 0 39%, rgba(255, 255, 255, 0) 40%),
		repeating-conic-gradient(from -1deg, rgba(15, 118, 110, 0.4) 0deg 1deg, transparent 1deg 15deg),
		radial-gradient(circle at 50% 50%, #f9fdfc 0 59%, #d8e0e8 60% 61%, #ffffff 62% 100%);
	box-shadow: inset 0 0 0 8px rgba(245, 247, 250, 0.82);
}

.tof-tempest-weather__compass::before,
.tof-tempest-weather__compass::after {
	position: absolute;
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.tof-tempest-weather__compass::before {
	inset: 12px;
	border: 1px solid rgba(130, 154, 177, 0.28);
}

.tof-tempest-weather__compass::after {
	inset: 30px;
	border: 1px solid rgba(15, 118, 110, 0.16);
	background:
		linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(130, 154, 177, 0.22) 50%, transparent calc(50% + 0.5px)),
		linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(130, 154, 177, 0.22) 50%, transparent calc(50% + 0.5px));
}

.tof-tempest-weather__compass-letter {
	position: absolute;
	z-index: 2;
	font-size: 12px;
	font-weight: 800;
	color: #52606d;
}

.tof-tempest-weather__compass-letter--n {
	top: 9px;
	left: 50%;
	transform: translateX(-50%);
}

.tof-tempest-weather__compass-letter--e {
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

.tof-tempest-weather__compass-letter--s {
	bottom: 9px;
	left: 50%;
	transform: translateX(-50%);
}

.tof-tempest-weather__compass-letter--w {
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
}

.tof-tempest-weather__compass-arrow {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 62px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #13a296 0%, #0f766e 56%, #07534d 100%);
	clip-path: polygon(50% 0, 82% 65%, 61% 65%, 61% 100%, 39% 100%, 39% 65%, 18% 65%);
	transform: translate(-50%, -88%) rotate(var(--tof-tempest-wind-direction, 0deg));
	transform-origin: 50% 88%;
	transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
	animation: tof-tempest-wind-pulse 1.8s ease-in-out infinite;
}

.tof-tempest-weather__compass-center {
	position: absolute;
	z-index: 4;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: #07534d;
	transform: translate(-50%, -50%);
}

.tof-tempest-weather__wind-details {
	display: grid;
	gap: 6px;
}

.tof-tempest-weather__wind-title {
	font-size: 13px;
	font-weight: 800;
	color: #52606d;
}

.tof-tempest-weather__wind-speed {
	font-size: 36px;
	line-height: 1.1;
	color: #102a43;
}

.tof-tempest-weather__wind-meta {
	font-size: 14px;
	font-weight: 700;
	color: #3e4c59;
}

@keyframes tof-tempest-wind-pulse {
	0%,
	100% {
		filter: drop-shadow(0 0 0 rgba(15, 118, 110, 0));
	}

	50% {
		filter: drop-shadow(0 0 7px rgba(15, 118, 110, 0.35));
	}
}

.tof-tempest-weather__cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.tof-tempest-weather__card {
	display: grid;
	gap: 6px;
	min-height: 82px;
	padding: 14px;
	border: 1px solid #d8e0e8;
	border-radius: 8px;
	background: #fff;
}

.tof-tempest-weather__card-label {
	font-size: 12px;
	font-weight: 700;
	color: #52606d;
}

.tof-tempest-weather__card-value {
	font-size: 24px;
	line-height: 1.15;
	color: #102a43;
}

.tof-tempest-weather__table-wrap {
	overflow-x: auto;
	border: 1px solid #d8e0e8;
	border-radius: 8px;
	background: #fff;
}

.tof-tempest-weather__table {
	width: 100%;
	min-width: 1040px;
	border-collapse: collapse;
}

.tof-tempest-weather__table th,
.tof-tempest-weather__table td {
	padding: 10px 12px;
	border-bottom: 1px solid #edf2f7;
	text-align: left;
	white-space: nowrap;
}

.tof-tempest-weather__table th {
	background: #f5f7fa;
	font-size: 12px;
	font-weight: 800;
	color: #3e4c59;
}

.tof-tempest-weather__table tbody tr:last-child td {
	border-bottom: 0;
}

.tof-tempest-weather--widget {
	max-width: 420px;
	margin: 12px 0;
}

.tof-tempest-weather--widget .tof-tempest-weather__notice {
	margin: 0;
	font-size: 13px;
}

.tof-tempest-weather__widget-card {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid #d8e0e8;
	border-radius: 8px;
	background: #fff;
	color: #102a43;
	text-decoration: none;
}

.tof-tempest-weather__widget-card:hover,
.tof-tempest-weather__widget-card:focus {
	border-color: #0f766e;
	color: #102a43;
	text-decoration: none;
}

.tof-tempest-weather__widget-title {
	font-size: 13px;
	font-weight: 800;
	color: #52606d;
}

.tof-tempest-weather__widget-head,
.tof-tempest-weather__widget-body {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.tof-tempest-weather__widget-live {
	position: relative;
	padding: 4px 8px 4px 18px;
	border-radius: 999px;
	background: #e6f6f4;
	color: #0f766e;
	font-size: 12px;
	font-weight: 800;
}

.tof-tempest-weather__widget-live::before {
	position: absolute;
	top: 50%;
	left: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #0f766e;
	content: "";
	transform: translateY(-50%);
	animation: tof-tempest-live-dot 1.5s ease-in-out infinite;
}

.tof-tempest-weather__widget-compass {
	position: relative;
	flex: 0 0 84px;
	width: 84px;
	height: 84px;
	border: 1px solid rgba(130, 154, 177, 0.48);
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #ffffff 0 38%, rgba(255, 255, 255, 0) 39%),
		repeating-conic-gradient(from -1deg, rgba(15, 118, 110, 0.34) 0deg 1deg, transparent 1deg 22.5deg),
		radial-gradient(circle at 50% 50%, #f9fdfc 0 59%, #d8e0e8 60% 61%, #ffffff 62% 100%);
	box-shadow: inset 0 0 0 6px rgba(245, 247, 250, 0.82);
}

.tof-tempest-weather__widget-compass::before {
	position: absolute;
	inset: 9px;
	border: 1px solid rgba(130, 154, 177, 0.26);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.tof-tempest-weather__widget-arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #13a296 0%, #0f766e 56%, #07534d 100%);
	clip-path: polygon(50% 0, 82% 65%, 61% 65%, 61% 100%, 39% 100%, 39% 65%, 18% 65%);
	transform: translate(-50%, -88%) rotate(var(--tof-tempest-wind-direction, 0deg));
	transform-origin: 50% 88%;
	transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tof-tempest-weather__widget-letter {
	position: absolute;
	z-index: 3;
	color: #486581;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
}

.tof-tempest-weather__widget-letter--n {
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
}

.tof-tempest-weather__widget-letter--e {
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
}

.tof-tempest-weather__widget-letter--s {
	bottom: 6px;
	left: 50%;
	transform: translateX(-50%);
}

.tof-tempest-weather__widget-letter--w {
	top: 50%;
	left: 6px;
	transform: translateY(-50%);
}

.tof-tempest-weather__widget-info {
	display: grid;
	flex: 1;
	gap: 4px;
	min-width: 0;
}

.tof-tempest-weather__widget-main {
	font-size: 30px;
	line-height: 1.1;
}

.tof-tempest-weather__widget-meta {
	font-size: 14px;
	font-weight: 700;
	color: #3e4c59;
}

.tof-tempest-weather__widget-updated {
	font-size: 12px;
	color: #52606d;
}

.tof-tempest-weather__widget-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tof-tempest-weather__widget-metric {
	padding: 5px 8px;
	border-radius: 999px;
	background: #f5f7fa;
	color: #3e4c59;
	font-size: 12px;
	font-weight: 700;
}

.tof-tempest-weather__widget-cta {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 800;
	color: #0f766e;
}

.tof-tempest-weather--banner {
	width: 100%;
	max-width: none;
	margin: 0;
}

.tof-tempest-weather--banner .tof-tempest-weather__notice {
	display: none;
}

.tof-tempest-weather__banner {
	display: grid;
	grid-template-columns: minmax(250px, 0.82fr) minmax(560px, 1.18fr);
	align-items: center;
	gap: 18px;
	width: 100%;
	min-height: 92px;
	padding: 12px 18px;
	border: 1px solid rgba(15, 118, 110, 0.24);
	border-radius: 10px;
	background:
		linear-gradient(180deg, rgba(248, 252, 252, 1) 0%, rgba(241, 249, 248, 1) 100%),
		linear-gradient(90deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0));
	box-shadow: none;
	color: #102a43;
	text-decoration: none;
	box-sizing: border-box;
}

.tof-tempest-weather__banner:hover {
	border-color: rgba(15, 118, 110, 0.42);
	box-shadow: none;
	color: #102a43;
	text-decoration: none;
}

.tof-tempest-weather__banner-left,
.tof-tempest-weather__banner-right {
	display: flex;
	align-items: center;
	min-width: 0;
}

.tof-tempest-weather__banner-left {
	gap: 14px;
	justify-content: flex-start;
}

.tof-tempest-weather__banner-right {
	display: grid;
	grid-template-columns: minmax(92px, 0.8fr) repeat(5, minmax(92px, 1fr));
	justify-content: flex-end;
	gap: 0;
	width: 100%;
	min-height: 62px;
	overflow: hidden;
	border: 1px solid rgba(130, 154, 177, 0.18);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.62);
	box-shadow: inset 8px 0 18px rgba(16, 42, 67, 0.035), inset -8px 0 18px rgba(255, 255, 255, 0.75);
}

.tof-tempest-weather__banner-speed {
	display: block;
	font-size: 38px;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 0.95;
	white-space: nowrap;
}

.tof-tempest-weather__banner-meta {
	display: block;
	margin-top: 4px;
	color: #486581;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.tof-tempest-weather__banner-compass {
	position: relative;
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	border: 1px solid rgba(130, 154, 177, 0.46);
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #ffffff 0 37%, rgba(255, 255, 255, 0) 38%),
		repeating-conic-gradient(from -1deg, rgba(15, 118, 110, 0.32) 0deg 1deg, transparent 1deg 22.5deg),
		radial-gradient(circle at 50% 50%, #f9fdfc 0 59%, #d8e0e8 60% 61%, #ffffff 62% 100%);
	box-shadow: inset 0 0 0 5px rgba(245, 247, 250, 0.82);
}

.tof-tempest-weather__banner-compass::before {
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(130, 154, 177, 0.24);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.tof-tempest-weather__banner-arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 34px;
	border-radius: 999px;
	background: linear-gradient(180deg, #13a296 0%, #0f766e 56%, #07534d 100%);
	clip-path: polygon(50% 0, 82% 65%, 61% 65%, 61% 100%, 39% 100%, 39% 65%, 18% 65%);
	transform: translate(-50%, -88%) rotate(var(--tof-tempest-wind-direction, 0deg));
	transform-origin: 50% 88%;
	transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tof-tempest-weather__banner-arrow::after {
	content: none;
}

.tof-tempest-weather__banner-letter {
	position: absolute;
	z-index: 3;
	color: #486581;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
}

.tof-tempest-weather__banner-letter--n {
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
}

.tof-tempest-weather__banner-letter--e {
	top: 50%;
	right: 5px;
	transform: translateY(-50%);
}

.tof-tempest-weather__banner-letter--s {
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
}

.tof-tempest-weather__banner-letter--w {
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
}

.tof-tempest-weather__banner-metric {
	position: relative;
	display: grid;
	align-content: center;
	gap: 5px;
	min-height: 62px;
	padding: 9px 14px;
	border-left: 1px solid rgba(130, 154, 177, 0.2);
	color: #334e68;
	white-space: nowrap;
}

.tof-tempest-weather__banner-metric::before {
	position: absolute;
	top: 9px;
	bottom: 9px;
	left: -1px;
	width: 1px;
	background: rgba(255, 255, 255, 0.82);
	content: "";
}

.tof-tempest-weather__banner-metric-label {
	color: #627d98;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: uppercase;
}

.tof-tempest-weather__banner-metric-value {
	color: #102a43;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1;
}

.tof-tempest-weather__banner-cta {
	display: none;
	color: #0f766e;
	font-size: 13px;
	font-weight: 900;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tof-tempest-weather__banner-right .tof-tempest-weather__live-status {
	display: grid;
	align-content: center;
	min-height: 62px;
	margin: 0;
	padding: 9px 12px;
	border-radius: 0;
	background: transparent;
	color: #0f766e;
	font-size: 11px;
	letter-spacing: 0.01em;
	line-height: 1.25;
	text-transform: uppercase;
}

.tof-tempest-weather__live-status {
	display: inline-flex;
	width: fit-content;
	margin: -4px 0 10px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f5f7fa;
	color: #52606d;
	font-size: 12px;
	font-weight: 800;
}

.tof-tempest-weather__live-status--connected {
	background: #e6f6f4;
	color: #0f766e;
}

.tof-tempest-weather__live-status--waiting {
	background: #f5f7fa;
	color: #52606d;
}

.tof-tempest-weather__live-status--error {
	background: #fff1f2;
	color: #be123c;
}

.tof-tempest-weather__short-wind {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 14px;
}

.tof-tempest-weather__short-wind-item {
	display: grid;
	gap: 4px;
	padding: 10px 12px;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	background: #ffffff;
}

.tof-tempest-weather__short-wind-label {
	color: #52606d;
	font-size: 12px;
	font-weight: 800;
}

.tof-tempest-weather__short-wind-value {
	color: #102a43;
	font-size: 20px;
	line-height: 1.15;
}

.tof-tempest-weather__statistics-info {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	background: #f8fafc;
	color: #52606d;
	font-size: 14px;
	font-weight: 700;
}

@keyframes tof-tempest-live-dot {
	0%,
	100% {
		opacity: 0.45;
	}

	50% {
		opacity: 1;
	}
}

@media (max-width: 860px) {
	.tof-tempest-weather__form,
	.tof-tempest-weather__cards,
	.tof-tempest-weather__short-wind,
	.tof-tempest-weather__live-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tof-tempest-weather__banner {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.tof-tempest-weather__banner-right {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.tof-tempest-weather__form,
	.tof-tempest-weather__cards,
	.tof-tempest-weather__short-wind,
	.tof-tempest-weather__live-metrics {
		grid-template-columns: 1fr;
	}

	.tof-tempest-weather__wind-gauge {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.tof-tempest-weather__banner {
		min-height: 150px;
		padding: 18px 14px;
		text-align: center;
	}

	.tof-tempest-weather__banner-left {
		flex-direction: column;
		justify-content: center;
		gap: 10px;
	}

	.tof-tempest-weather__banner-right,
	.tof-tempest-weather__banner-meta {
		display: none;
	}

	.tof-tempest-weather__banner-compass {
		flex-basis: 72px;
		width: 72px;
		height: 72px;
	}

	.tof-tempest-weather__banner-speed {
		font-size: 34px;
	}

	.tof-tempest-weather__banner-cta {
		display: block;
		margin-top: 6px;
	}
}
