
	.apps {
		position: relative;
		display: inline-flex;
	}

	.apps-corner {
		position: fixed;
		top: 0.75rem;
		right: 1rem;
		z-index: 50;
	}

	.apps-btn {
		display: grid;
		place-items: center;
		width: 2.25rem;
		height: 2.25rem;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: var(--mute, #6e6e73);
		cursor: pointer;
	}

	.apps-btn:hover,
	.apps-btn[aria-expanded="true"] {
		background: var(--card, #f5f5f7);
		color: var(--fg, #1d1d1f);
	}

	.apps-pop {
		position: absolute;
		top: 2.75rem;
		right: 0;
		z-index: 60;
		width: 17.5rem;
		padding: 0.75rem;
		border: 1px solid var(--line, rgb(0 0 0 / 0.1));
		border-radius: 1.5rem;
		background: var(--card, #f5f5f7);
		box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.35);
	}

	.apps-pop[hidden] {
		display: none;
	}

	/* On a phone the button is not at the screen's edge, so a panel hung
	   from it runs off the left side: it spans the screen instead. */
	@media (max-width: 640px) {
		.apps-pop {
			position: fixed;
			top: 3.5rem;
			left: 1rem;
			right: 1rem;
			width: auto;
		}
	}

	.apps-pop ul {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0.4rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.apps-pop li a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.4rem;
		padding: 0.7rem 0.3rem;
		border-radius: 1rem;
		color: var(--fg, #1d1d1f);
		font-size: 0.75rem;
		font-weight: 500;
		text-decoration: none;
	}

	.apps-pop li a:hover,
	.apps-pop li a[aria-current="page"] {
		background: var(--bg, #fff);
	}

	.apps-tile {
		display: grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		border-radius: 0.9rem;
		background: var(--bg, #fff);
		color: var(--accent, #0071e3);
	}

	.apps-pop li a:hover .apps-tile,
	.apps-pop li a[aria-current="page"] .apps-tile {
		background: var(--card, #f5f5f7);
	}

	.apps-all {
		display: block;
		margin-top: 0.4rem;
		padding: 0.5rem;
		border-radius: 0.75rem;
		color: var(--accent, #0071e3);
		font-size: 0.75rem;
		font-weight: 500;
		text-align: center;
		text-decoration: none;
	}

	.apps-all:hover {
		background: var(--bg, #fff);
	}

	.apps-btn svg {
		width: 18px;
		height: 18px;
		margin: 0;
		fill: currentColor;
		stroke: none;
	}

	.apps-tile svg {
		width: 22px;
		height: 22px;
		margin: 0;
		fill: none;
		stroke: currentColor;
	}

	/* The account menu and people's pictures (apps.js). Colours come from the
	   page it is on: every Adelon page names --bg, --fg, --mute and --line. */
	.am-avatar {
		width: 2rem;
		height: 2rem;
		border-radius: 999px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		overflow: hidden;
		padding: 0;
		border: 0;
		/* not the font shorthand: it cannot hold inherit, and is dropped whole */
		font-weight: 600;
		font-size: 0.8rem;
		line-height: 1;
		font-family: inherit;
		letter-spacing: 0.02em;
		color: #fff;
		user-select: none;
	}

	.am-avatar.am-big {
		width: 2.75rem;
		height: 2.75rem;
		font-size: 1rem;
	}

	.am-avatar img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	button.am-avatar {
		cursor: pointer;
		outline-offset: 2px;
		transition: box-shadow 0.15s;
	}

	button.am-avatar:hover,
	button.am-avatar[aria-expanded="true"] {
		box-shadow: 0 0 0 3px var(--line, rgb(0 0 0 / 0.12));
	}

	.am-menu {
		position: fixed;
		z-index: 60;
		width: 19rem;
		max-width: calc(100vw - 16px);
		overflow-y: auto;
		padding: 0.35rem;
		border: 1px solid var(--line, rgb(0 0 0 / 0.12));
		border-radius: 0.9rem;
		background: var(--bg, #fff);
		color: var(--fg, #1d1d1f);
		box-shadow: var(--shadow, 0 18px 40px -12px rgb(0 0 0 / 0.3), 0 6px 14px -8px rgb(0 0 0 / 0.2));
		font-size: 0.9rem;
		line-height: 1.3;
		text-align: left;
	}

	.am-menu:focus {
		outline: none;
	}

	.am-head {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		padding: 0.7rem 0.65rem 0.8rem;
	}

	.am-text {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}

	.am-name {
		font-weight: 600;
		color: var(--fg, #1d1d1f);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.am-person .am-name {
		font-weight: 500;
	}

	.am-mail,
	.am-note {
		font-size: 0.8rem;
		color: var(--mute, #6e6e73);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.am-note {
		white-space: normal;
		margin-top: 0.15rem;
	}

	.am-group {
		padding: 0.3rem 0;
		border-top: 1px solid var(--line, rgb(0 0 0 / 0.12));
	}

	.am-group:last-child {
		padding-bottom: 0;
	}

	.am-label {
		padding: 0.35rem 0.65rem 0.25rem;
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--mute, #6e6e73);
	}

	.am-menu .am-item {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		width: 100%;
		margin: 0;
		padding: 0.5rem 0.65rem;
		border: 0;
		border-radius: 0.6rem;
		background: none;
		color: var(--fg, #1d1d1f);
		font: inherit;
		text-align: left;
		text-decoration: none;
		cursor: pointer;
		box-shadow: none;
	}

	.am-menu .am-item:hover,
	.am-menu .am-item:focus-visible {
		background: var(--alt, var(--card, rgb(0 0 0 / 0.06)));
		outline: none;
	}

	.am-menu .am-item:focus-visible {
		box-shadow: inset 0 0 0 2px var(--accent, #0071e3);
	}

	.am-icon {
		width: 1.25rem;
		height: 1.25rem;
		flex: none;
		margin: 0 0.375rem;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.6;
		stroke-linecap: round;
		stroke-linejoin: round;
		color: var(--mute, #6e6e73);
	}

	@media (prefers-reduced-motion: reduce) {
		button.am-avatar {
			transition: none;
		}
	}

	/* The panel an app shows when the plan lacks what it needs (apps.js). */
	.up-back {
		position: fixed;
		inset: 0;
		z-index: 100;
		display: grid;
		place-items: center;
		padding: 1rem;
		background: var(--bg, #fff);
	}

	.up-card {
		max-width: 28rem;
		padding: 2rem;
		border: 1px solid var(--line, rgb(0 0 0 / 0.1));
		border-radius: 1.5rem;
		background: var(--card, #f5f5f7);
		color: var(--fg, #1d1d1f);
		text-align: center;
	}

	.up-card h1 {
		margin: 0 0 0.75rem;
		font-size: 1.5rem;
		line-height: 1.2;
		letter-spacing: -0.02em;
	}

	.up-card p {
		margin: 0 0 0.75rem;
		color: var(--mute, #6e6e73);
	}

	.up-card .up-price {
		color: var(--fg, #1d1d1f);
		min-height: 1.5em;
	}

	.up-row {
		display: flex;
		flex-wrap: wrap;
		gap: 0.75rem;
		justify-content: center;
		align-items: center;
		margin: 1.25rem 0 0 !important;
	}

	.up-go {
		padding: 0.6rem 1.25rem;
		border-radius: 999px;
		background: var(--accent, #1d56c9);
		color: var(--on-accent, #fff);
		font-weight: 600;
		text-decoration: none;
	}

	.up-quiet {
		color: var(--accent, #1d56c9);
	}
