.wi {
	color: black;
}

rect.grid-cell-current {
	stroke: #e8eef4;
	stroke-width: 3px;
	paint-order: stroke fill;
	vector-effect: non-scaling-stroke;
}

foreignObject.grid-icon {
	overflow: hidden;
}

.grid-icon-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	line-height: 1;
}

.grid-icon-cell .wi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: calc(var(--grid-cell-size, 16px) * 0.62);
	max-width: 100%;
	max-height: 100%;
	line-height: 1;
	color: black;
}

.grid-icon-cell .wi:before {
	line-height: 1;
}

.grid-glyph-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* .grid-glyph-box .wi-day-cloudy {
	transform: scale(0.8);
	transform-origin: center center;
} */

.grid-icon-cell .grid-weather-svg {
	display: block;
	width: 62%;
	height: 62%;
	max-width: 100%;
	max-height: 100%;
	stroke: #000000;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
	vector-effect: non-scaling-stroke;
}

.main-layout {
	background-color: #333333;
}

h1 {
	color: LightSteelBlue;
	font-family: arial;
	text-align: center;
}

.orientation-hint {
	display: none;
	margin: 0 0 0.5rem;
	padding: 0;
	text-align: center;
	font-family: arial, sans-serif;
	font-size: 0.75rem;
	color: #8899aa;
}

body.layout-compact .orientation-hint {
	display: block;
}

body.layout-landscape-touch .orientation-hint {
	display: none;
}

@media (max-width: 640px) and (orientation: portrait) {
	.orientation-hint {
		display: block;
	}
}

h2 {
	color: LightSteelBlue;
	font-family: arial;
	text-align: center;
}

p {
	color: LightSteelBlue;
	font-family: arial;
	margin: 0px 20%;
	padding: 0px;
	text-align: left;
}

div.tooltip {
	position: absolute;
	text-align: center;
	padding: 0.5em 1em;
	font: 12px sans-serif;
	background: lightsteelblue;
	border: 0px;
	border-radius: 8px;
	pointer-events: none;
}

.test-mode-banner {
	text-align: center;
	margin: 0 1rem 0.75em;
	padding: 0.5em 0.75em;
	font-family: arial, sans-serif;
	font-size: 0.9rem;
	color: #e8eef4;
	background: #2a3a4a;
	border: 1px solid #556677;
	border-radius: 6px;
}

.test-mode-note {
	text-align: center;
	font-family: arial, sans-serif;
	font-size: 0.85rem;
	color: #8899aa;
	margin: 1em 1rem 2em;
}

.test-mode-note a {
	color: lightsteelblue;
}

.grid-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 0 0.75em;
}

.replay-intro-btn {
	padding: 0.45em 0.9em;
	font-size: 0.9rem;
	font-family: arial, sans-serif;
	color: lightsteelblue;
	background: #222;
	border: 1px solid #555;
	border-radius: 6px;
	cursor: pointer;
}

.replay-intro-btn:hover {
	background: #2a2a2a;
}

.grid-options {
	position: relative;
}

.grid-options-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid #555;
	border-radius: 6px;
	background: #222;
	color: lightsteelblue;
	cursor: pointer;
}

.grid-options-gear-icon {
	display: block;
	width: 1.4rem;
	height: 1.4rem;
}

.grid-options-toggle:hover,
.grid-options-toggle:focus {
	background: #333;
	outline: 2px solid lightsteelblue;
	outline-offset: 1px;
}

.grid-options-panel {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	z-index: 200;
	min-width: 14rem;
	padding: 0.65rem 0.75rem;
	background: #222;
	border: 1px solid #555;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.grid-options-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: arial, sans-serif;
	font-size: 0.9rem;
	color: lightsteelblue;
	cursor: pointer;
}

.grid-options-item input {
	accent-color: lightsteelblue;
}

.grid-options-fieldset {
	margin: 0.75rem 0 0;
	padding: 0.6rem 0 0;
	border: none;
	border-top: 1px solid #444;
}

