.portal-admin {
	max-width: 1360px;
	margin-inline: auto;
	display: grid;
	gap: 16px;
	min-width: 0;
}

.portal-admin-header,
.portal-admin-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.portal-admin-header h1,
.portal-admin-section-head h2,
.portal-admin-section-head p,
.portal-admin-source {
	margin: 0;
}

.portal-admin-header h1 { margin-top: 4px; }
#testflightStatus:empty, #webAccessStatus:empty { display: none; }

.testflight-table { margin-top: 12px; table-layout: fixed; }
.testflight-table thead th:nth-child(1) { width: 22%; }
.testflight-table thead th:nth-child(2) { width: 15%; }
.testflight-table thead th:nth-child(3) { width: 16%; }
.testflight-table thead th:nth-child(4) { width: 25%; }
.testflight-table thead th,
.testflight-table tbody th,
.testflight-table td {
	white-space: normal;
	padding: 11px 10px;
	overflow-wrap: anywhere;
	vertical-align: top;
}
.testflight-table thead th { background: var(--bg); }
.testflight-table tbody th {
	text-transform: none;
	letter-spacing: normal;
	font-size: inherit;
	color: var(--ink);
}
.testflight-table tbody small {
	display: block;
	margin-top: 3px;
	color: var(--mute);
	font-weight: 400;
}
.testflight-table tbody tr:last-child > * { border-bottom: 0; }
.testflight-table .testflight-mobile-label { display: none; }
.tf-status {
	display: inline-block;
	background: var(--bg);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 2px 8px;
}
.tf-status-installed { background: var(--ok-soft, var(--bg)); color: var(--ok, var(--ink)); }

.testflight-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.testflight-link select { min-width: 0; max-width: 100%; width: 100%; }
.testflight-link button { padding: 6px 9px; }
.testflight-phones { margin: 0; padding-left: 1em; }
.testflight-phones li + li { margin-top: 6px; }
.portal-admin-access-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.portal-admin-access-form input { min-width: 0; width: min(100%, 340px); }

@media (max-width: 760px) {
	.portal-admin { gap: 12px; }
	.testflight-table, .testflight-table tbody { display: block; }
	.testflight-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
	.testflight-table tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px 12px;
		border: 1px solid var(--line);
		border-radius: 10px;
		padding: 12px;
	}
	.testflight-table tbody tr + tr { margin-top: 10px; }
	.testflight-table tbody th,
	.testflight-table td { display: block; padding: 0; border: 0; min-width: 0; }
	.testflight-table tbody th,
	.testflight-table td:nth-child(n+4) { grid-column: 1 / -1; }
	.testflight-table .testflight-mobile-label {
		display: block;
		color: var(--mute);
		font-size: 12px;
		margin-bottom: 3px;
	}
	.testflight-link select { width: min(100%, 290px); }
}
