.native-ios {
	max-width: var(--native-visible-width, 100%);
	font: -apple-system-body;
}

.native-text-probe {
	position: fixed;
	top: 0;
	left: 0;
	visibility: hidden;
	pointer-events: none;
	font: -apple-system-body;
}

.native-ios .node {
	font-size: 15px;
}

.native-ios body,
.native-ios .navbar #btn-maps,
.native-ios .recent-map,
.native-ios .map-actions button,
.native-ios .map-view-switch button,
.native-ios .guest-button,
.native-ios .guest-compact button,
.native-ios .workspace-action,
.native-ios .search-result strong {
	font-size: calc(15rem / 17);
}

.native-ios .nav-title,
.native-ios .sheet-panel h2,
.native-ios .sheet-back,
.native-ios .sheet-nav .sheet-close,
.native-ios .row,
.native-ios .row-copy strong,
.native-ios .choice-copy strong,
.native-ios .row select,
.native-ios .sheet-body select,
.native-ios .sheet-body form > button[type='submit'],
.native-ios .people-add-form > button,
.native-ios .map-card h3 {
	font-size: 1rem;
}

.native-ios .sheet-body input,
.native-ios .sheet-body textarea,
.native-ios .workspace-field input,
.native-ios .workspace-field select,
.native-ios .popover-form input,
.native-ios .popover-form textarea {
	font-size: calc(16rem / 17);
}

.native-ios .navbar #btn-pro-quick,
.native-ios .navbar #lang-quick,
.native-ios .focus-trail strong,
.native-ios .search-count,
.native-ios .menu-item {
	font-size: calc(14rem / 17);
}

.native-ios .group h3,
.native-ios .group > .note,
.native-ios .group > .due-note,
.native-ios .row-copy small,
.native-ios .choice-copy small,
.native-ios .map-card .meta,
.native-ios .activity-panel summary,
.native-ios .activity-list li,
.native-ios .options-tabs button,
.native-ios .workspace-field,
.native-ios .workspace-note,
.native-ios .search-result small,
.native-ios .guest-compact,
.native-ios .account-notice {
	font-size: calc(13rem / 17);
}

.native-ios .pill {
	min-width: 0;
	max-width: 100%;
	font-size: calc(13rem / 17);
	white-space: normal;
	overflow-wrap: anywhere;
}

.native-ios .pill-dock {
	left: 12px;
	right: 12px;
	min-width: 0;
}

.native-ios .statusbar,
.native-ios .activity-body .note {
	font-size: calc(12rem / 17);
}

.native-ios #tab-focus .control-label {
	font-size: calc(11rem / 17);
}

.native-ios .nav-title,
.native-ios .recent-map,
.native-ios .tabbar button {
	height: auto;
	min-height: 44px;
}

.native-ios .nav-title {
	min-width: 44px;
}

.native-ios .navbar {
	padding-inline: max(12px, env(safe-area-inset-left))
		max(12px, env(safe-area-inset-right));
}

.native-ios .sheet {
	top: var(--native-visible-top, 0px);
	bottom: auto;
	height: var(--native-visible-height, 100dvh);
}

.native-ios .sheet .sheet-panel {
	max-height: calc(var(--native-visible-height, 100dvh) - 12px);
}

.native-ios.large-text body {
	overflow-y: auto;
}

.native-ios.large-text body:has(.sheet:not([hidden])) {
	overflow: hidden;
}

.native-ios.large-text .map-workspace {
	flex: 1 0 auto;
	flex-direction: column;
	--workspace-overlay-offset: 0px;
}

.native-ios.large-text .map-workspace:has(.focused-view) {
	--workspace-overlay-offset: max(60px, calc(22.5rem / 17 + 20px));
}

.native-ios.large-text .viewport {
	flex: 1 0 auto;
	min-height: var(--native-canvas-min-height, 240px);
}

.native-ios.large-text .activity-panel,
.native-ios.large-text .activity-panel[open] {
	position: static;
	align-self: stretch;
	width: auto;
	margin: 4px 12px;
	overflow-wrap: anywhere;
}

.native-ios.large-text .map-workspace .pill-dock {
	top: calc(12px + var(--workspace-overlay-offset));
}

.native-ios.large-text .statusbar {
	flex-shrink: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

.native-ios.large-text .guest-actions {
	min-width: 0;
	max-width: 100%;
}

.native-ios.large-text .guest-button {
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}

.native-ios.large-text .navbar {
	display: flex;
	flex-wrap: wrap;
}

.native-ios.large-text .recent-maps {
	display: none;
}

.native-ios.large-text .nav-title {
	flex: 1 0 100%;
	order: 1;
	width: 100%;
}

.native-ios.large-text .navbar .nav-action {
	width: auto;
	height: auto;
	min-height: 44px;
	padding: 6px 10px;
}

.native-ios.large-text .tabbar {
	flex-wrap: wrap;
}

.native-ios.large-text .editor-dock {
	width: calc(100% - 24px);
}

.native-ios.large-text #tab-focus {
	flex: 0 0 max(44px, 2.5rem);
	min-width: max(44px, 2.5rem);
	max-width: none;
}

.native-ios.large-text .guest-compact {
	flex-wrap: wrap;
}

.native-ios.large-text .map-card {
	grid-template-columns: minmax(0, 1fr);
}

.native-ios.large-text .map-card .map-preview {
	order: 0;
}

.native-ios.large-text .library-tools {
	grid-template-columns: minmax(0, 1fr) auto;
}

.native-ios.large-text .library-tools > .library-query {
	grid-column: 1 / -1;
}

@media (max-width: 359px) {
	.native-ios .navbar {
		gap: 6px;
	}
}

@media (orientation: landscape) and (min-width: 720px) {
	.native-ios.large-text .nav-title {
		flex: 1 1 100px;
		order: 0;
		width: auto;
	}
}
