/*
 * Lotse's base look — tokens, plain elements, card, bar, tabs, fields, the page's
 * columns.
 *
 * HEALTH'S OWN since spec 186. This file began as a copy of `~/viben-theme`, the look
 * the Viben apps share, pulled with `npm run theme:pull` and refused by `npm test`
 * when edited here. On 2026-10-11 the user decoupled Lotse from it («kopple diese
 * app ab vom gemeinsamen theme»): it is edited here now, and nothing is pulled.
 * `styles.css` is still loaded after it and may override anything in it.
 *
 * What is scoped stays scoped: the tokens apply everywhere, the page's parts under
 * `.page` (which `<main>` carries), the bar under `#chrome`.
 *
 * MOBILE FIRST, and not mobile only. DARK MODE IS CHOSEN, NOT FLIPPED: every colour
 * appears twice, picked for its own background.
 */

:root {
	color-scheme: light dark;

	--bg: #f6f5f2;
	--surface: #ffffff;
	--surface-sunken: #f1efeb;
	--border: #e7e4de;
	--border-strong: #d3cfc7;
	--ink: #1d1c1a;
	--ink-muted: #6e6a63;

	--accent: #0f6e66;
	--on-accent: #ffffff;
	--accent-quiet: #e6f2f0;

	--warn-ink: #8a5a12;
	--warn-bg: #fdf6e7;
	--danger-ink: #b42318;

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-8: 2rem;

	/* Spec 187: softer — round cards, round fields, buttons as pills. */
	--radius: 1rem;
	--radius-sm: 0.75rem;
	--radius-pill: 999px;

	--shadow: 0 1px 2px rgb(29 28 26 / 0.05);

	/* Anything a thumb has to hit. */
	--tap: 2.75rem;
}

/*
 * Dark mode, and the way out of it.
 *
 * An app that is a white page whatever the system says — the club site says so in as
 * many words — sets `data-theme="light"` on its <html> and keeps the light values.
 * Its own colours would otherwise need a second set each: status chips, heat map,
 * avatars. Taking the shared look should not mean inheriting a half-finished dark
 * mode, so opting out is one attribute rather than a wall of overrides.
 */
/* And the browser's own parts — scrollbars, date pickers — stay light with it. */
:root[data-theme='light'] {
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--bg: #151513;
		--surface: #1e1e1b;
		--surface-sunken: #262622;
		--border: #33322e;
		--border-strong: #45433e;
		--ink: #edebe6;
		--ink-muted: #a19d95;

		--accent: #4fc1b0;
		--on-accent: #0b1f1c;
		--accent-quiet: #17302c;

		--warn-ink: #e0b978;
		--warn-bg: #2a2216;
		--danger-ink: #f0918a;

		--shadow: none;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	/* Room for the notch and the home indicator once the app runs standalone. The top
	   inset sits on the sticky bar instead, so that its background covers the notch
	   while it is stuck there — an empty bar is then just that strip. */
	padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/*
 * The bar with the name and the tabs. It is a sibling of `main` rather than its
 * first child for one reason: on a wide screen `main` is a multi-column box, and
 * nothing inside one sticks to the top of the window reliably. Out here it does —
 * and on a phone that matters most, where the duel page is two thousand pixels long
 * and the tabs used to be reachable only by scrolling all the way back up.
 */
#chrome {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--bg);
	padding-top: env(safe-area-inset-top);
}

#chrome:not(:empty) {
	border-bottom: 1px solid var(--border);
}

