/* The viewer's models overview and dialogs on the website: colours and fonts of the theme
   (light and dark mode follow the website), popups fixed to the window because website pages scroll. */

:root,
html[data-theme="dark"]
{
	--ov_foreground_color: var(--wp--preset--color--contrast);
	--ov_background_color: var(--wp--preset--color--base);
	--ov_disabled_foreground_color: var(--wp--preset--color--muted);
	--ov_button_color: var(--wp--preset--color--accent);
	--ov_button_hover_color: color-mix(in srgb, var(--wp--preset--color--accent) 82%, #000000);
	--ov_button_text_color: #ffffff;
	--ov_outline_button_color: var(--wp--preset--color--accent);
	--ov_outline_button_hover_color: var(--wp--preset--color--accent-soft);
	--ov_outline_button_text_color: var(--wp--preset--color--accent);
	--ov_icon_color: var(--wp--preset--color--contrast);
	--ov_light_icon_color: var(--wp--preset--color--muted);
	--ov_selected_icon_color: var(--wp--preset--color--accent);
	--ov_disabled_icon_color: var(--wp--preset--color--border);
	--ov_hover_color: var(--wp--preset--color--accent-soft);
	--ov_hover_text_color: var(--wp--preset--color--accent);
	--ov_toolbar_background_color: var(--wp--preset--color--base-alt);
	--ov_toolbar_selected_color: var(--wp--preset--color--border);
	--ov_toolbar_separator_color: var(--wp--preset--color--border);
	--ov_treeview_selected_color: var(--wp--preset--color--base-alt);
	--ov_dialog_foreground_color: var(--wp--preset--color--contrast);
	--ov_dialog_background_color: var(--wp--preset--color--base);
	--ov_dialog_control_border_color: var(--wp--preset--color--border);
	--ov_border_color: var(--wp--preset--color--border);
	--ov_muted_text_color: var(--wp--preset--color--muted);
	--ov_canvas_color: var(--wp--preset--color--base-alt);
	--ov_shadow: 0 24px 60px rgba(21, 51, 74, 0.22);
}

html body div.ov_modal,
html body div.ov_popup
{
	position: fixed;
	z-index: 100001;
}

html body div.ov_modal_overlay
{
	position: fixed;
	inset: 0;
	z-index: 100000;
}

/* No dimmed or colored layer behind dialogs and dropdowns: the page stays as it is, the dialog stands out by
   its shadow and border. */
html body div.ov_modal_overlay,
html body div.ov_modal_overlay.ov_modal_overlay_dim,
html[data-theme="dark"] body div.ov_modal_overlay.ov_modal_overlay_dim
{
	background: transparent;
	backdrop-filter: none;
}

html body div.ov_modal div.ov_dialog
{
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 24px 70px rgba(15, 30, 45, 0.28), 0 2px 8px rgba(15, 30, 45, 0.08);
}

html[data-theme="dark"] body div.ov_modal div.ov_dialog
{
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
}

html body div.ov_dialog,
html body div.ov_popup
{
	font-family: var(--wp--preset--font-family--quicksand, inherit);
	border-radius: var(--vw-r-lg, 12px);
	corner-shape: squircle;
}

html body .ov_dialog.ov_login_dialog
{
	padding: 0;
}

/* Models overview (block "Models") ---------------------------------------------------------- */

.vw-dashboard
{
	min-height: 60vh;
	padding-top: 3rem;
	padding-bottom: 4rem;
	font-family: var(--wp--preset--font-family--quicksand, inherit);
	color: var(--wp--preset--color--contrast);
}

.vw-dashboard-loading
{
	color: var(--wp--preset--color--muted);
}

.vw-dashboard div.ov_gallery_heading
{
	font-size: clamp(2rem, 3.4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
}

.vw-dashboard a.ov_gallery_card,
.vw-dashboard div.ov_button,
.vw-dashboard .ov_settings_section,
.vw-dashboard table
{
	corner-shape: squircle;
}

.vw-dashboard a.ov_gallery_card
{
	border-radius: var(--vw-r-lg, 12px);
	text-decoration: none;
}

.vw-dashboard div.ov_button
{
	border-radius: var(--vw-r-sm, 7px);
}

.vw-dashboard a,
.vw-dashboard a:hover
{
	text-decoration: none;
}

.vw-dashboard ul,
.vw-dashboard ol
{
	margin: 0;
}

/* User menu in the header (block "User menu") ------------------------------------------------- */

.vw-user-menu
{
	position: relative;
}

.vw-user-menu:empty
{
	display: none;
}

.vw-user-button
{
	display: flex;
	align-items: center;
	gap: 0.55rem;
	height: 42px;
	padding: 0 0.6rem 0 0.35rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.vw-user-button:hover,
.vw-user-menu.is-open .vw-user-button
{
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 6px 18px rgba(21, 51, 74, 0.1);
}

.vw-user-loading
{
	width: 120px;
	background: linear-gradient(90deg, var(--wp--preset--color--base-alt), var(--wp--preset--color--border), var(--wp--preset--color--base-alt));
	background-size: 200% 100%;
	animation: vw-user-loading 1.2s linear infinite;
}

@keyframes vw-user-loading
{
	to { background-position: -200% 0; }
}

.vw-user-avatar
{
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
}

.vw-user-avatar.large
{
	width: 46px;
	height: 46px;
	font-size: 1.2rem;
}

.vw-user-name
{
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vw-user-caret
{
	width: 16px;
	height: 16px;
	color: var(--wp--preset--color--muted);
	transition: transform 0.2s;
}

.vw-user-menu.is-open .vw-user-caret
{
	transform: rotate(180deg);
}

.vw-user-panel
{
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 60;
	width: 290px;
	padding: 0.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--vw-r-lg, 12px);
	corner-shape: squircle;
	background: var(--wp--preset--color--base);
	box-shadow: 0 24px 60px rgba(21, 51, 74, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.vw-user-menu.is-open .vw-user-panel
{
	opacity: 1;
	visibility: visible;
	transform: none;
}

.vw-user-head
{
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.7rem 0.7rem 0.9rem 0.7rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: 0.4rem;
}

.vw-user-head-text
{
	min-width: 0;
}

.vw-user-head-name
{
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vw-user-head-email
{
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vw-user-badges
{
	margin-top: 0.35rem;
}

.vw-user-badge
{
	display: inline-block;
	padding: 0.1rem 0.55rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font-size: 0.75rem;
	font-weight: 700;
}

.vw-user-badge.admin
{
	background: color-mix(in srgb, #3ddc97 18%, transparent);
	color: #1f9e68;
}

.vw-user-link
{
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 0;
	border-radius: var(--vw-r-sm, 7px);
	corner-shape: squircle;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.95rem;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.vw-user-link:hover
{
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
}

.vw-user-link .ov_svg_icon
{
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: var(--wp--preset--color--muted);
}

.vw-user-link .ov_svg_icon svg
{
	width: 100%;
	height: 100%;
	display: block;
}

.vw-user-separator
{
	height: 1px;
	margin: 0.35rem 0.4rem;
	background: var(--wp--preset--color--border);
}

.vw-user-signout,
.vw-user-signout .ov_svg_icon
{
	color: #d2425a;
}

@media (max-width: 781px)
{
	.vw-user-name
	{
		display: none;
	}

	.vw-user-button
	{
		padding: 0 0.45rem 0 0.3rem;
	}
}

.vw-user-button:focus:not(:focus-visible)
{
	outline: none;
}

/* Dashboard (block "Dashboard", page template "Dashboard (app)") ------------------------------------ */

body.vw-app-page .wp-site-blocks
{
	display: block;
	min-height: 0;
	padding: 0;
}

body.vw-app-page .wp-site-blocks > *
{
	margin: 0;
}

.vw-app
{
	--vw-app-side: 264px;
	--vw-app-top: 64px;
	--vw-app-offset: var(--wp-admin--admin-bar--height, 0px);
	display: grid;
	grid-template-columns: var(--vw-app-side) minmax(0, 1fr);
	min-height: calc(100vh - var(--vw-app-offset));
	max-width: none !important;
	margin: 0 !important;
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--quicksand, inherit);
}

body:not(.admin-bar) .vw-app
{
	--vw-app-offset: 0px;
}

.vw-app svg
{
	width: 20px;
	height: 20px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Sidebar */
.vw-app-side
{
	position: sticky;
	top: var(--vw-app-offset);
	z-index: 30;
	display: flex;
	flex-direction: column;
	height: calc(100vh - var(--vw-app-offset));
	padding: 0 0.85rem 1rem 0.85rem;
	box-sizing: border-box;
	background: var(--wp--preset--color--base);
	border-right: 1px solid var(--wp--preset--color--border);
	overflow-y: auto;
}

.vw-app-brand
{
	display: flex;
	align-items: center;
	gap: 0.65rem;
	height: var(--vw-app-top);
	padding: 0 0.6rem;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	flex: none;
}

.vw-app-brand img
{
	width: 30px;
	height: 30px;
}

.vw-app-nav
{
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 0.75rem;
}

.vw-app-nav-title
{
	margin: 1.4rem 0.7rem 0.4rem 0.7rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.vw-app-link
{
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.62rem 0.7rem;
	border-radius: var(--vw-r-sm, 7px);
	corner-shape: squircle;
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.vw-app-link:hover
{
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
}

.vw-app-link.is-active
{
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
}

.vw-app-link-text
{
	flex: 1;
}

.vw-app-count
{
	min-width: 1.4rem;
	padding: 0 0.4rem;
	border-radius: 999px;
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	line-height: 1.4rem;
	text-align: center;
}

.vw-app-count:empty
{
	display: none;
}

.vw-app-link.is-active .vw-app-count
{
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent);
}

.vw-app-member,
.vw-app-admin
{
	display: none;
}

.vw-app.is-member .vw-app-member
{
	display: contents;
}

.vw-app.is-admin .vw-app-admin
{
	display: block;
}

/* Settings dropdown in the sidebar (Profile, Basemaps). */
.vw-app-group-toggle
{
	width: 100%;
	border: 0;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
}

.vw-app-group-toggle > svg:last-child
{
	width: 16px;
	height: 16px;
	transition: transform 0.18s;
}

.vw-app-group.is-open .vw-app-group-toggle > svg:last-child
{
	transform: rotate(180deg);
}

.vw-app-group.is-current .vw-app-group-toggle
{
	color: var(--wp--preset--color--contrast);
}

.vw-app-sub
{
	display: none;
	flex-direction: column;
	gap: 2px;
	margin: 2px 0 2px 1.35rem;
	padding-left: 0.6rem;
	border-left: 1.5px solid var(--wp--preset--color--border);
}

.vw-app-group.is-open .vw-app-sub
{
	display: flex;
}

.vw-app-link.vw-app-sublink
{
	padding: 0.45rem 0.7rem;
	font-size: 0.9rem;
}

.vw-app-side-bottom
{
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: 1rem;
}

.vw-app-usage
{
	margin: 0.6rem 0.3rem 0.6rem 0.3rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--vw-r-md, 10px);
	corner-shape: squircle;
	background: var(--wp--preset--color--base-alt);
	font-size: 0.85rem;
}

.vw-app-usage[hidden]
{
	display: none;
}

.vw-app-usage-head
{
	display: flex;
	justify-content: space-between;
	font-weight: 700;
}

.vw-app-usage-plan
{
	color: var(--wp--preset--color--accent);
}

.vw-app-usage-bar
{
	height: 6px;
	margin: 0.55rem 0 0.4rem 0;
	border-radius: 3px;
	background: var(--wp--preset--color--border);
	overflow: hidden;
}

.vw-app-usage-fill
{
	height: 100%;
	min-width: 3px;
	border-radius: 3px;
	background: var(--wp--preset--color--accent);
}

.vw-app-usage-fill.high
{
	background: #e0475f;
}

.vw-app-usage-text
{
	color: var(--wp--preset--color--muted);
}

.vw-app-usage-upgrade
{
	display: inline-block;
	margin-top: 0.45rem;
	font-weight: 700;
	text-decoration: none;
}

.vw-app-back
{
	margin-top: 0.2rem;
}

/* Top bar */
.vw-app-main
{
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.vw-app-top
{
	position: sticky;
	top: var(--vw-app-offset);
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 1rem;
	height: var(--vw-app-top);
	padding: 0 1.75rem;
	box-sizing: border-box;
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.vw-app-menu-button
{
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--vw-r-md, 10px);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.vw-app-search
{
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex: 1;
	max-width: 460px;
	height: 40px;
	padding: 0 0.85rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--vw-r-md, 10px);
	corner-shape: squircle;
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--muted);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.vw-app-search:focus-within
{
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
}

.vw-app-search.is-hidden
{
	visibility: hidden;
}

.vw-app-search input
{
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.95rem;
}

.vw-app-top-right
{
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.vw-app-top-right .wp-block-buttons
{
	margin: 0;
}

/* Content */
.vw-app-content
{
	flex: 1;
	width: 100%;
	max-width: 1320px;
	padding: 2.2rem 1.75rem 4rem 1.75rem;
	box-sizing: border-box;
}

.vw-app-head
{
	margin-bottom: 1.6rem;
}

.vw-app-title
{
	margin: 0;
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.2;
}

.vw-app-subtitle
{
	margin: 0.35rem 0 0 0;
	color: var(--wp--preset--color--muted);
}

.vw-app-title:empty + .vw-app-subtitle:empty
{
	display: none;
}

.vw-app-gallery
{
	color: var(--wp--preset--color--contrast);
}

/* Model cards look like the demo project cards on the website. */
.vw-app a.ov_gallery_card
{
	border-radius: var(--vw-r-sm, 7px);
	corner-shape: squircle;
	text-decoration: none;
	background: var(--wp--preset--color--base);
}

.vw-app a.ov_gallery_card div.ov_gallery_thumb
{
	background: #e4e9ee;
	border-radius: var(--vw-r-sm, 7px) var(--vw-r-sm, 7px) 0 0;
	corner-shape: squircle;
}

html[data-theme="dark"] .vw-app a.ov_gallery_card
{
	background: #232d38;
	box-shadow: none;
}

html[data-theme="dark"] .vw-app a.ov_gallery_card:hover
{
	box-shadow: 0 0 0 2px var(--wp--preset--color--accent), 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .vw-app a.ov_gallery_card div.ov_gallery_thumb
{
	background: #3a444f;
}

html[data-theme="dark"] .vw-app div.ov_gallery_open
{
	border-color: #56626e;
}

/* Upload / Open model: compact pill buttons. */
.vw-app div.ov_button.ov_gallery_upload_button
{
	height: 36px;
	padding: 0 16px 0 13px;
	gap: 7px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	box-sizing: border-box;
	transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.vw-app div.ov_button.ov_gallery_upload_button:not(.outline)
{
	box-shadow: 0 1px 2px rgba(15, 30, 45, 0.12);
}

.vw-app div.ov_button.ov_gallery_upload_button:not(.outline):hover
{
	box-shadow: 0 4px 12px color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
}

.vw-app div.ov_button.outline.ov_gallery_upload_button
{
	color: var(--wp--preset--color--contrast);
	border: 1.5px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base);
	padding-right: 12px;
}

html[data-theme="dark"] .vw-app div.ov_button.outline.ov_gallery_upload_button
{
	border-color: #56626e;
	background: transparent;
}

.vw-app div.ov_button.outline.ov_gallery_upload_button:hover
{
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 8%, transparent);
}

.vw-app div.ov_button.ov_gallery_upload_button div.ov_svg_icon
{
	width: 17px;
	height: 17px;
	font-size: 17px;
}

.vw-app div.ov_button.ov_gallery_upload_button div.ov_svg_icon.ov_gallery_button_caret
{
	width: 11px;
	height: 11px;
	font-size: 11px;
	opacity: 0.7;
	margin-left: 1px;
}

.vw-app div.ov_button
{
	border-radius: var(--vw-r-sm, 7px);
	corner-shape: squircle;
}

.vw-app a,
.vw-app a:hover
{
	text-decoration: none;
}

/* Empty states sit in the middle of the free space, like project apps. */
.vw-app div.ov_gallery_empty
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - var(--vw-app-topbar, 0px) - 13rem);
	margin: 0 auto;
	text-align: center;
}

body.admin-bar .vw-app div.ov_gallery_empty
{
	min-height: calc(100vh - var(--vw-app-topbar, 0px) - 13rem - var(--wp-admin--admin-bar--height, 32px));
}

.vw-app-scrim
{
	display: none;
}

/* Phones and small tablets: the sidebar slides in. */
@media (max-width: 900px)
{
	.vw-app
	{
		grid-template-columns: minmax(0, 1fr);
	}

	.vw-app-side
	{
		position: fixed;
		left: 0;
		top: var(--vw-app-offset);
		bottom: 0;
		width: min(290px, 85vw);
		height: auto;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
		z-index: 40;
	}

	.vw-app.is-nav-open .vw-app-side
	{
		transform: none;
	}

	.vw-app.is-nav-open .vw-app-scrim
	{
		display: block;
		position: fixed;
		inset: 0;
		z-index: 35;
		background: rgba(0, 0, 0, 0.35);
	}

	.vw-app-menu-button
	{
		display: inline-flex;
	}

	.vw-app-top
	{
		padding: 0 0.9rem;
		gap: 0.6rem;
	}

	.vw-app-content
	{
		padding: 1.5rem 1rem 3rem 1rem;
	}

	.vw-app-top-right .wp-block-button__link
	{
		padding: 0.5rem 0.9rem;
		font-size: 0.85rem;
	}
}

.vw-app-search
{
	min-width: 0;
}

.vw-user-link
{
	box-sizing: border-box;
}

.vw-app-link:focus:not(:focus-visible),
.vw-app-group-toggle:focus:not(:focus-visible),
.vw-app-menu-button:focus:not(:focus-visible),
.vw-app-brand:focus:not(:focus-visible)
{
	outline: none;
}

@media (max-width: 900px)
{
	.vw-app-side
	{
		box-shadow: none;
	}

	.vw-app.is-nav-open .vw-app-side
	{
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	}

	.vw-user-panel
	{
		width: min(290px, calc(100vw - 24px));
	}
}

/* Dashboard content uses the full width of the window. */
.vw-app-content
{
	max-width: none;
	padding-left: 2rem;
	padding-right: 2rem;
}

.vw-app div.ov_gallery_grid
{
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: 1rem;
}

@media (max-width: 900px)
{
	.vw-app-content
	{
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

.vw-app-head.is-hidden
{
	display: none;
}

/* Sidebar like chat apps (no top bar): brand + light/dark mode, search, navigation, and the account at the bottom. */
.vw-app-side
{
	overflow: visible;
	padding-bottom: 0.75rem;
}

.vw-app-side-head
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex: none;
}

.vw-app-side-head .vw-app-brand
{
	min-width: 0;
}

.vw-app-side-head .vw-theme-toggle
{
	flex: none;
}

.vw-app-side .vw-app-search
{
	flex: none;
	max-width: none;
	height: 38px;
	margin: 0.15rem 0 0.25rem 0;
	padding: 0 0.7rem;
}

.vw-app-side .vw-app-search svg
{
	width: 18px;
	height: 18px;
}

.vw-app-side .vw-app-search input
{
	font-size: 0.9rem;
}

.vw-app-side .vw-app-search.is-hidden
{
	display: none;
}

.vw-app-nav
{
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	margin-top: 0.5rem;
}

.vw-app-side-bottom
{
	flex: none;
	margin-top: 0;
	padding-top: 0.75rem;
}

.vw-app-usage
{
	margin-bottom: 0.45rem;
}

/* Desktop: no top bar. */
.vw-app-top
{
	display: none;
}

/* The account row. */
.vw-side-user
{
	position: relative;
}

.vw-side-user:empty
{
	display: none;
}

.vw-side-user-row
{
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding-top: 0.45rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.vw-side-user-button
{
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex: 1;
	min-width: 0;
	padding: 0.45rem 0.5rem;
	border: 0;
	border-radius: var(--vw-r-sm, 7px);
	corner-shape: squircle;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s;
}

.vw-side-user-button:hover,
.vw-side-user.is-open .vw-side-user-button
{
	background: var(--wp--preset--color--base-alt);
}

.vw-side-user-button .vw-user-avatar
{
	width: 30px;
	height: 30px;
	font-size: 0.85rem;
}

.vw-side-user-name
{
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vw-side-upgrade
{
	flex: none;
	padding: 0.38rem 0.8rem;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.vw-app a.vw-side-upgrade:hover
{
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 8%, transparent);
}

/* No higher plan: read only. */
.vw-side-upgrade.is-disabled
{
	opacity: 0.45;
	cursor: default;
}

/* The menu opens above the account row. */
.vw-side-user-panel
{
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 6px);
	z-index: 60;
	padding: 0.4rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--vw-r-lg, 12px);
	corner-shape: squircle;
	background: var(--wp--preset--color--base);
	box-shadow: 0 18px 50px rgba(15, 30, 45, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}

html[data-theme="dark"] .vw-side-user-panel,
html[data-theme="dark"] .vw-side-help-panel
{
	background: #232d38;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.vw-side-user.is-open .vw-side-user-panel
{
	opacity: 1;
	visibility: visible;
	transform: none;
}

.vw-side-user-head
{
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.45rem 0.55rem;
}

.vw-side-user-head-text
{
	min-width: 0;
}

.vw-side-user-head-name
{
	font-weight: 700;
	font-size: 0.92rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vw-side-user-head-plan
{
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}

.vw-side-item
{
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	padding: 0.5rem 0.55rem;
	border: 0;
	border-radius: var(--vw-r-sm, 7px);
	corner-shape: squircle;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.vw-app .vw-side-item:hover,
.vw-side-help.is-hover .vw-side-help-toggle,
.vw-side-user.is-help-open .vw-side-help-toggle
{
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
}

html[data-theme="dark"] .vw-app .vw-side-item:hover,
html[data-theme="dark"] .vw-side-user.is-help-open .vw-side-help-toggle
{
	background: rgba(255, 255, 255, 0.07);
}

.vw-app .vw-side-item svg.vw-side-icon
{
	width: 18px;
	height: 18px;
	color: var(--wp--preset--color--muted);
}

.vw-side-item-text
{
	flex: 1;
}

.vw-side-item.is-disabled
{
	opacity: 0.45;
	cursor: default;
}

.vw-app .vw-side-item.is-disabled:hover
{
	background: transparent;
}

.vw-app .vw-side-signout,
.vw-app .vw-side-signout:hover,
.vw-app .vw-side-signout svg.vw-side-icon
{
	color: #d2425a;
}

/* Help opens a small menu to the right. */
.vw-side-help
{
	position: relative;
}

.vw-app .vw-side-help-toggle svg.vw-side-icon:last-child
{
	width: 15px;
	height: 15px;
}

.vw-side-help-panel
{
	position: absolute;
	left: calc(100% + 0.6rem);
	bottom: -0.4rem;
	width: 210px;
	padding: 0.4rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--vw-r-lg, 12px);
	corner-shape: squircle;
	background: var(--wp--preset--color--base);
	box-shadow: 0 18px 50px rgba(15, 30, 45, 0.22);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.14s, visibility 0.14s;
}

.vw-side-user.is-help-open .vw-side-help-panel
{
	opacity: 1;
	visibility: visible;
}

@media (hover: hover)
{
	.vw-side-help:hover .vw-side-help-panel
	{
		opacity: 1;
		visibility: visible;
	}
}

.vw-side-item:focus:not(:focus-visible),
.vw-side-user-button:focus:not(:focus-visible),
.vw-side-upgrade:focus:not(:focus-visible)
{
	outline: none;
}

@media (max-width: 900px)
{
	.vw-app
	{
		--vw-app-topbar: 56px;
	}

	.vw-app-top
	{
		display: flex;
		height: 56px;
	}

	.vw-app-top .vw-app-brand
	{
		height: auto;
		padding: 0;
	}

	.vw-app-side
	{
		overflow-y: auto;
	}

	/* No room on the right on phones: Help's links open inside the menu. */
	.vw-side-help-panel
	{
		position: static;
		width: auto;
		padding: 0 0 0 1.4rem;
		border: 0;
		box-shadow: none;
		background: transparent;
		display: none;
	}

	html[data-theme="dark"] .vw-side-help-panel
	{
		background: transparent;
		box-shadow: none;
	}

	.vw-side-user.is-help-open .vw-side-help-panel
	{
		display: block;
	}
	.vw-side-user.is-help-open .vw-side-help-toggle svg.vw-side-icon:last-child
	{
		transform: rotate(90deg);
	}
}

/* Settings (opened from the account menu): the sidebar shows Back to app and the pages of Settings. ---------- */
.vw-app-nav-settings
{
	display: none;
}

.vw-app.is-settings .vw-app-nav:not(.vw-app-nav-settings),
.vw-app.is-settings .vw-app-search,
.vw-app.is-settings .vw-app-usage
{
	display: none;
}

.vw-app.is-settings .vw-app-nav-settings
{
	display: flex;
}

.vw-app-nav-settings .vw-app-nav-title
{
	margin-top: 1rem;
}

.vw-app .vw-app-back-link.is-active
{
	background: transparent;
	color: var(--wp--preset--color--muted);
}

.vw-app .vw-app-back-link:hover
{
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
}

/* Settings pages: the page title, the content in a centred column (Basemaps keeps the full width). */
.vw-app.is-settings .vw-app-head
{
	margin-bottom: 1.4rem;
}

.vw-app.is-settings .vw-app-subtitle
{
	display: none;
}

.vw-app.is-settings .vw-app-title
{
	font-size: 1.6rem;
}

.vw-app.is-settings-narrow .vw-app-head,
.vw-app.is-settings-narrow .vw-app-gallery
{
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.vw-app div.ov_settings_page.single
{
	grid-template-columns: minmax(0, 1fr);
}

/* Billing and Usage */
.vw-app div.ov_settings_section.ov_billing_plan
{
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
}

.ov_billing_plan_text
{
	flex: 1;
	min-width: 0;
}

.ov_billing_plan_name
{
	font-weight: 700;
	font-size: 1.05rem;
}

.ov_billing_plan_detail
{
	margin-top: 0.15rem;
	font-size: 0.88rem;
	color: var(--wp--preset--color--muted);
}

.ov_billing_plan_detail.warn
{
	color: #d2425a;
}

.vw-app button.ov_billing_plan_button
{
	flex: none;
	border-radius: 999px;
}

.ov_billing_heading
{
	margin: 0.6rem 0 -0.6rem 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.ov_billing_empty
{
	padding: 0.7rem 0 0.2rem 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.92rem;
}

.ov_billing_row
{
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 0.92rem;
}

.ov_billing_row:last-child
{
	border-bottom: 0;
}

.ov_billing_invoice
{
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 80px 90px 24px;
}

.ov_billing_invoice_name
{
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ov_billing_invoice_date
{
	color: var(--wp--preset--color--muted);
}

.ov_billing_invoice_amount
{
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.ov_billing_invoice_open
{
	display: flex;
	justify-content: center;
	color: var(--wp--preset--color--muted);
}

.ov_billing_invoice_open:hover
{
	color: var(--wp--preset--color--accent);
}

.ov_billing_invoice_open svg,
.ov_billing_method > svg
{
	width: 18px;
	height: 18px;
}

.ov_billing_info
{
	align-items: flex-start;
}

.ov_billing_info_name
{
	width: 170px;
	flex: none;
	font-weight: 600;
}

.ov_billing_info_value
{
	color: var(--wp--preset--color--muted);
	line-height: 1.5;
}

.ov_billing_method > svg
{
	color: var(--wp--preset--color--muted);
}

.ov_billing_method_text
{
	flex: 1;
	min-width: 0;
}

.ov_billing_method_name
{
	font-weight: 600;
}

.ov_billing_method_detail
{
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}

.vw-app div.ov_settings_section.ov_usage_limits
{
	padding: 0.25rem 1.25rem;
}

.ov_usage_meter
{
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ov_usage_meter:last-child
{
	border-bottom: 0;
}

.ov_usage_meter_head
{
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.92rem;
}

.ov_usage_meter_name
{
	font-weight: 700;
}

.ov_usage_meter_value
{
	color: var(--wp--preset--color--muted);
}

.ov_usage_bar
{
	height: 6px;
	margin-top: 0.6rem;
	border-radius: 3px;
	background: var(--wp--preset--color--border);
	overflow: hidden;
}

.ov_usage_fill
{
	height: 100%;
	border-radius: 3px;
	background: var(--wp--preset--color--accent);
}

.ov_usage_fill.high
{
	background: #e0475f;
}

.ov_usage_meter_note
{
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
	text-align: right;
}

.ov_billing_footnote
{
	font-size: 0.9rem;
	color: var(--wp--preset--color--muted);
}

.ov_billing_footnote a
{
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

@media (max-width: 700px)
{
	.ov_billing_invoice
	{
		grid-template-columns: minmax(0, 1fr) auto 24px;
		row-gap: 0.2rem;
	}

	.ov_billing_invoice_date
	{
		grid-column: 1;
		grid-row: 2;
	}

	.ov_billing_invoice_status
	{
		grid-column: 2;
		grid-row: 2;
		text-align: right;
	}

	.ov_billing_invoice_amount
	{
		grid-column: 2;
		grid-row: 1;
	}

	.ov_billing_invoice_open
	{
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	.ov_billing_info
	{
		flex-direction: column;
		gap: 0.15rem;
	}

	.vw-app div.ov_settings_section.ov_billing_plan
	{
		flex-wrap: wrap;
	}
}

/* "Upgrade your plan": every plan with its price and benefits, over the whole window. ------------------------ */
html.vw-plans-open,
html.vw-plans-open body
{
	overflow: hidden;
}

.vw-plans
{
	position: fixed;
	inset: 0;
	z-index: 100000;
	overflow-y: auto;
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--quicksand, inherit);
	animation: vw-plans-in 0.18s ease-out;
}

@keyframes vw-plans-in
{
	from { opacity: 0; transform: scale(0.99); }
}

.vw-plans svg
{
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vw-plans-close
{
	position: fixed;
	top: 18px;
	right: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

body.admin-bar .vw-plans-close
{
	top: calc(18px + var(--wp-admin--admin-bar--height, 32px));
}

.vw-plans-close:hover
{
	background: var(--wp--preset--color--border);
}

.vw-plans-close svg
{
	width: 22px;
	height: 22px;
}

.vw-plans-close:focus:not(:focus-visible)
{
	outline: none;
}

.vw-plans-inner
{
	max-width: 1280px;
	margin: 0 auto;
	padding: 4.5rem 1.5rem 3rem 1.5rem;
	box-sizing: border-box;
}

body.admin-bar .vw-plans-inner
{
	padding-top: calc(4.5rem + var(--wp-admin--admin-bar--height, 32px));
}

.vw-plans-title
{
	margin: 0 0 1.5rem 0;
	text-align: center;
	font-size: 2rem;
	font-weight: 700;
}

.vw-plans-loading,
.vw-plans-message,
.vw-plans-note-top
{
	text-align: center;
	color: var(--wp--preset--color--muted);
}

.vw-plans-message
{
	color: #d2425a;
	margin-top: 1rem;
}

.vw-plans-note-top
{
	margin: -0.5rem 0 1.5rem 0;
}

.vw-plans-toggle
{
	display: flex;
	width: max-content;
	margin: 0 auto 2rem auto;
	padding: 4px;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
}

.vw-plans-toggle button
{
	padding: 0.5rem 1.2rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
}

.vw-plans-toggle button.is-active
{
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 1px 3px rgba(15, 30, 45, 0.12);
}

html[data-theme="dark"] .vw-plans-toggle button.is-active
{
	background: #2c3844;
}

.vw-plans-grid
{
	display: grid;
	grid-template-columns: repeat(var(--vw-plans-count, 3), minmax(0, 360px));
	justify-content: center;
	gap: 1.25rem;
}

.vw-plans-card
{
	display: flex;
	flex-direction: column;
	padding: 1.6rem 1.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	corner-shape: squircle;
	background: var(--wp--preset--color--base);
}

html[data-theme="dark"] .vw-plans-card
{
	background: #1f2933;
}

.vw-plans-card.is-recommended
{
	border-color: var(--wp--preset--color--accent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 7%, var(--wp--preset--color--base));
}

html[data-theme="dark"] .vw-plans-card.is-recommended
{
	background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, #1f2933);
}

.vw-plans-card-head
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 28px;
}

.vw-plans-card-name
{
	font-size: 1.35rem;
	font-weight: 700;
}

.vw-plans-badge
{
	padding: 0.22rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.vw-plans-price
{
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	min-height: 2.6rem;
	margin: 0.9rem 0 1.1rem 0;
}

.vw-plans-amount
{
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.vw-plans-per
{
	color: var(--wp--preset--color--muted);
	font-size: 0.92rem;
}

.vw-plans-button
{
	width: 100%;
	height: 44px;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vw-plans-button:hover:not(:disabled)
{
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.vw-plans-button.is-primary
{
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: #ffffff;
}

.vw-plans-button.is-primary:hover:not(:disabled)
{
	background: color-mix(in srgb, var(--wp--preset--color--accent) 85%, #000000);
	color: #ffffff;
}

.vw-plans-button:disabled
{
	cursor: default;
	color: var(--wp--preset--color--muted);
}

.vw-plans-features
{
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin-top: 1.4rem;
}

.vw-plans-features-lead
{
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--wp--preset--color--muted);
}

.vw-plans-feature
{
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.93rem;
	line-height: 1.4;
}

.vw-plans-feature svg
{
	width: 18px;
	height: 18px;
	flex: none;
	margin-top: 1px;
	color: var(--wp--preset--color--accent);
}

.vw-plans-note
{
	margin-top: 2rem;
	text-align: center;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 1000px)
{
	.vw-plans-grid
	{
		grid-template-columns: minmax(0, 480px);
	}

	.vw-plans-inner
	{
		padding-left: 16px;
		padding-right: 16px;
	}

	.vw-plans-title
	{
		font-size: 1.6rem;
	}
}

/* Empty states: the sentence on one line where there is room, the demo hint right under it. */
.vw-app div.ov_gallery_empty
{
	max-width: 760px;
}

.vw-app div.ov_gallery_empty div.ov_gallery_empty_text + div.ov_gallery_empty_hint
{
	margin-top: -12px;
}

/* Resizable sidebar: a thin handle on its right edge. */
.vw-app-resize
{
	position: absolute;
	top: 0;
	right: -4px;
	bottom: 0;
	z-index: 5;
	width: 8px;
	cursor: col-resize;
	touch-action: none;
}

.vw-app-resize::after
{
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 3px;
	width: 2px;
	background: transparent;
	transition: background 0.15s;
}

.vw-app-resize:hover::after,
.vw-app-resize:focus-visible::after,
.vw-app.is-resizing .vw-app-resize::after
{
	background: var(--wp--preset--color--accent);
}

.vw-app-resize:focus
{
	outline: none;
}

.vw-app.is-resizing,
.vw-app.is-resizing *
{
	cursor: col-resize !important;
	user-select: none;
}

@media (max-width: 900px)
{
	.vw-app-resize
	{
		display: none;
	}
}

/* Sidebar a little wider by default; the toggle closes it to a rail with icons (theme 2.26). ------------------- */
.vw-app
{
	--vw-app-side: 288px;
	transition: grid-template-columns 0.18s ease;
}

.vw-app.is-resizing
{
	transition: none;
}

.vw-app-side-tools
{
	display: flex;
	align-items: center;
	gap: 0.15rem;
	flex: none;
}

.vw-app-collapse
{
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: var(--vw-r-sm, 8px);
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.vw-app-collapse:hover
{
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
}

.vw-app-collapse:focus:not(:focus-visible)
{
	outline: none;
}

.vw-app-collapse-logo
{
	display: none;
	width: 28px;
	height: 28px;
}

/* Tooltip with the keyboard shortcut: like every other tooltip (light in light mode, dark in dark mode). */
.vw-tip,
.vw-app.is-collapsed .vw-app-link .vw-app-link-text
{
	position: absolute;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 5px 10px;
	border-radius: 5px;
	background: var(--ov_dialog_background_color, #ffffff);
	color: var(--ov_dialog_foreground_color, #1d2025);
	border: 1px solid rgba(127, 140, 155, 0.22);
	box-shadow: 0 4px 14px rgba(15, 30, 45, 0.16);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.12s, visibility 0.12s;
}

html[data-theme="dark"] .vw-tip,
html[data-theme="dark"] .vw-app.is-collapsed .vw-app-link .vw-app-link-text
{
	background: var(--ov_dialog_background_color, #26303b);
}

.vw-tip
{
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
}

.vw-tip kbd
{
	padding: 0.05rem 0.35rem;
	border-radius: 5px;
	background: rgba(127, 140, 155, 0.18);
	color: inherit;
	font: inherit;
	font-size: 0.74rem;
	font-weight: 600;
}

@media (hover: hover)
{
	.vw-app-collapse:hover .vw-tip
	{
		opacity: 1;
		visibility: visible;
	}
}

.vw-app-collapse:focus-visible .vw-tip
{
	opacity: 1;
	visibility: visible;
}

.vw-app-collapse.no-tip .vw-tip
{
	opacity: 0;
	visibility: hidden;
}

@media (min-width: 901px)
{
	.vw-app.is-collapsed
	{
		--vw-app-side: 60px !important;
	}

	.vw-app.is-collapsed .vw-app-side
	{
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	.vw-app.is-collapsed .vw-app-side-head .vw-app-brand,
	.vw-app.is-collapsed .vw-theme-toggle,
	.vw-app.is-collapsed .vw-app-resize,
	.vw-app.is-collapsed .vw-app-usage,
	.vw-app.is-collapsed .vw-side-upgrade,
	.vw-app.is-collapsed .vw-side-user-name,
	.vw-app.is-collapsed .vw-app-nav-title,
	.vw-app.is-collapsed .vw-app-count
	{
		display: none !important;
	}

	.vw-app.is-collapsed .vw-app-side-head
	{
		justify-content: center;
		height: var(--vw-app-top);
	}

	.vw-app.is-collapsed .vw-app-collapse
	{
		width: 40px;
		height: 40px;
	}

	.vw-app.is-collapsed .vw-app-collapse-logo
	{
		display: block;
	}

	.vw-app.is-collapsed .vw-app-collapse > svg
	{
		display: none;
	}

	.vw-app.is-collapsed .vw-app-collapse:hover .vw-app-collapse-logo,
	.vw-app.is-collapsed .vw-app-collapse:focus-visible .vw-app-collapse-logo
	{
		display: none;
	}

	.vw-app.is-collapsed .vw-app-collapse:hover > svg,
	.vw-app.is-collapsed .vw-app-collapse:focus-visible > svg
	{
		display: block;
	}

	.vw-app.is-collapsed .vw-tip
	{
		top: 50%;
		left: calc(100% + 10px);
		transform: translateY(-50%);
	}

	.vw-app.is-collapsed .vw-app-nav
	{
		overflow: visible;
	}

	.vw-app.is-collapsed .vw-app-link
	{
		position: relative;
		justify-content: center;
		padding-left: 0;
		padding-right: 0;
	}

	.vw-app.is-collapsed .vw-app-link .vw-app-link-text
	{
		top: 50%;
		left: calc(100% + 10px);
		flex: none;
		transform: translateY(-50%);
	}

	.vw-app.is-collapsed .vw-app-link:hover .vw-app-link-text,
	.vw-app.is-collapsed .vw-app-link:focus-visible .vw-app-link-text
	{
		opacity: 1;
		visibility: visible;
	}

	.vw-app.is-collapsed .vw-app-admin,
	.vw-app.is-collapsed .vw-app-nav-settings .vw-app-back-link
	{
		margin-top: 0.6rem;
		padding-top: 0.6rem;
		border-top: 1px solid var(--wp--preset--color--border);
	}

	.vw-app.is-collapsed .vw-app-nav-settings .vw-app-back-link
	{
		margin-top: 0;
		padding-top: 0.62rem;
		border-top: 0;
		margin-bottom: 0.6rem;
	}

	.vw-app.is-collapsed .vw-side-user-row
	{
		justify-content: center;
		border-top: 0;
	}

	.vw-app.is-collapsed .vw-side-user-button
	{
		flex: none;
		padding: 0.35rem;
	}

	.vw-app.is-collapsed .vw-side-user-panel
	{
		right: auto;
		width: 260px;
	}
}

/* Models page (like a file library): title with tools, pills, cards or list. ----------------------------------- */
.vw-app .ov_lib
{
	--ov-lib-hover: color-mix(in srgb, var(--wp--preset--color--contrast) 6%, transparent);
	--ov-lib-pressed: color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	position: relative;
	max-width: 1440px;
	margin: 0 auto;
}

.ov_lib_head
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.1rem;
}

.vw-app h1.ov_lib_title
{
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.ov_lib_tools
{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.ov_lib_chips
{
	display: flex;
	gap: 0.35rem;
}

.ov_lib_chips:empty
{
	display: none;
}

.vw-app .ov_lib_chip
{
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	height: 30px;
	padding: 0 0.5rem 0 0.75rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.vw-app .ov_lib_chip svg
{
	width: 14px;
	height: 14px;
	stroke-width: 2.2;
}

.vw-app .ov_lib_tool
{
	position: relative;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.vw-app .ov_lib_tool:hover,
.vw-app .ov_lib_tool.open
{
	background: var(--ov-lib-hover);
	color: var(--wp--preset--color--contrast);
}

.vw-app .ov_lib_tool.selected
{
	background: var(--ov-lib-pressed);
	color: var(--wp--preset--color--contrast);
}

.vw-app .ov_lib_tool.active
{
	color: var(--wp--preset--color--accent);
}

.vw-app .ov_lib_tool.active::after
{
	content: "";
	position: absolute;
	top: 7px;
	right: 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.ov_lib_views
{
	display: flex;
	gap: 2px;
}

.vw-app .ov_lib_search
{
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 240px;
	height: 38px;
	margin: 0 0.15rem;
	padding: 0 0.9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--muted);
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.vw-app .ov_lib_search:focus-within
{
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
}

.vw-app .ov_lib_search svg
{
	width: 18px;
	height: 18px;
}

.vw-app .ov_lib_search input
{
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.92rem;
}

.vw-app .ov_lib_new
{
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	height: 38px;
	padding: 0 0.75rem 0 1.05rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s;
}

.vw-app .ov_lib_new:hover,
.vw-app .ov_lib_new.open
{
	filter: brightness(1.08);
}

.vw-app .ov_lib_new svg
{
	width: 17px;
	height: 17px;
	stroke-width: 2;
}

.vw-app .ov_lib_new.ov_lib_upload
{
	padding: 0 1.15rem 0 0.95rem;
	gap: 0.5rem;
}

.vw-app .ov_lib_new:disabled
{
	opacity: 0.5;
	cursor: default;
	filter: none;
}

.ov_lib_tabs
{
	display: flex;
	gap: 0.3rem;
	margin-bottom: 1.4rem;
	overflow-x: auto;
	scrollbar-width: none;
}

/* Phones: the tabs scroll sideways; the right edge fades out so the next tab reads as "more", not as cut off. */
@media (max-width: 700px)
{
	.ov_lib_tabs
	{
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
		padding-right: 28px;
	}

	.ov_lib_tabs::-webkit-scrollbar
	{
		display: none;
	}
}

.vw-app .ov_lib_tab
{
	flex: none;
	height: 36px;
	padding: 0 1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.vw-app .ov_lib_tab:hover
{
	background: var(--ov-lib-hover);
	color: var(--wp--preset--color--contrast);
}

.vw-app .ov_lib_tab.selected
{
	background: var(--ov-lib-pressed);
	color: var(--wp--preset--color--contrast);
}

.vw-app .ov_lib button:focus:not(:focus-visible)
{
	outline: none;
}

/* Empty states sit below the title and pills. */
.vw-app .ov_lib div.ov_gallery_empty,
body.admin-bar .vw-app .ov_lib div.ov_gallery_empty
{
	min-height: calc(100vh - var(--vw-app-topbar, 0px) - var(--vw-app-offset, 0px) - 19rem);
}

.ov_lib_empty_buttons
{
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.2rem;
}

.vw-app .ov_lib_pill_button
{
	height: 36px;
	padding: 0 1.1rem;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
}

.vw-app .ov_lib_pill_button:hover
{
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Favourite star on cards. */
.vw-app div.ov_gallery_fav
{
	position: absolute;
	right: 0.55rem;
	bottom: 0.55rem;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: rgba(17, 24, 33, 0.55);
}

.vw-app div.ov_gallery_fav svg,
.vw-app svg.ov_lib_fav
{
	width: 15px;
	height: 15px;
	fill: #f5b301;
	stroke: #f5b301;
}

/* List view. */
.ov_lib_list
{
	display: flex;
	flex-direction: column;
}

.vw-app .ov_lib_row
{
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) minmax(120px, 190px) minmax(150px, 200px) 90px 44px;
	align-items: center;
	min-height: 54px;
	padding: 0 0.25rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: background 0.12s;
}

.vw-app a.ov_lib_row:hover
{
	border-radius: 10px;
	background: var(--ov-lib-hover);
	border-bottom-color: transparent;
}

.vw-app .ov_lib_row.selected
{
	background: color-mix(in srgb, var(--wp--preset--color--accent) 9%, transparent);
}

.vw-app .ov_lib_row.ov_lib_row_head
{
	min-height: 40px;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.ov_lib_cell
{
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 0.75rem;
}

.ov_lib_row:not(.ov_lib_row_head) .ov_lib_col_owner,
.ov_lib_row:not(.ov_lib_row_head) .ov_lib_col_activity,
.ov_lib_row:not(.ov_lib_row_head) .ov_lib_col_size
{
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
}

.ov_lib_row:not(.ov_lib_row_head) .ov_lib_col_name
{
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.ov_lib_col_check,
.ov_lib_col_menu
{
	display: flex;
	justify-content: center;
	padding: 0;
	overflow: visible;
}

.vw-app .ov_lib_sort
{
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.vw-app .ov_lib_sort:hover,
.vw-app .ov_lib_sort.selected
{
	color: var(--wp--preset--color--contrast);
}

.ov_lib_thumb
{
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--muted);
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.ov_lib_thumb img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ov_lib_name
{
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ov_lib_tag
{
	flex: none;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font-size: 0.72rem;
	font-weight: 700;
}

.vw-app .ov_lib_check
{
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	padding: 0;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--muted) 70%, transparent);
	border-radius: 5px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.12s;
}

.vw-app .ov_lib_check svg
{
	width: 13px;
	height: 13px;
	stroke-width: 2.8;
	opacity: 0;
}

.vw-app .ov_lib_row:hover .ov_lib_check,
.vw-app .ov_lib_list.has-selection .ov_lib_check,
.vw-app .ov_lib_check:focus-visible
{
	opacity: 1;
}

.vw-app .ov_lib_check.checked,
.vw-app .ov_lib_check.mixed
{
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	opacity: 1;
}

.vw-app .ov_lib_check.checked svg,
.vw-app .ov_lib_check.mixed svg
{
	opacity: 1;
}

.vw-app .ov_lib_row_menu
{
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	opacity: 0;
}

.vw-app .ov_lib_row_menu svg
{
	fill: currentColor;
	stroke: none;
}

.vw-app .ov_lib_row:hover .ov_lib_row_menu,
.vw-app .ov_lib_row_menu.open,
.vw-app .ov_lib_row_menu:focus-visible
{
	opacity: 1;
}

.vw-app .ov_lib_row_menu:hover,
.vw-app .ov_lib_row_menu.open
{
	background: var(--ov-lib-pressed);
	color: var(--wp--preset--color--contrast);
}

@media (hover: none)
{
	.vw-app .ov_lib_row_menu,
	.vw-app .ov_lib_check
	{
		opacity: 1;
	}
}

/* Bar while models are selected. */
.vw-app .ov_lib_bulk
{
	position: sticky;
	bottom: 1.25rem;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	width: max-content;
	max-width: 100%;
	margin: 1.25rem auto 0 auto;
	padding: 0.4rem 0.45rem 0.4rem 1.1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 14px 40px rgba(15, 30, 45, 0.22);
	box-sizing: border-box;
}

html[data-theme="dark"] .vw-app .ov_lib_bulk
{
	background: #232d38;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.vw-app .ov_lib_bulk[hidden]
{
	display: none;
}

.ov_lib_bulk_count
{
	margin-right: 0.4rem;
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
}

.vw-app .ov_lib_bulk_button
{
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	height: 34px;
	padding: 0 0.9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.vw-app .ov_lib_bulk_button:hover
{
	background: var(--ov-lib-hover);
}

.vw-app .ov_lib_bulk_button.danger
{
	border-color: #dc2626;
	background: #dc2626;
	color: #fff;
}

.vw-app .ov_lib_bulk_button.danger:hover
{
	filter: brightness(1.08);
}

.vw-app .ov_lib_bulk_button:disabled
{
	opacity: 0.45;
	cursor: default;
}

.vw-app .ov_lib_bulk_button svg,
.vw-app .ov_lib_bulk_close svg
{
	width: 16px;
	height: 16px;
}

.vw-app .ov_lib_bulk_close
{
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
}

.vw-app .ov_lib_bulk_close:hover
{
	background: var(--ov-lib-hover);
	color: var(--wp--preset--color--contrast);
}

/* Menus of the Models page (New, filter, ⋯); they live at the end of the page. */
.ov_lib_menu
{
	position: fixed;
	z-index: 100001;
	min-width: 200px;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	padding: 6px 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--vw-r-lg, 12px);
	corner-shape: squircle;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 8px 28px rgba(15, 30, 45, 0.2);
	font-family: var(--wp--preset--font-family--quicksand, inherit);
	box-sizing: border-box;
}

html[data-theme="dark"] .ov_lib_menu
{
	background: #232d38;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.ov_lib_menu_header
{
	padding: 6px 16px 2px 16px;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	font-weight: 700;
}

.ov_lib_menu_sep
{
	height: 1px;
	margin: 6px 0;
	background: var(--wp--preset--color--border);
}

.ov_lib_menu_item
{
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 32px;
	padding: 4px 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.ov_lib_menu_item:hover,
.ov_lib_menu_item:focus-visible
{
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 7%, transparent);
	outline: none;
}

.ov_lib_menu_item svg
{
	flex: none;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ov_lib_menu_item span
{
	flex: 1;
}

.ov_lib_menu_item svg.ov_lib_menu_check
{
	color: var(--wp--preset--color--accent);
	stroke-width: 2.4;
	opacity: 0;
}

.ov_lib_menu_item.checked svg.ov_lib_menu_check
{
	opacity: 1;
}

.ov_lib_menu_item.danger
{
	color: #dc2626;
}

.ov_lib_menu_item:disabled
{
	opacity: 0.45;
	cursor: default;
	background: transparent;
}

@media (max-width: 1100px)
{
	.vw-app .ov_lib_row
	{
		grid-template-columns: 40px minmax(0, 1fr) minmax(140px, 190px) 84px 44px;
	}

	.vw-app .ov_lib_col_owner
	{
		display: none;
	}
}

@media (max-width: 700px)
{
	.ov_lib_tools
	{
		width: 100%;
		justify-content: flex-start;
	}

	/* Filter, views and New in one row, the search below over the full width. */
	.vw-app .ov_lib_search
	{
		order: 10;
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		margin: 0.35rem 0 0 0;
	}

	.vw-app .ov_lib_row
	{
		grid-template-columns: 36px minmax(0, 1fr) 44px;
	}

	.vw-app .ov_lib_col_activity,
	.vw-app .ov_lib_col_size
	{
		display: none;
	}
}

/* The selection bar floats at the bottom of the window, centred over the content. */
.vw-app .ov_lib_bulk
{
	position: fixed;
	left: calc(var(--vw-app-side) + (100vw - var(--vw-app-side)) / 2);
	bottom: 1.5rem;
	z-index: 40;
	max-width: calc(100vw - var(--vw-app-side) - 2rem);
	margin: 0;
	transform: translateX(-50%);
}

@media (max-width: 900px)
{
	.vw-app .ov_lib_bulk
	{
		left: 50%;
		max-width: calc(100vw - 1.5rem);
	}

	.ov_lib_bulk_count
	{
		display: none;
	}
}

/* No focus ring after a mouse click anywhere in the dashboard (keyboard focus keeps it). */
.vw-app :focus:not(:focus-visible)
{
	outline: none;
}

/* Sidebar head: the name shortens before the buttons leave the sidebar; the tooltip stays under the button. */
.vw-app-side-head .vw-app-brand
{
	flex: 1 1 auto;
	overflow: hidden;
}

.vw-app-side-head .vw-app-brand span
{
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vw-app-side-head .vw-tip
{
	left: auto;
	right: 0;
	transform: none;
}

/* Users, Subscription Plans and Payments look like the Models page: title row, then a borderless list. ---------- */
.vw-app .ov_lib_new.ov_lib_new_plain
{
	padding: 0 1.1rem 0 0.9rem;
	gap: 0.45rem;
}

.vw-app .ov_admin_page div.ov_users_table_wrap
{
	margin-top: 0.4rem;
	border: 0;
	border-radius: 0;
}

.vw-app .ov_admin_page table.ov_users_table
{
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.92rem;
}

.vw-app .ov_admin_page table.ov_users_table th
{
	padding: 0.7rem 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: transparent;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.vw-app .ov_admin_page table.ov_users_table td
{
	height: 56px;
	padding: 0.45rem 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: background 0.12s;
}

.vw-app .ov_admin_page table.ov_users_table tr:last-child td
{
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.vw-app .ov_admin_page table.ov_users_table tbody tr:hover td
{
	background: var(--ov-lib-hover);
}

.vw-app .ov_admin_page table.ov_users_table tbody tr:hover td:first-child
{
	border-radius: 10px 0 0 10px;
}

.vw-app .ov_admin_page table.ov_users_table tbody tr:hover td:last-child
{
	border-radius: 0 10px 10px 0;
}

.vw-app .ov_admin_page table.ov_users_table td.ov_users_empty
{
	height: 120px;
}

.vw-app .ov_admin_page div.ov_users_email
{
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	opacity: 1;
}

.vw-app .ov_admin_page select.ov_users_select
{
	height: 34px;
	padding: 0 2rem 0 0.85rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.vw-app .ov_admin_page select.ov_users_select:hover
{
	background-color: var(--ov-lib-hover);
}

.vw-app .ov_admin_page select.ov_users_select option
{
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.vw-app .ov_admin_page table.ov_users_table .ov_button.ov_settings_button
{
	height: 34px;
	padding: 0 1rem;
	border-radius: 999px;
	font-size: 0.85rem;
}

.vw-app .ov_admin_page button.ov_users_pager_button
{
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	color: var(--wp--preset--color--muted);
}

.vw-app .ov_admin_page button.ov_users_pager_button:not(:disabled):hover
{
	background: var(--ov-lib-pressed);
	color: var(--wp--preset--color--contrast);
}

.vw-app .ov_admin_page div.ov_users_pager
{
	margin-top: 0.9rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
}

.vw-app .ov_admin_page div.ov_plans_hint
{
	padding: 1rem 0.75rem 0 0.75rem;
	border-top: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	opacity: 1;
}

.vw-app .ov_admin_page .ov_settings_message.visible
{
	margin-bottom: 0.75rem;
}

@media (max-width: 700px)
{
	.vw-app .ov_admin_page div.ov_users_table_wrap
	{
		overflow-x: auto;
	}
}

.vw-app .ov_admin_page .ov_button.ov_settings_button,
.vw-app .ov_admin_page select.ov_settings_input
{
	border-radius: 999px;
}

/* Tooltip of the sidebar toggle: clearly visible on the dark sidebar too; only on hover. */
.vw-tip
{
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .vw-tip,
html[data-theme="dark"] .vw-app.is-collapsed .vw-app-link .vw-app-link-text
{
	background: #0b1016;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.vw-app-collapse:focus-visible .vw-tip
{
	opacity: 0;
	visibility: hidden;
}

@media (hover: hover)
{
	.vw-app-collapse:hover .vw-tip
	{
		opacity: 1;
		visibility: visible;
	}
}

.vw-app-collapse.no-tip .vw-tip
{
	opacity: 0 !important;
	visibility: hidden !important;
}

.vw-app-collapse:focus-visible
{
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}

/* Less space left and right: the pages use the full width. */
.vw-app-content
{
	padding: 1.6rem 1.5rem 3rem 1.5rem;
}

.vw-app .ov_lib
{
	max-width: none;
}

.vw-app .ov_admin_page table.ov_users_table th:first-child,
.vw-app .ov_admin_page table.ov_users_table td:first-child
{
	padding-left: 0.5rem;
}

.vw-app .ov_admin_page table.ov_users_table th:last-child,
.vw-app .ov_admin_page table.ov_users_table td:last-child
{
	padding-right: 0.5rem;
}

/* Page numbering "1–20 of 45" under every list. */
.vw-app .ov_lib_pager
{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.15rem;
	margin-top: 0.9rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.86rem;
}

.ov_lib_pager_text
{
	margin-right: 0.5rem;
}

.vw-app .ov_lib_pager_button
{
	width: 32px;
	height: 32px;
}

.vw-app .ov_lib_pager_button svg
{
	width: 18px;
	height: 18px;
}

.vw-app .ov_lib_pager_button:disabled
{
	opacity: 0.35;
	cursor: default;
	background: transparent;
}

.vw-app .ov_lib_new.ov_lib_new_single
{
	padding: 0 1.1rem 0 0.9rem;
	gap: 0.45rem;
}

/* Cards (grid view) on Users and Subscription Plans. */
.vw-app .ov_users_table_wrap.grid
{
	overflow: visible;
}

.vw-app .ov_admin_grid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 1rem;
}

.vw-app .ov_admin_card
{
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--vw-r-lg, 12px);
	corner-shape: squircle;
	background: var(--wp--preset--color--base);
	transition: border-color 0.15s;
}

.vw-app .ov_admin_card:hover
{
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 45%, var(--wp--preset--color--border));
}

.vw-app .ov_admin_card.blocked > :not(.ov_admin_card_foot)
{
	opacity: 0.55;
}

.ov_admin_card_head
{
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ov_admin_card_names
{
	flex: 1;
	min-width: 0;
}

.ov_admin_card_names div
{
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ov_admin_avatar
{
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font-weight: 800;
}

.ov_admin_card_fields
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem 1rem;
}

.ov_admin_card_label
{
	margin-bottom: 0.2rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	font-weight: 700;
}

.ov_admin_card_value
{
	font-size: 0.92rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vw-app .ov_admin_card select.ov_users_select
{
	width: 100%;
}

.ov_admin_card_foot
{
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
}

.vw-app .ov_plans_card .ov_plans_actions
{
	gap: 0;
}

.vw-app .ov_plans_card .ov_plans_price
{
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ov_plans_price_main
{
	font-weight: 700;
}

.ov_plans_card .ov_plans_price_main
{
	font-size: 1.35rem;
}

.ov_plans_price_sub
{
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}

.vw-app .ov_admin_empty
{
	padding: 3rem 1rem;
	color: var(--wp--preset--color--muted);
	text-align: center;
}

/* Basemaps: list (two columns, rows) or grid (one column, map cards). */
.vw-app .ov_basemaps_wrap div.ov_settings_page.ov_basemaps_page.grid
{
	grid-template-columns: minmax(0, 1fr);
}

.vw-app .ov_basemap_settings_list.grid div.ov_basemap_settings_group
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 0.75rem;
}

.vw-app .ov_basemap_settings_list.grid div.ov_basemap_settings_group_name
{
	grid-column: 1 / -1;
	margin: 0.4rem 0 0 0;
}

.vw-app .ov_basemap_settings_list.grid label.ov_basemap_settings_row
{
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	grid-template-areas: "swatch swatch swatch" "text remove control";
	align-items: center;
	gap: 0.65rem 0.4rem;
	margin: 0;
	padding: 0.55rem 0.55rem 0.7rem 0.55rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--vw-r-lg, 12px);
}

.vw-app .ov_basemap_settings_list.grid div.ov_basemap_settings_swatch
{
	grid-area: swatch;
	width: 100%;
	height: 120px;
	border-radius: 8px;
}

.vw-app .ov_basemap_settings_list.grid div.ov_basemap_settings_text
{
	grid-area: text;
	padding-left: 0.2rem;
}

.vw-app .ov_basemap_settings_list.grid .ov_basemap_settings_remove
{
	grid-area: remove;
}

.vw-app .ov_basemap_settings_list.grid input.ov_switch,
.vw-app .ov_basemap_settings_list.grid input.ov_radio
{
	grid-area: control;
	margin: 0 0.2rem;
}

.vw-app .ov_basemap_settings_list.grid div.ov_basemap_settings_meta
{
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Terrain has no map picture: a small elevation drawing instead. */
.vw-app div.ov_basemap_settings_swatch.ov_terrain_swatch
{
	background: #6f8f6a;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V42l18-14 14 9 22-23 18 16 12-8 36 26v12z' fill='%23e9e3d1' fill-opacity='.85'/%3E%3Cpath d='M0 60V50l22-10 16 6 24-14 20 10 14-4 24 10v12z' fill='%23476b46'/%3E%3C/svg%3E"), linear-gradient(180deg, #9cc3d8, #cfe2ea) !important;
	background-size: 100% 100%, 100% 100% !important;
}

.vw-app .ov_basemap_settings_pager .ov_lib_pager
{
	margin-top: 0.6rem;
}

/* Tooltips size to their text (next to the slim rail there is no room to shrink into). */
.vw-tip,
.vw-app.is-collapsed .vw-app-link .vw-app-link-text
{
	width: max-content;
	max-width: 320px;
}

/* Basemaps and Payments as items, like Subscription Plans (theme 2.28). ----------------------------------------- */
.vw-app .ov_admin_note
{
	margin: -0.4rem 0 0.6rem 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
}

.vw-app td.ov_source_name_cell > *
{
	display: inline-block;
	vertical-align: middle;
}

.vw-app td.ov_source_name_cell div.ov_basemap_settings_swatch
{
	margin-right: 0.75rem;
}

.vw-app td.ov_source_attribution
{
	max-width: 340px;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}

.vw-app .ov_source_control
{
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
	cursor: pointer;
}

.vw-app .ov_source_control input
{
	margin: 0;
}

.vw-app .ov_source_card
{
	padding: 0.6rem 0.6rem 0.9rem 0.6rem;
	gap: 0.7rem;
}

.vw-app .ov_source_card .ov_admin_card_head,
.vw-app .ov_source_card .ov_source_card_attribution,
.vw-app .ov_source_card .ov_admin_card_foot
{
	padding: 0 0.45rem;
}

.vw-app div.ov_basemap_settings_swatch.ov_source_preview
{
	width: 100%;
	height: 140px;
	border-radius: 8px;
}

.vw-app .ov_source_card_attribution
{
	display: -webkit-box;
	min-height: 2.6em;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
	line-height: 1.3;
}

.vw-app .ov_source_card .ov_admin_card_foot
{
	justify-content: flex-start;
}

.vw-app .ov_payments_status,
.vw-app .ov_payments_key
{
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vw-app .ov_payments_status .ov_svg_icon
{
	width: 18px;
	height: 18px;
}

.vw-app td.ov_payments_actions
{
	text-align: right;
}

.vw-app td.ov_payments_actions .ov_payments_buttons
{
	display: inline-flex;
	gap: 0.5rem;
	margin: 0;
}

.vw-app .ov_payments_card .ov_admin_card_foot .ov_payments_buttons
{
	display: flex;
	gap: 0.5rem;
	margin: 0;
}

.vw-app .ov_payments_card_value
{
	min-height: 2.2rem;
}

.vw-app code.ov_payments_code
{
	font-size: 0.8rem;
	word-break: break-all;
	white-space: normal;
}

.vw-app a.ov_payments_open
{
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 1rem;
	border-radius: 999px;
	font-size: 0.85rem;
	text-decoration: none;
}

.vw-app .ov_payments_card .ov_admin_card_foot
{
	justify-content: flex-start;
}

.vw-app .ov_payments_page div.ov_gallery_filter
{
	display: inline-flex;
	width: auto;
}

.vw-app .ov_payments_status
{
	flex-wrap: nowrap;
	align-items: flex-start;
}

.vw-app .ov_payments_status .ov_svg_icon
{
	flex: none;
	margin-top: 0.1rem;
}

.vw-app a.ov_payments_open,
.vw-app a.ov_payments_open:hover
{
	border: 1.5px solid var(--wp--preset--color--border);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

.vw-app a.ov_payments_open:hover
{
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Payments: the providers (Stripe) as items; the settings of a provider open in a dialog. ----------------------- */
.ov_payments_provider
{
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.ov_payments_logo
{
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #635bff;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 800;
}

.ov_payments_provider_text
{
	min-width: 0;
}

.vw-app .ov_admin_empty .ov_admin_empty_title
{
	margin-bottom: 0.3rem;
	color: var(--wp--preset--color--contrast);
	font-size: 1.05rem;
	font-weight: 700;
}

.vw-app .ov_payments_card .ov_admin_card_foot .ov_plans_actions
{
	justify-content: flex-start;
}

div.ov_modal.ov_payments_dialog
{
	width: min(640px, calc(100vw - 32px));
}

.ov_payments_settings
{
	max-height: min(62vh, 640px);
	overflow-y: auto;
	padding-right: 0.25rem;
}

.ov_payments_heading
{
	margin: 1.1rem 0 0.35rem 0;
	color: var(--ov_foreground_color);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.6;
}

.ov_payments_heading:first-child
{
	margin-top: 0.2rem;
}

.ov_payments_row
{
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 46px;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--ov_border_color);
}

.ov_payments_row_name
{
	flex: none;
	width: 150px;
	font-weight: 600;
}

.ov_payments_row_value
{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	min-width: 0;
}

.ov_payments_row_value .ov_settings_button
{
	height: 32px;
	padding: 0 0.9rem;
	border-radius: 999px;
	font-size: 0.85rem;
}

.ov_payments_dialog .ov_payments_status
{
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.ov_payments_dialog .ov_payments_status .ov_svg_icon
{
	flex: none;
	width: 18px;
	height: 18px;
}

.ov_payments_dialog .ov_source_control
{
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	cursor: pointer;
}

.ov_payments_dialog div.ov_gallery_filter
{
	display: inline-flex;
}

.ov_payments_links
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.4rem 0 0.6rem 0;
}

.ov_payments_dialog a.ov_payments_open
{
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 0.9rem;
	border: 1.5px solid var(--ov_border_color);
	border-radius: 999px;
	color: var(--ov_foreground_color);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.ov_payments_dialog a.ov_payments_open:hover
{
	border-color: var(--ov_button_color, #3393bd);
	color: var(--ov_button_color, #3393bd);
}

@media (max-width: 600px)
{
	.ov_payments_row
	{
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}
}

/* Dropdowns in dialogs look like the text fields. */
div.ov_modal select.ov_settings_input
{
	display: block;
	width: 100%;
	height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--ov_dialog_control_border_color, var(--ov_border_color));
	border-radius: 10px;
	background-color: var(--ov_background_color);
	color: var(--ov_foreground_color);
	font-family: inherit;
	font-size: 0.95rem;
	box-sizing: border-box;
}

div.ov_modal select.ov_settings_input + .ov_payments_sub
{
	margin-top: 0.5rem;
}

/* Rounded (pill) buttons everywhere, also in dialogs (theme 2.30). ---------------------------------------------- */
html body div.ov_button,
html body button.ov_button,
html body a.ov_button,
html body .vw-app div.ov_button
{
	border-radius: 999px;
	corner-shape: round;
}

html body div.ov_dialog div.ov_dialog_buttons div.ov_dialog_button,
html body div.ov_dialog.ov_plan_dialog div.ov_dialog_buttons div.ov_dialog_button
{
	min-width: 88px;
	padding: 7px 20px;
	font-weight: 700;
	line-height: 1.35;
}

/* Dialogs stand out from the page (no dimmed layer): stronger shadow and a clear edge. */
html body div.ov_modal div.ov_dialog
{
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--contrast) 4%, transparent), 0 32px 90px rgba(15, 30, 45, 0.38), 0 10px 28px rgba(15, 30, 45, 0.16);
}

html[data-theme="dark"] body div.ov_modal div.ov_dialog
{
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), 0 32px 90px rgba(0, 0, 0, 0.7), 0 10px 28px rgba(0, 0, 0, 0.4);
}

/* Basemap cards like the model and demo cards. */
.vw-app .ov_source_grid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: 1rem;
}

.vw-app a.ov_gallery_card.ov_source_card
{
	cursor: default;
}

.vw-app a.ov_gallery_card.ov_source_card div.ov_gallery_thumb img
{
	object-fit: cover;
	padding: 0;
}

.vw-app a.ov_gallery_card.ov_source_card:hover div.ov_gallery_thumb img
{
	transform: scale(1.04);
}

.vw-app div.ov_source_thumb div.ov_basemap_settings_swatch.ov_source_fill
{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	box-shadow: none;
}

.vw-app div.ov_gallery_thumb div.ov_gallery_format.ov_source_pill
{
	background: #2563eb;
}

.vw-app div.ov_gallery_thumb div.ov_gallery_format.ov_source_pill.terrain
{
	background: #15803d;
}

.vw-app .ov_source_card_bottom
{
	margin: 16px 16px 14px 16px;
}

.vw-app .ov_source_type
{
	display: inline-block;
	padding: 0.1rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, #2563eb 14%, transparent);
	color: #2563eb;
	font-size: 0.8rem;
	font-weight: 700;
}

.vw-app .ov_source_type.terrain
{
	background: color-mix(in srgb, #15803d 14%, transparent);
	color: #15803d;
}

html[data-theme="dark"] .vw-app .ov_source_type
{
	color: #7aa7ff;
}

html[data-theme="dark"] .vw-app .ov_source_type.terrain
{
	color: #5fd08a;
}

/* Payments: empty state like Models. */
.vw-app .ov_payments_page div.ov_gallery_empty
{
	min-height: calc(100vh - var(--vw-app-offset, 0px) - 16rem);
}

/* Selection and ⋯ actions on every list and grid (theme 2.31). ------------------------------------------------ */
.vw-app .ov_lib_list .ov_lib_check,
.vw-app .ov_users_table .ov_lib_check
{
	opacity: 1;
}

.vw-app .ov_users_table th.ov_col_check,
.vw-app .ov_users_table td.ov_col_check
{
	width: 34px;
	padding-right: 0;
}

.vw-app .ov_users_table th.ov_col_menu,
.vw-app .ov_users_table td.ov_col_menu
{
	width: 44px;
	text-align: right;
}

.vw-app .ov_users_table tbody tr.selected td
{
	background: color-mix(in srgb, var(--wp--preset--color--accent) 9%, transparent);
}

/* The ⋯ button is always there (a little lighter until the row or card is hovered). */
.vw-app .ov_lib_row_menu,
.vw-app .ov_users_table .ov_lib_row_menu,
.vw-app .ov_admin_card .ov_lib_row_menu,
.vw-app .ov_gallery_card .ov_lib_row_menu
{
	opacity: 0.65;
}

.vw-app .ov_lib_row:hover .ov_lib_row_menu,
.vw-app .ov_users_table tr:hover .ov_lib_row_menu,
.vw-app .ov_admin_card:hover .ov_lib_row_menu,
.vw-app .ov_gallery_card:hover .ov_lib_row_menu,
.vw-app .ov_lib_row_menu.open
{
	opacity: 1;
}

.vw-app .ov_admin_card_head .ov_lib_row_menu
{
	flex: none;
	margin-left: auto;
}

.vw-app .ov_gallery_info .ov_lib_row_menu
{
	flex: none;
	margin: -4px -2px 0 0;
}

.vw-app .ov_lib_row_menu.ov_card_more
{
	position: absolute;
	top: 8px;
	right: 8px;
}

/* Card checkboxes: on hover, while something is selected, or when checked. */
.vw-app .ov_selectable .ov_lib_check
{
	flex: none;
	opacity: 0;
	background: var(--wp--preset--color--base);
}

.vw-app .ov_selectable:hover .ov_lib_check,
.vw-app .has-selection .ov_selectable .ov_lib_check,
.vw-app .ov_selectable .ov_lib_check.checked,
.vw-app .ov_selectable .ov_lib_check:focus-visible
{
	opacity: 1;
}

.vw-app .ov_selectable .ov_lib_check.checked
{
	background: var(--wp--preset--color--accent);
}

.vw-app .ov_lib_check.ov_card_check
{
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	width: 22px;
	height: 22px;
	border-color: rgba(255, 255, 255, 0.95);
	background: rgba(17, 24, 33, 0.35);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.vw-app .ov_lib_check.ov_card_check.checked
{
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
}

/* The format pill makes room for the checkbox. */
.vw-app .ov_selectable div.ov_gallery_thumb div.ov_gallery_format
{
	transition: left 0.15s;
}

.vw-app .ov_selectable:hover div.ov_gallery_thumb div.ov_gallery_format,
.vw-app .has-selection .ov_selectable div.ov_gallery_thumb div.ov_gallery_format
{
	left: 40px;
}

.vw-app a.ov_gallery_card.ov_selectable.selected,
.vw-app .ov_admin_card.ov_selectable.selected
{
	box-shadow: 0 0 0 2px var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.vw-app .ov_admin_card_status
{
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: -0.4rem;
}

.vw-app .ov_users_blocked
{
	margin-left: 0.5rem;
}

.vw-app .ov_lib_bulk_button svg + span + svg
{
	width: 14px;
	height: 14px;
}

/* Edit user dialog: details read only, role, plan and access editable (theme 2.32). ----------------------------- */
div.ov_modal.ov_user_dialog
{
	width: min(640px, calc(100vw - 32px));
}

.ov_user_form
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.15rem 1rem;
}

.ov_user_field.wide
{
	grid-column: 1 / -1;
}

.ov_user_field label.ov_settings_label
{
	display: block;
	margin: 0.6rem 0 0.3rem 0;
}

div.ov_modal input.ov_settings_input[readonly]
{
	border-color: transparent;
	background: color-mix(in srgb, var(--ov_foreground_color) 6%, transparent);
	color: color-mix(in srgb, var(--ov_foreground_color) 70%, transparent);
	cursor: default;
}

div.ov_modal input.ov_settings_input[readonly]:focus
{
	outline: none;
	box-shadow: none;
}

div.ov_modal select.ov_settings_input:disabled
{
	opacity: 0.55;
	cursor: default;
}

@media (max-width: 560px)
{
	.ov_user_form
	{
		grid-template-columns: minmax(0, 1fr);
	}
}

.vw-app .ov_admin_page td.ov_users_email_cell
{
	color: var(--wp--preset--color--muted);
}

/* One card for every page (Models, Users, Plans, Payments, Basemaps) (theme 2.33). ------------------------------ */
/* Pills on the right so the checkbox (top left) never moves them; badges at the bottom left. */
.vw-app div.ov_gallery_thumb div.ov_gallery_format,
.vw-app .ov_selectable:hover div.ov_gallery_thumb div.ov_gallery_format,
.vw-app .has-selection .ov_selectable div.ov_gallery_thumb div.ov_gallery_format
{
	left: auto;
	right: 9px;
}

.vw-app div.ov_gallery_thumb div.ov_gallery_badge
{
	top: auto;
	right: auto;
	left: 9px;
	bottom: 9px;
}

.vw-app a.ov_gallery_card.ov_item_card
{
	cursor: default;
}

.vw-app a.ov_gallery_card.ov_item_card.clickable
{
	cursor: pointer;
}

.vw-app div.ov_gallery_thumb.ov_item_cover
{
	display: flex;
	align-items: center;
	justify-content: center;
}

.vw-app .ov_item_avatar
{
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-size: 1.6rem;
	font-weight: 800;
	box-shadow: 0 4px 14px rgba(15, 30, 45, 0.18);
}

.vw-app a.ov_item_card.blocked .ov_item_avatar
{
	background: #8a96a3;
}

.vw-app .ov_item_price
{
	text-align: center;
}

.vw-app .ov_item_price .ov_plans_price_main
{
	font-size: 1.5rem;
	font-weight: 800;
}

.vw-app .ov_item_price .ov_plans_price_sub
{
	font-size: 0.85rem;
}

.vw-app .ov_item_price .ov_settings_badge
{
	display: inline-block;
	margin: 0.35rem 0 0 0;
}

.vw-app div.ov_gallery_thumb.ov_stripe_cover,
html[data-theme="dark"] .vw-app a.ov_gallery_card div.ov_gallery_thumb.ov_stripe_cover
{
	background: #635bff;
}

.vw-app .ov_stripe_word
{
	color: #fff;
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.vw-app .ov_item_bottom
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 16px 16px 14px 16px;
	min-height: 32px;
}

.vw-app button.ov_item_action
{
	padding: 4px 16px;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

html[data-theme="dark"] .vw-app button.ov_item_action
{
	border-color: #56626e;
}

.vw-app a.ov_item_card:hover button.ov_item_action
{
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: #fff;
}

.vw-app .ov_item_status
{
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}

.vw-app .ov_item_status .ov_users_blocked
{
	margin-left: 0.25rem;
}

/* Pill colours. */
.vw-app div.ov_gallery_thumb div.ov_item_pill.admin { background: var(--wp--preset--color--accent); }
.vw-app div.ov_gallery_thumb div.ov_item_pill.user { background: rgba(17, 23, 29, 0.55); }
.vw-app div.ov_gallery_thumb div.ov_item_pill.default { background: #15803d; }
.vw-app div.ov_gallery_thumb div.ov_item_pill.test { background: #b45309; }
.vw-app div.ov_gallery_thumb div.ov_item_pill.live { background: #15803d; }

.vw-app a.ov_gallery_card div.ov_gallery_thumb.ov_stripe_cover
{
	background: #635bff;
}

/* ===== Theme 2.34: plan currency and discount, "?" help popover, users count on plan cards ===== */

/* "?" next to a heading: a click opens the explanation in a small popover. */
.ov_help
{
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	margin-left: 0.4rem;
}

button.ov_help_button
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

button.ov_help_button:hover,
button.ov_help_button[aria-expanded="true"]
{
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

div.ov_help_popover
{
	position: absolute;
	top: calc(100% + 8px);
	left: -12px;
	z-index: 30;
	width: 280px;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #11171d);
	box-shadow: 0 8px 24px rgba(17, 23, 29, 0.16);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	text-transform: none;
	letter-spacing: normal;
}

div.ov_help_popover[hidden]
{
	display: none;
}

div.ov_plan_section_title
{
	display: flex;
	align-items: center;
}

/* Price per month | Currency | Discount (%) */
div.ov_plan_dialog div.ov_plan_price_row
{
	grid-template-columns: 1.4fr 1fr 1fr;
	margin-top: 6px;
}

div.ov_plan_dialog select.ov_plan_currency
{
	width: 100%;
}

/* Discount on the cards: price before the discount struck through, then the discount. */
.ov_plans_discount
{
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.2rem;
}

.ov_plans_discount_badge,
.vw-plans-discount-badge,
.vw-compare-discount-badge
{
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	background: #15803d;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.vw-plans-discount
{
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: -0.6rem 0 1rem 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
}

/* Users of a plan, at the bottom right of its card (like Online on user cards). */
.vw-app .ov_item_status.ov_plan_users svg
{
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

/* ===== Theme 2.35: basemap cards like the user, plan and payment cards (Edit + Active / Inactive) ===== */
.vw-app a.ov_gallery_card.ov_source_item div.ov_gallery_thumb img
{
	object-fit: cover;
	padding: 0;
}

.vw-app a.ov_gallery_card.ov_source_item:hover div.ov_gallery_thumb img
{
	transform: scale(1.04);
}

/* Cards on the admin pages: a click selects the card; Edit opens it. */
.vw-app a.ov_gallery_card.ov_select_on_click
{
	cursor: pointer;
}

/* Payment dialog: provider, mode, keys, payment methods, status in one form. */
div.ov_payment_dialog
{
	width: min(560px, calc(100vw - 32px));
}

div.ov_payment_dialog div.ov_payment_methods
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 16px;
	padding: 4px 0 2px 0;
}

div.ov_payment_dialog label.ov_payment_method
{
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

div.ov_payment_dialog label.ov_payment_method.unavailable
{
	color: var(--wp--preset--color--muted);
	cursor: default;
}

div.ov_payment_dialog label.ov_payment_method input
{
	margin: 0;
}

div.ov_payment_dialog div.ov_payment_state
{
	padding: 4px 0;
}

div.ov_payment_dialog div.ov_basemap_settings_field
{
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
}

div.ov_payment_dialog div.ov_payment_form,
div.ov_payment_dialog div.ov_payment_provider_fields
{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

div.ov_payment_dialog div.ov_payment_methods label,
div.ov_payment_dialog div.ov_payment_state
{
	font-weight: 400;
}

/* Payment dialog: provider and mode as tiles side by side (like Google / One-time code when signing in). */
div.ov_payment_dialog div.ov_choice_tiles
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

div.ov_payment_dialog button.ov_choice_tile
{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--base, #ffffff);
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

div.ov_payment_dialog button.ov_choice_tile:hover
{
	border-color: var(--wp--preset--color--accent);
}

div.ov_payment_dialog button.ov_choice_tile.selected
{
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent-soft, #e3f0f7);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent);
}

div.ov_payment_dialog button.ov_choice_tile svg
{
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

div.ov_payment_dialog button.ov_choice_tile:nth-child(1) svg { color: #b7791f; }
div.ov_payment_dialog button.ov_choice_tile:nth-child(2) svg { color: #15803d; }

div.ov_payment_dialog span.ov_choice_logo
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
}

div.ov_payment_dialog span.ov_choice_logo_stripe
{
	background: #635bff;
}

/* A single choice (for example the only payment provider) fills the whole row. */
div.ov_payment_dialog div.ov_choice_tiles button.ov_choice_tile:only-child
{
	grid-column: 1 / -1;
}

/* Install app: the steps for this device (dialog in the dashboard). */
div.ov_install_dialog div.ov_install_intro
{
	margin-bottom: 12px;
	color: var(--wp--preset--color--muted);
}

div.ov_install_dialog ol.ov_install_steps
{
	margin: 0px;
	padding-left: 22px;
	line-height: 1.5;
}

div.ov_install_dialog ol.ov_install_steps li
{
	margin-bottom: 8px;
}

/* Phones: lists keep all their columns and scroll sideways with the finger (the name column stays). */
@media (max-width: 700px)
{
	.vw-app .ov_lib_body.list
	{
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		touch-action: pan-x pan-y;
	}

	.vw-app .ov_lib_body.list .ov_lib_list
	{
		min-width: 640px;
	}

	.vw-app .ov_lib_body.list .ov_lib_row
	{
		grid-template-columns: 36px minmax(190px, 1fr) 120px 150px 80px 44px;
	}

	.vw-app .ov_lib_body.list .ov_lib_col_owner,
	.vw-app .ov_lib_body.list .ov_lib_col_activity,
	.vw-app .ov_lib_body.list .ov_lib_col_size
	{
		display: block;
	}

	.vw-app .ov_lib_body.list .ov_lib_row:not(.ov_lib_row_head) .ov_lib_col_owner,
	.vw-app .ov_lib_body.list .ov_lib_row:not(.ov_lib_row_head) .ov_lib_col_activity,
	.vw-app .ov_lib_body.list .ov_lib_row:not(.ov_lib_row_head) .ov_lib_col_size
	{
		display: block;
	}

	.vw-app .ov_admin_page div.ov_users_table_wrap:not(.grid)
	{
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x pan-y;
	}
}

/* Basemaps list: long names and attributions are shortened so the table fits the page. */
.vw-app td.ov_source_name_cell
{
	max-width: 220px;
}

.vw-app td.ov_source_name_cell div.ov_users_name
{
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vw-app td.ov_source_attribution
{
	max-width: 190px;
}

/* Pull to refresh (dashboard on touch screens): the browser's own is replaced so it also works as installed app. */
html.vw-pull-refresh,
html.vw-pull-refresh body
{
	overscroll-behavior-y: contain;
}

.vw-pull-indicator
{
	position: fixed;
	top: calc(env(safe-area-inset-top) + 8px);
	left: 50%;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--base);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translate(-50%, -48px);
	pointer-events: none;
}

.vw-pull-indicator svg
{
	width: 20px;
	height: 20px;
}

.vw-pull-indicator.ready
{
	color: var(--wp--preset--color--accent);
}

.vw-pull-indicator.loading svg
{
	animation: vw-pull-spin 0.8s linear infinite;
}

@keyframes vw-pull-spin
{
	to { transform: rotate(360deg); }
}

/* Phones and tablets: the header only has the round menu button (the logo is in the sidebar), the Models title
   is hidden, filter / grid / list sit on the left with New on the right, the search below over the full width. */
@media (max-width: 900px)
{
	.vw-app-top .vw-app-brand
	{
		display: none;
	}

	.vw-app .vw-app-menu-button
	{
		width: 40px;
		height: 40px;
		border-radius: 999px;
		background: var(--ov-lib-pressed, var(--wp--preset--color--border));
		color: var(--wp--preset--color--contrast);
		transition: background 0.15s;
	}

	.vw-app .vw-app-menu-button:active
	{
		background: var(--ov-lib-hover, var(--wp--preset--color--border));
	}

	.vw-app .vw-app-menu-button svg
	{
		width: 20px;
		height: 20px;
	}

	.vw-app h1.ov_lib_title
	{
		display: none;
	}

	.ov_lib_tools
	{
		width: 100%;
		justify-content: flex-start;
	}

	.vw-app .ov_lib_new
	{
		margin-left: auto;
	}

	.vw-app .ov_lib_search
	{
		order: 10;
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		margin: 0.35rem 0 0 0;
	}

	/* While the finger drags the sidebar it follows the finger, without the slide transition. */
	.vw-app.is-nav-dragging .vw-app-side
	{
		transition: none;
	}

	.vw-app.is-nav-dragging .vw-app-scrim
	{
		display: block;
		position: fixed;
		inset: 0;
		z-index: 35;
		background: rgba(0, 0, 0, 0.35);
	}
}

/* Phones and tablets: the header has the colour of the page (no line); the header, the toolbar and the search stay
   in place while the models scroll; the open sidebar locks the page behind it; no collapse button in the sidebar. */
@media (max-width: 900px)
{
	.vw-app .vw-app-top
	{
		background: var(--wp--preset--color--base-alt);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border-bottom: 0;
	}

	.vw-app .vw-app-top::before
	{
		display: none;
	}

	.vw-app .ov_lib_head
	{
		position: sticky;
		top: calc(var(--vw-app-offset, 0px) + 56px);
		z-index: 15;
		margin: -0.75rem -1rem 0.6rem -1rem;
		padding: 0.25rem 1rem 0.6rem 1rem;
		background: var(--wp--preset--color--base-alt);
	}

	.vw-app .vw-app-collapse
	{
		display: none;
	}

	.vw-app .vw-app-scrim
	{
		touch-action: none;
	}

	.vw-app .vw-app-side
	{
		overscroll-behavior: contain;
	}
}

/* Phones and tablets: filter / grid / list in the top bar on the right; search with New beside it below. */
.vw-app-top-tools
{
	display: none;
}

@media (max-width: 900px)
{
	.vw-app-top-tools
	{
		display: flex;
		align-items: center;
		gap: 2px;
		margin-left: auto;
	}

	.vw-app:not(:has(.ov_lib)) .vw-app-top-tools
	{
		display: none;
	}

	.vw-app .ov_lib_tools
	{
		flex-wrap: nowrap;
		gap: 0.5rem;
	}

	.vw-app .ov_lib_chips:not(:empty)
	{
		position: absolute;
		top: calc(100% - 0.35rem);
		left: 1rem;
	}

	.vw-app .ov_lib_search
	{
		order: 0;
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		margin: 0;
		height: 40px;
	}

	.vw-app .ov_lib_new
	{
		flex: 0 0 auto;
		margin-left: 0;
		height: 40px;
	}

	/* Cards: the whole card opens the model, no Open button. */
	.vw-app a.ov_gallery_card div.ov_gallery_open
	{
		display: none;
	}

	.vw-app a.ov_gallery_card div.ov_gallery_info
	{
		padding-bottom: 12px;
	}

	.vw-app .ov_lib div.ov_gallery_grid
	{
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 12px;
	}

	/* Loading the next cards at the end of the list. */
	.vw-app div.ov_lib_more
	{
		display: flex;
		justify-content: center;
		padding: 1.5rem 0 2rem 0;
		color: var(--wp--preset--color--muted);
		font-size: 0.85rem;
	}

	.vw-app div.ov_lib_more_spinner
	{
		width: 26px;
		height: 26px;
		border-radius: 50%;
		border: 3px solid var(--wp--preset--color--border);
		border-top-color: var(--wp--preset--color--accent);
		animation: vw-spin 0.8s linear infinite;
	}
}

@keyframes vw-spin
{
	to { transform: rotate(360deg); }
}

/* Phones: two compact cards per row. */
@media (max-width: 600px)
{
	.vw-app .ov_lib div.ov_gallery_grid
	{
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.vw-app .ov_lib div.ov_gallery_thumb
	{
		aspect-ratio: 4 / 3;
	}

	.vw-app .ov_lib div.ov_gallery_thumb div.ov_gallery_format
	{
		font-size: 10px;
		line-height: 15px;
		padding: 1px 5px;
		top: 7px;
		right: 7px;
	}

	.vw-app .ov_lib div.ov_gallery_thumb div.ov_gallery_badge
	{
		font-size: 10px;
	}

	.vw-app .ov_lib a.ov_gallery_card div.ov_gallery_info
	{
		padding: 9px 2px 10px 11px;
		gap: 2px;
	}

	.vw-app .ov_lib div.ov_gallery_title
	{
		font-size: 14px;
	}

	.vw-app .ov_lib div.ov_gallery_author
	{
		font-size: 11.5px;
	}

	.vw-app .ov_lib .ov_gallery_card_menu
	{
		width: 30px;
		height: 30px;
	}
}

/* The pressed / hover colours of the Models tools also apply in the top bar (grid / list moved there on phones). */
.vw-app
{
	--ov-lib-hover: color-mix(in srgb, var(--wp--preset--color--contrast) 6%, transparent);
	--ov-lib-pressed: color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

@media (max-width: 600px)
{
	/* Date on the first line, owner and size on the second (instead of being cut off). */
	.vw-app .ov_lib div.ov_gallery_author
	{
		line-height: 1.4;
		margin-top: 2px;
	}

	.vw-app .ov_lib div.ov_gallery_author span.ov_gallery_sep
	{
		display: none;
	}

	.vw-app .ov_lib div.ov_gallery_author span.ov_gallery_date,
	.vw-app .ov_lib div.ov_gallery_author span.ov_gallery_owner
	{
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* Pull to refresh below the top bar and the toolbar: the arrow slides out from under them. */
.vw-pull-indicator.below-bar
{
	z-index: 10;
}

/* Install app above the storage box: phones and tablets only (the account menu has it on computers). */
.vw-app .vw-side-install
{
	display: none;
}

@media (max-width: 900px)
{
	.vw-app .vw-side-install
	{
		display: flex;
		margin-bottom: 0.5rem;
	}
}

/* Phones and tablets: light / dark is chosen under Settings > Appearance, not in the sidebar. */
@media (max-width: 900px)
{
	.vw-app .vw-app-side .vw-theme-toggle
	{
		display: none;
	}
}

/* Phones and tablets: on Profile, Billing and Usage the top bar has ‹ back to Settings instead of the menu. */
.vw-app-back-button
{
	display: none;
}

@media (max-width: 900px)
{
	.vw-app.is-settings .vw-app-menu-button
	{
		display: none;
	}

	.vw-app.is-settings .vw-app-back-button
	{
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: var(--ov-lib-pressed);
		color: var(--wp--preset--color--contrast);
		cursor: pointer;
	}

	.vw-app.is-settings .vw-app-back-button svg
	{
		width: 22px;
		height: 22px;
	}
}

/* Installed app started in dark mode draws under the phone's status bar: the top bar (sticky) and the sidebar
   reach up behind it in the page colour, their content starts below it. env() is 0 everywhere else. */
@media (max-width: 900px)
{
	.vw-app .vw-app-top
	{
		height: calc(56px + env(safe-area-inset-top, 0px));
		padding-top: env(safe-area-inset-top, 0px);
	}

	.vw-app .ov_lib_head
	{
		top: calc(var(--vw-app-offset, 0px) + 56px + env(safe-area-inset-top, 0px));
	}

	.vw-app .vw-app-side
	{
		padding-top: env(safe-area-inset-top, 0px);
	}
}

/* Plans over the app: below the phone's status bar when the installed app draws under it. */
.vw-plans
{
	padding-top: env(safe-area-inset-top, 0px);
}

.vw-plans-close
{
	top: calc(env(safe-area-inset-top, 0px) + 18px) !important;
}

/* Touch screens (phones, tablets; Apple and Android): small controls of the model list get finger-size tap areas
   without changing how they look. The tabs row scrolls sideways on narrow phones. */
@media (hover: none) and (pointer: coarse)
{
	.vw-app button.ov_gallery_card_menu,
	.vw-app .ov_lib button.ov_gallery_card_menu
	{
		position: relative;
		width: 44px;
		height: 44px;
		margin: -10px -6px -10px 0;
	}

	/* The tap area is finger size, the pressed circle stays small and inside the card. */
	.vw-app button.ov_gallery_card_menu:hover,
	.vw-app button.ov_gallery_card_menu.open,
	.vw-app .ov_lib button.ov_gallery_card_menu:hover,
	.vw-app .ov_lib button.ov_gallery_card_menu.open
	{
		background: transparent;
	}

	.vw-app button.ov_gallery_card_menu::before
	{
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: 30px;
		height: 30px;
		border-radius: 50%;
		transform: translate(-50%, -50%);
		background: transparent;
	}

	.vw-app button.ov_gallery_card_menu.open::before,
	.vw-app button.ov_gallery_card_menu:active::before
	{
		background: color-mix(in srgb, var(--ov_button_color, #3393bd) 14%, transparent);
	}

	.vw-app button.ov_gallery_card_menu svg
	{
		position: relative;
	}

	.vw-app .ov_lib_check
	{
		position: relative;
	}

	.vw-app .ov_lib_check::before
	{
		content: "";
		position: absolute;
		inset: -12px;
	}

	.vw-app .ov_lib_tab
	{
		height: 44px;
	}
}

/* "New ⌄": text and arrow in the middle of the button when it has a fixed width (phones, tablets). */
.vw-app .ov_lib_new
{
	justify-content: center;
}

/* Menus with a second level (Datasets ⋯: Share >, File information >) and keyboard hints. */
.ov_lib_menu_item.open
{
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 7%, transparent);
}

.ov_lib_menu_item span.ov_lib_menu_shortcut
{
	flex: none;
	color: var(--wp--preset--color--muted);
	font-size: 0.76rem;
	font-weight: 500;
}

.ov_lib_menu_item svg.ov_lib_menu_sub_icon
{
	width: 16px;
	height: 16px;
	color: var(--wp--preset--color--muted);
}

.ov_lib_submenu
{
	z-index: 1001;
}

/* Plan cards like a cloud storage offer: Recommended frame, description, big price with the old one struck,
   storage chips, a large button, features with (i). */
.vw-plans-card
{
	position: relative;
	border-radius: 18px;
	padding: 26px 24px;
}

.vw-plans-card.is-recommended
{
	border: 2px solid #2176ff;
}

.vw-plans-flag
{
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2176ff;
	margin-bottom: 6px;
}

.vw-plans-card .vw-plans-card-name
{
	font-size: 26px;
	font-weight: 600;
}

.vw-plans-summary
{
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--wp--preset--color--muted, var(--ov_muted_text_color));
	min-height: 2.9em;
}

.vw-plans-card .vw-plans-price
{
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 18px;
}

.vw-plans-card .vw-plans-amount
{
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.vw-plans-card .vw-plans-amount.is-discounted
{
	color: #188038;
}

.vw-plans-card .vw-plans-per
{
	font-size: 16px;
}

.vw-plans-card .vw-plans-was
{
	margin-left: 6px;
	color: var(--wp--preset--color--muted, var(--ov_muted_text_color));
	font-size: 16px;
}

.vw-plans-saving
{
	margin-top: 4px;
	color: #188038;
	font-weight: 600;
	font-size: 15px;
}

.vw-plans-choose
{
	margin-top: 18px;
	font-size: 14px;
	font-weight: 600;
}

.vw-plans-chips
{
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

button.vw-plans-chip
{
	flex: 1;
	min-width: 84px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(127, 140, 155, 0.5);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

button.vw-plans-chip.is-active
{
	background: rgba(33, 118, 255, 0.14);
	border-color: transparent;
	color: #1a5fd6;
	font-weight: 600;
}

.vw-plans-card button.vw-plans-button
{
	width: 100%;
	height: 54px;
	margin-top: 20px;
	border-radius: 999px;
	font-size: 17px;
	font-weight: 600;
}

.vw-plans-card button.vw-plans-button.is-primary
{
	background: #1a5fd6;
	border-color: #1a5fd6;
	color: #ffffff;
}

.vw-plans-card .vw-plans-features-lead
{
	margin-top: 22px;
	font-weight: 600;
}

.vw-plans-card .vw-plans-feature
{
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 0;
}

.vw-plans-card .vw-plans-feature span
{
	flex: 1;
}

button.vw-plans-info
{
	flex: none;
	width: 32px;
	height: 32px;
	margin: -6px -6px 0 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--muted, var(--ov_muted_text_color));
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

button.vw-plans-info:hover
{
	background: rgba(127, 140, 155, 0.14);
}

button.vw-plans-info svg
{
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.vw-feature-info-text
{
	font-size: 15px;
	line-height: 1.55;
	white-space: pre-wrap;
}

/* Plan editor: storage options and features as rows. */
.ov_plan_rows
{
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ov_plan_row
{
	display: flex;
	gap: 8px;
	align-items: center;
}

.ov_plan_row .ov_plan_row_size
{
	width: 90px;
	flex: none;
}

.ov_plan_row .ov_plan_row_price
{
	flex: 1;
	min-width: 0;
}

.ov_plan_feature_row
{
	align-items: flex-start;
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--wp--preset--color--border);
}

.ov_plan_row_fields
{
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ov_plan_feature_info
{
	font-size: 0.86rem;
}

button.ov_plan_row_remove
{
	width: 36px;
	height: 36px;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

button.ov_plan_row_remove:hover
{
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
}

button.ov_plan_add_row
{
	align-self: flex-start;
	margin-top: 8px;
	padding: 8px 2px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ov_plan_dialog .ov_plan_form
{
	max-height: calc(100vh - 230px);
	overflow-y: auto;
	padding-right: 4px;
}

/* Default plan and Recommended side by side. */
.ov_plan_flags
{
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 16px;
}

/* Plan cards: the parts are stacked, the upper parts aligned (AlignPlanCards). */
.vw-plans-top,
.vw-compare-top
{
	display: flex;
	flex-direction: column;
}

.vw-plans-flag
{
	min-height: 16px;
}

.vw-compare-card
{
	display: flex;
	flex-direction: column;
}

/* Website plan cards: storage chips, features with (i). */
.vw-compare-flag
{
	margin: 0 0 4px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2176ff;
}

.vw-compare-choose
{
	margin: 14px 0 6px 0;
	font-size: 14px;
	font-weight: 600;
}

.vw-compare-chips
{
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

button.vw-compare-chip
{
	flex: 1;
	min-width: 80px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

button.vw-compare-chip.is-active
{
	background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent);
	border-color: transparent;
	font-weight: 700;
}

.vw-compare-features-lead
{
	margin: 18px 0 6px 0;
	font-weight: 600;
}

ul.vw-compare-features
{
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

ul.vw-compare-features li
{
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 7px 0;
}

ul.vw-compare-features li > svg
{
	width: 18px;
	height: 18px;
	flex: none;
	margin-top: 3px;
	fill: none;
	stroke: var(--wp--preset--color--accent);
	stroke-width: 2.2;
}

ul.vw-compare-features li span
{
	flex: 1;
}

button.vw-feature-info-button
{
	width: 30px;
	height: 30px;
	flex: none;
	margin-top: -4px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

button.vw-feature-info-button svg
{
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

/* Menus: compact rows like a drive's with a mouse, 44 pt rows for fingers. */
@media (pointer: coarse)
{
	.ov_lib_menu_item
	{
		min-height: 44px;
	}
}

/* Dropdown menus (selects, Viewer / Editor...): as wide as their field, compact rows. */
.ov_lib_menu.ov_lib_menu_select
{
	min-width: 0;
	padding: 4px 0;
}

.ov_lib_menu.ov_lib_menu_select .ov_lib_menu_item
{
	padding: 4px 12px;
	font-weight: 500;
}

/* Dashboard loading: the sidebar's frame without links, a spinner in the middle of the page. */
.vw-app.is-loading .vw-app-nav,
.vw-app.is-loading .vw-app-admin,
.vw-app.is-loading .vw-app-side-bottom
{
	visibility: hidden;
}

.vw-app.is-loading .vw-app-head,
.vw-app.is-loading .vw-app-gallery
{
	display: none;
}

.vw-dashboard-loading
{
	display: none;
}

.vw-app.is-loading .vw-dashboard-loading
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: calc(100dvh - 160px);
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	font-weight: 600;
}

.vw-loading-spinner,
.vw-app .ov_gallery_loading::before
{
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
	border-top-color: var(--wp--preset--color--accent);
	box-sizing: border-box;
	animation: vw-loading-spin 0.8s linear infinite;
}

@keyframes vw-loading-spin
{
	to
	{
		transform: rotate(360deg);
	}
}

/* Lists still loading (datasets, models): the same spinner, centred. */
.vw-app .ov_gallery_loading
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 50vh;
	color: var(--wp--preset--color--muted);
	font-weight: 600;
}

.vw-app .ov_gallery_loading::before
{
	content: "";
}

@media (prefers-reduced-motion: reduce)
{
	.vw-loading-spinner,
	.vw-app .ov_gallery_loading::before
	{
		animation-duration: 2.4s;
	}
}

/* With File information docked on the right, the selection bar stays centred in the space left of it. */
@media (min-width: 1000px)
{
	html.ov_info_open .vw-app .ov_lib_bulk
	{
		left: calc(var(--vw-app-side) + (100vw - var(--vw-app-side) - 340px) / 2);
		max-width: calc(100vw - var(--vw-app-side) - 340px - 2rem);
	}
}

/* Pages the role does not allow are left out of the sidebar (the link's display: flex must not show them). */
.vw-app .vw-app-link[hidden]
{
	display: none !important;
}

/* Plan cards (theme 2.61): "Recommended" as a pill on the right of the name; the app's accent instead of
   other blues; colours that read well in dark mode. */
.vw-plans-card .vw-plans-card-head,
.vw-compare-head
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	min-height: 32px;
}

.vw-plans-card .vw-plans-flag,
.vw-compare-head .vw-compare-flag
{
	flex: none;
	min-height: 0;
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent);
	color: var(--wp--preset--color--accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.5;
}

.vw-compare-card.featured .vw-compare-head .vw-compare-flag
{
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
}

.vw-plans-card.is-recommended
{
	border: 2px solid var(--wp--preset--color--accent);
}

button.vw-plans-chip.is-active
{
	background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.vw-plans-card button.vw-plans-button.is-primary
{
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

/* Dark mode: readable greens, softer card surfaces, clear chips and text. */
html[data-theme="dark"] .vw-plans-card
{
	background: #1b242d;
	border-color: rgba(148, 163, 184, 0.18);
	color: #e6edf2;
}

html[data-theme="dark"] .vw-plans-card.is-recommended
{
	background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--accent) 14%, #1b242d) 0%, #1b242d 70%);
	border-color: var(--wp--preset--color--accent);
}

html[data-theme="dark"] .vw-plans-card .vw-plans-card-name,
html[data-theme="dark"] .vw-plans-card .vw-plans-amount
{
	color: #f1f5f9;
}

html[data-theme="dark"] .vw-plans-card .vw-plans-amount.is-discounted,
html[data-theme="dark"] .vw-plans-saving
{
	color: #5fd38a;
}

html[data-theme="dark"] .vw-plans-card .vw-plans-was,
html[data-theme="dark"] .vw-plans-card .vw-plans-per,
html[data-theme="dark"] .vw-plans-summary,
html[data-theme="dark"] .vw-plans-features-lead
{
	color: #9fb0bf;
}

html[data-theme="dark"] .vw-plans-card .vw-plans-flag
{
	background: color-mix(in srgb, var(--wp--preset--color--accent) 26%, transparent);
	color: #bfe6f6;
}

html[data-theme="dark"] button.vw-plans-chip
{
	border-color: rgba(148, 163, 184, 0.35);
	color: #dbe4ec;
}

html[data-theme="dark"] button.vw-plans-chip:hover
{
	background: rgba(148, 163, 184, 0.1);
}

html[data-theme="dark"] button.vw-plans-chip.is-active
{
	background: color-mix(in srgb, var(--wp--preset--color--accent) 30%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 80%, #ffffff);
	color: #ffffff;
}

html[data-theme="dark"] .vw-plans-card button.vw-plans-button:not(.is-primary)
{
	border-color: rgba(148, 163, 184, 0.3);
	color: #c9d5df;
}

html[data-theme="dark"] .vw-plans-card .vw-plans-features li,
html[data-theme="dark"] .vw-plans-card .vw-plans-feature
{
	color: #dbe4ec;
}

/* Active page in the sidebar: black text (white in dark mode), the icon in the accent colour. */
.vw-app .vw-app-link.is-active
{
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.vw-app .vw-app-link.is-active svg
{
	color: var(--wp--preset--color--contrast);
}

/* Tooltips with a keyboard shortcut (sidebar): exactly like every other tooltip (.ov_tooltip). */
.vw-app .vw-tip,
.vw-app.is-collapsed .vw-app-link .vw-app-link-text
{
	padding: 5px 10px;
	border: 1px solid rgba(127, 140, 155, 0.22);
	border-radius: 5px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 4px 14px rgba(15, 30, 45, 0.16);
	font-family: var(--wp--preset--font-family--quicksand, inherit);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.vw-app .vw-tip kbd
{
	padding: 0 5px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
}

/* Phones, list view: the owner's round and name side by side (not one under the other). */
@media (max-width: 700px)
{
	.vw-app .ov_lib_body.list .ov_lib_col_owner,
	.vw-app .ov_lib_body.list .ov_lib_row:not(.ov_lib_row_head) .ov_lib_col_owner
	{
		display: flex;
		align-items: center;
		gap: 8px;
		min-width: 0;
	}

	.vw-app .ov_lib_body.list .ov_lib_col_owner .ov_lib_owner_avatar
	{
		flex: none;
	}

	.vw-app .ov_lib_body.list .ov_lib_col_owner .ov_lib_owner_name
	{
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

/* Phones: the selection bar fits the screen - round icon buttons (their names are read out and shown on a long
   press by the system). */
@media (max-width: 600px)
{
	.vw-app .ov_lib_bulk
	{
		gap: 0.5rem;
		padding: 0.4rem;
	}

	.vw-app .ov_lib_bulk_button
	{
		width: 44px;
		height: 44px;
		padding: 0;
		justify-content: center;
	}

	.vw-app .ov_lib_bulk_button span
	{
		display: none;
	}

	.vw-app .ov_lib_bulk_button svg
	{
		width: 20px;
		height: 20px;
	}
}
