.PropertyManagementApp {
	display: grid;
	gap: var(--SpaceL);
}

.PropertyManagementHeader {
	display: flex;
	flex-wrap: wrap;
	gap: var(--SpaceM);
	align-items: end;
	justify-content: space-between;
	padding-bottom: var(--SpaceS);
	border-bottom: 1px solid var(--ColorHairline);
}

.PropertyManagementHeaderActions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--SpaceS);
	align-items: center;
	justify-content: flex-end;
}

.PropertyManagementLayout {
	display: grid;
	grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.5fr);
	gap: var(--SpaceL);
	align-items: start;
}

.PropertySidebar,
.PropertyWorkspace,
.PropertyDetailPanel,
.PropertyPane,
.PropertyListPanel,
.PropertyTabPanel,
.PropertyCreateForm,
.PropertyOwnerForm {
	display: grid;
	gap: var(--SpaceM);
}

.PropertyListPanel {
	align-content: start;
}

.PropertyListHeader {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	max-width: none;
	margin-bottom: 0;
}

.PropertyListHeader .SectionTitle {
	font-family: var(--FontBody);
	font-size: 1.05rem;
	font-weight: 850;
	line-height: 1.2;
}

.PropertyListHeader .Button {
	justify-self: end;
}

.PropertyCreateRegion {
	padding-top: var(--SpaceM);
	border-top: 1px solid var(--ColorHairline);
}

.PropertyList,
.PropertyItemList {
	display: grid;
	gap: var(--SpaceS);
}

.PropertyItem {
	display: grid;
	gap: var(--SpaceS);
	padding: var(--SpaceS);
	border: 1px solid var(--ColorHairline);
	border-radius: var(--RadiusSmall);
	background: rgba(255, 255, 255, 0.72);
}

.PropertyItemHeader {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--SpaceM);
	align-items: start;
}

.PropertyItemTitle {
	color: var(--ColorInk);
	font-weight: 850;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.PropertyItemMeta {
	color: var(--ColorMuted);
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.3;
}

.PropertyItemActions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--SpaceS);
	align-items: center;
	justify-content: flex-end;
}

.PropertyItem[aria-current="true"] {
	border-color: var(--ColorAquaDark);
	background: var(--ColorAquaSoft);
}

.PropertyListPanel .PropertyItemTitle {
	font-size: 0.98rem;
}

.PropertyListPanel .Badge {
	align-self: center;
}

.PropertyDetailHeader {
	display: flex;
	flex-wrap: wrap;
	gap: var(--SpaceM);
	align-items: start;
	justify-content: space-between;
	padding-bottom: var(--SpaceM);
	border-bottom: 1px solid var(--ColorHairline);
}

.PropertyDetailTitle {
	color: var(--ColorInk);
	font-size: 1.55rem;
	font-weight: 850;
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.PropertyDetailHeadingLine {
	display: flex;
	flex-wrap: wrap;
	gap: var(--SpaceS);
	align-items: center;
	margin-bottom: var(--SpaceXS);
}

.PropertyDetailHeadingLine .CardMeta {
	margin: 0;
}

.PropertyDangerZone {
	display: flex;
	justify-content: flex-end;
	min-width: 0;
	padding-top: var(--SpaceM);
	border-top: 1px solid var(--ColorHairline);
}

.PropertyRemoveButton {
	max-width: min(100%, 28rem);
	justify-content: flex-start;
	min-width: 0;
}

.PropertyRemoveAction {
	flex: 0 0 auto;
}

.PropertyRemoveName {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.PropertyRoleBadges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--SpaceXS);
	align-items: center;
}

.PropertyTabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--SpaceXS);
	padding-bottom: var(--SpaceS);
	border-bottom: 1px solid var(--ColorHairline);
}

.PropertyTab {
	min-height: 2.25rem;
	padding: 0.05rem var(--SpaceM) 0;
	border: 1px solid transparent;
	border-radius: var(--RadiusSmall);
	background: transparent;
	color: var(--ColorMuted);
	font: inherit;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.PropertyTab:hover {
	border-color: var(--ColorHairline);
	background: rgba(255, 255, 255, 0.64);
	color: var(--ColorInk);
}

.PropertyTab:focus-visible {
	outline: none;
	box-shadow: var(--FocusRing);
}

.PropertyTab[aria-selected="true"] {
	border-color: var(--ColorAqua);
	background: var(--ColorAquaSoft);
	color: var(--ColorAquaDark);
}

.PropertyTabPanel {
	align-content: start;
	padding-top: var(--SpaceS);
}

.PropertyPanelHeader {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--Space2XS);
	align-items: start;
	max-width: none;
}

.PropertyPanelHeaderText {
	min-width: 0;
}

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

.PropertyPanelHeader .Button {
	justify-self: end;
}

.PendingInvitationGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--SpaceL);
	align-items: start;
}

.PropertyPane {
	min-width: 0;
	align-content: start;
}

.PropertyOwnerForm {
	padding-top: var(--SpaceM);
	border-top: 1px solid var(--ColorHairline);
}

.PropertyOwnerFormRegion {
	max-width: 56rem;
}

.PropertyOwnerForm .FieldControl,
.PropertyOwnerForm .InputSuffix {
	height: var(--ControlHeight);
	min-height: var(--ControlHeight);
}

.PropertyOwnerForm select.FieldControl {
	appearance: auto;
	padding-block: 0;
	line-height: 1.2;
}

.PropertyPoolFormGrid {
	grid-template-columns: minmax(14rem, 1fr) minmax(9rem, 0.65fr) minmax(11rem, 0.85fr);
}

.PropertyPoolFormGrid .Field:first-child {
	grid-column: span 2;
}

.PropertyPoolFormGrid .Field:last-child {
	grid-column: span 2;
	max-width: 20rem;
}

.InvitationLinkRow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--SpaceS);
	align-items: center;
}

.InvitationLinkControl {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.82rem;
}

.PropertyEmptyState {
	display: grid;
	gap: var(--SpaceXS);
	padding: var(--SpaceM);
	border: 1px dashed color-mix(in srgb, var(--ColorHairline) 70%, var(--ColorAqua));
	border-radius: var(--RadiusSmall);
	background: rgba(255, 255, 255, 0.54);
	color: var(--ColorMuted);
}

@media (max-width: 980px) {
	.PropertyManagementLayout,
	.PendingInvitationGrid,
	.PropertyPoolFormGrid {
		grid-template-columns: 1fr;
	}

	.PropertyPoolFormGrid .Field:first-child,
	.PropertyPoolFormGrid .Field:last-child {
		grid-column: auto;
		max-width: none;
	}
}

@media (max-width: 640px) {
	.PropertyItemHeader,
	.InvitationLinkRow,
	.PropertyPanelHeader,
	.PropertyListHeader {
		grid-template-columns: 1fr;
	}

	.PropertyManagementHeaderActions {
		justify-content: flex-start;
	}

	.PropertyPanelHeader .Button {
		justify-self: start;
	}

	.PropertyListHeader .Button {
		justify-self: start;
	}
}