:where(#chrome) .top {
	max-width: 34rem;
	margin: 0 auto;
	/* No padding below: the current tab's underline sits on the bar's own line. */
	padding: var(--space-2) var(--space-4) 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.page {
	max-width: 34rem;
	margin: 0 auto;
	padding: var(--space-4) var(--space-4) var(--space-8);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.page-footer {
	max-width: 34rem;
	margin: 0 auto;
	padding: 0 var(--space-4) var(--space-6);
	color: var(--ink-muted);
	font-size: 0.75rem;
}

/*
 * On a screen. Mobile first does not mean mobile only: on a laptop the one narrow
 * column left two thirds of the window empty and pushed everything below the fold
 * that a wide screen could have shown at once.
 *
 * Two columns, and they are CSS columns rather than a grid on purpose. A grid aligns
 * rows, so a short card next to a tall one leaves a hole the height of the tall one —
 * and this page is a stack of cards of every height. Columns simply flow.
 *
 * `.wide` is for the cards that are the point of their page: a chart in half a column
 * is a worse chart than a chart in a narrow one.
 */
@media (min-width: 60rem) {
	.page {
		max-width: 66rem;
		display: block;
		columns: 2;
		column-gap: var(--space-4);
		padding: var(--space-5) var(--space-5) var(--space-8);
	}

	/* The gap a flex column gave; columns need it on the boxes themselves. */
	:where(.page) > * {
		break-inside: avoid;
		margin-bottom: var(--space-4);
	}

	:where(.page) > header,
	:where(.page) > h1,
	:where(.page) > .lead,
	:where(.page) > .wide,
	/* The voice and the news are banners, not cards in a column — and they are the
	   reason the right column used to end in three hundred pixels of nothing: columns
	   fill in order, so a short card first pushes a tall one down and leaves the hole
	   next to it. Across the top they take no column with them. */
	:where(.page) > .quip-card,
	:where(.page) > .news {
		column-span: all;
	}

	/*
	 * At a desk the bar is one line: name, the four tabs, and the way out. The tabs
	 * are then as wide as their words — stretched across a thousand pixels, four
	 * words read as four empty fields.
	 */
	:where(#chrome) .top {
		max-width: 66rem;
		padding: 0 var(--space-5);
		flex-direction: row;
		align-items: center;
		gap: var(--space-4);
		min-height: var(--tap);
	}

	/* The bar hands its two children to the row and steps out of the way. */
	:where(#chrome) .top > .bar {
		display: contents;
	}

	:where(#chrome) .top .who {
		order: 1;
		align-self: center;
	}

	:where(#chrome) .top .tabs {
		order: 2;
		flex: 0 0 auto;
		align-self: stretch;
		margin-inline: 0;
	}

	:where(#chrome) .top .tab {
		min-height: 3.5rem;
	}

	:where(#chrome) .top .bar-links {
		order: 3;
		margin-left: auto;
	}

	/* The name stands apart from the tabs, or it reads as a fifth one. */
	:where(#chrome) .top .who {
		padding-right: var(--space-4);
		border-right: 1px solid var(--border);
	}

	/*
	 * A field is as wide as the number it holds. A weight of «88» in a box four
	 * hundred pixels wide is what a phone layout looks like when nobody told it about
	 * the screen. Fields that share a row with another keep theirs, or the row falls
	 * apart.
	 */
	input[type='number'],
	input[type='date'],
	.row > .grow:only-child input {
		/* 13 rem and not less: «leer = keine Vorgabe» is a placeholder that has to fit,
		   and a field that swallows its own hint is no better than one that is too wide. */
		max-width: 13rem;
	}

	.row .grow input {
		max-width: none;
	}

	/* And a button is as wide as what it says, not as wide as the card. */
	.card button.primary,
	form > button.primary {
		align-self: flex-start;
		min-width: 12rem;
	}

	/* «Challenge beenden» stands alone in its card and stretched with it. */
	.card > .choice {
		align-self: flex-start;
	}

	/*
	 * The login is a title and one card. In two columns that is a title with a card
	 * standing next to it, which is not a login screen — it is one column wide, the
	 * width it has on a phone, and it stays that whatever the window does.
	 */
	.page:has(> .login),
	.page:has(> .login) + .page-footer {
		columns: 1;
		max-width: 34rem;
	}

	.page-footer {
		max-width: 66rem;
		padding-inline: var(--space-5);
	}
}

/*
 * What the mouse can touch. Behind `hover: hover` and `pointer: fine` on purpose: on
 * a touchscreen a hover state sticks to whatever was tapped last, which reads as a
 * selection that nobody made.
 */
@media (hover: hover) and (pointer: fine) {
	button.primary:hover {
		filter: brightness(1.08);
	}

	:where(.page) .choice:hover:not(.choice-on) {
		border-color: var(--accent);
	}

	:where(.page) .choice.choice-on:hover {
		filter: brightness(1.08);
	}

	:where(#chrome) .tab:hover:not(.tab-on),
	:where(.page) .segmented button:hover:not([aria-pressed='true']) {
		color: var(--ink);
	}

	:where(.page) .icon-button:hover {
		background: var(--surface-sunken);
		color: var(--ink);
	}

	:where(#chrome) .link:hover,
	:where(.page) .link:hover,
	:where(.page) summary:hover {
		color: var(--ink);
	}

	:where(.page) .board-link:hover h2 {
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}
}

/* --------------------------------------------------------------------- typography */

:where(.page) h1 {
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	margin: 0;
}

:where(.page) h2 {
	font-size: 1.0625rem;
	margin: 0 0 var(--space-3);
	letter-spacing: -0.005em;
}

:where(.page) h3 {
	font-size: 0.8125rem;
	margin: 0 0 var(--space-2);
	color: var(--ink-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

:where(.page) .lead {
	margin: 0;
	color: var(--ink-muted);
	font-size: 0.9375rem;
}

:where(.page) .note {
	margin: var(--space-2) 0 0;
	color: var(--ink-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

:where(.page) .note:first-child {
	margin-top: 0;
}

:where(.page) .note-error {
	color: var(--danger-ink);
}

:where(.page) .note-inline {
	color: var(--ink-muted);
	font-weight: 400;
}

/* Every number in this app is read next to another number. */
:where(.page) .num {
	font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------- chrome */

:where(#chrome) .bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	min-height: var(--tap);
}

:where(#chrome) .bar .who {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

:where(#chrome) .link,
:where(.page) .link {
	border: 0;
	background: none;
	padding: var(--space-2) 0;
	font: inherit;
	font-size: 0.875rem;
	color: var(--ink-muted);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

/*
 * The tabs are words, not buttons: set plainly, and only the page you are on is
 * marked — in the accent, underlined. The same menu as the club's task list.
 */
:where(#chrome) .tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	margin-inline: calc(-1 * var(--space-3));
}

:where(#chrome) .tab {
	min-height: var(--tap);
	display: flex;
	align-items: center;
	padding: 0 var(--space-3);
	/* Both sides, so the word sits in the middle and the underline adds nothing. */
	border-block: 3px solid transparent;
	color: var(--ink-muted);
	text-decoration: none;
	font-size: 0.875rem;
	white-space: nowrap;
}

:where(#chrome) .tab-on {
	border-bottom-color: var(--accent);
	color: var(--accent);
	font-weight: 600;
}

:where(#chrome) .tab:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--accent);
	border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------- cards */

/*
 * A card sets the rhythm inside itself. Before this, everything in a card sat on
 * whatever margin it happened to bring along — a label, a row of buttons and a
 * search field ended up flush against each other, and it looked like a mistake
 * because it was one. One gap, one rule, and the children stop carrying margins.
 */
:where(.page) .card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-4);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

:where(.page) .card > h2,
:where(.page) .card > h3,
:where(.page) .card > p,
:where(.page) .card > ul,
:where(.page) .card > ol,
:where(.page) .card > dl,
:where(.page) .card > form,
:where(.page) .card > details {
	margin: 0;
}

/* An empty slot must not leave a gap behind it. */
:where(.page) > div:empty,
:where(.page) .card > div:empty {
	display: none;
}

/* A card inside a card is one border too many — the inner one is only a grouping. */
:where(.page) .card .card {
	border: 0;
	padding: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
}

details.card > summary {
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--ink-muted);
	min-height: 1.75rem;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	list-style: none;
}

details.card > summary::-webkit-details-marker {
	display: none;
}

/* One chevron, drawn rather than borrowed from the platform's own triangle. */
details.card > summary::after {
	content: '';
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-0.1rem, -0.1rem);
	transition: transform 0.15s ease;
}

details.card[open] > summary::after {
	transform: rotate(225deg) translate(-0.05rem, -0.05rem);
}

:where(.page) .pairs {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-2) var(--space-3);
	font-size: 0.9375rem;
}

:where(.page) .pairs dt {
	font-weight: 600;
}

:where(.page) .pairs dd {
	margin: 0;
	color: var(--ink-muted);
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------------- landing */

/* Die Anmeldung steht tiefer als eine gewöhnliche Seite: sie ist eine Karte auf
   leerem Grund und kein Stapel. */
:where(.page) .login {
	margin-top: var(--space-8);
}

:where(.page) .login h1 {
	font-size: 1.75rem;
	margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------- forms */

:where(.page) form {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

:where(.page) label {
	font-size: 0.8125rem;
	color: var(--ink-muted);
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

:where(.page) input {
	/* 16px or larger: anything smaller makes iOS Safari zoom the page on focus. */
	font: inherit;
	font-size: 1rem;
	min-height: var(--tap);
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	width: 100%;
}

:where(.page) input[type='number'],
:where(.page) input[type='date'] {
	font-variant-numeric: tabular-nums;
}

:where(.page) input::placeholder {
	color: var(--ink-muted);
	opacity: 0.7;
}

/* Same box as an input — the same height and the same inset, so a dropdown next to a
   field reads as one of them. How wide is the app's call: a unit next to an amount is
   as wide as its word, a choice of its own takes the line. */
:where(.page) select {
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	min-height: var(--tap);
	padding: var(--space-2) calc(var(--space-3) + 1.25rem) var(--space-2) var(--space-3);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	color: var(--ink);
	/* Drawn here rather than by the browser: Safari's own dropdown ignores height and
	   padding and comes out a size smaller than every field next to it. The chevron
	   is a grey that reads on both grounds, because a data URI cannot use a token. */
	-webkit-appearance: none;
	appearance: none;
	background: var(--surface)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a8796' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		no-repeat right var(--space-3) center;
}

input:focus-visible,
/* Spec 248: a textarea too — it showed the browser's blue ring. */
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

button.primary {
	margin-top: var(--space-2);
	padding: var(--space-3) var(--space-5);
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--on-accent);
	font: inherit;
	font-weight: 600;
	min-height: var(--tap);
	cursor: pointer;
}

button.primary:active {
	filter: brightness(0.94);
}

:where(.page) .row {
	display: flex;
	gap: var(--space-3);
}

:where(.page) .grow {
	flex: 1;
}

/* An amount and its unit are one field, so they sit closer than two fields do. */
:where(.page) .row-tight {
	gap: var(--space-2);
}

/* A checkbox reads left to right, unlike every other label in this app. */
:where(.page) .check {
	flex-direction: row;
	align-items: center;
	gap: var(--space-2);
	color: var(--ink);
	font-size: 0.9375rem;
	min-height: var(--tap);
}

:where(.page) .check input {
	width: auto;
	min-height: auto;
	accent-color: var(--accent);
	width: 1.15rem;
	height: 1.15rem;
}

:where(.page) .grow-2 {
	flex: 2;
}

:where(.page) .choices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

:where(.page) .choices > .choice {
	flex: 1 1 8rem;
}

:where(.page) .choice {
	/* As wide as what it says (spec 223); only a group of choices shares the width. */
	flex: 0 0 auto;
	min-height: var(--tap);
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}

:where(.page) .choice-small {
	flex: 0 1 auto;
	min-height: 2rem;
	padding: var(--space-1) var(--space-3);
	font-size: 0.8125rem;
	color: var(--ink-muted);
}

:where(.page) .choice-danger {
	flex: 0 1 auto;
	border-color: var(--border);
	color: var(--danger-ink);
}

:where(.page) .choice.choice-on {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
}

/* A segmented control: four choices that are one decision. */
/* Four meal types, or three kinds of catalogue — the columns follow the buttons. */
:where(.page) .segmented {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: var(--space-1);
	padding: var(--space-1);
	background: var(--surface-sunken);
	border-radius: var(--radius-pill);
}

:where(.page) .segmented button {
	min-height: 2.25rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: none;
	color: var(--ink-muted);
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

:where(.page) .segmented button[aria-pressed='true'] {
	background: var(--surface);
	color: var(--ink);
	font-weight: 600;
	box-shadow: var(--shadow);
}

:where(.page) .note-warn {
	color: var(--warn-ink);
	background: var(--warn-bg);
	border-left: 3px solid currentColor;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	margin-top: var(--space-3);
}

:where(.page) .ask:empty {
	display: none;
}

/* ------------------------------------------------------------------------ day list */

:where(.page) .rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

:where(.page) .rows > li {
	display: flex;
	gap: var(--space-3);
	align-items: center;
	min-height: 2.5rem;
	padding: var(--space-1) 0;
	border-bottom: 1px solid var(--border);
}

:where(.page) .rows > li:last-child {
	border-bottom: 0;
}

:where(.page) .row-ahead {
	opacity: 0.4;
}

:where(.page) .row-label {
	flex: 0 0 5.5rem;
	font-size: 0.8125rem;
	color: var(--ink-muted);
}

:where(.page) .row-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

:where(.page) .entry {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-size: 0.9375rem;
}

:where(.page) .entry-name {
	flex: 1;
}

:where(.page) .entry-value {
	color: var(--ink-muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* A thumb-sized target around a small glyph. */
:where(.page) .icon-button {
	flex: 0 0 auto;
	width: var(--tap);
	height: var(--tap);
	margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) calc(var(--space-2) * -1) 0;
	border: 0;
	background: none;
	color: var(--ink-muted);
	font: inherit;
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	border-radius: var(--radius-sm);
}

:where(.page) .icon-button:active {
	background: var(--surface-sunken);
}

/* ------------------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ------------------------------------------------ spec 013: the account menu */

/*
 * Eleven pages, four of which get a tab. The rest live behind the name in the bar —
 * a `details` element, because the platform already knows how to open one, close it
 * on Escape and keep it reachable from a keyboard, and none of that needed writing.
 */
:where(#chrome) .account {
	position: relative;
}

:where(#chrome) .account > summary {
	cursor: pointer;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	padding: 0 var(--space-2);
	margin-right: calc(-1 * var(--space-2));
	border-radius: var(--radius-sm);
	min-height: var(--tap);
	display: flex;
	align-items: center;
	gap: var(--space-2);
	white-space: nowrap;
}

/* A chevron that turns when the menu is open, so the name reads as a menu. */
:where(#chrome) .account > summary::after {
	content: '▾';
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--ink-muted);
	transition: transform 0.15s ease;
}

:where(#chrome) .account[open] > summary {
	background: var(--surface-sunken);
}

:where(#chrome) .account[open] > summary::after {
	transform: rotate(180deg);
}

:where(#chrome) .account > summary::-webkit-details-marker {
	display: none;
}

:where(.page) .account[open] > summary {
	color: var(--ink);
}

:where(#chrome) .menu {
	position: absolute;
	right: 0;
	top: calc(100% + var(--space-1));
	z-index: 20;
	min-width: 12rem;
	padding: var(--space-2);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow:
		0 2px 4px rgb(31 41 51 / 0.06),
		0 12px 28px rgb(31 41 51 / 0.12);
	display: flex;
	flex-direction: column;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) :where(#chrome) .menu {
		box-shadow: 0 12px 28px rgb(0 0 0 / 0.5);
	}
}

:where(#chrome) .menu-who {
	margin: 0 0 var(--space-1);
	padding: var(--space-1) var(--space-3);
	font-size: 0.75rem;
	color: var(--ink-muted);
	overflow-wrap: anywhere;
}

:where(#chrome) .menu-item {
	display: flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0 var(--space-3);
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 0.9375rem;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

/* Signing out is the one entry that undoes something; it stands apart. */
:where(#chrome) .menu-out {
	margin-top: var(--space-1);
	padding-top: var(--space-1);
	border-top: 1px solid var(--border);
	color: var(--ink-muted);
}

@media (hover: hover) and (pointer: fine) {
	:where(#chrome) .menu-item:hover,
	:where(#chrome) .account > summary:hover {
		background: var(--surface-sunken);
	}
}