.grid-options-fieldset-legend {
	padding: 0;
	font-family: arial, sans-serif;
	font-size: 0.8rem;
	color: #8899aa;
}

.grid-options-fieldset .grid-options-item + .grid-options-item {
	margin-top: 0.35rem;
}

#grid-options-temperature-only,
#grid-options-precipitation-only {
	margin-top: 0.75rem;
	padding-top: 0.6rem;
	border-top: 1px solid #444;
}

.grid-icon-cell--compact {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.grid-icon-cell--compact .grid-icon-corner {
	position: absolute;
	top: 0;
	left: 0;
	width: 55%;
	height: 55%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	overflow: hidden;
	pointer-events: none;
}

.grid-icon-cell--compact .grid-icon-corner .grid-glyph-box,
.grid-icon-cell--compact .grid-icon-corner .wi {
	width: 100%;
	height: 100%;
	font-size: 0.75rem;
}

.grid-icon-cell--compact .grid-icon-corner .grid-weather-svg {
	width: 100%;
	height: 100%;
}

text.grid-cell-value {
	pointer-events: none;
}

.aGraph {
	overflow: visible;
	width: 100%;
	box-sizing: border-box;
}

.weather-grid-svg {
	display: block;
	margin: 0 auto;
	overflow: visible;
}

.location-search {
	position: relative;
	max-width: 32rem;
	margin: 0 auto 0.5em;
	padding: 0 1rem;
}

.location-search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.location-search-row {
	display: flex;
	gap: 0.5rem;
}

#location-input {
	flex: 1;
	min-width: 0;
	padding: 0.6em 0.75em;
	font-size: 1rem;
	font-family: arial, sans-serif;
	border: 1px solid #555;
	border-radius: 6px;
	background: #222;
	color: lightsteelblue;
}

#location-input::placeholder {
	color: #8899aa;
}

#location-input:focus {
	outline: 2px solid lightsteelblue;
	outline-offset: 1px;
}

.location-geo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid #555;
	border-radius: 6px;
	background: #222;
	color: lightsteelblue;
	cursor: pointer;
}

.location-marker-icon {
	display: block;
	width: 1.35rem;
	height: 1.35rem;
}

.location-geo-btn:hover,
.location-geo-btn:focus {
	background: #333;
	outline: 2px solid lightsteelblue;
	outline-offset: 1px;
}

.location-suggestions {
	position: absolute;
	left: 1rem;
	right: 1rem;
	z-index: 100;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
	background: #222;
	border: 1px solid #555;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	max-height: 16rem;
	overflow-y: auto;
}

.location-suggestions li {
	margin: 0;
	padding: 0;
}

.location-suggestions button {
	display: block;
	width: 100%;
	padding: 0.6em 0.75em;
	border: none;
	background: transparent;
	color: lightsteelblue;
	font-family: arial, sans-serif;
	font-size: 0.95rem;
	text-align: left;
	cursor: pointer;
}

.location-suggestions button:hover,
.location-suggestions button:focus {
	background: #333;
	outline: none;
}

.location-display {
	text-align: center;
	color: lightsteelblue;
	font-family: arial, sans-serif;
	margin: 0.25em 0;
	min-height: 1.25em;
}

.weather-status {
	text-align: center;
	color: #8899aa;
	font-family: arial, sans-serif;
	font-size: 0.9rem;
	margin: 0 0 0.5em;
	min-height: 1.1em;
}

