/* Ported from the Next.js app's shell.module.css. */
.shell__shell {
	min-height: 100dvh;
	background: var(--app-ground);
}

.shell__header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-6);
	padding: var(--space-4) var(--space-6);
	background: var(--background-surface);
	border-bottom: var(--border-1) solid var(--border-default);
}

.shell__brand {
	font-weight: var(--font-weight-semibold);
	color: var(--text-primary);
	text-decoration: none;
	white-space: nowrap;
}

.shell__nav {
	display: flex;
	gap: var(--space-2);
	flex: 1;
	font-size: var(--font-size-sm);
	flex-wrap: wrap;
}

/*
 * Below tablet the four links get a row of their own. Squeezing them between the wordmark
 * and the sign-out button wraps a label mid-pill and pushes "Sign out" off the screen.
 */
@media (max-width: 46rem) {
	.shell__header {
		gap: var(--space-3) var(--space-4);
		padding: var(--space-3) var(--space-4);
	}

	.shell__nav {
		order: 3;
		flex-basis: 100%;
	}

	.shell__phase {
		padding-inline: var(--space-4);
	}

	.shell__main {
		padding: var(--space-6) var(--space-4) var(--space-16);
	}
}

.shell__nav a {
	color: var(--text-secondary);
	text-decoration: none;
	white-space: nowrap;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-md);
	transition: color 120ms ease-out;
}

.shell__nav a:hover {
	color: var(--text-primary);
}

/* Where you are, marked in place rather than by the links rearranging. */
.shell__nav a[data-active] {
	background: var(--blue-gray-900);
	color: var(--base-white);
	font-weight: var(--font-weight-semibold);
}

@media (prefers-reduced-motion: reduce) {
	.shell__nav a {
		transition: none;
	}
}

.shell__who {
	font-size: var(--font-size-sm);
	color: var(--text-tertiary);
	white-space: nowrap;
}

/*
 * The phase line. Quiet by default, and it says nothing at all when there is nothing
 * owed — the amber is reserved for work that is actually outstanding.
 */
.shell__phase {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	flex-wrap: wrap;
	padding: var(--space-2) var(--space-6);
	background: var(--background-surface);
	border-bottom: var(--border-1) solid var(--border-default);
	font-size: var(--font-size-xs);
	color: var(--text-secondary);
}

.shell__phase > span + span::before {
	content: '';
	display: inline-block;
	width: 3px;
	height: 3px;
	margin-right: var(--space-3);
	border-radius: var(--radius-full);
	background: var(--text-tertiary);
	vertical-align: middle;
}

/* A separator that lands at the start of a wrapped line reads as a bullet, so the narrow
   layout separates by wrapping instead. */
@media (max-width: 40rem) {
	.shell__phase > span + span::before {
		display: none;
	}
}

.shell__phase-cycle {
	font-weight: var(--font-weight-medium);
	color: var(--text-primary);
}

/* The one thing on the row that is asking something of you, so it is the one thing
   carrying a fill. */
.shell__phase-owed {
	padding: 2px var(--space-3);
	border-radius: var(--radius-full);
	background: var(--note-owed-bg);
	font-weight: var(--font-weight-semibold);
	color: var(--note-owed-fg);
}

.shell__phase > span + .shell__phase-owed::before {
	display: none;
}

.shell__main {
	max-width: 880px;
	margin: 0 auto;
	padding: var(--space-10) var(--space-6) var(--space-20);
}
