/*
 * Wind Farm 3D Viewer
 * Layout: menu bar, optional drawer, 3D view, footer. Over the view there is
 * only the compass and the on-screen controls, which fade when not in use.
 */
.wf3d {
	--wf3d-bar: #1d2327;
	--wf3d-bar-2: #262c31;
	--wf3d-line: #3a4248;
	--wf3d-text: #f0f0f1;
	--wf3d-muted: #a7aaad;
	--wf3d-accent: #2271b1;
	--wf3d-accent-2: #3582c4;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: var(--wf3d-height, 600px);
	max-height: 90vh;
	min-height: 380px;
	background: var(--wf3d-bar);
	border: 1px solid var(--wf3d-line);
	border-radius: 8px;
	overflow: hidden;
	font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--wf3d-text);
	outline: none;
	box-sizing: border-box;
}
.wf3d *, .wf3d *::before, .wf3d *::after { box-sizing: border-box; }
.wf3d:focus-visible { box-shadow: 0 0 0 3px #72aee6; }
/* Fill the screen height (default). dvh follows mobile browser bars. */
.wf3d.wf3d-fill { height: 100vh; height: 100dvh; max-height: none; min-height: 360px; }
body.admin-bar .wf3d.wf3d-fill { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .wf3d.wf3d-fill { height: calc(100vh - 46px); height: calc(100dvh - 46px); }
}
.wf3d:fullscreen { height: 100vh; max-height: none; border: 0; border-radius: 0; }
.wf3d:-webkit-full-screen { height: 100vh; max-height: none; border: 0; border-radius: 0; }
.wf3d [hidden] { display: none !important; }

/* ---------- Menu bar ---------- */
.wf3d-topbar {
	flex: 0 0 auto;
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
	height: 40px;
	padding: 0 6px;
	background: linear-gradient(#262c31, #1d2327);
	border-bottom: 1px solid #0f1316;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04);
	user-select: none; -webkit-user-select: none;
	overflow: hidden;

/*
 * No accidental highlighting: a long press or drag on the view (or on any
 * of its text) must not select it, show the iOS copy menu or flash a tap
 * highlight. Typing fields stay selectable.
 */
.wf3d, .wf3d *, .wf3dp, .wf3dp *, .wf3d-embed-box {
	-webkit-user-select: none !important;
	user-select: none !important;
	-webkit-touch-callout: none !important;
	-webkit-tap-highlight-color: transparent;
}
.wf3d input, .wf3d textarea, .wf3d [contenteditable="true"],
.wf3dp input, .wf3dp textarea, .wf3dp [contenteditable="true"] {
	-webkit-user-select: text !important;
	user-select: text !important;
	-webkit-touch-callout: default !important;
}
.wf3d canvas, .wf3dp canvas { -webkit-user-drag: none; }
}
.wf3d-menurow { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
.wf3d-spacer { flex: 1 1 auto; min-width: 8px; }
.wf3d-menubtn, .wf3d-burger, .wf3d-mode, .wf3d-qbtn {
	appearance: none;
	display: inline-flex; align-items: center; gap: 6px;
	height: 30px; padding: 0 11px; margin: 0;
	font: inherit; font-size: 13px; font-weight: 500; line-height: 1;
	color: #dcdcde;
	background: transparent;
	border: 0; border-radius: 6px;
	cursor: pointer; white-space: nowrap;
	transition: background-color .12s, color .12s;
}
.wf3d-menubtn:hover, .wf3d-burger:hover, .wf3d-mode:hover, .wf3d-qbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.wf3d-menubtn.wf3d-open, .wf3d-burger[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.wf3d-menubtn:focus-visible, .wf3d-burger:focus-visible, .wf3d-mode:focus-visible, .wf3d-qbtn:focus-visible { outline: 2px solid #72aee6; outline-offset: -2px; }
.wf3d-burger { display: none; font-weight: 600; }
.wf3d-mode {
	gap: 6px; padding: 0 10px 0 8px;
	color: #fff; font-weight: 600;
	background: rgba(34, 113, 177, .25);
	box-shadow: inset 0 0 0 1px rgba(53, 130, 196, .55);
	max-width: 46%;
}
.wf3d-mode span { overflow: hidden; text-overflow: ellipsis; }
.wf3d-quick { display: flex; align-items: center; gap: 1px; margin-left: 4px; }
.wf3d-qbtn { width: 32px; padding: 0; justify-content: center; }
.wf3d-qbtn.wf3d-on { background: rgba(255, 255, 255, .14); color: #fff; }

/* Drop-down menus */
.wf3d-menus { position: absolute; left: 0; right: 0; top: 40px; height: 0; z-index: 30; }
.wf3d-pop {
	position: absolute; top: 2px;
	min-width: 230px; max-width: min(340px, calc(100% - 8px));
	max-height: calc(var(--wf3d-pop-max, 70vh));
	overflow-y: auto;
	padding: 5px;
	background: rgba(38, 44, 49, .98);
	border: 1px solid #3a4248;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wf3d-pop-title { display: none; }
.wf3d-mi {
	appearance: none;
	display: flex; align-items: center; gap: 8px;
	width: 100%; min-height: 32px; padding: 4px 10px 4px 6px; margin: 0;
	font: inherit; font-size: 13px; text-align: left;
	color: #f0f0f1; background: transparent;
	border: 0; border-radius: 5px;
	cursor: pointer;
}
.wf3d-mi:hover, .wf3d-mi:focus-visible { background: #2271b1; color: #fff; outline: none; }
.wf3d-mi .wf3d-ico { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.wf3d-mi-text { flex: 1 1 auto; }
.wf3d-mi-hint { color: var(--wf3d-muted); font-size: 12px; }
.wf3d-mi-mark { flex: 0 0 14px; width: 14px; height: 14px; position: relative; }
.wf3d-mi[aria-checked="true"] .wf3d-mi-mark::after {
	content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px;
	border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.wf3d-mi[role="menuitemradio"][aria-checked="true"] .wf3d-mi-mark::after {
	left: 3px; top: 3px; width: 8px; height: 8px; border: 0; border-radius: 50%; background: currentColor; transform: none;
}
.wf3d-mi-sep { height: 1px; margin: 5px 6px; background: #3a4248; }
.wf3d-mi-head { padding: 6px 10px 3px 28px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--wf3d-muted); }
.wf3d-mi .wf3d-stage-dot { width: 10px; height: 10px; flex: 0 0 10px; margin: 0 4px; border-radius: 50%; }
.wf3d-mi-select { display: flex; align-items: center; gap: 8px; padding: 2px 6px 4px 28px; margin: 0; color: #f0f0f1; }
.wf3d-mi-select select {
	flex: 1 1 auto; min-width: 0; height: 32px; padding: 0 8px; margin: 0;
	font: inherit; font-size: 13px; color: #f0f0f1; color-scheme: dark;
	background: #1d2327; border: 1px solid #3a4248; border-radius: 6px;
}
.wf3d-mi-select select option, .wf3d-mi-select select optgroup { color: #1d2327; background: #fff; }

/* Narrow screens: one Menu button opens all menus as a sheet. */
.wf3d-mobile .wf3d-burger { display: inline-flex; }
.wf3d-mobile .wf3d-menurow { display: none; }
.wf3d-mobile .wf3d-mode { max-width: 52%; }
.wf3d-mobile .wf3d-menus { height: auto; bottom: 0; pointer-events: none; }
.wf3d-mobile.wf3d-sheet-open .wf3d-menus {
	pointer-events: auto;
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	padding: 6px 8px 16px;
	background: rgba(29, 35, 39, .97);
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 10px; align-content: start;
}
.wf3d-mobile .wf3d-pop { position: static; max-width: none; max-height: none; overflow: visible; box-shadow: none; border: 0; background: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wf3d-mobile .wf3d-pop-title { display: block; padding: 10px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #72aee6; border-bottom: 1px solid #3a4248; margin-bottom: 4px; }
.wf3d-mobile .wf3d-mi { min-height: 44px; font-size: 15px; }

/* Buttons inside panels */
.wf3d-btn {
	appearance: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 32px; padding: 0 10px; margin: 0;
	font: inherit; font-size: 13px; font-weight: 500; line-height: 1;
	color: var(--wf3d-text);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .12s, border-color .12s, color .12s;
}
.wf3d-btn:hover { background: var(--wf3d-bar-2); border-color: var(--wf3d-line); }
.wf3d-btn:focus-visible { outline: 2px solid #72aee6; outline-offset: 1px; }
.wf3d button:focus:not(:focus-visible) { outline: none; }
.wf3d-ico { flex: 0 0 auto; }

/* ---------- Drawer (time of day, help) ---------- */
.wf3d-drawer {
	flex: 0 0 auto;
	background: var(--wf3d-bar-2);
	border-bottom: 1px solid var(--wf3d-line);
}
.wf3d-drawer { position: relative; }
.wf3d-panel { padding: 10px 48px 12px 14px; }
.wf3d-drawer-close {
	position: absolute; top: 8px; right: 8px; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; padding: 0; margin: 0;
	color: #dcdcde; background: var(--wf3d-bar); border: 1px solid var(--wf3d-line); border-radius: 6px; cursor: pointer;
}
.wf3d-drawer-close:hover { color: #fff; background: #2f363c; }
.wf3d-drawer-close:focus-visible { outline: 2px solid #72aee6; outline-offset: 1px; }
.wf3d-time-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wf3d-time-date { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--wf3d-muted); font-weight: 500; }
.wf3d-time-date input {
	font: inherit; font-size: 13px; color: var(--wf3d-text);
	background: var(--wf3d-bar); color-scheme: dark;
	border: 1px solid var(--wf3d-line); border-radius: 6px;
	height: 32px; padding: 0 8px; margin: 0;
}
.wf3d-time .wf3d-btn { border-color: var(--wf3d-line); background: var(--wf3d-bar); }
.wf3d-time .wf3d-btn:hover { background: #2f363c; }
.wf3d-time-label { margin-left: auto; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.wf3d-time-slider { display: block; width: 100%; margin: 10px 0 2px; accent-color: #f0b429; }
.wf3d-time-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--wf3d-muted); }
.wf3d-time-info { margin-top: 6px; color: var(--wf3d-muted); }
.wf3d-time-status { color: var(--wf3d-text); font-weight: 500; }
.wf3d-help p { margin: 0 0 6px; color: #dcdcde; }
.wf3d-help-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 18px; margin-bottom: 8px; }
.wf3d-help h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.wf3d-help ul { margin: 0; padding: 0 0 0 16px; color: #dcdcde; }
.wf3d-help li { margin: 0 0 2px; }
.wf3d-help { max-height: 45vh; overflow-y: auto; }
.wf3d-help p:last-child { margin-bottom: 0; color: var(--wf3d-muted); }

/* ---------- 3D view ---------- */
.wf3d-stage { position: relative; flex: 1 1 auto; min-height: 0; background: #11161a; }
.wf3d-canvas { position: absolute; inset: 0; }
.wf3d-canvas .cesium-viewer,
.wf3d-canvas .cesium-widget,
.wf3d-canvas canvas { width: 100%; height: 100%; }
.wf3d-canvas .cesium-viewer-bottom { display: none; }
.wf3d.wf3d-picking .wf3d-canvas canvas { cursor: crosshair; }

.wf3d-status {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 24px; text-align: center;
	background: #11161a;
	color: var(--wf3d-text);
	z-index: 5;
}
.wf3d-status-error { color: #ffb4b4; }
.wf3d-topbar:empty { display: none; }

/* "Load 3D view" poster */
.wf3d-status.wf3d-poster {
	flex-direction: column;
	background: radial-gradient(ellipse at 50% 30%, #3b5568 0%, #1f2c35 55%, #141b20 100%);
	overflow: hidden;
}
.wf3d-poster-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; }
.wf3d-status.wf3d-poster { background-color: #22302a; }
.wf3d-poster-card { position: relative; max-width: 420px; padding: 0 12px; }
.wf3d-poster-title { margin: 0 0 6px; font-size: 22px; font-weight: 650; color: #fff; line-height: 1.2; }
.wf3d-poster-sum { margin: 0 0 18px; color: #dcdcde; font-size: 14px; }
.wf3d-poster-go {
	appearance: none;
	display: inline-flex; align-items: center; gap: 8px;
	height: 46px; padding: 0 22px; margin: 0;
	font: inherit; font-size: 16px; font-weight: 600; color: #fff;
	background: var(--wf3d-accent); border: 0; border-radius: 23px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
	cursor: pointer;
}
.wf3d-poster-go:hover { background: var(--wf3d-accent-2); }
.wf3d-poster-go:focus-visible { outline: 3px solid #72aee6; outline-offset: 2px; }
.wf3d-poster-note { margin: 14px auto 0; max-width: 320px; color: #a7aaad; font-size: 12px; }

.wf3d-compass {
	position: absolute; top: 10px; right: 10px;
	width: 54px; height: 54px;
	padding: 0; margin: 0; border: 0; background: none;
	cursor: pointer; z-index: 3;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}
.wf3d-compass svg { width: 100%; height: 100%; display: block; }
.wf3d-compass-rose { transform-origin: 50px 50px; transition: transform .08s linear; }
.wf3d-compass:focus-visible { outline: 2px solid #72aee6; border-radius: 50%; }

/* ---------- Footer: licence note and map credits only ---------- */
.wf3d-footer {
	flex: 0 0 auto;
	padding: 3px 10px 4px;
	background: var(--wf3d-bar);
	border-top: 1px solid var(--wf3d-line);
	font-size: 11px;
}
.wf3d-foot-row { display: flex; align-items: center; gap: 10px; min-height: 20px; }
.wf3d-foot-credits { justify-content: space-between; flex-wrap: wrap; row-gap: 0; }

/* ---------- Read-out over the view (bottom-left, opposite the controls) ---------- */
.wf3d-hud {
	position: absolute; left: 10px; bottom: 12px; z-index: 3;
	max-width: max(150px, calc(100% - var(--wf3d-navw, 200px) - 34px));
	padding: 6px 9px;
	background: rgba(17, 22, 26, .55);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	border-radius: 8px;
	color: #fff;
	font-size: 12px; line-height: 1.4;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
	pointer-events: none;
}
.wf3d-hud > * { pointer-events: auto; }
.wf3d-hud span + span::before { content: " · "; opacity: .7; }
.wf3d-readout-pos { color: #dcdcde; }
.wf3d-msg { color: #fff; margin-bottom: 3px; }
.wf3d-msg:empty { display: none; }
.wf3d-msg strong { color: #fff; }
.wf3d-msg[data-kind="info"] { padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.wf3d-hud-actions { display: flex; align-items: center; gap: 8px; }
.wf3d-hud-actions:has(> :not([hidden])) { margin-bottom: 4px; }
.wf3d-exit {
	appearance: none; height: 28px; padding: 0 10px; margin: 0;
	font: inherit; font-size: 12px; font-weight: 600; color: #fff;
	background: var(--wf3d-accent); border: 0; border-radius: 6px; cursor: pointer;
}
.wf3d-exit:hover { background: var(--wf3d-accent-2); }
.wf3d-loading { color: #f0b429; font-size: 12px; }
/* Narrow views: one item per line. */
.wf3d-tiny .wf3d-hud span, .wf3d-mobile .wf3d-hud span { display: block; }
.wf3d-tiny .wf3d-hud span + span::before, .wf3d-mobile .wf3d-hud span + span::before { content: none; }
.wf3d-tiny .wf3d-footer { font-size: 10px; }
.wf3d-tiny .wf3d-hud { font-size: 11px; padding: 5px 8px; left: 8px; bottom: 10px; }
/* Display menu: Position read-out off hides the read-out (messages still show). */
.wf3d-no-readout .wf3d-readout-main, .wf3d-no-readout .wf3d-readout-pos { display: none !important; }
.wf3d-hud:not(:has(:not(:empty):not([hidden]))) { display: none; }

/* Map credits (required by the map providers) */
.wf3d-nc { flex: 0 0 auto; color: var(--wf3d-muted); font-size: 11px; white-space: nowrap; }
.wf3d-credits { flex: 0 1 auto; display: flex; align-items: center; justify-content: flex-end; min-width: 0; overflow: hidden; }
.wf3d-credits .cesium-widget-credits {
	position: static !important;
	display: flex; align-items: center; gap: 8px;
	padding: 0; margin: 0; background: none;
	font-size: 11px; color: var(--wf3d-muted);
}
.wf3d-credits .cesium-credit-logoContainer { display: inline-flex !important; align-items: center; }
.wf3d-credits .cesium-credit-logoContainer img { max-height: 16px; vertical-align: middle; }
.wf3d-credits .cesium-credit-expand-link,
.wf3d-credits .cesium-credit-text { color: var(--wf3d-muted); font-size: 11px; }
.wf3d-credits a { color: var(--wf3d-muted); }

/* ---------- Narrow layouts ---------- */
.wf3d-tiny .wf3d-credits { max-width: 100%; }
.wf3d-tiny .wf3d-compass { width: 46px; height: 46px; }
.wf3d-error { color: #b32d2e; }

/* ---------- On-screen navigation (bottom-right of the view) ---------- */
.wf3d-nav {
	position: absolute; right: 12px; bottom: 12px;
	display: flex; align-items: flex-end; gap: 8px;
	z-index: 3;
	user-select: none; -webkit-user-select: none;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}
.wf3d-pad {
	position: relative;
	width: 92px; height: 92px;
	border-radius: 50%;
	cursor: grab;
	touch-action: none;
	outline: none;
}
.wf3d-pad > svg { width: 100%; height: 100%; display: block; }
.wf3d-pad.wf3d-pad-on { cursor: grabbing; }
.wf3d-pad:focus-visible { box-shadow: 0 0 0 3px #72aee6; }
.wf3d-pad-knob {
	position: absolute; left: 50%; top: 50%;
	width: 30px; height: 30px; margin: -15px 0 0 -15px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
	transition: transform .15s ease-out;
	pointer-events: none;
}
.wf3d-pad-on .wf3d-pad-knob { transition: none; background: #e6f0f8; }
.wf3d-updown {
	display: flex; flex-direction: column; align-items: center;
	width: 38px;
	background: rgba(29, 35, 39, .6);
	border: 2px solid #fff;
	border-radius: 19px;
	overflow: hidden;
}
.wf3d-updown button {
	appearance: none;
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 36px; margin: 0; padding: 0;
	color: #fff; background: transparent; border: 0;
	cursor: pointer;
	touch-action: none;
}
.wf3d-updown button:hover { background: rgba(255, 255, 255, .15); }
.wf3d-updown button.wf3d-held { background: rgba(255, 255, 255, .3); }
.wf3d-updown button:focus-visible { outline: 2px solid #72aee6; outline-offset: -2px; }
.wf3d-updown-label {
	font-size: 8px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
	color: #fff; opacity: .85; padding: 1px 0;
}
.wf3d-tiny .wf3d-pad { width: 76px; height: 76px; }

/* Touch screens: larger targets. */
@media (pointer: coarse) {
	.wf3d-updown { width: 44px; border-radius: 22px; }
	.wf3d-updown button { height: 42px; }
	.wf3d-menubtn, .wf3d-burger, .wf3d-mode, .wf3d-qbtn { height: 34px; }
	.wf3d-qbtn { width: 38px; }
	.wf3d-mi { min-height: 44px; }
}

/* Display choices (Display menu). */
.wf3d-no-compass .wf3d-compass,
.wf3d-no-pad .wf3d-pad,
.wf3d-no-height .wf3d-height,
.wf3d-no-zoom .wf3d-zoom { display: none !important; }
.wf3d-in-ground .wf3d-zoom { opacity: .4; }

/* Controls fade when not in use, and come back on touch or hover. */
.wf3d-compass, .wf3d-nav { transition: opacity .6s ease; }
.wf3d-fade .wf3d-compass, .wf3d-fade .wf3d-nav { opacity: .3; }
.wf3d-fade .wf3d-compass:hover, .wf3d-fade .wf3d-nav:hover,
.wf3d-fade .wf3d-compass:focus-visible, .wf3d-fade .wf3d-nav:focus-within { opacity: 1; transition-duration: .15s; }
@media (prefers-reduced-motion: reduce) {
	.wf3d-compass, .wf3d-nav { transition: none; }
}
.wf3d-tiny .wf3d-updown { width: 34px; }
.wf3d-tiny .wf3d-updown button { height: 30px; }

/* ---------- Wind farms panel ---------- */
.wf3d-farms { max-height: 42vh; overflow-y: auto; }
.wf3d-farms-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wf3d-farms-actions { margin-left: auto; display: flex; gap: 6px; }
.wf3d-farms .wf3d-btn { border-color: var(--wf3d-line); background: var(--wf3d-bar); height: 28px; }
.wf3d-farms .wf3d-btn:hover { background: #2f363c; }
.wf3d-farms-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 0 18px; }
.wf3d-farms-list li {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
	padding: 6px 0; border-bottom: 1px solid var(--wf3d-line); min-width: 0;
}
.wf3d-farms-list label { grid-column: 1; display: flex; align-items: flex-start; gap: 8px; margin: 0; cursor: pointer; color: #fff; font-weight: 600; min-width: 0; line-height: 1.3; }
.wf3d-farms-list label input, .wf3d-farms-list label .wf3d-swatch { margin-top: 2px; }
.wf3d-farms-list input { margin: 0; accent-color: var(--wf3d-accent); flex: 0 0 auto; }
.wf3d-swatch { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .4); }
.wf3d-farm-name { white-space: normal; overflow-wrap: anywhere; }
.wf3d-farm-acts { grid-column: 2; grid-row: 1; display: flex; gap: 4px; }
.wf3d-farm-meta { grid-column: 1 / -1; padding-left: 42px; color: var(--wf3d-muted); font-size: 12px; white-space: normal; margin-top: 2px; }
.wf3d-farm-tog { height: 24px !important; font-size: 11px; padding: 0 7px; color: #a7aaad !important; }
.wf3d-farm-tog[aria-pressed="true"] { color: #fff !important; background: rgba(34, 113, 177, .25) !important; border-color: rgba(53, 130, 196, .7) !important; }
.wf3d-farms-count { color: var(--wf3d-muted); font-size: 12px; }
.wf3d-stages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.wf3d-stages-label { color: var(--wf3d-muted); font-size: 12px; margin-right: 2px; }
.wf3d-chip {
	display: inline-flex; align-items: center; gap: 6px;
	height: 30px; padding: 0 10px 0 8px; margin: 0;
	border: 1px solid var(--wf3d-line); border-radius: 15px;
	background: var(--wf3d-bar); color: #dcdcde; cursor: pointer; font-size: 12px; white-space: nowrap;
}
.wf3d-chip input { margin: 0; accent-color: var(--wf3d-accent); }
.wf3d-chip:has(input:checked) { border-color: rgba(53, 130, 196, .8); background: rgba(34, 113, 177, .2); color: #fff; }
.wf3d-chip-n { color: var(--wf3d-muted); font-variant-numeric: tabular-nums; }
.wf3d-stage-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.wf3d-farms-search {
	display: block; width: 100%; max-width: 320px; height: 32px; margin: 0 0 8px; padding: 0 10px;
	font: inherit; font-size: 13px; color: var(--wf3d-text); color-scheme: dark;
	background: var(--wf3d-bar); border: 1px solid var(--wf3d-line); border-radius: 6px;
}
.wf3d-farms-list li.wf3d-stage-off { opacity: .5; }
.wf3d-farms-head { flex-wrap: wrap; row-gap: 6px; }
.wf3d-goto { flex: 0 0 auto; height: 24px !important; font-size: 12px; padding: 0 8px; }

/* ---------- Viewpoint image panel ---------- */
.wf3d-shot-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 10px; }
.wf3d-field { display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--wf3d-muted); font-weight: 500; }
.wf3d-field-wide { flex: 1 1 280px; }
.wf3d-field input, .wf3d-field select {
	font: inherit; font-size: 13px; color: var(--wf3d-text);
	background: var(--wf3d-bar); color-scheme: dark;
	border: 1px solid var(--wf3d-line); border-radius: 6px;
	height: 32px; padding: 0 8px; margin: 0; width: 100%;
}
.wf3d-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--wf3d-text); cursor: pointer; height: 32px; }
.wf3d-check input { margin: 0; accent-color: var(--wf3d-accent); }
.wf3d-btn.wf3d-btn-primary { background: var(--wf3d-accent); border-color: var(--wf3d-accent); color: #fff; font-weight: 600; }
.wf3d-btn.wf3d-btn-primary:hover { background: var(--wf3d-accent-2); }
.wf3d-btn[disabled] { opacity: .6; cursor: progress; }
.wf3d-shot-status { color: var(--wf3d-muted); }
.wf3d-shot-note { margin: 0; color: var(--wf3d-muted); font-size: 12px; }

/* Loading note in the footer */
.wf3d-loading { flex: 0 0 auto; color: #f0b429; font-size: 12px; }

/* About panel (acknowledgements) */
.wf3d-about { max-height: 45vh; overflow-y: auto; }
.wf3d-about-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #fff; }
.wf3d-about p { margin: 0 0 6px; color: #dcdcde; }
.wf3d-thanks { margin: 0 0 8px; padding: 0 0 0 18px; color: #fff; columns: 2 240px; }
.wf3d-thanks li { margin: 0 0 2px; break-inside: avoid; }

/* Inside an embed (iframe on another website) */
.wf3d.wf3d-embedded { height: 100vh; height: 100dvh; max-height: none; min-height: 0; border: 0; border-radius: 0; }

/* Wind farms panel on narrow screens: details under the name. */
.wf3d-tiny .wf3d-stages { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.wf3d-tiny .wf3d-stages::-webkit-scrollbar { display: none; }
.wf3d-tiny .wf3d-chip { flex: 0 0 auto; }
.wf3d-tiny .wf3d-stages-label { display: none; }
.wf3d-tiny .wf3d-farms-head strong { white-space: nowrap; }
.wf3d-tiny .wf3d-farms { max-height: 38vh; max-height: 38dvh; }

/* ------------------------------------------------------------------ */
/* Create from a photo                                                 */
/* ------------------------------------------------------------------ */
.wf3d-mi-new { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(240,180,41,.18); color: #f0c35a; border: 1px solid rgba(240,180,41,.45); }
.wf3d-mi:hover .wf3d-mi-new, .wf3d-mi:focus-visible .wf3d-mi-new { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.45); }

.wf3dp {
	--p-bar: #1d2327; --p-bar2: #262c31; --p-line: #3a4248; --p-text: #f0f0f1; --p-muted: #a7aaad;
	--p-accent: #2271b1; --p-accent2: #3582c4; --p-mask: #ff7a1a; --p-ok: #46b450; --p-warn: #f0b429;
	position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column;
	background: var(--p-bar); color: var(--p-text);
	font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: left;
	-webkit-text-size-adjust: 100%;
}
/* Keep every part clear of the phone's status bar, notch and rounded
   corners, including when opened from the Home Screen as a web app. The
   bar colour continues behind the status bar. */
.wf3dp {
	padding-top: env(safe-area-inset-top, 0px);
	padding-left: env(safe-area-inset-left, 0px);
	padding-right: env(safe-area-inset-right, 0px);
	background: linear-gradient(#262c31 0, #262c31 env(safe-area-inset-top, 0px), var(--p-bar) env(safe-area-inset-top, 0px));
}
.wf3dp[hidden] { display: none; }
.wf3dp-pdf-ready { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; color: #b8e6bf; }
.wf3dp-pdf-ready[hidden] { display: none; }
.wf3dp-pdf-said { display: inline-flex; gap: 6px; align-items: center; flex: 1 1 180px; }
.wf3dp-pdf-ready .wf3dp-pdf-open { flex: 0 0 auto; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.wf3dp *, .wf3dp *::before, .wf3dp *::after { box-sizing: border-box; }
.wf3dp button { font: inherit; color: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; }
.wf3dp button:disabled { opacity: .45; cursor: default; }
.wf3dp button:focus-visible, .wf3dp input:focus-visible, .wf3dp textarea:focus-visible { outline: 2px solid #72aee6; outline-offset: 2px; }
.wf3dp svg { flex: 0 0 auto; }
.wf3dp h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; color: #fff; font-weight: 650; }
.wf3dp h3 { margin: 4px 0 6px; font-size: 15px; color: #fff; }
.wf3dp p { margin: 0 0 12px; color: #c3c4c7; }
.wf3dp b { color: #fff; }

/* Top bar */
.wf3dp-top { flex: 0 0 52px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: linear-gradient(#262c31, #1d2327); border-bottom: 1px solid #0f1316; min-width: 0; }
.wf3dp-back, .wf3dp-helpbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 6px; background: transparent; border: 1px solid var(--p-line); color: #dcdcde; font-weight: 500; white-space: nowrap; }
.wf3dp-helpbtn { border-color: transparent; }
.wf3dp-back:hover, .wf3dp-helpbtn:hover { background: rgba(255,255,255,.08); }
.wf3dp-title { font-weight: 650; font-size: 15px; color: #fff; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wf3dp-badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; background: rgba(240,180,41,.18); color: #f0c35a; border: 1px solid rgba(240,180,41,.4); }
.wf3dp-steps { margin: 0 auto; padding: 0; list-style: none; display: flex; align-items: center; gap: 6px; min-width: 0; }
.wf3dp-step { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 18px; color: var(--p-muted); font-weight: 500; white-space: nowrap; cursor: default; }
.wf3dp-step + .wf3dp-step::before { content: ""; width: 18px; height: 1px; background: #50575e; margin: 0 6px 0 -6px; }
.wf3dp-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid #50575e; }
.wf3dp-step.wf3dp-done { color: #c3c4c7; cursor: pointer; }
.wf3dp-step.wf3dp-done .wf3dp-n { background: var(--p-ok); border-color: var(--p-ok); color: #fff; }
.wf3dp-step.wf3dp-on { color: #fff; background: rgba(34,113,177,.22); box-shadow: inset 0 0 0 1px rgba(53,130,196,.7); }
.wf3dp-step.wf3dp-on .wf3dp-n { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.wf3dp-count { display: none; color: var(--p-muted); font-weight: 500; }
.wf3dp-bars { display: none; }

/* Body */
.wf3dp-body { flex: 1 1 auto; display: flex; min-height: 0; }
.wf3dp-stage { flex: 1 1 auto; position: relative; background: #11161a; overflow: hidden; min-width: 0; touch-action: none; }
.wf3dp-cv { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
.wf3dp[data-step="1"] .wf3dp-cv { cursor: grab; }
.wf3dp[data-step="1"] .wf3dp-cv:active { cursor: grabbing; }
.wf3dp[data-step="2"] .wf3dp-cv { cursor: none; }
.wf3dp[data-step="3"] .wf3dp-cv { cursor: move; }
.wf3dp-drop { position: absolute; inset: 28px; max-width: 780px; max-height: 440px; margin: auto; border: 2px dashed #50575e; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: #c3c4c7; background: rgba(255,255,255,.02); cursor: pointer; }
.wf3dp-drop[hidden] { display: none; }
.wf3dp-drop > svg { color: #72aee6; }
.wf3dp-drop:hover, .wf3dp-drop.wf3dp-over { border-color: #72aee6; background: rgba(114,174,230,.06); }
.wf3dp-drop h3 { margin: 6px 0 0; color: #fff; font-size: 20px; }
.wf3dp-link { background: none; border: 0; padding: 0; color: #72aee6 !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.wf3dp-small { margin-top: 6px; font-size: 13px; color: var(--p-muted); }
.wf3dp-legend { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.wf3dp-legend[hidden] { display: none; }
.wf3dp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 16px; background: rgba(17,22,26,.72); color: #fff; font-size: 12.5px; font-weight: 500; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.wf3dp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.wf3dp-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; max-width: calc(100% - 120px); padding: 9px 14px; border-radius: 20px; background: rgba(17,22,26,.82); color: #fff; font-size: 13px; display: none; align-items: center; gap: 8px; pointer-events: none; }
.wf3dp-hint.wf3dp-hint-on { display: flex; }
.wf3dp-hint.wf3dp-hint-warn { background: rgba(138,46,0,.92); border-radius: 10px; }
.wf3dp-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.wf3dp-zoom[hidden] { display: none; }
.wf3dp-zoom button { width: 38px; height: 38px; border-radius: 8px; border: 0; background: rgba(17,22,26,.78); color: #fff; font-size: 19px; display: grid; place-items: center; padding: 0; }
.wf3dp-zoom .wf3dp-fit { font-size: 11px; font-weight: 700; }
.wf3dp-zoom button:hover { background: rgba(34,113,177,.9); }
.wf3dp-busy { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(17,22,26,.72); color: #fff; text-align: center; white-space: pre-line; padding: 20px; font-weight: 500; }
.wf3dp-isbusy .wf3dp-busy { display: flex; }
.wf3dp-isbusy .wf3dp-foot button, .wf3dp-isbusy .wf3dp-in button { pointer-events: none; opacity: .5; }
.wf3dp-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #72aee6; animation: wf3dp-spin .9s linear infinite; }
@keyframes wf3dp-spin { to { transform: rotate(360deg); } }

/* Side panel */
.wf3dp-panel { flex: 0 0 360px; width: 360px; background: var(--p-bar2); border-left: 1px solid var(--p-line); display: flex; flex-direction: column; min-height: 0; }
.wf3dp-handle { display: none; }
.wf3dp-grab { display: block; }
.wf3dp-in { padding: 20px 20px 12px; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.wf3dp-foot { padding: 14px 20px 18px; border-top: 1px solid var(--p-line); display: flex; gap: 10px; }
.wf3dp-btn { flex: 1; min-height: 42px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border: 1px solid var(--p-line); color: #dcdcde; background: var(--p-bar); }
.wf3dp-btn:hover { background: #2c3338; }
.wf3dp-btn.wf3dp-primary { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.wf3dp-btn.wf3dp-primary:hover { background: #135e96; }
.wf3dp-wide { width: 100%; margin-bottom: 12px; }
.wf3dp-pickmini { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; }
.wf3dp-card { background: var(--p-bar); border: 1px solid var(--p-line); border-radius: 10px; padding: 4px 14px; margin-bottom: 12px; }
.wf3dp-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid #2f363c; }
.wf3dp-row:last-child { border-bottom: 0; }
.wf3dp-k { color: var(--p-muted); width: 72px; flex: 0 0 auto; }
.wf3dp-v { color: #fff; font-weight: 500; flex: 1; }
.wf3dp-muted { color: var(--p-muted); font-weight: 400; }
.wf3dp-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--p-ok); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.wf3dp-tick.wf3dp-maybe { background: var(--p-warn); }
.wf3dp-tick.wf3dp-bad { background: #d63638; }
.wf3dp-warn, .wf3dp-info, .wf3dp-err { border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; border-left: 4px solid; }
.wf3dp-warn { border-color: var(--p-warn); background: rgba(240,180,41,.08); color: #e6d7a8; }
.wf3dp-warn b { color: #f5dfa0; }
.wf3dp-info { border-color: var(--p-accent2); background: rgba(53,130,196,.1); color: #cfe0f0; }
.wf3dp-err { border-color: #d63638; background: rgba(214,54,56,.12); color: #f5c2c2; }
.wf3dp-cyan { color: #33d6ff !important; }
.wf3dp-lab { display: block; font-size: 12px; font-weight: 600; color: var(--p-muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 8px; }
.wf3dp-adjust { display: flex; gap: 16px; align-items: center; }
.wf3dp-nudge { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(3, 40px); gap: 4px; flex: 0 0 auto; }
.wf3dp-nudge button, .wf3dp-mini button { border-radius: 8px; background: var(--p-bar); border: 1px solid var(--p-line); display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; padding: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.wf3dp-nudge button:hover, .wf3dp-mini button:hover { background: #2c3338; }
.wf3dp-nudge button:active, .wf3dp-mini button:active { background: var(--p-accent); }
.wf3dp-c { display: grid; place-items: center; color: var(--p-muted); font-size: 11px; }
.wf3dp-ts { flex: 1; min-width: 0; }
.wf3dp-tl { color: #dcdcde; font-weight: 500; margin: 2px 0 6px; }
.wf3dp-ts .wf3dp-mini + .wf3dp-tl { margin-top: 10px; }
.wf3dp-mini { display: flex; gap: 8px; }
.wf3dp-mini button { flex: 1; height: 38px; font-size: 13px; font-weight: 500; color: #dcdcde; }
.wf3dp-ts .wf3dp-mini button { font-size: 18px; }
.wf3dp-ur { margin-top: 10px; }
.wf3dp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 4px 0; padding: 0; border: 0; }
.wf3dp-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #3a4248; }
.wf3dp-range::-moz-range-track { height: 6px; border-radius: 3px; background: #3a4248; }
.wf3dp-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--p-accent2); }
.wf3dp-range.wf3dp-orange::-moz-range-progress { background: var(--p-mask); }
.wf3dp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.wf3dp-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.wf3dp-sl { display: flex; justify-content: space-between; font-size: 12px; color: var(--p-muted); }
.wf3dp-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; color: #dcdcde; cursor: pointer; }
.wf3dp-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wf3dp-toggle i { flex: 0 0 40px; width: 40px; height: 22px; border-radius: 11px; background: #50575e; position: relative; transition: background .15s; }
.wf3dp-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.wf3dp-toggle input:checked + i { background: var(--p-accent); }
.wf3dp-toggle input:checked + i::after { left: 21px; }
.wf3dp-toggle input:focus-visible + i { outline: 2px solid #72aee6; outline-offset: 2px; }
.wf3dp-ic { display: flex; gap: 8px; align-items: center; }
.wf3dp-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wf3dp-tool { height: 76px; border-radius: 10px; background: var(--p-bar); border: 1px solid var(--p-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #dcdcde; font-weight: 600; font-size: 13px; padding: 0; }
.wf3dp-tool:hover { background: #2c3338; }
.wf3dp-tool.wf3dp-on { background: rgba(255,122,26,.16); border-color: var(--p-mask); color: #fff; }
.wf3dp-undo2 { display: none; }
.wf3dp-text { width: 100%; resize: vertical; min-height: 56px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-bar); color: #fff; font: inherit; font-size: 15px; margin: 0 0 6px; }
.wf3dp-saved { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #b8e6bf; }
.wf3dp-saved[hidden] { display: none; }
.wf3dp-saved svg { margin-top: 3px; }
.wf3dp-reset { font-size: 13px; }
.wf3dp-readout { margin-top: 8px; font-size: 12px; color: var(--p-muted); }

/* Help */
.wf3dp-help { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 5; }
.wf3dp-help[hidden] { display: none; }
.wf3dp-helpcard { position: relative; width: 560px; max-width: 100%; max-height: 100%; overflow-y: auto; background: var(--p-bar2); border: 1px solid var(--p-line); border-radius: 12px; padding: 22px 24px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.wf3dp-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.wf3dp-x:hover { background: rgba(255,255,255,.08); }
.wf3dp-hs { padding: 10px 12px; border-radius: 8px; margin: 0 -12px 4px; }
.wf3dp-hs p { font-size: 13.5px; }
.wf3dp-hs-on { background: rgba(53,130,196,.12); }

/* Narrower screens: the step names go, then the panel becomes a sheet. */
@media (max-width: 1180px) {
	.wf3dp-sn { display: none; }
	.wf3dp-step { padding: 6px; }
	.wf3dp-step.wf3dp-on .wf3dp-sn { display: inline; }
	.wf3dp-step.wf3dp-on { padding-right: 12px; }
}
@media (max-width: 860px) {
	.wf3dp-badge { display: none; }
	.wf3dp-panel { flex-basis: 320px; width: 320px; }
}
@media (max-width: 700px), (max-height: 520px) and (max-width: 940px) {
	.wf3dp-top { flex-basis: 48px; gap: 8px; padding: 0 8px; }
	.wf3dp-back span, .wf3dp-helpbtn span, .wf3dp-title > svg, .wf3dp-steps { display: none; }
	.wf3dp-back, .wf3dp-helpbtn { padding: 0 9px; }
	.wf3dp-title { flex: 1; justify-content: center; font-size: 15px; }
	.wf3dp-count { display: block; }
	.wf3dp-bars { display: flex; gap: 4px; padding: 8px 12px; background: var(--p-bar); }
	.wf3dp-bars i { flex: 1; height: 4px; border-radius: 2px; background: #3a4248; }
	.wf3dp-bars i.wf3dp-bd { background: var(--p-ok); }
	.wf3dp-bars i.wf3dp-bo { background: var(--p-accent2); }
	.wf3dp-body { flex-direction: column; }
	.wf3dp-stage { flex: 1 1 42%; min-height: 200px; }
	.wf3dp[data-step="0"] .wf3dp-stage { flex-basis: 34%; }
	.wf3dp[data-step="3"] .wf3dp-stage { flex-basis: 50%; }
	.wf3dp-panel { flex: 1 1 58%; width: auto; border-left: 0; border-radius: 16px 16px 0 0; margin-top: -10px; position: relative; z-index: 2; box-shadow: 0 -6px 18px rgba(0,0,0,.35); }
	.wf3dp-handle { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 28px; padding: 0; border: 0; background: transparent; touch-action: none; cursor: ns-resize; flex: 0 0 28px; }
	.wf3dp-grab { width: 40px; height: 4px; border-radius: 2px; background: #70777e; }
	.wf3dp-handle:focus-visible { outline: 2px solid #72aee6; outline-offset: -3px; }
	.wf3dp.wf3dp-panel-collapsed .wf3dp-panel { flex: 0 0 auto; height: auto; min-height: 0; margin-top: -10px; }
	.wf3dp.wf3dp-panel-collapsed .wf3dp-in { display: none; }
	.wf3dp.wf3dp-panel-collapsed .wf3dp-stage { flex: 1 1 auto; min-height: 0; }
	.wf3dp.wf3dp-panel-collapsed .wf3dp-foot { flex: 0 0 auto; }
	.wf3dp.wf3dp-panel-collapsed .wf3dp-grab { background: #72aee6; }

	.wf3dp-in { padding: 10px 16px 8px; }
	.wf3dp-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
	.wf3dp h2 { font-size: 16px; }
	.wf3dp p { font-size: 13px; }
	.wf3dp-drop { inset: 12px; gap: 6px; }
	.wf3dp-drop h3 { font-size: 16px; }
	.wf3dp-drop > svg { width: 34px; height: 34px; }
	.wf3dp-legend { left: 8px; top: 8px; }
	.wf3dp-chip { font-size: 11.5px; padding: 4px 8px; }
	.wf3dp-hint { display: none !important; }
	.wf3dp-zoom { right: 8px; bottom: 16px; }
	.wf3dp-zoom button { width: 34px; height: 34px; }
	.wf3dp-tools { grid-template-columns: repeat(4, 1fr); }
	.wf3dp-tool { height: 66px; font-size: 12px; }
	.wf3dp-undo2 { display: flex; }
	.wf3dp-ur [data-u="undo"] { display: none; }
}
@media (pointer: fine) { .wf3dp-touchtip { display: none; } }

.wf3dp-dir { align-items: center; }
.wf3dp-dir button { flex: 0 0 auto; padding: 0 12px; gap: 4px; }
.wf3dp-hd { flex: 1; text-align: center; color: #fff; font-weight: 600; white-space: nowrap; }
.wf3dp-facefarm { display: inline-block; margin-top: 8px; font-size: 13px; }
.wf3dp-eye { width: 100%; max-width: 100%; height: 34px; border-radius: 6px; border: 1px solid var(--p-line); background: #1d2327; color: #fff; font: inherit; font-size: 13.5px; padding: 0 6px; }
.wf3dp-rotors { width: 100%; max-width: 100%; height: 34px; border-radius: 6px; border: 1px solid var(--p-line); background: #1d2327; color: #fff; font: inherit; font-size: 13.5px; padding: 0 6px; }
.wf3d-loc-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.wf3d-loc-row .wf3d-field-wide { flex: 1 1 260px; }
.wf3d-loc-q { font-variant-numeric: tabular-nums; }
.wf3d-loc-status { margin: 8px 0 0; min-height: 1.2em; font-weight: 500; }
.wf3d-loc-status.wf3d-loc-err { color: #f5a3a3; }

.wf3dp-typed { margin: 0 0 12px; }
.wf3dp-typedrow { display: flex; gap: 8px; }
.wf3dp-typedrow input { flex: 1; min-width: 0; height: 40px; border-radius: 8px; border: 1px solid var(--p-line); background: #1d2327; color: #fff; font: inherit; padding: 0 10px; }
.wf3dp-typedrow .wf3dp-btn { flex: 0 0 auto; min-height: 40px; }

/* Step 4 has two deliberate independent actions, not backwards navigation. */
.wf3dp[data-step="3"] .wf3dp-foot .wf3dp-close-editor { order: 2; }
.wf3dp[data-step="3"] .wf3dp-foot .wf3dp-primary { order: 1; }

/* Accessible individual turbine controls. */
.wf3d-turbines { overflow-y:auto; max-height:min(64vh,680px); }
.wf3d-turbines h3 { margin:4px 0 8px; }
.wf3d-turbine-rows { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:10px;margin:12px 0; }
.wf3d-turbine-row { border:1px solid #59616a;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:10px;min-width:0; }
.wf3d-turbine-field {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:38px;}
.wf3d-turbine-field select {max-width:100%;min-height:38px;color:inherit;background:#242b32;border:1px solid #69737d;border-radius:6px;padding:7px;}
.wf3d-turbine-field input[type=checkbox] {width:20px;height:20px;accent-color:#3a9bdf;}
@media(max-width:600px){.wf3d-turbines{max-height:54vh}.wf3d-turbine-rows{grid-template-columns:minmax(0,1fr)}}

/* v1.7.6: high contrast turbine controls, scoped to this drawer only. */
.wf3d .wf3d-turbines {
  color:#f4f7fb !important; background:#262d35 !important;
  padding:20px 18px 22px; max-height:min(67dvh,760px);
  scrollbar-color:#677785 #262d35;
}
.wf3d .wf3d-turbines h3 { color:#fff !important; font-size:18px; line-height:1.3; font-weight:750; margin:0 44px 6px 0; letter-spacing:-.01em; }
.wf3d .wf3d-turbines > p {color:#c7d1dc !important; font-size:13px; line-height:1.55; margin:0 0 17px; max-width:65ch;}
.wf3d .wf3d-turbines .wf3d-turbine-field { color:#e7edf5 !important; font-size:13px; font-weight:500; }
.wf3d .wf3d-turbines > .wf3d-turbine-field { display:flex; gap:12px; padding:12px 14px; border:1px solid #495967; border-radius:10px; background:#202831; }
.wf3d .wf3d-turbines select {background:#17212b !important; color:#fff !important; color-scheme:dark; border:1px solid #728293 !important; border-radius:8px; min-height:42px; font:inherit; padding:8px 12px;}
.wf3d .wf3d-turbines .wf3d-turbine-farm { flex:1 1 220px; min-width:0; }
.wf3d .wf3d-turbine-rows {gap:12px;margin:16px 0; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));}
.wf3d .wf3d-turbine-row { background:#202831; border:1px solid #4d5d6c; border-radius:12px; padding:16px; gap:0; box-shadow:0 2px 8px rgba(0,0,0,.13); color:#edf3fa !important; }
.wf3d .wf3d-turbine-title { font-size:16px; line-height:1.3; color:#fff !important; margin:0 0 12px; }
.wf3d .wf3d-turbine-row .wf3d-turbine-go { width:100%; min-height:42px; background:#284762 !important; border:1px solid #4c84b1 !important; border-radius:8px; color:#f4faff !important; font-weight:650; font-size:13px; margin:0 0 12px; }
.wf3d .wf3d-turbine-row .wf3d-turbine-go:hover { background:#35658a !important; }
.wf3d .wf3d-turbine-row .wf3d-turbine-field {min-height:48px; gap:12px; flex-wrap:nowrap; border-top:1px solid #3b4956; padding:10px 1px;}
.wf3d .wf3d-turbine-row .wf3d-turbine-field span { flex:1; color:#e6edf5 !important; }
.wf3d .wf3d-turbine-row .wf3d-turbine-field input[type=checkbox] {flex:0 0 auto; width:23px; height:23px; accent-color:#40a4ec; cursor:pointer;}
.wf3d .wf3d-turbine-row .wf3d-turbine-field select { width:auto; max-width:58%; min-width:115px; }
.wf3d .wf3d-turbine-reset { display:block; width:100%; max-width:360px; margin:16px auto 0; min-height:44px; color:#f0f5fb !important; background:#394651 !important; border:1px solid #83919e !important; border-radius:9px; font-weight:600; }
.wf3d .wf3d-turbines :is(button,select,input):focus-visible {outline:3px solid #7dc7ff !important;outline-offset:2px;}
@media(max-width:600px){.wf3d .wf3d-turbines{padding:18px 13px 20px;max-height:58dvh}.wf3d .wf3d-turbine-rows{grid-template-columns:minmax(0,1fr)}.wf3d .wf3d-turbines > .wf3d-turbine-field{align-items:stretch;flex-direction:column}.wf3d .wf3d-turbines .wf3d-turbine-farm{flex:auto;width:100%}.wf3d .wf3d-turbine-row{padding:14px}}

/* 1.7.7: Prevent horizontal page spill when the turbine panel is open. */
.wf3d, .wf3d .wf3d-panel, .wf3d .wf3d-turbines, .wf3d .wf3d-turbine-rows,
.wf3d .wf3d-turbine-row { min-width: 0; max-width: 100%; }
.wf3d .wf3d-turbines { overflow-x: hidden; color: #edf3fa !important; }
.wf3d .wf3d-turbines h3, .wf3d .wf3d-turbines > p { color: #edf3fa !important; }
.wf3d .wf3d-turbine-field { min-width: 0; }
.wf3d .wf3d-turbine-field select { min-width: 0; max-width: 100%; }
@media (pointer: coarse) {
  .wf3d { touch-action: pan-y; overscroll-behavior: contain; }
  .wf3d canvas, .wf3dp-stage, .wf3dp-cv { touch-action: none !important; }
  .wf3d :is(button, select, input) { touch-action: manipulation; }
}

/* v1.7.8: prominent turbine access and unobstructed viewpoint. */
.wf3d-mobile-turbines { display:none; appearance:none; border:1px solid #4d88ba; border-radius:7px; background:#224563; color:#fff; padding:6px 10px; font:600 12px/1.2 system-ui,sans-serif; flex:0 0 auto; cursor:pointer; }
.wf3d-mobile .wf3d-mobile-turbines { display:inline-flex; align-items:center; justify-content:center; min-height:34px; }
.wf3d-mobile .wf3d-mobile-turbines:focus-visible { outline:3px solid #8bc7ff; outline-offset:2px; }
.wf3d-footer { padding:0 !important; background:#1b222a; color:#eff4f9; border-top:1px solid #526273; }
.wf3d-foot-details { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 20px; align-items:start; padding:9px 14px; border-bottom:1px solid #34424e; background:#222d38; font-size:12px; line-height:1.5; font-variant-numeric:tabular-nums; }
.wf3d-foot-details .wf3d-readout-main, .wf3d-foot-details .wf3d-readout-pos { min-width:0; color:#f2f6fb; overflow-wrap:anywhere; }
.wf3d-foot-details span { display:inline; }
.wf3d-foot-details span + span::before { content:'  ·  '; color:#9caec0; }
.wf3d-foot-details .wf3d-readout-pos { color:#cbd8e5; }
.wf3d-foot-credits { padding:5px 14px 7px; gap:6px 12px; font-size:10px; line-height:1.35; color:#b2c0cc; }
.wf3d .wf3d-hud { max-width:min(76%,380px); bottom:10px; }
.wf3d-no-readout .wf3d-foot-details { display:none !important; }
@media(max-width:700px) {
 .wf3d-foot-details { grid-template-columns:minmax(0,1fr); gap:3px; padding:7px 10px; font-size:11px; line-height:1.4; }
 .wf3d-foot-details span { display:inline !important; }
 .wf3d-foot-details span + span::before { content:' · ' !important; }
  .wf3d-foot-credits { padding:5px 10px; }
 .wf3d .wf3d-mobile-turbines { padding:5px 8px; }
}

/* Full viewing-area menus, independent of the WebGL canvas. */
.wf3d > .wf3d-drawer {
 position:absolute; z-index:85; top:40px; left:0; right:0; bottom:0;
 display:flex; flex-direction:column; overflow-y:auto; overflow-x:hidden;
 overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
 background:#222a32; border-bottom:0;
 box-shadow:0 10px 36px rgba(0,0,0,.45);
}
.wf3d .wf3d-drawer .wf3d-panel { flex:1 0 auto; max-height:none !important; overflow:visible; }
.wf3d .wf3d-drawer-handle {
 flex:0 0 46px; width:100%; display:flex; gap:5px;
 align-items:center; justify-content:center; flex-direction:column;
 border:0; border-bottom:1px solid #394755; color:#c9d7e6;
 background:#1b232b; cursor:pointer; touch-action:none;
}
.wf3d .wf3d-drawer-handle > span:first-child { width:50px; height:5px; border-radius:8px; background:#7d92a5; }
.wf3d .wf3d-handle-caption {font-size:11px; letter-spacing:.02em;}
.wf3d .wf3d-drawer-close {top:52px; right:12px; width:40px; height:40px;}
.wf3d .wf3d-turbines .wf3d-turbine-nearest {color:#9fcef4 !important; margin:0 0 12px; font-size:12px;}
@media (max-width:600px) {
 .wf3d > .wf3d-drawer {top:40px;}
 .wf3d .wf3d-drawer .wf3d-panel {max-height:none !important; padding-bottom:40px;}
}

/* v1.8.2: selected turbine details belong in the footer, not over the map. */
.wf3d-foot-details .wf3d-selected-turbine { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; min-width:0; padding:0 0 7px; border-bottom:1px solid #465666; color:#eef5ff; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.wf3d-foot-details .wf3d-selected-turbine[hidden] { display:none !important; }
.wf3d-foot-details .wf3d-selected-turbine strong { font-weight:700; color:#fff; }
.wf3d-foot-details .wf3d-selected-turbine span { color:#cbd8e5; }
.wf3d-foot-details .wf3d-selected-turbine span::before { content:none !important; }
.wf3d .wf3d-msg[data-kind="info"] { display:none !important; }
@media(max-width:700px) { .wf3d-foot-details .wf3d-selected-turbine { font-size:11px; gap:2px 8px; padding-bottom:5px; } }

/* v1.8.3: time & weather dock below canvas, with unobstructed landscape. */
.wf3d > .wf3d-time-dock { position:relative; z-index:3; flex:0 0 auto; width:100%; box-sizing:border-box; background:#202b36; color:#eef5ff; border-block:1px solid #435568; padding:10px 14px 12px; max-height:min(42vh,340px); overflow-y:auto; }
.wf3d > .wf3d-time-dock[hidden] {display:none!important;}
.wf3d-weather-head {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;font-size:15px;}
.wf3d-weather-close {border:1px solid #5b6d80;border-radius:7px;background:#293746;color:#fff;font-size:24px;min-width:38px;min-height:38px;cursor:pointer;}
.wf3d-weather-settings {display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
.wf3d-weather-settings label {display:flex;flex:1 1 160px;align-items:center;justify-content:space-between;gap:10px;color:#f1f5f9;font-size:13px;}
.wf3d-weather-settings select {min-width:110px;max-width:190px;width:100%;padding:7px 9px;min-height:38px;color:#fff;background:#142230;border:1px solid #73869c;border-radius:7px;color-scheme:dark;}
.wf3d-weather-note {margin:8px 0 0;color:#b9c8d9;font-size:11px;}
.wf3d-weather-rain {display:none;position:absolute;inset:0;pointer-events:none!important;z-index:3;background-repeat:repeat;opacity:.32;}
.wf3d-weather-rain.wf3d-rain-light,.wf3d-weather-rain.wf3d-rain-heavy {display:block;background-image:repeating-linear-gradient(104deg,transparent 0px,transparent 46px,rgba(205,230,255,.6) 47px,transparent 48px,transparent 89px);background-size:210px 240px;animation:wf3d-rainfall .65s linear infinite;}
.wf3d-weather-rain.wf3d-rain-heavy {opacity:.65;background-size:120px 160px;animation-duration:.35s;}
@keyframes wf3d-rainfall {to {background-position:-38px 240px;}}
@media (prefers-reduced-motion:reduce){.wf3d-weather-rain {animation:none!important;}}
@media (max-width:600px){.wf3d > .wf3d-time-dock {padding:8px 10px;max-height:38vh;} .wf3d-weather-settings label {flex-basis:135px;} .wf3d-time-row {gap:6px;}}

/* v1.8.6: readable location-search text in the dark drawer. */
.wf3d .wf3d-drawer .wf3d-loc,
.wf3d .wf3d-drawer .wf3d-loc p,
.wf3d .wf3d-drawer .wf3d-loc .wf3d-loc-status { color:#e8f0f8 !important; }
.wf3d .wf3d-drawer .wf3d-loc .wf3d-loc-status.wf3d-loc-err {color:#ffb5b5 !important;}
.wf3d .wf3d-drawer .wf3d-loc label,
.wf3d .wf3d-drawer .wf3d-loc label span {color:#dde8f3 !important;}
.wf3d .wf3d-drawer .wf3d-loc input {color:#f7fbff !important; background:#18232e !important;}
.wf3d .wf3d-drawer .wf3d-loc input::placeholder {color:#aebdcb !important; opacity:1;}

/* Independent local weather canvas, does not affect aviation light code. */
.wf3d-weather-canvas{position:absolute;inset:0;z-index:3;pointer-events:none!important;display:block;}
.wf3d-weather-settings{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.wf3d-lightning-delay{width:70px;}

/* v1.8.30: responsive visual refresh of the time/weather controls only. */
.wf3d > .wf3d-time-dock { padding: 16px clamp(12px,2vw,26px) 18px; background:linear-gradient(145deg,#1a2633,#202e3c); border-block:1px solid #435568; max-height:min(56vh,480px); overflow:auto; scrollbar-width:thin; }
.wf3d .wf3d-weather-head {margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #3c4c5e;font-size:18px;letter-spacing:.01em;}
.wf3d .wf3d-weather-close {width:40px;height:40px;min-width:40px;border-radius:10px;line-height:1;font-size:24px;background:#2b3b4c;}
.wf3d .wf3d-time-section,.wf3d .wf3d-weather-section {border:1px solid #405165;background:#172331aa;border-radius:12px;padding:14px 16px;min-width:0;}
.wf3d .wf3d-weather-section {margin-top:12px;}
.wf3d .wf3d-time-section-title {font-size:11px;line-height:1.4;text-transform:uppercase;letter-spacing:.11em;color:#a9c3da;font-weight:700;margin-bottom:12px;}
.wf3d .wf3d-time-row {display:flex;flex-wrap:wrap;gap:10px;align-items:end;}
.wf3d .wf3d-time-date {display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:12px;color:#c5d4e2;min-width:0;}
.wf3d .wf3d-time-date input,.wf3d .wf3d-time-date select,.wf3d .wf3d-weather-settings select,.wf3d .wf3d-lightning-delay {box-sizing:border-box;height:42px;min-height:42px;max-width:100%;background:#263647;color:#f4f8ff;border:1px solid #52677c;border-radius:8px;padding:8px 11px;font:inherit;font-size:14px;color-scheme:dark;}
.wf3d .wf3d-time-date select {width:min(100%,290px);min-width:180px;}
.wf3d .wf3d-time-date input {min-width:145px;}
.wf3d .wf3d-time-row .wf3d-btn {height:42px;min-height:42px;border-radius:8px;padding-inline:16px;}
.wf3d .wf3d-time-label {margin-left:auto;align-self:center;font-size:clamp(22px,2.5vw,30px);font-variant-numeric:tabular-nums;color:#fff;}
.wf3d .wf3d-time-slider {margin:16px 0 7px;min-height:22px;cursor:pointer;accent-color:#f3b533;}
.wf3d .wf3d-time-scale {font-size:12px;}
.wf3d .wf3d-time-info {margin-top:10px;font-size:13px;line-height:1.5;}
.wf3d .wf3d-weather-settings {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch;margin:0;}
.wf3d .wf3d-weather-settings label {min-width:0;display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:7px;font-size:12px;color:#c5d4e2;}
.wf3d .wf3d-weather-settings select {width:100%;max-width:none;min-width:0;}
.wf3d .wf3d-weather-settings .wf3d-lightning-toggle {display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:10px 12px;background:#263647;border:1px solid #52677c;border-radius:8px;min-height:42px;box-sizing:border-box;align-self:end;color:#f4f8ff;font-size:14px;cursor:pointer;}
.wf3d .wf3d-lightning-setting {width:20px;height:20px;margin:0;accent-color:#f3b533;cursor:pointer;}
.wf3d .wf3d-lightning-delay {width:100%;min-width:0;}
.wf3d .wf3d-lightning-interval small {font-size:11px;color:#9fb4c8;}
.wf3d .wf3d-weather-note {margin:12px 0 0;font-size:12px;color:#a8bdd0;}
.wf3d .wf3d-time-dock :is(button,input,select):focus-visible {outline:2px solid #f3b533;outline-offset:3px;}
@media (max-width:900px) {.wf3d .wf3d-weather-settings {grid-template-columns:repeat(2,minmax(0,1fr));}.wf3d .wf3d-time-label {margin-left:0;}}
@media (max-width:520px) {.wf3d > .wf3d-time-dock {max-height:min(66vh,560px);padding:10px;}.wf3d .wf3d-time-section,.wf3d .wf3d-weather-section {padding:12px;}.wf3d .wf3d-time-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.wf3d .wf3d-time-date {grid-column:1/-1;}.wf3d .wf3d-time-date select,.wf3d .wf3d-time-date input {width:100%;}.wf3d .wf3d-time-row .wf3d-btn {width:100%;}.wf3d .wf3d-time-label {grid-column:1/-1;text-align:center;}.wf3d .wf3d-weather-settings {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.wf3d .wf3d-weather-settings .wf3d-lightning-toggle {font-size:12px;padding:8px;}.wf3d .wf3d-time-scale {font-size:10px;}}
@media (max-width:340px) {.wf3d .wf3d-weather-settings {grid-template-columns:minmax(0,1fr);}}

/* v1.8.31: independent left-side weather audio toggle and pre-load accessibility notice. */
.wf3d-audio-toggle { position:absolute; left:12px; bottom:12px; z-index:5; width:46px; height:46px; border:1px solid rgba(255,255,255,.4); border-radius:12px; background:rgba(16,27,41,.88); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.35); }
.wf3d-audio-toggle svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.wf3d-audio-toggle[aria-pressed="false"] { color:#b8c1cb; }
.wf3d-audio-toggle:focus-visible { outline:3px solid #79c5ff; outline-offset:3px; }
.wf3d-poster-warning { font-size:12px; line-height:1.5; text-align:left; color:#f5e6d5; background:rgba(73,42,25,.75); border:1px solid #b98c59; border-radius:7px; padding:10px 12px; margin:14px 0 8px; }

/* v1.8.45: weather controls float over the scene without changing canvas size.
   Desktop uses a right-hand panel; narrow touchscreens use a bottom sheet. */
.wf3d > .wf3d-time-dock {
  position:absolute; top:clamp(54px,9%,88px); right:12px; left:auto; bottom:auto;
  z-index:30; width:min(440px,calc(100% - 24px)); max-height:min(76%,650px);
  flex:none; overflow-y:auto; overscroll-behaviour:contain;
  box-shadow:0 12px 38px rgba(0,0,0,.48); border:1px solid #52677c;
  border-radius:12px; box-sizing:border-box;
}
@media (max-width:650px) {
 .wf3d > .wf3d-time-dock {
   top:auto; bottom:0; left:0; right:0; width:100%; max-height:min(72%,620px);
   border-radius:16px 16px 0 0; padding:12px;
   padding-bottom:max(12px,env(safe-area-inset-bottom));
 }
}

/* v1.8.46: Rain and clouds occupy a readable first row; lightning sits below. */
.wf3d .wf3d-weather-settings {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.wf3d .wf3d-weather-settings .wf3d-lightning-row {grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end;min-width:0;}
.wf3d .wf3d-weather-settings .wf3d-lightning-row > label {min-width:0;}
.wf3d .wf3d-weather-settings .wf3d-lightning-toggle {align-self:end;min-height:42px;}
.wf3d .wf3d-weather-settings .wf3d-lightning-interval {display:flex;flex-direction:column;gap:7px;}
.wf3d .wf3d-lightning-delay {width:100%;min-width:0;}
@media (max-width:380px) { .wf3d .wf3d-weather-settings {grid-template-columns:minmax(0,1fr);} .wf3d .wf3d-weather-settings .wf3d-lightning-row {grid-template-columns:minmax(0,1fr);} }

/* ObjectNow full-stage branded launch and progress UI. */
.wf3d-status.wf3d-poster,
.wf3d-status.wf3d-brand-loading {
  inset: 0; width: 100%; height: 100%; box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 28%, #233a50 0%, #14283d 45%, #071522 100%);
  overflow: hidden; color: #fff; z-index: 15;
}
.wf3d-status.wf3d-poster::before,
.wf3d-status.wf3d-brand-loading::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(145deg, transparent 52%, rgba(255,99,20,.085) 100%);
}
.wf3d-status.wf3d-poster .wf3d-poster-art { opacity: .3; height: 35%; }
.wf3d-poster-card { width: min(100%, 540px); max-width: 540px; }
.wf3d-poster-title { font-size: clamp(24px, 3vw, 38px); font-weight: 750; }
.wf3d-poster-go { background: #ff671b; border-radius: 9px; }
.wf3d-poster-go:hover { background: #e95810; }
.wf3d-brand-inner { position: relative; z-index: 1; width: min(100%, 480px); margin: auto; }
.wf3d-brand-wordmark { font-size: clamp(32px, 5vw, 54px); font-weight: 850; letter-spacing: -.055em; line-height: 1.05; }
.wf3d-brand-wordmark span { color: #fff; }
.wf3d-brand-wordmark strong { color: #ff671b; font-weight: 850; }
.wf3d-brand-subtitle { margin-top: 9px; color: #c3cfda; font-size: 12px; font-weight: 700; letter-spacing: .19em; }
.wf3d-brand-spinner { width: 42px; height: 42px; margin: 39px auto 23px; border-radius: 50%; border: 3px solid rgba(255,255,255,.16); border-top-color: #ff671b; animation: wf3d-brand-spin 1s linear infinite; }
@keyframes wf3d-brand-spin { to { transform: rotate(360deg); } }
.wf3d-brand-phase { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.wf3d-brand-track { height: 10px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.wf3d-brand-fill { height: 100%; width: 5%; background: linear-gradient(90deg,#e95510,#ff8b39); border-radius: inherit; transition: width .3s ease; }
.wf3d-brand-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: #d5dce5; font-size: 12px; text-align: left; }
.wf3d-brand-percent { color: #ff8b39; font-weight: 750; font-variant-numeric: tabular-nums; }
.wf3d-brand-foot { margin-top: 35px; font-size: 13px; letter-spacing: .045em; color: #aab8c8; }
@media (prefers-reduced-motion: reduce) { .wf3d-brand-spinner { animation: none; } .wf3d-brand-fill { transition: none; } }

/* v1.8.70: compact visible map attribution, contributor names in Help > About */
.wf3d-map-attribution{position:absolute;right:8px;bottom:8px;z-index:9;max-width:min(75%,420px);padding:2px 5px;border-radius:3px;background:rgba(15,22,31,.76);font-size:10px;line-height:1.25;pointer-events:auto}
.wf3d-map-attribution .cesium-widget-credits{font-size:10px}

/* ObjectNow application design system, v1.8.71. Presentation only: renderer untouched. */
.wf3d { --wf3d-bar:#101e30; --wf3d-bar-2:#192d43; --wf3d-line:#344b60; --wf3d-text:#f5f8fc; --wf3d-muted:#b9c9d8; --wf3d-accent:#ff671b; --wf3d-accent-2:#e95b12; border-color:#30465c; border-radius:10px; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
.wf3d-topbar { height:48px; padding:0 10px; gap:5px; background:linear-gradient(180deg,#192b3e,#101d2d); border-bottom:1px solid #3a4c60; }
.wf3d-menubtn,.wf3d-burger,.wf3d-mode,.wf3d-qbtn { min-height:38px; height:38px; padding:0 12px; font-size:13px; border-radius:8px; color:#eaf2fa; }
.wf3d-qbtn { min-width:40px; padding:0 8px; }
.wf3d-mode { background:rgba(255,103,27,.12); box-shadow:inset 0 0 0 1px rgba(255,103,27,.6); }
.wf3d-menubtn.wf3d-open,.wf3d-burger[aria-expanded="true"],.wf3d-qbtn.wf3d-on { background:rgba(255,103,27,.17); color:#fff; }
.wf3d-menubtn:focus-visible,.wf3d-burger:focus-visible,.wf3d-mode:focus-visible,.wf3d-qbtn:focus-visible,.wf3d-mi:focus-visible,.wf3d-btn:focus-visible { outline:2px solid #ff9c63; outline-offset:2px; }
.wf3d-menus { top:48px; }
.wf3d-pop { background:rgba(17,31,47,.98); border:1px solid #415b70; border-radius:12px; padding:7px; box-shadow:0 18px 45px rgba(0,0,0,.4); }
.wf3d-mi { min-height:40px; padding:8px 11px; border-radius:8px; color:#f1f6fb; }
.wf3d-mi:hover,.wf3d-mi:focus-visible { background:rgba(255,103,27,.22); color:#fff; }
.wf3d-mi-head,.wf3d-mobile .wf3d-pop-title { color:#ff9b66; }
.wf3d-mi-sep { background:#3d5368; }
.wf3d-mi-select select { min-height:40px; background:#13263b; border-color:#4a6075; }
.wf3d-btn { min-height:40px; border-radius:8px; }
.wf3d-status.wf3d-poster { background:radial-gradient(ellipse at 50% 29%,#25435e 0%,#142b43 48%,#071522 100%); padding:clamp(16px,4vw,40px); overflow:auto; }
.wf3d-status.wf3d-poster .wf3d-poster-card { width:min(100%,560px); max-width:560px; margin:auto; padding:22px 12px; text-align:center; z-index:1; }
.wf3d-poster-brand { font-size:clamp(34px,6vw,58px); line-height:1.08; font-weight:850; letter-spacing:-.06em; color:white; white-space:nowrap; }
.wf3d-poster-brand strong { color:#ff671b; font-weight:850; }
.wf3d-poster-kicker { margin:11px 0 0; font-size:11px; font-weight:750; letter-spacing:.23em; color:#c7d6e4; }
.wf3d-poster-divider { width:54px; height:3px; border-radius:4px; background:#ff671b; margin:30px auto 24px; }
.wf3d-status.wf3d-poster .wf3d-poster-title { font-size:clamp(24px,3.3vw,34px); margin:0 0 8px; font-weight:750; }
.wf3d-status.wf3d-poster .wf3d-poster-sum { font-size:14px; color:#d2dfeb; margin:0 0 24px; }
.wf3d-status.wf3d-poster .wf3d-poster-go { min-height:50px; padding:0 24px; border-radius:10px; background:#ff671b; box-shadow:0 8px 26px rgba(0,0,0,.26); font-weight:700; }
.wf3d-status.wf3d-poster .wf3d-poster-go:hover { background:#ed5911; }
.wf3d-status.wf3d-poster .wf3d-poster-warning { text-align:left; background:rgba(255,103,27,.10); border:1px solid rgba(255,151,91,.43); border-radius:10px; padding:13px 15px; margin:23px auto 0; color:#f0dfd5; font-size:12px; line-height:1.6; max-width:500px; }
.wf3d-status.wf3d-poster .wf3d-poster-note { margin:16px auto 0; max-width:480px; color:#b7c7d7; font-size:12px; }
.wf3d-poster-tagline { margin-top:28px; color:#aabed0; font-size:13px; letter-spacing:.04em; }
.wf3d-footer { background:#111e2e !important; border-color:#31475b !important; }
.wf3d-hud { background:rgba(11,25,39,.75); border:1px solid rgba(157,186,208,.23); }
.wf3d-mobile.wf3d-sheet-open .wf3d-menus { background:rgba(11,25,40,.98); }
@media (pointer:coarse) { .wf3d-menubtn,.wf3d-burger,.wf3d-mode,.wf3d-qbtn { min-height:44px; height:44px; } .wf3d-mi { min-height:48px; font-size:15px; } .wf3d-btn { min-height:44px; } }
@media (max-width:700px) { .wf3d-topbar { height:52px; padding:0 6px; } .wf3d-menus { top:52px; } .wf3d-quick { gap:2px; margin-left:0; } .wf3d-qbtn { min-width:42px; } .wf3d-mobile .wf3d-mode { max-width:38%; } .wf3d-mobile.wf3d-sheet-open .wf3d-menus { display:block; padding:12px; } .wf3d-mobile .wf3d-pop { margin:0 0 12px; padding:6px 8px; background:#172c41; border:1px solid #3b5267; border-radius:12px; } .wf3d-mobile .wf3d-pop-title { font-size:13px; padding:10px 8px; } .wf3d-status.wf3d-poster .wf3d-poster-card { padding:10px 4px; } .wf3d-poster-divider { margin:20px auto; } .wf3d-status.wf3d-poster .wf3d-poster-warning { margin-top:18px; } .wf3d-poster-tagline { margin-top:18px; } }
@media (max-width:390px) { .wf3d-poster-brand { font-size:32px; } .wf3d-poster-kicker { font-size:9px; letter-spacing:.15em; } .wf3d-status.wf3d-poster .wf3d-poster-title { font-size:23px; } }
@media (prefers-reduced-motion:reduce) { .wf3d * { scroll-behavior:auto; } }

/* v1.8.72: structured help and separate licensing panel */
.wf3d .wf3d-drawer .wf3d-help,.wf3d .wf3d-drawer .wf3d-about,.wf3d .wf3d-drawer .wf3d-licensing{box-sizing:border-box;width:100%;padding:clamp(18px,2.5vw,34px) !important;color:#eaf1f8;line-height:1.65;font-size:14px;}
.wf3d .wf3d-drawer .wf3d-about-title{color:#fff;font-size:clamp(19px,2vw,25px);line-height:1.3;font-weight:750;margin:0 56px 22px 0;padding-bottom:13px;border-bottom:1px solid #41556b;}
.wf3d .wf3d-drawer .wf3d-help-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px;}
.wf3d .wf3d-drawer .wf3d-help-cols>div,.wf3d .wf3d-drawer .wf3d-licence-grid>article{min-width:0;border:1px solid #40556a;border-radius:11px;padding:18px;background:#192a3c;}
.wf3d .wf3d-drawer .wf3d-help h4,.wf3d .wf3d-drawer .wf3d-licensing h4{font-size:13px;letter-spacing:.07em;color:#ff9c62;margin:0 0 12px;text-transform:uppercase;}
.wf3d .wf3d-drawer .wf3d-help ul{padding-left:19px;line-height:1.7;margin:0;color:#e6eef7;}
.wf3d .wf3d-drawer .wf3d-help li{margin-bottom:9px;overflow-wrap:anywhere;}
.wf3d .wf3d-drawer .wf3d-help-guidance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.wf3d .wf3d-drawer .wf3d-help-guidance p{margin:0;padding:15px 17px;border-radius:10px;background:#172737;border:1px solid #34495d;color:#e1eaf3;overflow-wrap:break-word;}
.wf3d .wf3d-drawer .wf3d-about p,.wf3d .wf3d-drawer .wf3d-licensing p{color:#e1eaf3;line-height:1.7;margin:0 0 14px;max-width:85ch;}
.wf3d .wf3d-drawer .wf3d-about .wf3d-thanks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 20px;list-style:none;padding:0;margin:16px 0 24px;max-width:850px;}
.wf3d .wf3d-drawer .wf3d-about .wf3d-thanks li{padding:11px 14px;background:#192b3d;border:1px solid #3b5064;border-radius:9px;color:#edf4fc;overflow-wrap:anywhere;}
.wf3d .wf3d-drawer .wf3d-licence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px;}
.wf3d .wf3d-drawer .wf3d-licensing a{color:#ffa26e;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
.wf3d .wf3d-drawer .wf3d-licensing a:focus-visible{outline:2px solid #ff9c62;outline-offset:3px;}
.wf3d .wf3d-drawer .wf3d-licence-note{font-size:12px;color:#bbcada;}
/* Keep required provider attribution outside the 3D map and clear of navigation controls. */
.wf3d .wf3d-footer{display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px;min-height:0;height:auto;}
.wf3d .wf3d-map-attribution{position:static !important;inset:auto !important;max-width:100%;margin:0 6px 0 auto;background:none;border:0;padding:0;font-size:10px;line-height:1.3;color:#aab9c9;z-index:auto;}
.wf3d .wf3d-map-attribution .cesium-widget-credits{font-size:10px;}
@media(max-width:1050px){.wf3d .wf3d-drawer .wf3d-help-cols{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.wf3d .wf3d-drawer .wf3d-help,.wf3d .wf3d-drawer .wf3d-about,.wf3d .wf3d-drawer .wf3d-licensing{padding:18px 14px !important;font-size:14px;}.wf3d .wf3d-drawer .wf3d-help-cols,.wf3d .wf3d-drawer .wf3d-help-guidance,.wf3d .wf3d-drawer .wf3d-licence-grid,.wf3d .wf3d-drawer .wf3d-about .wf3d-thanks{grid-template-columns:minmax(0,1fr);}.wf3d .wf3d-drawer .wf3d-about-title{margin-right:45px;}.wf3d .wf3d-map-attribution{margin:2px 6px;font-size:9px;}.wf3d .wf3d-drawer .wf3d-help-cols>div{padding:14px;}}

/* Life-size check panel. */
.wf3d-screen p { margin: 0 0 8px; color: #dcdcde; }
.wf3d-screen-bar { height: 34px; margin: 10px 0 6px; border: 2px solid #ffd54a; border-radius: 4px; box-sizing: border-box; background: repeating-linear-gradient(90deg, rgba(255,213,74,.18) 0 10px, transparent 10px 20px); max-width: none; }
.wf3d-screen-size { width: 100%; max-width: 520px; margin: 0 0 8px; }
.wf3d-screen-field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; color: #dcdcde; }
.wf3d-screen-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.wf3d-screen-bar.wf3d-upright { background: repeating-linear-gradient(180deg, rgba(255,213,74,.18) 0 10px, transparent 10px 20px); }
.wf3d .wf3d-screen-buttons .wf3d-btn { min-height: 44px; padding: 0 16px; color: #f0f5fb !important; background: #394651 !important; border: 1px solid #83919e !important; border-radius: 9px; font-weight: 600; }
.wf3d .wf3d-screen-buttons .wf3d-screen-save { background: #2c5f8a !important; border-color: #72aee6 !important; }

/* ---------- My location and live camera view (1.8.83) ---------- */
.wf3d-canvas canvas { background: #000; }
.wf3d-locate, .wf3d-livebtn {
	position: absolute; right: 13px; z-index: 3;
	width: 48px; height: 48px; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid #fff; border-radius: 50%;
	background: rgba(29, 35, 39, .55); color: #fff; cursor: pointer;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
	touch-action: manipulation;
}
.wf3d-locate { top: 72px; }
.wf3d-livebtn { top: 128px; }
.wf3d-tiny .wf3d-locate, .wf3d-tiny .wf3d-livebtn { width: 42px; height: 42px; right: 12px; }
.wf3d-tiny .wf3d-locate { top: 64px; }
.wf3d-tiny .wf3d-livebtn { top: 114px; }
.wf3d-locate svg { width: 24px; height: 24px; }
.wf3d-locate path { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; }
.wf3d-livebtn .wf3d-ico { width: 22px; height: 22px; }
.wf3d-locate.wf3d-loc-on path { fill: #fff; }
.wf3d-locate.wf3d-loc-follow { background: #0a84ff; }
.wf3d-locate.wf3d-loc-follow path { fill: #fff; }
.wf3d-locate.wf3d-loc-wait path { animation: wf3d-loc-pulse 1s ease-in-out infinite alternate; }
@keyframes wf3d-loc-pulse { from { opacity: 1; } to { opacity: .3; } }
.wf3d-locate:focus-visible, .wf3d-livebtn:focus-visible { outline: 2px solid #72aee6; outline-offset: 2px; }
.wf3d-no-compass .wf3d-locate, .wf3d-no-compass .wf3d-livebtn { top: 10px; }

.wf3d-live-on .wf3d-canvas canvas,
.wf3d-live-on .wf3d-canvas .cesium-widget,
.wf3d-live-on .wf3d-canvas .cesium-viewer { background: transparent !important; }
.wf3d-live-on .wf3d-canvas canvas { position: relative; z-index: 1; }
.wf3d-live-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #000; }
.wf3d-live-on .wf3d-nav, .wf3d-live-on .wf3d-compass, .wf3d-live-on .wf3d-locate,
.wf3d-live-on .wf3d-livebtn, .wf3d-live-on .wf3d-hud, .wf3d-live-on .wf3d-audio-toggle { display: none !important; }
.wf3d-live {
	position: absolute; inset: 0; z-index: 6; touch-action: none;
	user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
	color: #fff; font: 600 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wf3d-live-msg {
	position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
	max-width: calc(100% - 24px); padding: 7px 12px; border-radius: 18px;
	background: rgba(0, 0, 0, .55); text-align: center;
}
.wf3d-live-note {
	position: absolute; left: 12px; right: 12px; bottom: 96px;
	font-size: 12px; font-weight: 500; text-align: center; text-shadow: 0 1px 2px #000;
}
.wf3d-live-plus { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: .55; }
.wf3d-live-plus::before, .wf3d-live-plus::after {
	content: ""; position: absolute; background: #fff; border-radius: 2px; box-shadow: 0 0 3px rgba(0, 0, 0, .7);
}
.wf3d-live-plus::before { left: 21px; top: 0; width: 4px; height: 46px; }
.wf3d-live-plus::after { top: 21px; left: 0; height: 4px; width: 46px; }
.wf3d-live-ok .wf3d-live-plus { opacity: 1; }
.wf3d-live-ok .wf3d-live-plus::before, .wf3d-live-ok .wf3d-live-plus::after { background: #34c759; }
.wf3d-live-ok .wf3d-live-msg { background: rgba(28, 120, 52, .85); }
.wf3d-live-arrow {
	position: absolute; width: 0; height: 0; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7));
	animation: wf3d-live-nudge .8s ease-in-out infinite alternate;
}
.wf3d-live-arrow[hidden] { display: none; }
.wf3d-live-l { left: 14px; top: 50%; margin-top: -26px; border: 26px solid transparent; border-right: 36px solid #fff; border-left: 0; }
.wf3d-live-r { right: 14px; top: 50%; margin-top: -26px; border: 26px solid transparent; border-left: 36px solid #fff; border-right: 0; }
.wf3d-live-u { top: 58px; left: 50%; margin-left: -26px; border: 26px solid transparent; border-bottom: 36px solid #fff; border-top: 0; }
.wf3d-live-d { bottom: 130px; left: 50%; margin-left: -26px; border: 26px solid transparent; border-top: 36px solid #fff; border-bottom: 0; }
@keyframes wf3d-live-nudge { from { opacity: .55; } to { opacity: 1; } }
.wf3d-live-bar {
	position: absolute; left: 0; right: 0; bottom: 14px;
	display: flex; align-items: center; justify-content: space-around;
}
.wf3d-live-close, .wf3d-live-reset {
	min-width: 76px; padding: 9px 12px; border: 0; border-radius: 20px;
	background: rgba(0, 0, 0, .55); color: #fff; font: inherit; cursor: pointer;
}
.wf3d-live-shot {
	width: 70px; height: 70px; padding: 0; border: 4px solid #fff; border-radius: 50%;
	background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wf3d-live-shot span { display: block; width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.wf3d-live-shot:active span { transform: scale(.9); }

/* ---------- Phones and tablets: app layout, Liquid Glass (1.8.86) ---------- */
/* Keep the iOS Home Screen safe-area backdrop continuous with the app.
   Content fills the viewport; interactive controls still observe safe-area insets. */
html.wf3d-app-lock, html.wf3d-app-lock body {
	margin: 0 !important; padding: 0 !important; width: 100% !important;
	height: var(--wf3d-standalone-height, 100dvh) !important;
	min-height: var(--wf3d-standalone-height, 100dvh) !important;
	overflow: hidden !important; overscroll-behavior: none; background: var(--wf3d-app-backdrop, #0d1826) !important;
}
.wf3d.wf3d-app {
	--wf3d-safe-top: env(safe-area-inset-top, 0px);
	--wf3d-safe-bottom: env(safe-area-inset-bottom, 0px);
	--g-tint: rgba(34, 42, 54, .46);
	--g-tint-strong: rgba(28, 34, 44, .74);
	--g-edge: rgba(255, 255, 255, .17);
	--g-shine: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 0 0 1px rgba(255, 255, 255, .06);
	--g-shadow: 0 8px 28px rgba(0, 0, 0, .32);
	--g-text: #fff;
	--g-text-2: rgba(235, 240, 246, .64);
	--g-fill: rgba(255, 255, 255, .10);
	--g-fill-2: rgba(255, 255, 255, .16);
	--g-blue: #0a84ff;
	--g-gap: 8px;
	--g-bottom: calc(var(--g-gap) + var(--wf3d-safe-bottom));
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
	-webkit-tap-highlight-color: transparent;
}
.wf3d.wf3d-app-full {
	position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
	z-index: 2147482000; width: auto !important; max-width: none !important;
	/* Standalone iOS can report an inset layout viewport despite viewport-fit=cover.
	   Use the measured screen extent instead of relying on fixed bottom:0. */
	height: var(--wf3d-standalone-height, 100dvh) !important; bottom: auto !important;
	max-height: none !important; min-height: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 0 !important; background: var(--wf3d-app-backdrop, #0d1826);
}
.wf3d.wf3d-app-full .wf3d-stage { min-height: 0; }
.wf3d-app > .wf3d-topbar, .wf3d-app > .wf3d-footer, .wf3d-app .wf3d-menus,
.wf3d-app .wf3d-audio-toggle, .wf3d-app .wf3d-msg,
.wf3d-app > .wf3d-drawer, .wf3d-app > .wf3d-time-dock { display: none !important; }

/* The glass material */
.wf3d-app .wf3d-glass {
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 55%), var(--g-tint);
	-webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
	border: 1px solid var(--g-edge);
	box-shadow: var(--g-shine), var(--g-shadow);
	color: var(--g-text);
}
.wf3d-app button { font-family: inherit; }
.wf3d-app .wf3d-roundbtn {
	flex: 0 0 auto; width: 44px; height: 44px; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--g-edge); border-radius: 50%;
	background: var(--g-fill); color: var(--g-text); box-shadow: var(--g-shine); cursor: pointer;
}
.wf3d-app .wf3d-roundbtn:active, .wf3d-app .wf3d-float:active { transform: scale(.94); }

/* Floating buttons, top right */
.wf3d-app .wf3d-float {
	position: absolute; right: 12px; z-index: 5; width: 48px; height: 48px; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
	filter: none; transition: transform .15s;
}
.wf3d-app .wf3d-compass { top: calc(var(--wf3d-safe-top) + 10px); }
.wf3d-app .wf3d-compass svg { width: 40px; height: 40px; }
.wf3d-app .wf3d-compass circle { fill: none; stroke: none; }
.wf3d-app .wf3d-locate { top: calc(var(--wf3d-safe-top) + 66px); }
.wf3d-app .wf3d-livebtn { top: calc(var(--wf3d-safe-top) + 122px); color: var(--g-blue); }
.wf3d-app .wf3d-locate svg { width: 22px; height: 22px; }
.wf3d-app .wf3d-locate path { fill: none; stroke: var(--g-blue); stroke-width: 2; stroke-linejoin: round; }
.wf3d-app .wf3d-locate.wf3d-loc-on path { fill: var(--g-blue); }
.wf3d-app .wf3d-locate.wf3d-loc-follow { background: var(--g-blue); }
.wf3d-app .wf3d-locate.wf3d-loc-follow path { stroke: #fff; fill: #fff; }
.wf3d-app .wf3d-livebtn .wf3d-ico { width: 22px; height: 22px; }
.wf3d-app .wf3d-app-expand { top: calc(var(--wf3d-safe-top) + 10px); left: 12px; right: auto; }
.wf3d-app.wf3d-fade .wf3d-float { opacity: 1; }

/* Turn and tilt pad: bottom right, above the sheet */
.wf3d.wf3d-app .wf3d-nav {
	right: 12px; bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 46px); filter: none;
	transition: bottom .38s cubic-bezier(.2, .9, .25, 1), opacity .3s;
}
.wf3d-app .wf3d-pad { width: 84px; height: 84px; border-radius: 50%; }
.wf3d-app .wf3d-pad > svg > circle:first-child { fill: none; stroke: none; }
.wf3d-app .wf3d-pad > svg > circle:nth-child(2) { stroke: rgba(255, 255, 255, .22); }
.wf3d-app .wf3d-pad-knob { background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }

/* Brief messages at the top */
.wf3d-app .wf3d-toast {
	position: absolute; z-index: 9; top: calc(var(--wf3d-safe-top) + 10px); left: 12px; right: 72px;
	padding: 11px 16px; border-radius: 22px; font-size: 14px; line-height: 1.35; font-weight: 500;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	animation: wf3d-toast-in .28s cubic-bezier(.2, .9, .25, 1);
}
.wf3d-app .wf3d-toast[hidden] { display: none !important; }
@keyframes wf3d-toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.wf3d-app .wf3d-hud {
	position: absolute; left: 12px; right: auto; top: auto; bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 46px);
	background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; max-width: none;
	transition: bottom .38s cubic-bezier(.2, .9, .25, 1);
}
.wf3d-app .wf3d-exit {
	min-height: 44px; padding: 10px 18px; border-radius: 22px; font-size: 15px; font-weight: 600;
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 55%), var(--g-tint);
	-webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
	border: 1px solid var(--g-edge); box-shadow: var(--g-shine), var(--g-shadow); color: #fff;
}
.wf3d-app .wf3d-loading { color: #fff; text-shadow: 0 1px 2px #000; }
.wf3d.wf3d-app .wf3d-app-credits {
	position: absolute !important; z-index: 4 !important; top: auto !important; left: 12px !important; right: 12px !important;
	bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 6px) !important; margin: 0 !important;
	display: block !important; width: auto !important; max-width: none !important; border: 0 !important; pointer-events: none;
	font-size: 9px !important; line-height: 1.25; text-align: center; color: rgba(255, 255, 255, .82);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .9); background: none !important; padding: 0 !important;
	transition: bottom .38s cubic-bezier(.2, .9, .25, 1);
}
.wf3d-app-credits * { font-size: 9px !important; pointer-events: auto; }
.wf3d-app-credits .cesium-widget-credits { display: inline !important; }
.wf3d-app-credits a { color: inherit !important; }
.wf3d-app-credits img { max-height: 14px; }

/* Background loading note (after the view has opened) */
.wf3d-bgload {
	position: absolute; z-index: 6; left: 50%; top: calc(var(--wf3d-safe-top, 0px) + 12px); transform: translateX(-50%);
	display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 18px;
	background: rgba(16, 27, 41, .72); color: #fff; font: 500 12.5px/1.2 system-ui, -apple-system, sans-serif;
	-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .14);
	pointer-events: none; transition: opacity .5s; white-space: nowrap;
}
.wf3d-app .wf3d-bgload { top: auto; bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 46px); }
.wf3d-app .wf3d-toast:not([hidden]) ~ .wf3d-bgload { opacity: 0; }
.wf3d-bgload-out { opacity: 0; }
.wf3d-bgload-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: wf3d-spin .9s linear infinite; }
@keyframes wf3d-spin { to { transform: rotate(360deg); } }

/* The sheet */
.wf3d-app .wf3d-sheet {
	position: absolute; left: var(--g-gap); right: var(--g-gap); bottom: var(--g-bottom); z-index: 8;
	display: flex; flex-direction: column; border-radius: 32px; overflow: hidden;
	font-size: 15px; will-change: transform; user-select: none; -webkit-user-select: none;
	background: linear-gradient(170deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 40%), var(--g-tint-strong);
}
.wf3d-sheet-anim { transition: height .38s cubic-bezier(.2, .9, .25, 1); }
.wf3d-sheet-top { flex: 0 0 auto; padding: 0 10px 10px; touch-action: none; }
.wf3d-sheet-grab { display: block; width: 100%; height: 20px; padding: 0; margin: 0; border: 0; background: none; cursor: grab; }
.wf3d-sheet-grab span { display: block; width: 36px; height: 5px; margin: 7px auto 0; border-radius: 3px; background: rgba(255, 255, 255, .38); }
.wf3d-sheet-head { display: flex; align-items: center; gap: 8px; }
.wf3d-app .wf3d-search {
	flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
	height: 46px; padding: 0 6px 0 14px; margin: 0; border-radius: 23px;
	background: var(--g-fill); box-shadow: var(--g-shine); color: var(--g-text-2);
}
.wf3d-app .wf3d-search .wf3d-ico { width: 19px; height: 19px; }
.wf3d-app .wf3d-search input {
	flex: 1 1 auto; min-width: 0; height: 44px; padding: 0; margin: 0;
	border: 0 !important; outline: 0; background: none !important; box-shadow: none !important;
	color: #fff; font: 400 17px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	-webkit-appearance: none; appearance: none; user-select: text; -webkit-user-select: text;
}
.wf3d-app .wf3d-search input::placeholder { color: var(--g-text-2); opacity: 1; }
.wf3d-app .wf3d-search input::-webkit-search-cancel-button { display: none; }
.wf3d-app .wf3d-search-clear {
	flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .3); color: #1c2430; font-size: 19px; line-height: 28px; font-weight: 700;
}
.wf3d-sheet-body {
	flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
	overscroll-behavior: contain; touch-action: pan-y; padding: 0 14px 22px;
}
.wf3d-sheet[data-detent="peek"] .wf3d-sheet-body { overflow: hidden; }
.wf3d-app .wf3d-sec h4 { margin: 14px 4px 10px; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; text-transform: none; }
.wf3d-app .wf3d-sec:first-child h4, .wf3d-app .wf3d-sec[hidden] + .wf3d-sec h4 { margin-top: 6px; }

/* Views: round glass buttons */
.wf3d-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 4px; }
.wf3d-act {
	display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0;
	padding: 0; margin: 0; border: 0; background: none; color: var(--g-text); font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer;
}
.wf3d-app .wf3d-act-ico {
	width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	color: var(--g-blue); box-shadow: var(--g-shine);
	background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)), rgba(255, 255, 255, .06);
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.wf3d-act-ico .wf3d-ico { width: 25px; height: 25px; stroke-width: 1.9; }
.wf3d-act:active .wf3d-act-ico { transform: scale(.93); }

/* Quick settings: tiles, as in Control Centre */
.wf3d-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wf3d-app .wf3d-tile {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
	min-width: 0; aspect-ratio: 1 / 1; padding: 10px 9px 9px; margin: 0; border-radius: 20px; cursor: pointer; text-align: left;
	background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--g-shine);
	transition: background .2s, transform .12s;
}
.wf3d-app .wf3d-tile[hidden] { display: none; }
.wf3d-tile:active { transform: scale(.95); }
.wf3d-tile-ico {
	width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s, color .2s;
}
.wf3d-tile-ico .wf3d-ico { width: 18px; height: 18px; stroke-width: 2; }
.wf3d-tile-label { margin-top: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.15; color: #fff; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wf3d-tile-state { font-size: 11px; color: var(--g-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wf3d-app .wf3d-tile.wf3d-tile-on { background: rgba(255, 255, 255, .86); box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .18); }
.wf3d-tile-on .wf3d-tile-ico { background: var(--g-blue); color: #fff; }
.wf3d-tile-on .wf3d-tile-label { color: #111820; }
.wf3d-tile-on .wf3d-tile-state { color: rgba(17, 24, 32, .62); }

/* Grouped lists (wind farms, More, results), as iOS Settings */
.wf3d-app .wf3d-group, .wf3d-app .wf3d-results, .wf3d-app .wf3d-sec-turbine {
	border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: var(--g-shine);
}
.wf3d-app .wf3d-results { margin-top: 4px; }
.wf3d-row, .wf3d-res, .wf3d-res-none {
	position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px;
	padding: 8px 14px; margin: 0; border: 0; background: none; color: #fff; text-align: left; font: inherit; cursor: pointer;
}
.wf3d-row + .wf3d-row::before, .wf3d-res + .wf3d-res::before {
	content: ""; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: rgba(255, 255, 255, .10);
}
.wf3d-row:active, .wf3d-res:active { background: rgba(255, 255, 255, .08); }
.wf3d-row-ico, .wf3d-res-ico {
	flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center; background: var(--g-blue); color: #fff;
}
.wf3d-row-ico .wf3d-ico, .wf3d-res-ico .wf3d-ico { width: 19px; height: 19px; stroke-width: 2; }
.wf3d-row-text, .wf3d-res-text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.wf3d-row-text strong, .wf3d-res-text strong { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf3d-row-text small, .wf3d-res-text small { font-size: 13px; color: var(--g-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf3d-row-chev { flex: 0 0 8px; width: 8px; height: 8px; border: solid rgba(255, 255, 255, .38); border-width: 2px 2px 0 0; transform: rotate(45deg); margin-right: 4px; }
.wf3d-res-none { cursor: default; }
.wf3d-res-none small { white-space: normal; }
.wf3d-app .wf3d-infocard { padding: 10px 16px; font-size: 14px; color: var(--g-text-2); }
.wf3d-app .wf3d-infocard span { display: block; padding: 2px 0; }
.wf3d-app .wf3d-sec-turbine { margin-top: 6px; padding: 12px 16px; }
.wf3d-app .wf3d-sec-turbine .wf3d-selected-turbine { font-size: 14px; color: #fff; }

/* Cards (as Map Modes in Apple Maps) */
.wf3d-card-layer {
	position: absolute; inset: 0; z-index: 12; display: flex; align-items: flex-end; justify-content: center;
	padding: calc(var(--wf3d-safe-top) + 54px) var(--g-gap) var(--g-bottom); background: rgba(0, 0, 0, .22);
	animation: wf3d-fade-in .2s ease-out;
}
.wf3d-card-layer[hidden] { display: none !important; }
@keyframes wf3d-fade-in { from { opacity: 0; } to { opacity: 1; } }
.wf3d-app .wf3d-card {
	width: 100%; max-width: 560px; max-height: 100%; display: flex; flex-direction: column; border-radius: 34px; overflow: hidden;
	background: linear-gradient(170deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 40%), rgba(26, 32, 42, .88);
	animation: wf3d-card-in .34s cubic-bezier(.2, .9, .25, 1);
}
@keyframes wf3d-card-in { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.wf3d-card-head { flex: 0 0 auto; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 14px 14px 6px; }
.wf3d-card-head h3 { grid-column: 2; margin: 0; text-align: center; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.wf3d-card-head .wf3d-card-x { grid-column: 3; }
.wf3d-card-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 16px 18px; }
.wf3d-card-body > * { color: #fff; }
/* Panels inside a card: one look throughout */
.wf3d-card .wf3d-drawer, .wf3d-card .wf3d-time-dock, .wf3d-card .wf3d-panel {
	position: static !important; display: block; max-height: none !important; overflow: visible !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: #fff;
}
.wf3d-card .wf3d-panel[hidden] { display: none !important; }
.wf3d-card .wf3d-drawer-handle, .wf3d-card .wf3d-drawer-close, .wf3d-card .wf3d-weather-head,
.wf3d-card .wf3d-panel > .wf3d-about-title:first-child, .wf3d-card .wf3d-turbines > h3:first-child { display: none !important; }
.wf3d-card p, .wf3d-card li { font-size: 14px; line-height: 1.45; color: rgba(235, 240, 246, .82); }
.wf3d-card h3, .wf3d-card h4 { color: #fff; }
.wf3d-card .wf3d-time-section, .wf3d-card .wf3d-weather-section, .wf3d-card .wf3d-help-cols > div,
.wf3d-card .wf3d-licence-grid > *, .wf3d-card .wf3d-help-guidance > * {
	background: rgba(255, 255, 255, .08) !important; border: 0 !important; border-radius: 22px !important;
	box-shadow: var(--g-shine) !important; padding: 14px 16px !important; margin: 0 0 12px !important;
}
.wf3d-card .wf3d-time-section-title { color: rgba(235, 240, 246, .64) !important; font-size: 12px; letter-spacing: .04em; }
.wf3d-card select, .wf3d-card input[type="date"], .wf3d-card input[type="number"], .wf3d-card input[type="text"], .wf3d-card textarea {
	min-height: 44px; padding: 0 12px; border: 0 !important; border-radius: 12px !important;
	background: rgba(255, 255, 255, .12) !important; color: #fff !important; font-size: 16px !important; color-scheme: dark; box-shadow: none !important;
}
.wf3d-card .wf3d-btn, .wf3d-card button.wf3d-time-play, .wf3d-card button.wf3d-time-now {
	min-height: 44px; padding: 0 16px; border: 0 !important; border-radius: 22px !important;
	background: rgba(255, 255, 255, .14) !important; color: #fff !important; font-size: 15px; font-weight: 600; box-shadow: var(--g-shine) !important;
}
.wf3d-card .wf3d-btn-primary { background: var(--g-blue) !important; }
.wf3d-card input[type="range"] { accent-color: var(--g-blue); }
.wf3d-card .wf3d-pop {
	position: static !important; display: block !important; max-width: none; max-height: none; min-width: 0; overflow: visible;
	margin: 0; padding: 4px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .08); box-shadow: var(--g-shine);
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.wf3d-card .wf3d-pop-title { display: none !important; }
.wf3d-card .wf3d-mi { min-height: 48px; font-size: 16px; border-radius: 16px; color: #fff; }
.wf3d-card .wf3d-mi:hover, .wf3d-card .wf3d-mi:focus-visible { background: rgba(255, 255, 255, .10); }
.wf3d-card .wf3d-mi .wf3d-ico { width: 21px; height: 21px; flex-basis: 21px; color: var(--g-blue); opacity: 1; }
.wf3d-card .wf3d-mi[aria-checked="true"] .wf3d-mi-mark::after { color: var(--g-blue); }
.wf3d-card .wf3d-mi-head { color: rgba(235, 240, 246, .55); padding-left: 12px; }
.wf3d-card .wf3d-mi-sep { background: rgba(255, 255, 255, .10); }
.wf3d-card .wf3d-mi-select { padding: 4px 8px 6px 12px; }
.wf3d-card .wf3d-mi-select .wf3d-ico { color: var(--g-blue); }
.wf3d-card .wf3d-cardlist .wf3d-mi-select { padding: 4px 0; }
.wf3d-card .wf3d-install ol { margin: 8px 0 0 20px; padding: 0; }
.wf3d-card .wf3d-install li { margin: 6px 0; font-size: 16px; color: #fff; }

/* Live camera and tablets */
.wf3d-live-on .wf3d-sheet, .wf3d-live-on .wf3d-toast, .wf3d-live-on .wf3d-bgload { display: none !important; }
.wf3d.wf3d-live-on .wf3d-app-credits { bottom: auto !important; top: calc(var(--wf3d-safe-top) + 58px) !important; }
.wf3d-app .wf3d-live-msg { top: calc(var(--wf3d-safe-top) + 10px); }
.wf3d-app .wf3d-live-bar { bottom: calc(var(--wf3d-safe-bottom) + 14px); }
/* 1.14: replaced by the wide layout (.wf3d-w-wide), which follows the size of the view, not the screen. */
@media (min-width: 100000px) {
	.wf3d-app .wf3d-sheet { right: auto; width: 400px; }
	.wf3d.wf3d-app .wf3d-app-credits { left: 420px !important; text-align: left; bottom: calc(var(--g-bottom) + 2px) !important; }
	.wf3d.wf3d-app .wf3d-nav, .wf3d-app .wf3d-hud, .wf3d-app .wf3d-bgload { bottom: calc(var(--g-bottom) + 34px); }
	.wf3d-app .wf3d-hud { left: 420px; }
	.wf3d-card-layer { justify-content: flex-start; }
	.wf3d-app .wf3d-card { width: 400px; }
}
@media (prefers-reduced-transparency: reduce) {
	.wf3d-app .wf3d-glass, .wf3d-app .wf3d-sheet, .wf3d-app .wf3d-card { background: #1c2430 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Launch screen on phones and tablets */
.wf3d .wf3d-status.wf3d-splash {
	position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(120% 80% at 50% 35%, #1b2f47, #0d1826 70%) !important; padding: 0; margin: 0; border: 0;
}
.wf3d-splash-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wf3d-splash-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .2); }
.wf3d-splash-name { color: #fff; font: 600 17px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: -.01em; }
.wf3d .wf3d-splash-track { width: 140px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; margin: 4px 0 0; border: 0; }
.wf3d .wf3d-splash-track .wf3d-brand-fill { height: 100%; background: #fff; border-radius: 2px; transition: width .3s; }
.wf3d-app.wf3d-sheet-up .wf3d-nav, .wf3d-app.wf3d-sheet-up .wf3d-bgload { opacity: 0; pointer-events: none; }
.wf3d-app .wf3d-act:first-child .wf3d-act-ico path { fill: var(--g-blue); }
/* Switches, rows and buttons inside cards: the iOS look */
.wf3d-card input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; position: relative; flex: 0 0 auto;
	width: 51px !important; height: 31px !important; min-width: 51px; margin: 0; padding: 0; border: 0 !important; border-radius: 16px;
	background: rgba(255, 255, 255, .2) !important; cursor: pointer; transition: background .2s; outline: none; box-shadow: none !important;
}
.wf3d-card input[type="checkbox"]::before {
	content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
	background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: transform .2s cubic-bezier(.2, .9, .25, 1);
}
.wf3d-card input[type="checkbox"]:checked { background: #34c759 !important; }
.wf3d-card input[type="checkbox"]:checked::before { transform: translateX(20px); }
.wf3d-card input[type="checkbox"]::after { display: none !important; }
.wf3d-card input[type="checkbox"]:focus-visible { outline: 2px solid var(--g-blue); outline-offset: 2px; }
.wf3d-card .wf3d-turbine-row, .wf3d-card .wf3d-turbines > .wf3d-turbine-field, .wf3d-card .wf3d-lightning-toggle {
	background: rgba(255, 255, 255, .08) !important; border: 0 !important; border-radius: 22px !important;
	box-shadow: var(--g-shine) !important;
}
.wf3d-card .wf3d-turbine-go, .wf3d-card .wf3d-turbine-row button { background: var(--g-blue) !important; border: 0 !important; color: #fff !important; border-radius: 22px !important; }
.wf3d-card .wf3d-turbine-nearest { color: #64d2ff; }
.wf3d-card select { background-color: rgba(255, 255, 255, .12) !important; }

.wf3d-card .wf3d-turbine-row .wf3d-turbine-field { background: none !important; border: 0 !important; border-top: 1px solid rgba(255, 255, 255, .10) !important; border-radius: 0 !important; box-shadow: none !important; padding: 8px 0 !important; }
.wf3d-card .wf3d-turbines > .wf3d-turbine-field { padding: 12px 16px !important; }
.wf3d-card .wf3d-turbine-row { padding: 14px 16px !important; }

/* 1.8.87: zoom and height buttons on glass, beside the pad */
.wf3d.wf3d-app .wf3d-nav { display: flex; align-items: center; gap: 8px; }
.wf3d-app .wf3d-updown {
	display: flex; flex-direction: column; align-items: center; width: 46px; padding: 2px 0; border-radius: 23px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 55%), var(--g-tint);
	-webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
	border: 1px solid var(--g-edge); box-shadow: var(--g-shine), var(--g-shadow);
}
.wf3d-app .wf3d-updown button {
	width: 44px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 20px;
	display: flex; align-items: center; justify-content: center; background: none; color: #fff; cursor: pointer;
}
.wf3d-app .wf3d-updown button:active { background: rgba(255, 255, 255, .16); }
.wf3d-app .wf3d-updown-label { font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(235, 240, 246, .7); padding: 1px 0; }
.wf3d-app .wf3d-pad { background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 55%), var(--g-tint); }

/* Position on the map, where the credits were */
.wf3d-mapinfo {
	position: absolute; z-index: 4; left: 12px; right: 12px; bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 6px);
	display: flex; align-items: flex-start; gap: 7px; pointer-events: none;
	color: #fff; font: 500 11.5px/1.35 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: .005em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .35);
	transition: bottom .38s cubic-bezier(.2, .9, .25, 1);
}
.wf3d-mapinfo-credits {
	pointer-events: auto; flex: 0 0 22px; width: 22px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; color: #fff;
	background: rgba(16, 24, 36, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); cursor: pointer;
}
.wf3d-mapinfo-text { min-width: 0; }
.wf3d-mapinfo-text > div { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf3d-mapinfo-text span { display: inline; }
.wf3d-mapinfo-text span + span::before { content: "  ·  "; white-space: pre; color: rgba(255, 255, 255, .6); }
.wf3d-mapinfo-text .wf3d-readout-pos { color: rgba(255, 255, 255, .78); font-weight: 400; font-variant-numeric: tabular-nums; }
.wf3d-credits-onmap .wf3d-mapinfo { bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 34px); }
.wf3d.wf3d-app.wf3d-credits-onmap .wf3d-nav, .wf3d-app.wf3d-credits-onmap .wf3d-hud, .wf3d-app.wf3d-credits-onmap .wf3d-bgload { bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 76px); }
.wf3d-app.wf3d-sheet-up .wf3d-mapinfo { opacity: 0; }
.wf3d-live-on .wf3d-mapinfo { display: none; }
/* Credits inside the sheet */
.wf3d-app .wf3d-creditcard { padding: 12px 16px; }
.wf3d.wf3d-app .wf3d-sheet-credits {
	position: static !important; inset: auto !important; display: block !important; margin: 0 !important; padding: 0 !important;
	background: none !important; border: 0 !important; box-shadow: none !important; pointer-events: auto;
	font-size: 13px !important; line-height: 1.5; color: rgba(235, 240, 246, .78); text-align: left; text-shadow: none;
	user-select: text; -webkit-user-select: text;
}
.wf3d-app .wf3d-sheet-credits * { font-size: 13px !important; color: inherit; }
.wf3d-app .wf3d-sheet-credits a { color: #64d2ff !important; }
.wf3d-app .wf3d-sheet-credits .cesium-credit-delimiter { padding: 0 4px; }
/* 1.14: replaced by the wide layout (.wf3d-w-wide), which follows the size of the view, not the screen. */
@media (min-width: 100000px) {
	.wf3d-mapinfo { left: 420px; bottom: calc(var(--g-bottom) + 4px); }
	.wf3d-app.wf3d-sheet-up .wf3d-mapinfo { opacity: 1; }
}

/* On the map, the field of view is left out (it is in the Display card). */
.wf3d-mapinfo-text .wf3d-readout-pos span:last-child:not(:first-child) { display: none; }
/* The zoom, height and pad stay fully visible in the app layout. */
.wf3d-app .wf3d-nav, .wf3d-app.wf3d-fade .wf3d-nav, .wf3d-app.wf3d-fade .wf3d-compass { opacity: 1; }
.wf3d-app .wf3d-updown button svg { stroke: #fff; }

/* ---------- 1.8.88: wide quick settings, picture pickers, clock, wind farms card ---------- */
.wf3d-app .wf3d-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wf3d-app .wf3d-tile {
	aspect-ratio: auto; min-height: 66px; padding: 10px 12px; border-radius: 22px;
	display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; align-content: center;
}
.wf3d-app .wf3d-tile .wf3d-tile-ico { grid-row: 1 / span 2; width: 38px; height: 38px; }
.wf3d-app .wf3d-tile .wf3d-tile-ico .wf3d-ico { width: 20px; height: 20px; }
.wf3d-app .wf3d-tile .wf3d-tile-label { margin: 0; font-size: 14px; -webkit-line-clamp: 1; white-space: nowrap; display: block; text-overflow: ellipsis; align-self: end; }
.wf3d-app .wf3d-tile .wf3d-tile-state { font-size: 12.5px; align-self: start; }

/* Floating clock: under the compass and location; live camera below it. */
.wf3d-app .wf3d-clockbtn { top: calc(var(--wf3d-safe-top) + 122px); color: #fff; }
.wf3d-app .wf3d-clockbtn .wf3d-ico { width: 22px; height: 22px; }
.wf3d-app .wf3d-livebtn { top: calc(var(--wf3d-safe-top) + 178px); }
.wf3d-live-on .wf3d-clockbtn { display: none !important; }

/* Picture pickers (as Map Modes) */
.wf3d-pickers { display: none; }
.wf3d-card .wf3d-pickers { display: block; margin-bottom: 6px; }
.wf3d-picker { margin: 0 0 16px; }
.wf3d-picker-title { margin: 0 2px 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: rgba(235, 240, 246, .64); }
.wf3d-picker-row {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px;
	overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 3px 3px 2px; margin: -3px;
	scrollbar-width: none;
}
.wf3d-picker-row::-webkit-scrollbar { display: none; }
.wf3d-pick {
	display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0; margin: 0;
	border: 0; background: none; color: #fff; cursor: pointer; scroll-snap-align: start; font: inherit;
}
.wf3d-pick-art {
	display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 3px 10px rgba(0, 0, 0, .25); transition: box-shadow .15s, transform .12s;
}
.wf3d-pick-art svg { display: block; width: 100%; height: 100%; }
.wf3d-pick:active .wf3d-pick-art { transform: scale(.96); }
.wf3d-pick-on .wf3d-pick-art { box-shadow: 0 0 0 3px var(--g-blue), 0 0 0 5px rgba(10, 132, 255, .25); }
.wf3d-pick-label { font-size: 13px; font-weight: 500; text-align: center; line-height: 1.2; }
.wf3d-pick-on .wf3d-pick-label { color: #fff; font-weight: 700; }
/* The pictures replace these lists inside the card. */
.wf3d-card .wf3d-weather-settings > label, .wf3d-card .wf3d-time-date:has(.wf3d-time-lights) { display: none !important; }
.wf3d-card .wf3d-weather-settings { display: block !important; }

/* Wind farms and stages card */
.wf3d-card .wf3d-farms-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 2px 12px; }
.wf3d-card .wf3d-farms-head strong { font-size: 17px; color: #fff; }
.wf3d-card .wf3d-farms-count { font-size: 13px; color: rgba(235, 240, 246, .64); }
.wf3d-card .wf3d-farms-actions { flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wf3d-card .wf3d-farms-actions .wf3d-btn { width: 100%; min-height: 40px; }
.wf3d-card .wf3d-stages {
	display: flex !important; flex-direction: column; gap: 0; padding: 4px 0; margin: 0 0 12px !important; border-radius: 22px;
	background: rgba(255, 255, 255, .08); box-shadow: var(--g-shine); border: 0 !important;
}
.wf3d-card .wf3d-stages-label { display: block; padding: 8px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(235, 240, 246, .55); }
.wf3d-card .wf3d-stages .wf3d-chip {
	display: flex !important; align-items: center; gap: 10px; width: auto; min-height: 48px; margin: 0; padding: 6px 16px;
	border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; font-size: 15px; color: #fff;
}
.wf3d-card .wf3d-stages .wf3d-chip + .wf3d-chip { border-top: 1px solid rgba(255, 255, 255, .10) !important; }
.wf3d-card .wf3d-stages .wf3d-chip input { order: 9; margin-left: auto; }
.wf3d-card .wf3d-stages .wf3d-chip-n { order: 8; margin-left: auto; color: rgba(235, 240, 246, .55); font-size: 14px; }
.wf3d-card .wf3d-stages .wf3d-chip-n + input, .wf3d-card .wf3d-stages .wf3d-chip input { margin-left: 10px; }
.wf3d-card .wf3d-stage-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; }
.wf3d-card .wf3d-farms-search {
	width: 100%; min-height: 44px; margin: 0 0 12px; padding: 0 14px; border: 0 !important; border-radius: 22px !important;
	background: rgba(255, 255, 255, .12) !important; color: #fff !important; font-size: 16px; box-shadow: var(--g-shine) !important;
}
.wf3d-card .wf3d-farms-search::placeholder { color: rgba(235, 240, 246, .55); }
.wf3d-card .wf3d-farms-list {
	list-style: none; margin: 0; padding: 0; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: var(--g-shine);
}
.wf3d-card .wf3d-farms-list li {
	display: grid !important; grid-template-columns: minmax(0, 1fr); grid-template-areas: "lab" "meta" "acts"; gap: 4px;
	margin: 0; padding: 12px 16px 14px; border: 0 !important; border-radius: 0; background: none !important;
}
.wf3d-card .wf3d-farms-list li + li { border-top: 1px solid rgba(255, 255, 255, .10) !important; }
.wf3d-card .wf3d-farms-list li[hidden] { display: none !important; }
.wf3d-card .wf3d-farms-list li > label { grid-area: lab; display: flex !important; align-items: center; gap: 12px; min-width: 0; margin: 0; cursor: pointer; }
.wf3d-card .wf3d-farms-list li > label input { order: 9; margin-left: auto; }
.wf3d-card .wf3d-swatch { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.wf3d-card .wf3d-farm-name { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf3d-card .wf3d-farm-meta { grid-area: meta; display: block; margin: 0 0 6px 24px; font-size: 13px; color: rgba(235, 240, 246, .62); }
.wf3d-card .wf3d-farm-acts { grid-area: acts; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 0 24px; }
.wf3d-card .wf3d-farm-acts .wf3d-btn {
	width: 100%; min-height: 34px !important; height: 34px; padding: 0 8px !important; border-radius: 17px !important;
	font-size: 14px !important; font-weight: 600; background: rgba(255, 255, 255, .12) !important; color: #fff !important;
}
.wf3d-card .wf3d-farm-acts .wf3d-btn[aria-pressed="true"] { background: rgba(10, 132, 255, .28) !important; color: #8ccaff !important; box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .6) !important; }
.wf3d-card .wf3d-farm-acts .wf3d-goto { background: var(--g-blue) !important; }
.wf3d-card .wf3d-farms-list li.wf3d-stage-off { opacity: .45; }
/* Tile names in full (two lines where needed) */
.wf3d-app .wf3d-tile .wf3d-tile-label { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; line-height: 1.15; }
.wf3d-app .wf3d-tile { min-height: 70px; }
/* Room for the selected outline */
.wf3d-picker-row { padding: 6px; margin: -6px; }
/* Wind farms card alignment */
.wf3d-card .wf3d-farm-meta { padding: 0 !important; text-align: left !important; margin-left: 24px !important; }
.wf3d-card .wf3d-farms-search { max-width: none !important; box-sizing: border-box; }

/* 1.8.90: the whole sheet can be dragged up and down. Below full height the
   browser leaves every swipe to the sheet; at full height the list scrolls,
   and the sheet takes over once the list is back at the top. */
.wf3d-app .wf3d-sheet-top, .wf3d-app .wf3d-sheet-top *,
.wf3d-app .wf3d-sheet:not([data-detent="full"]), .wf3d-app .wf3d-sheet:not([data-detent="full"]) * { touch-action: none !important; }
.wf3d-app .wf3d-sheet[data-detent="full"] .wf3d-sheet-body, .wf3d-app .wf3d-sheet[data-detent="full"] .wf3d-sheet-body * { touch-action: pan-y !important; }
.wf3d-app .wf3d-sheet[data-detent="full"] .wf3d-sheet-body input[type=range] { touch-action: none !important; }
.wf3d-app .wf3d-search input:not(:focus) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* 1.8.93: 3D or 2D button, bottom left above the sheet (as in Apple Maps). */
.wf3d-app .wf3d-dimbtn {
	top: auto; right: auto; left: 12px; bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 46px);
	width: 52px; height: 52px; color: #fff; font: 600 17px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: .01em;
	transition: bottom .38s cubic-bezier(.2, .9, .25, 1), opacity .3s;
}
.wf3d-app.wf3d-credits-onmap .wf3d-dimbtn { bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 76px); }
.wf3d-app.wf3d-sheet-up .wf3d-dimbtn, .wf3d-live-on .wf3d-dimbtn { opacity: 0; pointer-events: none; }
/* 1.14: replaced by the wide layout (.wf3d-w-wide), which follows the size of the view, not the screen. */
@media (min-width: 100000px) {
	.wf3d-app .wf3d-dimbtn, .wf3d-app.wf3d-credits-onmap .wf3d-dimbtn { left: 420px; bottom: calc(var(--g-bottom) + 34px); }
	.wf3d-app.wf3d-sheet-up .wf3d-dimbtn { opacity: 1; pointer-events: auto; }
}

/* 1.8.94: print at true scale (photo editor) */
.wf3dp-print { background: var(--p-bar); border: 1px solid var(--p-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: #dcdcde; }
.wf3dp-print b { color: #fff; }
.wf3dp-print p { margin: 4px 0 8px; color: var(--p-muted); }
.wf3dp-print-row { display: flex; gap: 8px; }
.wf3dp-print-row select { flex: 0 0 90px; min-height: 42px; border-radius: 8px; border: 1px solid var(--p-line); background: #1d2327; color: #fff; padding: 0 8px; }
.wf3dp-print .wf3dp-print-note { margin: 8px 0 0; color: #dcdcde; }
.wf3d-livewx { margin: 0 0 10px; }
.wf3d-livewx-status { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; opacity: .9; }
.wf3d-livewx-status:empty { display: none; }

/* 1.8.96: performance questions and device summary */
.wf3d-perfask { position: absolute; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 10, 18, .55); }
.wf3d-perfask-card { max-width: 380px; width: 100%; padding: 18px 18px 14px; border-radius: 22px; color: #fff; background: rgba(22, 32, 46, .92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.wf3d-perfask-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; color: #fff; }
.wf3d-perfask-card p { margin: 0 0 8px; }
.wf3d-perfask-small { font-size: 12.5px; opacity: .75; }
.wf3d-perfask-btns { display: flex; gap: 8px; margin-top: 12px; }
.wf3d-perfask-btns .wf3d-btn { flex: 1; min-height: 44px; border-radius: 14px; font-weight: 600; }
.wf3d-perfask-no { background: #0a84ff !important; color: #fff !important; border: 0 !important; }
.wf3d-perfask-yes { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 0 !important; }
.wf3d-perf-info { padding: 4px 14px 10px; font-size: 12.5px; line-height: 1.4; opacity: .8; max-width: 340px; }
.wf3d-lost .wf3d-perfask-yes { background: #0a84ff !important; }
/* 1.8.97: the close button shows only while the menu is raised. */
.wf3d-app .wf3d-sheet[data-detent="peek"] .wf3d-sheet-x { display: none !important; }
/* Performance questions: always light text on the dark card. */
.wf3d .wf3d-perfask-card, .wf3d .wf3d-perfask-card p, .wf3d .wf3d-perfask-card .wf3d-perfask-text { color: #f2f5f8 !important; }
.wf3d .wf3d-perfask-card h3 { color: #ffffff !important; }
.wf3d .wf3d-perfask-card .wf3d-perfask-small { color: rgba(242, 245, 248, .78) !important; opacity: 1; }
.wf3d .wf3d-perfask-card { background: rgba(22, 32, 46, .96); }
.wf3d .wf3d-perfask-btns .wf3d-btn:focus { outline: none; box-shadow: none; }
.wf3d .wf3d-perfask-btns .wf3d-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 1.8.98: "Loading" note while moving to a new place or view */
.wf3d-travel { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(9, 15, 24, .82); opacity: 1; transition: opacity .3s ease; pointer-events: auto; }
.wf3d-travel[hidden] { display: none; }
.wf3d-travel-out { opacity: 0; pointer-events: none; }
.wf3d-travel-card { display: flex; align-items: center; gap: 10px; max-width: calc(100% - 48px); padding: 12px 18px 12px 14px; border-radius: 22px; color: #fff; font: 500 15px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; background: rgba(28, 40, 56, .9); box-shadow: 0 8px 30px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.wf3d-travel-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf3d-travel .wf3d-bgload-spin { flex: 0 0 auto; width: 16px; height: 16px; }
/* Back to overview: top left in the app layout, clear of the bottom controls. */
.wf3d-app .wf3d-stage > .wf3d-exit, .wf3d-app > .wf3d-exit { position: absolute; z-index: 6; top: calc(var(--wf3d-safe-top) + 10px); left: 12px; right: auto; bottom: auto; }
.wf3d-app:not(.wf3d-app-full) .wf3d-exit { left: 72px; }
.wf3d-app.wf3d-has-expand .wf3d-exit { left: 72px; }
/* Messages move down while the button is there. */
.wf3d-app.wf3d-in-ground .wf3d-toast { top: calc(var(--wf3d-safe-top) + 64px); }
.wf3d-app.wf3d-sheet-up .wf3d-exit { opacity: 0; pointer-events: none; }

/* 1.8.99: viewer name and version */
.wf3d-engine { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(127, 127, 127, .1); }
.wf3d-engine p { margin: 0 0 4px; }
.wf3d-engine-ver { font-size: .85em; opacity: .75; margin-left: 4px; }
.wf3d-engine-line { margin: 0 0 8px; font-size: 12.5px; line-height: 1.4; opacity: .85; }
.wf3d-travel.wf3d-travel-passive { pointer-events: none; background: rgba(9, 15, 24, .55); }
/* 1.9.0: engine line, always readable on the dark menu */
.wf3d-app .wf3d-engine-line, .wf3d .wf3d-sheet .wf3d-engine-line { color: rgba(255, 255, 255, .86) !important; opacity: 1; }
.wf3d-app .wf3d-engine-line b { color: #fff; letter-spacing: .04em; }
.wf3d-app .wf3d-card .wf3d-engine, .wf3d-app .wf3d-card .wf3d-engine p { color: rgba(255, 255, 255, .9) !important; }
.wf3d-engine-name strong { letter-spacing: .05em; }

/* The read-out wraps onto further lines on narrow screens instead of being
   cut off. Each item is its own block in the line, so every browser
   (Safari included) can break between them; the separator goes at the end
   of a line rather than the start of the next. A very long item wraps too. */
.wf3d-mapinfo-text .wf3d-readout-main,
.wf3d-mapinfo-text .wf3d-readout-pos { white-space: normal; overflow: visible; text-overflow: clip; max-width: 100%; }
.wf3d-mapinfo-text .wf3d-readout-main span,
.wf3d-mapinfo-text .wf3d-readout-pos span { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.wf3d-mapinfo-text .wf3d-readout-main span + span::before,
.wf3d-mapinfo-text .wf3d-readout-pos span + span::before { content: none; }
.wf3d-mapinfo-text .wf3d-readout-main span:not(:last-child)::after,
.wf3d-mapinfo-text .wf3d-readout-pos span:not(:last-child)::after { content: "\00a0\00b7"; margin-right: .45em; color: rgba(255, 255, 255, .6); }
.wf3d-mapinfo-text { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.wf3d-mapinfo-text .wf3d-readout-pos span:nth-last-child(2)::after { content: none; } /* The field of view after it is hidden. */
@media all {
	.wf3d.wf3d-app .wf3d-nav, .wf3d-app .wf3d-hud, .wf3d-app .wf3d-bgload, .wf3d-app .wf3d-dimbtn { bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 46px + var(--wf3d-info-extra, 0px)); }
	.wf3d.wf3d-app.wf3d-credits-onmap .wf3d-nav, .wf3d-app.wf3d-credits-onmap .wf3d-hud, .wf3d-app.wf3d-credits-onmap .wf3d-bgload, .wf3d-app.wf3d-credits-onmap .wf3d-dimbtn { bottom: calc(var(--wf3d-sheet, 76px) + var(--g-bottom) + 76px + var(--wf3d-info-extra, 0px)); }
}

/* Messages over the map show in full (no cut-off after three lines); a very long one scrolls. */
.wf3d-app .wf3d-toast { display: block !important; -webkit-line-clamp: unset; line-clamp: none; overflow: auto; max-height: 40vh; }

/* Start screen (before the 3D view loads): a dusk landscape under a frosted glass card. */
.wf3d-status.wf3d-poster.wf3d-poster2 {
	position: absolute; inset: 0; display: flex !important; align-items: flex-end; justify-content: center;
	padding: clamp(16px, 4vw, 40px); padding-bottom: max(clamp(16px, 4vw, 40px), env(safe-area-inset-bottom)); overflow: auto; background: #0b1a2e !important; text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
}
.wf3d-status.wf3d-poster.wf3d-poster2::before { display: none !important; }
.wf3d-p2-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 520px) { .wf3d-poster2 .wf3d-p2-warn { font-size: 11.5px; padding: 9px 11px; } .wf3d-poster2 .wf3d-poster-title { margin: 6px 0 10px; } .wf3d-p2-chips { margin-bottom: 16px; } }
.wf3d-p2-card {
	position: relative; z-index: 1; width: min(100%, 460px); margin: auto auto 0; padding: 22px 20px 16px; border-radius: 28px; color: #fff;
	background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05) 55%), rgba(16, 28, 44, .38);
	-webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
	border: 1px solid rgba(255, 255, 255, .26);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 50px rgba(0, 0, 0, .35);
}
.wf3d-p2-brand { font-size: 15px; font-weight: 850; letter-spacing: -.02em; color: #fff; }
.wf3d-p2-brand strong { color: #ff7a33; font-weight: 850; }
.wf3d-poster2 .wf3d-poster-title { margin: 10px 0 12px; font-size: clamp(26px, 6vw, 34px); font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1.12; }
.wf3d-p2-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 20px; }
.wf3d-p2-chip {
	padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.wf3d-poster2 .wf3d-p2-go {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px;
	border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); cursor: pointer;
	font: 650 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: #fff; letter-spacing: .01em;
	background: linear-gradient(180deg, rgba(255, 150, 90, .95), rgba(242, 98, 29, .92));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 10px 28px rgba(242, 98, 29, .45);
	transition: transform .15s, box-shadow .15s;
}
.wf3d-poster2 .wf3d-p2-go:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 34px rgba(242, 98, 29, .55); background: linear-gradient(180deg, rgba(255, 160, 100, 1), rgba(242, 98, 29, 1)); }
.wf3d-poster2 .wf3d-p2-go:active { transform: scale(.98); }
.wf3d-poster2 .wf3d-p2-go:focus-visible { outline: 3px solid #9fd0ff; outline-offset: 3px; }
.wf3d-p2-lead { margin: 14px 0 0; font-size: 13px; color: rgba(235, 242, 250, .85); }
.wf3d-poster2 .wf3d-p2-warn {
	margin: 16px 0 0; padding: 11px 13px; border-radius: 16px; text-align: left; font-size: 12px; line-height: 1.5; color: #f6e7dc;
	background: rgba(60, 26, 10, .35); border: 1px solid rgba(255, 170, 120, .35);
}
.wf3d-p2-foot { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: 11.5px; color: rgba(225, 233, 242, .7); letter-spacing: .02em; }

/* Time and weather on phones (1.12.0): grouped rows as in iOS Settings.
   Label on the left, control on the right, every row the same height,
   and nothing wider than the card. */
.wf3d-card .wf3d-time-row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 10px !important; align-items: center !important; }
.wf3d-card .wf3d-time-row > .wf3d-time-date:first-child {
	grid-column: 1 / -1 !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important;
	gap: 12px !important; min-height: 52px; margin: 0 !important; padding: 4px 4px 4px 16px !important; box-sizing: border-box;
	background: rgba(255, 255, 255, .08); border-radius: 16px; font-size: 16px !important; color: #fff !important;
}
.wf3d-card .wf3d-time-row > .wf3d-time-date:first-child > span { flex: 0 0 auto; }
.wf3d-card .wf3d-time-row > .wf3d-time-date:first-child input {
	flex: 0 1 auto !important; width: auto !important; min-width: 0 !important; max-width: 64% !important; height: 44px !important; min-height: 44px !important;
	-webkit-appearance: none; appearance: none; margin: 0 !important; padding: 0 14px !important; text-align: center; line-height: 44px; box-sizing: border-box;
}
.wf3d-card input[type="date"]::-webkit-date-and-time-value { text-align: center; margin: 0; }
.wf3d-card .wf3d-time-row .wf3d-btn { width: 100% !important; height: 44px !important; min-height: 44px !important; padding: 0 12px !important; font-size: 16px !important; margin: 0 !important; }
.wf3d-card .wf3d-time-row .wf3d-time-label { grid-column: 1 / -1 !important; text-align: center !important; margin: 4px 0 0 !important; }
.wf3d-card .wf3d-time-scale { font-size: 11px !important; }
.wf3d-card .wf3d-weather-settings { display: flex !important; flex-direction: column !important; gap: 10px !important; }
.wf3d-card .wf3d-weather-settings .wf3d-lightning-row { display: flex !important; flex-direction: column !important; gap: 10px !important; }
.wf3d-card .wf3d-livewx .wf3d-lightning-toggle, .wf3d-card .wf3d-weather-settings .wf3d-lightning-toggle, .wf3d-card .wf3d-lightning-interval {
	display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important;
	gap: 12px !important; width: 100% !important; min-height: 52px !important; margin: 0 !important; padding: 4px 10px 4px 16px !important; box-sizing: border-box !important;
	background: rgba(255, 255, 255, .08) !important; border: 0 !important; border-radius: 16px !important; box-shadow: none !important;
	font-size: 16px !important; font-weight: 400 !important; color: #fff !important; align-self: stretch !important;
}
.wf3d-card .wf3d-lightning-toggle > span, .wf3d-card .wf3d-lightning-interval > span { flex: 1 1 auto; min-width: 0; text-align: left; }
.wf3d-card .wf3d-lightning-interval small { font-size: 13px !important; color: rgba(235, 240, 246, .6) !important; }
.wf3d-card .wf3d-lightning-toggle input[type="checkbox"] { flex: 0 0 51px !important; margin: 0 !important; }
.wf3d-card .wf3d-lightning-interval .wf3d-lightning-delay { flex: 0 0 76px !important; width: 76px !important; height: 40px !important; min-height: 40px !important; padding: 0 8px !important; text-align: center; margin: 0 !important; }
.wf3d-card .wf3d-livewx-status { margin: 10px 2px 2px !important; }
.wf3d-card .wf3d-turbine-field select { max-width: 60%; }
.wf3d-card .wf3d-weather-settings, .wf3d-card .wf3d-weather-settings .wf3d-lightning-row { height: auto !important; min-height: 0 !important; flex: 0 0 auto !important; }
.wf3d-card .wf3d-weather-settings .wf3d-lightning-row > label, .wf3d-card .wf3d-livewx > label { flex: 0 0 auto !important; height: auto !important; }
.wf3d-shot-deliver { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; width: 100%; }
.wf3d-shot-deliver[hidden] { display: none !important; }
.wf3d-shot-deliver > * { flex: 1 1 140px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }

/* Debug panel (hidden until switched on). */
.wf3d-debug-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.wf3d-debug-btns .wf3d-btn { flex: 1 1 140px; min-height: 44px; }
.wf3d-debug-pick { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.wf3d-debug-pick select { flex: 1 1 auto; min-width: 0; min-height: 40px; }
.wf3d-debug-out { max-height: 46vh; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(0, 0, 0, .35); color: #e8eef5; border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; user-select: text; -webkit-user-select: text; }
.wf3d-debug-hide { width: 100%; min-height: 44px; }
.wf3d-debug-sent:empty { display: none; }
.wf3d-engine { cursor: default; -webkit-tap-highlight-color: transparent; }


/* 1.14: Quick settings and Map style buttons, under Time and weather. */
.wf3d-app .wf3d-qsbtn { top: calc(var(--wf3d-safe-top) + 178px); color: #fff; }
.wf3d-app .wf3d-mapbtn { top: calc(var(--wf3d-safe-top) + 234px); color: #fff; }
.wf3d-app .wf3d-qsbtn .wf3d-ico, .wf3d-app .wf3d-mapbtn .wf3d-ico { width: 22px; height: 22px; }
.wf3d-live-on .wf3d-qsbtn, .wf3d-live-on .wf3d-mapbtn { display: none !important; }
.wf3d-mapstyle .wf3d-picker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wf3d-mapstyle .wf3d-pick-art svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.wf3d-mapstyle .wf3d-pick { width: auto; }
.wf3d-mapstyle .wf3d-pick-label { white-space: normal; text-align: center; line-height: 1.25; }
.wf3d-mapstyle-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.wf3d-card .wf3d-mapstyle-sw { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px 10px 4px 16px !important; border-radius: 16px !important; font-size: 16px; color: #fff; box-sizing: border-box; }
.wf3d-card .wf3d-mapstyle-sw > span { flex: 1 1 auto; min-width: 0; }

/* 1.14: the wide layout (tablets on their side, laptops and desktops, and
   views wide enough on a page), as Apple Maps on a Mac: the search and
   menu in a panel on the left from the top, the map controls down the
   right, the position along the bottom, and cards opening on the left. */
.wf3d-app.wf3d-w-wide { --wf3d-side: min(360px, 40%); }
.wf3d-app.wf3d-w-wide .wf3d-sheet { left: 12px; right: auto; top: calc(var(--wf3d-safe-top) + 12px); bottom: auto; width: var(--wf3d-side); border-radius: 26px; }
.wf3d-app.wf3d-w-wide .wf3d-dimbtn { top: calc(var(--wf3d-safe-top) + 290px); bottom: auto !important; right: 12px; left: auto !important; width: 48px; height: 48px; font-size: 15px; }
.wf3d-app.wf3d-w-wide.wf3d-sheet-up .wf3d-dimbtn { opacity: 1; pointer-events: auto; }
.wf3d-app.wf3d-w-wide .wf3d-app-expand { left: auto; right: 12px; top: calc(var(--wf3d-safe-top) + 346px); }
.wf3d-app.wf3d-w-wide:not(.wf3d-has-dim) .wf3d-app-expand { top: calc(var(--wf3d-safe-top) + 290px); }
.wf3d-app.wf3d-w-wide .wf3d-card-layer { align-items: flex-start; justify-content: flex-start; padding: calc(var(--wf3d-safe-top) + 12px) 12px 12px; background: none; pointer-events: none; }
.wf3d-app.wf3d-w-wide .wf3d-card { pointer-events: auto; width: min(400px, 44%); max-width: none; max-height: 100%; border-radius: 26px; }
.wf3d.wf3d-app.wf3d-w-wide .wf3d-nav, .wf3d.wf3d-app.wf3d-w-wide.wf3d-credits-onmap .wf3d-nav { right: 12px; bottom: 12px !important; }
.wf3d-app.wf3d-w-wide .wf3d-mapinfo, .wf3d-app.wf3d-w-wide.wf3d-credits-onmap .wf3d-mapinfo { left: calc(var(--wf3d-side) + 24px); right: 230px; bottom: 14px; }
.wf3d-app.wf3d-w-wide.wf3d-credits-onmap .wf3d-mapinfo { bottom: 36px; }
.wf3d-app.wf3d-w-wide.wf3d-sheet-up .wf3d-mapinfo { opacity: 1; }
.wf3d-app.wf3d-w-wide .wf3d-hud, .wf3d-app.wf3d-w-wide.wf3d-credits-onmap .wf3d-hud { left: calc(var(--wf3d-side) + 24px); bottom: calc(14px + 36px + var(--wf3d-info-extra, 0px)) !important; }
.wf3d-app.wf3d-w-wide .wf3d-bgload, .wf3d-app.wf3d-w-wide.wf3d-credits-onmap .wf3d-bgload { top: calc(var(--wf3d-safe-top) + 14px); bottom: auto !important; left: calc(50% + var(--wf3d-side) / 2 - 30px); }
.wf3d-app.wf3d-w-wide .wf3d-toast { left: calc(var(--wf3d-side) + 24px); right: 72px; }
.wf3d-app.wf3d-w-wide .wf3d-stage > .wf3d-exit, .wf3d-app.wf3d-w-wide > .wf3d-exit, .wf3d-app.wf3d-w-wide:not(.wf3d-app-full) .wf3d-exit { left: calc(var(--wf3d-side) + 24px); }
.wf3d-app.wf3d-w-wide.wf3d-sheet-up .wf3d-exit { opacity: 1; pointer-events: auto; }
.wf3d.wf3d-app.wf3d-w-wide .wf3d-app-credits { left: calc(var(--wf3d-side) + 24px) !important; right: 230px !important; bottom: 4px !important; text-align: left; }
.wf3d-mapstyle .wf3d-pick-art { display: block; width: 100%; height: auto !important; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; }
.wf3d-mapstyle .wf3d-pick-art svg { width: 100%; height: 100%; }
/* 1.14: tile labels and states are never cut short: they wrap instead. */
.wf3d-app .wf3d-tile .wf3d-tile-label, .wf3d-app .wf3d-tile .wf3d-tile-state {
	white-space: normal !important; overflow: visible !important; text-overflow: clip !important; display: block !important;
	-webkit-line-clamp: unset !important; line-clamp: none !important; overflow-wrap: anywhere; max-width: 100%;
}
.wf3d-app .wf3d-tile { height: auto !important; min-height: 70px; aspect-ratio: auto !important; }

/* 1.14: a card replaces the menu while it is open (no menu showing through it). */
.wf3d-app.wf3d-card-open .wf3d-sheet { visibility: hidden; }
/* Menu rows: titles and descriptions wrap instead of being cut short. */
.wf3d-app .wf3d-row-text strong, .wf3d-app .wf3d-row-text small, .wf3d-app .wf3d-res-text strong, .wf3d-app .wf3d-res-text small {
	white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere;
}
/* Picture choices wrap onto a second row instead of running off the side. */
.wf3d-picker-row { grid-auto-flow: row !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto !important; overflow: visible !important; }
.wf3d-mapstyle .wf3d-picker-row { grid-template-columns: 1fr 1fr; }
.wf3d-pick-label { max-width: 100%; text-align: center; overflow-wrap: anywhere; }

/* 1.14: wide but short (a phone on its side, a short window): smaller map
   buttons down the right, and the turn pad and zoom moved left of them. */
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-float { width: 40px; height: 40px; }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-compass { top: calc(var(--wf3d-safe-top) + 8px); }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-compass svg { width: 34px; height: 34px; }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-locate { top: calc(var(--wf3d-safe-top) + 54px); }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-livebtn, .wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-clockbtn { top: calc(var(--wf3d-safe-top) + 100px); }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-qsbtn { top: calc(var(--wf3d-safe-top) + 146px); }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-mapbtn { top: calc(var(--wf3d-safe-top) + 192px); }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-dimbtn { top: calc(var(--wf3d-safe-top) + 238px); font-size: 14px; }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-app-expand { top: calc(var(--wf3d-safe-top) + 284px); }
.wf3d-app.wf3d-w-wide.wf3d-w-short:not(.wf3d-has-dim) .wf3d-app-expand { top: calc(var(--wf3d-safe-top) + 238px); }
.wf3d.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-nav { right: 62px; bottom: 10px !important; }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-mapinfo { right: 250px; bottom: 10px; }
/* The turn pad and zoom step aside while the menu is raised, even after the
   controls have faded back in (phones and narrow views). */
.wf3d.wf3d-app.wf3d-sheet-up:not(.wf3d-w-wide) .wf3d-nav { opacity: 0 !important; pointer-events: none !important; }
.wf3d-app.wf3d-w-wide.wf3d-w-short .wf3d-mapinfo { right: 276px; }
.wf3d-app.wf3d-w-wide .wf3d-card { position: absolute; left: 12px; top: calc(var(--wf3d-safe-top) + 12px); max-height: calc(100% - var(--wf3d-safe-top) - 24px); }
.wf3d-picker-row { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); }
.wf3d-mapstyle .wf3d-picker-row { grid-template-columns: 1fr 1fr; }
.wf3d-app.wf3d-w-wide .wf3d-card { margin: 0 !important; transform: none; top: calc(var(--wf3d-safe-top, 0px) + 12px); bottom: auto; max-height: calc(100% - var(--wf3d-safe-top, 0px) - 24px) !important; }
/* Shadow flicker line under the position. */
.wf3d-flicker-line { margin-top: 3px; white-space: normal !important; color: #ffe08a; font-weight: 600; }
.wf3d-flicker-line[hidden] { display: none !important; }
.wf3d:not(.wf3d-app) .wf3d-flicker-line { font-size: 12px; }

/* Build 2: catalogue selection. Lightweight UI; no Cesium scene exists until
   the visitor selects a wind farm. Scoped to this plugin only. */
.wf3d .wf3d-catalogue { position:absolute; inset:0; z-index:35; display:flex; justify-content:center; align-items:stretch; padding:clamp(8px,2vw,24px); background:linear-gradient(150deg,#19344b,#0a1725); color:#fff; box-sizing:border-box; }
.wf3d .wf3d-catalogue-card { width:min(100%,650px); display:flex; flex-direction:column; min-height:0; padding:clamp(10px,3vw,25px); border-radius:24px; background:rgba(45,60,76,.94); border:1px solid rgba(255,255,255,.23); box-sizing:border-box; }
.wf3d .wf3d-catalogue-card h2 { margin:0 0 4px; font-size:clamp(21px,3.5vw,29px); color:#fff; text-align:center; }
.wf3d .wf3d-catalogue-card p { margin:0 0 12px; color:#bdc9d5; text-align:center; font-size:14px; }
.wf3d .wf3d-catalogue-card input[type=search] { box-sizing:border-box; width:100%; flex:none; min-height:46px; padding:10px 16px; border:1px solid rgba(255,255,255,.20); border-radius:24px; color:#fff; background:rgba(255,255,255,.08); font:inherit; outline-offset:3px; }
.wf3d .wf3d-catalogue-card input::placeholder { color:#c4cbd4; }
.wf3d .wf3d-catalogue-card .wf3d-catalogue-notice { margin:8px 0; min-height:18px; color:#f6ddbd; font-size:13px; }
.wf3d .wf3d-catalogue-list { flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; border-radius:14px; }
.wf3d .wf3d-catalogue-item { display:flex; align-items:center; width:100%; gap:12px; min-height:72px; padding:9px 12px; text-align:left; font:inherit; color:#fff; border:0; border-bottom:1px solid rgba(255,255,255,.15); background:transparent; cursor:pointer; }
.wf3d .wf3d-catalogue-item:focus-visible { outline:2px solid #7dbbff; outline-offset:-2px; }
.wf3d .wf3d-catalogue-item:hover { background:rgba(255,255,255,.07); }
.wf3d .wf3d-catalogue-item:disabled { opacity:.65; cursor:wait; }
.wf3d .wf3d-catalogue-icon { display:grid; place-items:center; border-radius:11px; background:#168af5; color:white; font-size:25px; width:45px; height:45px; flex:0 0 45px; }
.wf3d .wf3d-catalogue-words { display:flex; flex-direction:column; min-width:0; flex:1; }
.wf3d .wf3d-catalogue-words strong { color:white; font-weight:650; font-size:16px; line-height:1.3; }
.wf3d .wf3d-catalogue-words small { color:#b3becb; font-size:13px; line-height:1.4; }
.wf3d .wf3d-catalogue-item > span:last-child { color:#a5b0bd; font-size:30px; }

/* Build 6: in-view containment catalogue and controlled loading overlay. */
.wf3d .wf3d-zone-picker { z-index:75; background:rgba(9,19,32,.74); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
.wf3d .wf3d-zone-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.wf3d .wf3d-zone-heading h2 { flex:1; text-align:left; }
.wf3d .wf3d-zone-heading .wf3d-btn { flex:none; min-height:38px; }
.wf3d .wf3d-zone-open { display:inline-flex; justify-content:center; align-items:center; padding:6px 14px; border:1px solid rgba(255,255,255,.28); border-radius:20px; background:rgba(50,72,97,.65); color:#fff; font:600 12px system-ui,sans-serif; cursor:pointer; }
.wf3d .wf3d-zone-open:focus-visible { outline:2px solid #88c5ff; outline-offset:2px; }
.wf3d .wf3d-zone-loading { position:absolute; inset:0; z-index:110; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:14px; padding:28px; color:#fff; text-align:center; background:rgba(9,20,34,.94); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.wf3d .wf3d-zone-loading strong { font-size:clamp(19px,4vw,27px); }
.wf3d .wf3d-zone-loading span:last-child { max-width:440px; font-size:14px; color:#cad7e3; }
@media (prefers-reduced-motion:reduce) { .wf3d .wf3d-zone-loading .wf3d-bgload-spin { animation:none; } }

/* V2.0.1 UI: cross-device wind farm catalogue. Keep its title/search fixed;
   only the development list scrolls. Respect iOS/Android safe areas and short
   laptop windows, even when the viewer is embedded in a page column. */
.wf3d .wf3d-catalogue {
  overflow: hidden;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: clamp(10px, 2vmin, 20px);
  background: linear-gradient(145deg, rgba(15, 29, 45, .97), rgba(12, 23, 36, .98));
  isolation: isolate;
}
.wf3d .wf3d-catalogue-card {
  flex: 0 1 720px;
  width: min(100%, 720px);
  max-height: 100%;
  height: min(100%, 850px);
  overflow: hidden;
  border-radius: clamp(15px, 3vmin, 24px);
  padding: clamp(12px, 2.4vmin, 24px);
  background: linear-gradient(158deg, rgba(255,255,255,.095),rgba(255,255,255,.025) 52%),rgba(29, 42, 57, .94);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.19), 0 18px 44px rgba(0,0,0,.24);
}
.wf3d .wf3d-catalogue-card h2 {
  font-size: clamp(19px, 2.7vmin, 27px);
  line-height: 1.2;
  flex: none;
}
.wf3d .wf3d-catalogue-card > p:not(.wf3d-catalogue-notice) {
  flex: none;
  line-height: 1.35;
  margin: 4px 0 12px;
}
.wf3d .wf3d-catalogue-card input[type=search] {
  min-width: 0;
  min-height: 44px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  font-size: 16px; /* prevents Safari zoom when keyboard opens */
}
.wf3d .wf3d-catalogue-card .wf3d-catalogue-notice {
  flex: none;
  margin: 4px 0 5px;
  min-height: 0;
  line-height: 1.25;
}
.wf3d .wf3d-catalogue-card .wf3d-catalogue-notice:empty {
  height: 0;
  margin: 0;
}
.wf3d .wf3d-catalogue-list {
  min-height: 0;
  min-width: 0;
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.wf3d .wf3d-catalogue-item {
  min-width: 0;
  min-height: 68px;
  padding: 10px 8px;
  gap: clamp(9px,2vmin,14px);
  border-radius: 0;
}
.wf3d .wf3d-catalogue-words strong,
.wf3d .wf3d-catalogue-words small {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.wf3d .wf3d-catalogue-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, #298ff4, #1178df);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.wf3d .wf3d-catalogue-icon svg { display: block; width: 25px; height: 25px; }
.wf3d .wf3d-catalogue-item > span:last-child { font-size: 25px; line-height: 1; flex: 0 0 auto; }
.wf3d.wf3d-app-full .wf3d-catalogue {
  padding: calc(var(--wf3d-safe-top, 0px) + 12px) 12px max(12px, env(safe-area-inset-bottom, 0px));
}
.wf3d .wf3d-dimbtn[hidden],
.wf3d .wf3d-mapstyle-sw[hidden] { display: none !important; }
@media (max-width: 600px) {
  .wf3d .wf3d-catalogue { padding: 9px; }
  .wf3d.wf3d-app-full .wf3d-catalogue { padding: calc(var(--wf3d-safe-top, 0px) + 10px) 10px max(10px, env(safe-area-inset-bottom, 0px)); }
  .wf3d .wf3d-catalogue-card { padding: 14px 12px 10px; border-radius: 20px; }
  .wf3d .wf3d-catalogue-item { min-height: 64px; }
  .wf3d .wf3d-catalogue-words strong { font-size: 15px; }
  .wf3d .wf3d-catalogue-words small { font-size: 12px; }
}
@media (max-height: 480px) {
  .wf3d .wf3d-catalogue-card { padding: 8px 12px; }
  .wf3d .wf3d-catalogue-card > p:not(.wf3d-catalogue-notice) { margin: 0 0 6px; }
  .wf3d .wf3d-catalogue-card input[type=search] { height: 42px; flex-basis: 42px; min-height: 42px; }
  .wf3d .wf3d-catalogue-item { min-height: 54px; padding: 6px 8px; }
}
@media (prefers-reduced-transparency: reduce) {
  .wf3d .wf3d-catalogue-card { background: #273746; }
}
.wf3d .wf3d-mi[hidden] { display: none !important; }

/* HORIVANE(TM) brand artwork in About and Copyright panels only. */
.wf3d .wf3d-brand-panel { display: flex; justify-content: flex-start; align-items: center; margin: 2px 0 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.95); max-width: 500px; box-sizing: border-box; }
.wf3d .wf3d-brand-logo { display: block; width: 100%; max-width: 470px; height: auto; object-fit: contain; }
@media (max-width: 650px) { .wf3d .wf3d-brand-panel { padding: 9px 10px; max-width: 100%; } }

/* HORIVANE branded launch screen. Hide pre-existing navigation during loading. */
.wf3d.wf3d-loading-active .wf3d-status.wf3d-brand-loading {
  position:absolute !important; inset:0 !important; width:100% !important; height:100% !important;
  z-index:2147483000 !important; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(ellipse at 50% 30%, #183a58 0%, #071b2c 75%) !important;
}
.wf3d.wf3d-loading-active .wf3d-stage > :not(.wf3d-status):not(.wf3d-canvas),
.wf3d.wf3d-loading-active .wf3d-nav,
.wf3d.wf3d-loading-active .wf3d-hud,
.wf3d.wf3d-loading-active .wf3d-sheet,
.wf3d.wf3d-loading-active .wf3d-bgload,
.wf3d.wf3d-loading-active .wf3d-card-layer,
.wf3d.wf3d-loading-active .wf3d-controls { visibility:hidden !important; pointer-events:none !important; }
.wf3d.wf3d-loading-active .wf3d-status.wf3d-brand-loading,
.wf3d.wf3d-loading-active .wf3d-status.wf3d-brand-loading * { visibility:visible !important; }
.wf3d .wf3d-splash-inner { width:min(82vw, 550px); max-width:calc(100% - 36px); gap:16px; text-align:center; }
.wf3d .wf3d-splash-logo-panel { width:100%; padding:20px 22px; box-sizing:border-box;
  border-radius:15px; background:#fff; box-shadow:0 16px 45px rgba(0,0,0,.22); }
.wf3d .wf3d-splash-logo { display:block; width:100%; height:auto; max-height:210px; object-fit:contain; }
.wf3d .wf3d-splash-inner .wf3d-brand-phase { color:#fff; font-size:clamp(14px,2vw,18px); margin:8px 0 0; }
.wf3d .wf3d-splash-inner .wf3d-splash-track { width:100%; height:8px; margin:0; background:rgba(255,255,255,.16); }
.wf3d .wf3d-splash-inner .wf3d-splash-track .wf3d-brand-fill { background:linear-gradient(90deg,#00a9f1,#00d3b2); }
.wf3d .wf3d-splash-inner .wf3d-brand-meta { width:100%; margin:0; }
.wf3d .wf3d-splash-inner .wf3d-brand-percent { color:#6bdcf5; }

/* Photo workflow toolbar: explicit high-contrast buttons, including disabled state. */
.wf3dp .wf3dp-top button.wf3dp-restart,
.wf3dp .wf3dp-top button.wf3dp-exit {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; min-height: 34px; padding: 7px 12px;
  border-radius: 6px; border: 1px solid #697b89;
  background: #344451; color: #ffffff !important;
  font-size: 13px; font-weight: 600; line-height: 1.2;
  text-shadow: none; opacity: 1;
}
.wf3dp .wf3dp-top button.wf3dp-exit {
  background: #3b3034; border-color: #95656b;
}
.wf3dp .wf3dp-top button.wf3dp-restart:hover:not(:disabled),
.wf3dp .wf3dp-top button.wf3dp-exit:hover:not(:disabled) {
  background: #49647a; border-color: #8cbde2; color: #fff !important;
}
.wf3dp .wf3dp-top button.wf3dp-restart:disabled,
.wf3dp .wf3dp-top button.wf3dp-exit:disabled {
  background: #313a41; border-color: #58636c;
  color: #d2d9de !important; opacity: 1; cursor: not-allowed;
}

/* Photo tool top bar on phones: every control stays on screen. The title
   gives way first (shortened with an ellipsis), the step count stays on
   one line, and on the narrowest screens Close shows its cross only. */
@media (max-width: 700px), (max-height: 520px) and (max-width: 940px) {
	.wf3dp .wf3dp-top { gap: 8px; padding: 0 8px; overflow: hidden; }
	.wf3dp .wf3dp-top > * { flex-shrink: 0; }
	.wf3dp .wf3dp-top .wf3dp-title { flex: 1 1 0; min-width: 0; justify-content: flex-start; overflow: hidden; }
	.wf3dp .wf3dp-top .wf3dp-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.wf3dp .wf3dp-top .wf3dp-count { white-space: nowrap; }
}
@media (max-width: 480px) {
	.wf3dp .wf3dp-top .wf3dp-exit-word { display: none; }
	.wf3dp .wf3dp-top button.wf3dp-restart,
	.wf3dp .wf3dp-top button.wf3dp-exit { padding-left: 10px; padding-right: 10px; }
}

/* Photo tool, last step: paper size on its own row; "save as a picture" is a secondary action. */
.wf3dp-print-row { align-items: center; }
.wf3dp-print-row .wf3dp-paper-lab { font-size: 13px; color: #c9d3da; margin-right: 4px; }
.wf3dp-image-row { margin: 12px 0 8px; }
.wf3dp-image-row .wf3dp-btn { width: 100%; }

/* Quick settings tiles: every tile the same height on every browser.
   The tile was a grid inside a button with text allowed to break anywhere;
   Safari on iPhone sized the rows as if each label were one letter wide,
   so tiles with longer names came out several times too tall. The tile is
   now a plain row (icon, then the text) with one set height, tall enough
   for the longest name and setting on the narrowest tile, so nothing is cut short. */
.wf3d-app .wf3d-tiles { grid-auto-rows: 96px; align-items: stretch; }
.wf3d-app .wf3d-tile {
	display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important;
	gap: 8px; width: 100%; box-sizing: border-box;
	height: 96px !important; min-height: 96px !important; max-height: 96px !important; aspect-ratio: auto !important;
	padding: 8px 10px; overflow: hidden; line-height: 1.15; font: inherit;
}
.wf3d-app .wf3d-tile[hidden] { display: none !important; }
.wf3d-app .wf3d-tile .wf3d-tile-ico { flex: 0 0 36px; width: 36px; height: 36px; }
.wf3d-app .wf3d-tile .wf3d-tile-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: left; }
.wf3d-app .wf3d-tile .wf3d-tile-label {
	display: block !important; -webkit-line-clamp: unset !important; line-clamp: none !important;
	overflow: visible !important; white-space: normal !important; overflow-wrap: break-word; word-break: normal;
	margin: 0; font-size: 13.5px; line-height: 1.15; max-width: 100%; align-self: stretch !important; text-align: left;
}
.wf3d-app .wf3d-tile .wf3d-tile-state {
	display: block !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
	overflow-wrap: break-word; word-break: normal; font-size: 12.5px; line-height: 1.2; max-width: 100%; align-self: stretch !important; text-align: left;
}

/* How to move around (and the licence and guidance grids): the number of
   columns follows the width of the panel they are in, not the width of the
   window. In the side card on a computer the panel is narrow while the
   window is wide, and four columns were squeezed into it one letter wide. */
.wf3d .wf3d-drawer .wf3d-help-cols,
.wf3d .wf3d-card .wf3d-help-cols,
.wf3d .wf3d-help .wf3d-help-cols { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important; }
.wf3d .wf3d-drawer .wf3d-help-guidance,
.wf3d .wf3d-card .wf3d-help-guidance { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important; }
.wf3d .wf3d-help li, .wf3d .wf3d-drawer .wf3d-help li, .wf3d .wf3d-card .wf3d-help li { overflow-wrap: break-word !important; word-break: normal !important; }
.wf3d .wf3d-help h4, .wf3d .wf3d-drawer .wf3d-help h4 { overflow-wrap: normal; word-break: normal; }