@media (max-width: 640px), ((hover: none) and (pointer: coarse) and (max-height: 640px)) {
	.main-layout {
		overflow-x: hidden;
	}

	h1 {
		font-size: 1.15rem;
		margin: 0.35rem 0 0.2rem;
	}

	h2 {
		font-size: 1rem;
		margin: 0.75rem 0 0.35rem;
	}

	p {
		margin: 0 0 0.5rem;
	}

	.test-mode-banner {
		margin-left: 0;
		margin-right: 0;
	}

	.test-mode-note {
		margin-left: 0;
		margin-right: 0;
	}

	.location-search {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.location-suggestions {
		left: 0;
		right: 0;
	}

	.location-display,
	.weather-status {
		padding-left: 0;
		padding-right: 0;
	}

	.location-display {
		margin: 0.1em 0;
		font-size: 0.85rem;
		min-height: 1em;
	}

	.weather-status {
		margin-bottom: 0.2em;
		font-size: 0.8rem;
		min-height: 1em;
	}

	.location-search {
		margin-bottom: 0.2em;
	}

	.grid-toolbar {
		margin-bottom: 0.2em;
		gap: 0.35rem;
	}

	.orientation-hint {
		margin-bottom: 0.25rem;
		font-size: 0.7rem;
	}

	.aGraph {
		margin-left: 0;
		margin-right: 0;
	}

	text.segment-row-label {
		pointer-events: none;
	}

	.weather-grid-svg {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}

body.layout-compact h1,
body.layout-compact h2,
body.layout-landscape-touch h1,
body.layout-landscape-touch h2 {
	margin-left: 0;
	margin-right: 0;
}

body.layout-compact p,
body.layout-compact .test-mode-banner,
body.layout-compact .test-mode-note,
body.layout-landscape-touch p,
body.layout-landscape-touch .test-mode-banner,
body.layout-landscape-touch .test-mode-note {
	margin-left: 0;
	margin-right: 0;
}

body.layout-compact .location-search,
body.layout-landscape-touch .location-search {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

body.layout-compact .location-suggestions,
body.layout-landscape-touch .location-suggestions {
	left: 0;
	right: 0;
}

body.layout-compact .location-display,
body.layout-compact .weather-status,
body.layout-landscape-touch .location-display,
body.layout-landscape-touch .weather-status {
	padding-left: 0;
	padding-right: 0;
}

body.layout-compact .aGraph,
body.layout-compact .weather-grid-svg,
body.layout-landscape-touch .aGraph,
body.layout-landscape-touch .weather-grid-svg,
.aGraph.grid-layout--landscape-touch {
	margin-left: 0;
	margin-right: 0;
}

body.layout-compact h1,
body.layout-landscape-touch h1 {
	font-size: 1.15rem;
	margin-top: 0.35rem;
	margin-bottom: 0.2rem;
}

body.layout-compact .orientation-hint,
body.layout-landscape-touch .orientation-hint {
	margin-bottom: 0.25rem;
	font-size: 0.7rem;
}

body.layout-compact .location-search,
body.layout-landscape-touch .location-search {
	margin-bottom: 0.2em;
}

body.layout-compact .location-display,
body.layout-landscape-touch .location-display {
	margin: 0.1em 0;
	min-height: 1em;
	font-size: 0.85rem;
}

body.layout-compact .weather-status,
body.layout-landscape-touch .weather-status {
	margin-bottom: 0.2em;
	min-height: 1em;
	font-size: 0.8rem;
}

body.layout-compact .grid-toolbar,
body.layout-landscape-touch .grid-toolbar {
	margin-bottom: 0.2em;
	gap: 0.35rem;
}

body.layout-compact .replay-intro-btn,
body.layout-landscape-touch .replay-intro-btn {
	padding: 0.3em 0.6em;
	font-size: 0.8rem;
}

body.layout-compact .grid-options-toggle,
body.layout-landscape-touch .grid-options-toggle,
body.layout-compact .location-geo-btn,
body.layout-landscape-touch .location-geo-btn {
	width: 2.4rem;
	height: 2.4rem;
}

body.layout-compact .aGraph,
body.layout-landscape-touch .aGraph {
	overflow-x: hidden;
}

body.layout-landscape-touch .weather-grid-svg,
body.layout-compact .weather-grid-svg {
	max-width: 100%;
}