/* Text sizes. One scale, so sizes stay few and nothing sits half a pixel from its neighbor:
     11.5px  small capitals (labels, eyebrows), tags
     13px    notes and meta lines
     14px    secondary text, small buttons
     15px    running text
     16px    form fields (smaller makes iPhones zoom), emphasis
     17px    lead lines
   Headings step up from 18px in the serif. Chart ticks are set by hand. */
:root {
	--bg: #f4eee5;
	--card: #fdf9f2;
	--text: #2a231c;
	--muted: #6a6156; /* secondary text: at least 4.5 to 1 on the page, the cards and their tints */
	--faint: #cdc2b2;
	--line: #e8dfd1;
	--edge: #ece3d4; /* the soft edge of a card */
	--accent: #1c6b75;
	--accent-soft: #ddebe8;
	--on-accent: #ffffff;
	--toast-action: #f4c15d;
	--danger: #b83c27;
	--warn: #93600b;
	--warn-soft: #fcefd0;
	--star: #e3a52e;
	--gold: #eaa834;
	--tag: #ece4d7;
	--on-tag: #5f5548;
	--tag-recipe: #fdf0cf;
	--on-tag-recipe: #8a5a00;
	--shadow: 0 1px 2px rgb(74 52 24 / 5%), 0 12px 32px -8px rgb(74 52 24 / 18%);
	--card-shadow: 0 1px 1px rgb(74 52 24 / 4%), 0 8px 22px -12px rgb(74 52 24 / 24%);
	--button-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent);
	/* Flavor: you, your partner, what's ours, and the kitchen (predictions), which is nobody's */
	--me: var(--accent);
	--me-soft: var(--accent-soft);
	--them: #ba3e28; /* deep enough to read as small text on its own soft tint */
	--them-soft: #fce6dd;
	--us: #6a428f;
	--us-soft: #eadff2;
	--marigold: #f6c25c;
	--marigold-deep: #efa834;
	--marigold-soft: #fef4df;
	--on-marigold: #8a5a00;
	--fl-rule: #d5c6b0;
	--fl-ink: #7a6d61;
	/* The band across the top of a page: mustard for the Kitchen, teal to sign in */
	--band: #f4c15d;
	--band-lip: #f9d98f;
	--on-band: #2a231c;
	--band-soft: #5c4726;
	--band-shadow: rgb(120 80 10 / 20%);
	/* How wide a page runs on big screens, and the column beside it */
	--page: 1200px;
	--rail: 320px;
	--sidebar: #0f434b;
	--sidebar-active: #185963;
	--sidebar-text: #e6eeea;
	--sidebar-muted: #8fb5b6;
	--sidebar-line: rgb(255 255 255 / 10%);
	--serif: "Newsreader", "Iowan Old Style", Georgia, serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	/* Paper grain, and the torn edge under the band */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .28 0 0 0 0 .16 .36 0 0 0 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V9C1160 12 1120 14 1070 12S970 5 900 7 780 15 700 13 590 6 520 8 400 14 320 12 200 6 130 8 40 12 0 11Z'/%3E%3C/svg%3E");
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #191512;
		--card: #231e19;
		--text: #f0e9de;
		--muted: #a59a8b;
		--faint: #51483e;
		--line: #342d26;
		--edge: #2f2822;
		--accent: #62b4bc;
		--accent-soft: #1d3638;
		--on-accent: #0b2326;
		--toast-action: #1c6b75;
		--them: #ee8466;
		--them-soft: #3c2119;
		--us: #a98cc6;
		--us-soft: #2e2239;
		--marigold: #d88a1e;
		--marigold-soft: #2e2416;
		--on-marigold: #f9d78e;
		--fl-rule: #4a3e36;
		--fl-ink: #a89b8c;
		--danger: #ec7b62;
		--warn: #e9b65c;
		--warn-soft: #3a2d17;
		--star: #f0b942;
		--gold: #e0a23a;
		--tag: #2f2822;
		--on-tag: #bdb1a0;
		--tag-recipe: #3a2e15;
		--on-tag-recipe: #f0c66b;
		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -8px rgb(0 0 0 / 45%);
		--card-shadow: 0 1px 1px rgb(0 0 0 / 25%), 0 8px 22px -12px rgb(0 0 0 / 55%);
		--band: #c9963f;
		--band-lip: #a97c30;
		--on-band: #1d150c;
		--band-soft: #3d2c12;
		--band-shadow: rgb(0 0 0 / 35%);
		--sidebar: #0b2e33;
		--sidebar-active: #134a52;
		--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .88 .12 0 0 0 -.045'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
		color-scheme: dark;
	}
}

* {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--grain), var(--bg);
	color: var(--text);
	font: 16px/1.4 var(--sans);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
button,
input,
select {
	font: inherit;
	color: inherit;
}
button {
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
}
[hidden] {
	display: none !important;
}

main {
	padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
#app > section {
	position: relative;
	max-width: 560px;
	margin: 0 auto;
	padding: 0 16px;
}
h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 500;
}
h1 {
	margin: 0;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

/* The band across the top: a colored sheet of paper with a torn edge, and a round picture */
.band {
	position: relative;
	z-index: 1;
	padding: calc(30px + env(safe-area-inset-top)) 0 20px;
	background: var(--grain), var(--band);
	color: var(--on-band);
	filter: drop-shadow(0 4px 4px var(--band-shadow));
}
.band::before,
.band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% - 1px);
	height: 15px;
	background: var(--grain), var(--band);
	-webkit-mask: var(--wave) 0 0 / 100% 100% no-repeat;
	mask: var(--wave) 0 0 / 100% 100% no-repeat;
}
.band::before {
	height: 21px; /* a lighter lip shows under the edge */
	background: var(--band-lip);
}
.band.teal {
	--band: #1e6b75;
	--band-lip: #2f8189;
	--on-band: #fdf9f2;
	--band-soft: #cfe5e3;
	--band-shadow: rgb(10 40 45 / 25%);
}
.band-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	max-width: 560px;
	margin: 0 auto;
	padding: 0 20px;
}
.band-text {
	flex: 1;
	min-width: 0;
}
.band-eyebrow {
	margin: 0 0 8px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.9;
}
.band-title {
	font-size: 44px;
	line-height: 1;
}
.band-sub {
	min-height: 1.3em;
	margin: 10px 0 0;
	font-family: var(--serif);
	font-size: 19px;
	font-style: italic;
	line-height: 1.3;
	color: var(--band-soft);
}
.band-art {
	flex: none;
	width: 88px;
	height: 88px;
	filter: drop-shadow(0 6px 10px var(--band-shadow));
}

/* The Kitchen's sections, under the band */
.line-tabs {
	display: flex;
	gap: 18px;
	max-width: 560px;
	margin: 26px auto 18px;
	padding: 0 16px;
	overflow-x: auto;
	background: linear-gradient(var(--line), var(--line)) 50% 100% / calc(100% - 32px) 1px no-repeat;
	scrollbar-width: none;
}
.line-tabs::-webkit-scrollbar {
	display: none;
}
/* Six tabs don't fit on a phone: the strip fades at its right edge to say there's more, and the
   last tab can scroll clear of the fade */
@media (max-width: 559px) {
	.line-tabs {
		padding-right: 40px;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
	}
}
.line-tabs a {
	position: relative;
	flex: none;
	padding: 8px 4px 11px;
	font-size: 15px;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
}
.line-tabs a[aria-current="page"] {
	font-weight: 600;
	color: var(--text);
}
.line-tabs a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.5px;
	border-radius: 2px;
	background: var(--accent);
}
/* A recipe, the editor and an import are their own pages, without the band */
#app:has(> #recipes:not([hidden]):not([data-screen="list"])) > :is(.band, .line-tabs),
#app:has(> :is(#ingredients, #products):not([hidden])[data-screen="detail"]) > :is(.band, .line-tabs) {
	display: none;
}
#recipes:not([data-screen="list"]),
:is(#ingredients, #products)[data-screen="detail"] {
	padding-top: calc(14px + env(safe-area-inset-top));
}
.status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 4px;
	font-size: 13px;
	color: var(--muted);
}
.status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--faint);
}
.status.live::before {
	background: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Chips: store tabs, and the pickers in the edit sheet */
.chips {
	display: flex;
	gap: 8px;
}
.chips.scroll {
	position: relative;
	overflow-x: auto;
	margin: 0 -16px 14px;
	padding: 2px 16px;
	scrollbar-width: none;
}
.chips.scroll::-webkit-scrollbar {
	display: none;
}
.chips.wrap {
	flex-wrap: wrap;
}
.chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition:
		background 0.15s,
		color 0.15s,
		border-color 0.15s;
}
.chip .count {
	font-size: 13px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}
.chip[aria-pressed="true"] .count {
	color: inherit;
	opacity: 0.65;
}

/* Add box + suggestions */
.composer {
	position: relative;
	margin-bottom: 6px;
}
.composer input {
	width: 100%;
	height: 52px;
	padding: 0 16px 0 48px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--card);
	box-shadow: inset 0 1px 2px rgb(74 52 24 / 5%);
	font-size: 17px;
	outline: none;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.composer input::placeholder {
	color: var(--muted);
}
.composer input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.add-btn {
	position: absolute;
	top: 7px;
	left: 7px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	color: var(--accent);
	transition: background 0.15s;
}
/* The recipe link box has a Save button on the right instead */
.composer:has(.add-btn.wide) input {
	padding: 0 92px 0 16px;
}
.suggest {
	position: absolute;
	z-index: 10;
	max-height: min(60vh, 560px);
	overflow-y: auto;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	list-style: none;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--card);
	box-shadow: var(--shadow);
}
.suggest li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
	padding: 0 12px;
	border-radius: 10px;
	cursor: pointer;
}
.suggest li:hover,
.suggest li.active {
	background: var(--bg);
}
.suggest strong {
	font-weight: 650;
}
.suggest .meta {
	flex: none;
	font-size: 13px;
	color: var(--muted);
}

/* List */
.group {
	margin-top: 22px;
}
.group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 28px;
	padding: 0 0 8px;
}
.group-head h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
	color: var(--text);
}
/* Small caps headings: under a heading, in the pantry, and in sheets */
.group-head.sub h2,
.pantry-list .group-head h2 {
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.card {
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: 18px;
	border: 1px solid var(--edge);
	background: var(--card);
	box-shadow: var(--card-shadow);
	overflow: hidden;
}
.item {
	position: relative;
	display: flex;
	align-items: center;
}
/* Rules between rows start at the text, as in a notebook */
.item + .item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 16px;
	right: 16px;
	border-top: 1px solid var(--line);
}
.item:has(> .check) + .item::before {
	left: 56px;
}
.item label {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 54px;
	padding: 12px 4px 12px 16px;
	cursor: pointer;
}
.item input {
	appearance: none;
	flex: none;
	display: grid;
	place-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	border-radius: 50%;
	border: 2px solid color-mix(in srgb, var(--accent) 85%, transparent);
	cursor: pointer;
	transition:
		background 0.15s,
		border-color 0.15s;
}
.item input::after {
	content: "";
	width: 10px;
	height: 5px;
	border: solid var(--on-accent);
	border-width: 0 0 2px 2px;
	transform: translateY(-1px) rotate(-45deg);
	opacity: 0;
}
.item input:checked {
	background: var(--accent);
	border-color: var(--accent);
}
.item input:checked::after {
	opacity: 1;
}
.item .name {
	flex: 1 1 7em;
	min-width: 0;
	font-size: 17px;
	font-weight: 500;
	overflow-wrap: break-word;
}
.item.done .name {
	color: var(--muted);
	text-decoration: line-through;
	text-decoration-color: var(--faint);
}
.pill {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--tag);
	font-size: 13px;
	font-weight: 500;
	color: var(--on-tag);
	white-space: nowrap;
}
/* A row's store reads as a quiet note beside the price */
.item-main > .pill {
	padding: 0;
	background: none;
	font-size: 13px;
	font-weight: 400;
	color: var(--muted);
}
.item.flash {
	animation: flash 1.4s ease-out;
}
@keyframes flash {
	from {
		background: var(--accent-soft);
	}
}

.text-btn {
	padding: 6px 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}
.text-btn.danger {
	color: var(--danger);
}
.primary {
	height: 50px;
	padding: 0 26px;
	border-radius: 14px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	box-shadow: var(--button-shadow);
}

.empty {
	padding: 56px 24px;
	text-align: center;
	color: var(--muted);
}
.empty .icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}
.empty h2 {
	margin: 0 0 4px;
	font-size: 22px;
	color: var(--text);
}
.empty p {
	margin: 0;
	font-size: 15px;
}

.foot {
	margin-top: 40px;
	text-align: center;
}
/* Phones: whether the list is live, and Sign out, at the end of the page */
#app > .foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}
.foot .status {
	padding: 0;
}
.foot button {
	padding: 8px;
	font-size: 14px;
	color: var(--muted);
}

/* Toast */
.toast {
	display: flex;
	align-items: center;
	gap: 16px;
	position: fixed;
	z-index: 50;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	width: max-content;
	max-width: calc(100% - 32px);
	padding: 13px 18px;
	border-radius: 14px;
	background: var(--text);
	color: var(--bg);
	font-size: 15px;
	box-shadow: var(--shadow);
	opacity: 0;
	transform: translate(-50%, 12px);
	pointer-events: none;
	transition:
		opacity 0.2s,
		transform 0.2s;
}
.toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}
.toast-action {
	flex: none;
	padding: 4px 2px;
	font-weight: 700;
	color: var(--toast-action);
}

/* Edit sheet: slides up from the bottom on phones, centered on wider screens */
.sheet {
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	margin: auto auto 0;
	padding: 0;
	border: 0;
	border-radius: 26px 26px 0 0;
	background: var(--grain), var(--bg);
	color: var(--text);
	box-shadow: var(--shadow);
}
.sheet::backdrop {
	background: rgb(0 0 0 / 35%);
}
.sheet[open] {
	animation: sheet-in 0.22s ease-out;
}
@keyframes sheet-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}
@media (min-width: 600px) {
	.sheet {
		margin: auto;
		border-radius: 26px;
	}
	.sheet form {
		padding-top: 20px;
	}
	.grabber {
		display: none; /* nothing to drag when it's a centered dialog */
	}
}
.sheet form {
	padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
}
.grabber {
	position: relative;
	width: 36px;
	height: 5px;
	margin: 0 auto 14px;
	border-radius: 3px;
	background: var(--faint);
	cursor: grab;
	touch-action: none; /* a pull on it moves the sheet, not the page */
}
/* The bar is small; the area that answers to a finger is not */
.grabber::before {
	content: "";
	position: absolute;
	inset: -22px -90px -14px;
}
.sheet-name {
	width: 100%;
	padding: 6px 2px 12px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 500;
	outline: none;
}
.sheet-name:focus {
	border-color: var(--accent);
}
.label {
	display: block;
	margin: 18px 2px 10px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.sheet .chip {
	height: 34px;
	font-size: 14px;
}
.sheet-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
}
/* Save and Cancel stay in view at the foot of a long sheet, instead of waiting below a scroll.
   The row spans the sheet edge to edge and fades in over what scrolls beneath it. */
.sheet form > .sheet-actions:last-child {
	position: sticky;
	bottom: 0;
	z-index: 1;
	margin: 12px -16px calc(-16px - env(safe-area-inset-bottom));
	padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
	background: var(--grain), var(--bg);
	-webkit-mask-image: linear-gradient(to top, #000 calc(100% - 12px), transparent);
	mask-image: linear-gradient(to top, #000 calc(100% - 12px), transparent);
}

/* Sign in */
.login {
	display: flex;
	flex-direction: column;
	max-width: 400px;
	margin: 30px auto 0;
	padding: 0 20px;
}
.login .label {
	margin: 18px 2px 8px;
}
.login-note {
	margin: 14px 2px 0;
	font-size: 13px;
	color: var(--muted);
}
.field {
	height: 50px;
	padding: 0 16px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--card);
	outline: none;
}
.field:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.login .primary {
	height: 52px;
	margin-top: 26px;
}
.err {
	min-height: 1.2em;
	margin: 8px 2px 0;
	font-size: 14px;
	color: var(--danger);
}

/* The sidebar is for wide screens; phones use the tabs under the band */
.tabbar,
.for-desktop {
	display: none;
}

/* Recipes */
.hint {
	margin: 10px 4px 0;
	font-size: 14px;
	color: var(--muted);
}
/* Links in a sentence: italic and underlined, like a note in the margin */
.hint a {
	font-family: var(--serif);
	font-size: 1.07em;
	font-style: italic;
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.add-btn.wide {
	left: auto;
	right: 7px;
	width: auto;
	min-width: 72px;
	padding: 0 16px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 15px;
	font-weight: 600;
}
.composer input:placeholder-shown + .add-btn.wide {
	background: var(--line);
	color: var(--muted);
}
.add-btn:disabled {
	opacity: 0.8;
	cursor: default;
}
.spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-right-color: transparent;
	animation: spin 0.8s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
.recipe-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
}
.recipe-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 18px;
	border: 1px solid var(--edge);
	background: var(--card);
	box-shadow: var(--card-shadow);
	color: inherit;
	text-decoration: none;
}
.thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--line);
}
.placeholder {
	display: grid;
	place-items: center;
	color: var(--faint);
}
.thumb.placeholder {
	--plate: #f2c35f;
	background:
		radial-gradient(circle, var(--plate) 0 21%, transparent 21.5%),
		radial-gradient(circle, color-mix(in srgb, var(--plate) 30%, var(--tag-recipe)) 0 30%, transparent 30.5%),
		var(--tag-recipe);
}
.thumb.placeholder svg {
	display: none;
}
.recipe-card:nth-child(4n + 2) .thumb.placeholder {
	--plate: #d9a05a;
}
.recipe-card:nth-child(4n + 3) .thumb.placeholder {
	--plate: #e8c46e;
}
.recipe-card:nth-child(4n + 4) .thumb.placeholder {
	--plate: #c9874a;
}
.card-body {
	padding: 12px 14px 14px;
}
.card-body h3 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.card-body p {
	margin: 4px 0 0;
	overflow: hidden;
	font-size: 13px;
	color: var(--muted);
	white-space: nowrap;
	text-overflow: ellipsis;
}
.tip {
	margin-top: 28px;
	padding: 14px 16px;
	border-radius: 18px;
	border: 1px solid var(--edge);
	background: var(--card);
	box-shadow: var(--card-shadow);
	font-size: 15px;
}
.tip summary {
	min-height: 28px;
	font-weight: 600;
	cursor: pointer;
}
.tip p {
	margin: 10px 0 0;
	color: var(--muted);
}
.tip strong {
	color: var(--text);
}
.bookmarklet {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	text-decoration: none;
	cursor: grab;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	margin: 0 0 10px;
}
.back {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-height: 32px;
	margin-left: -6px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}
@media (max-width: 599px) {
	#recipes[data-screen="recipe"]:has(.recipe-top:not(.no-photo)) {
		padding-top: 0;
	}
	#recipes[data-screen="recipe"]:has(.recipe-top:not(.no-photo)) > .topbar {
		position: absolute;
		z-index: 3;
		top: calc(12px + env(safe-area-inset-top));
		left: 14px;
		right: 14px;
	}
	#recipes[data-screen="recipe"]:has(.recipe-top:not(.no-photo)) > .topbar :is(.back, .text-btn) {
		margin: 0;
		padding: 8px 14px;
		border-radius: 999px;
		background: color-mix(in srgb, var(--card) 90%, transparent);
		box-shadow: var(--card-shadow);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
	#recipes[data-screen="recipe"]:has(.recipe-top:not(.no-photo)) > .topbar .back {
		padding-left: 8px;
	}
	.recipe-top:not(.no-photo) .hero {
		width: calc(100% + 32px);
		max-width: none;
		margin: 0 -16px;
		aspect-ratio: 4 / 3.3;
		border-radius: 0;
	}
	.recipe-top:not(.no-photo) .recipe-intro {
		position: relative;
		margin: -26px -16px 0;
		padding: 24px 16px 0;
		border-radius: 26px 26px 0 0;
		background: var(--grain), var(--bg);
	}
}
.back span {
	display: grid;
}
.text-btn.muted {
	color: var(--muted);
	text-decoration: none;
}
a.text-btn {
	text-decoration: none;
}
.hero {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 18px;
	border-radius: 20px;
	object-fit: cover;
	background: var(--line);
}
.recipe-title {
	font-size: 36px;
	line-height: 1.08;
}
/* Time, servings and where it's from, in small capitals: 35 MIN · SERVES 2 · NYTIMES.COM */
.recipe-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin-top: 14px;
}
.recipe-meta .pill {
	padding: 0;
	border-radius: 0;
	background: none;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
}
.recipe-meta .pill + .pill::before {
	content: "·";
	margin: 0 10px;
	color: var(--faint);
}
.recipe-meta a.pill {
	color: var(--accent);
}
.recipe-meta .pill span {
	display: none;
}
.recipe-desc {
	margin: 14px 0 0;
	color: var(--muted);
}
.lines .name {
	font-size: 16px;
}
/* "# For the sauce" lines: smaller than the section headings, but in the text color */
.lines .subhead,
.steps .subhead {
	padding: 16px 16px 4px;
	font-size: 15px;
	font-weight: 650;
	color: var(--text);
	list-style: none;
}
.lines .subhead + .item {
	border-top: 0;
}
.steps {
	margin: 0;
	padding: 0;
	list-style: none;
}
.steps .subhead {
	padding: 10px 4px 2px;
}
.step {
	display: flex;
	gap: 14px;
	padding: 12px 4px;
	cursor: pointer;
	transition: opacity 0.15s;
}
.step + .step {
	border-top: 1px solid var(--line);
}
.step .num {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--tag-recipe);
	color: var(--on-tag-recipe);
	font-size: 14px;
	font-weight: 700;
}
.step p {
	margin: 2px 0 0;
	font-size: 17px;
	line-height: 1.5;
}
/* Tap a step and the others fade (with the ingredients it doesn't use); tap it again to clear */
.steps.focused .step:not(.on),
.steps.focused .taste-point,
.steps.focused .subhead {
	opacity: 0.35;
}
.step.on .num {
	background: var(--accent);
	color: var(--on-accent);
}

/* Recipe editor */
.editor-title {
	margin-bottom: 4px;
	font-size: 34px;
}
.label-hint {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
.field {
	width: 100%;
}
.field.area {
	display: block;
	height: auto;
	min-height: 120px;
	padding: 12px 14px;
	font: inherit;
	line-height: 1.5;
	resize: vertical;
}
.field::placeholder {
	color: color-mix(in srgb, var(--muted) 65%, var(--card));
}
.pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.primary.block {
	width: 100%;
	margin-top: 28px;
}
.assist {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	padding: 14px;
	border-radius: 18px;
	background: var(--accent-soft);
}
.assist-icon {
	flex: none;
	color: var(--accent);
}
.assist-body {
	flex: 1;
	min-width: 0;
}
.assist-body > p {
	margin: 0;
	font-size: 15px;
}
.assist-btn {
	margin-top: 10px;
	padding: 9px 14px;
	border: 1.5px solid var(--accent);
	border-radius: 12px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 15px;
	font-weight: 600;
}
.assist-btn.secondary {
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
	background: transparent;
	color: var(--accent);
}
.paste {
	margin-top: 10px;
}
.paste summary {
	font-size: 15px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
}
.paste .field.area {
	margin-top: 10px;
	min-height: 100px;
}
.progress {
	height: 4px;
	margin-top: 12px;
	overflow: hidden;
	border-radius: 2px;
	background: color-mix(in srgb, var(--accent) 20%, transparent);
}
.progress::after {
	content: "";
	display: block;
	width: 40%;
	height: 100%;
	border-radius: 2px;
	background: var(--accent);
	animation: progress 1.2s ease-in-out infinite;
}
@keyframes progress {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(250%);
	}
}

/* Store prices */
.price-chip {
	flex: none;
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.price-chip.sale {
	color: var(--on-tag-recipe);
}
.price-chip.stale {
	font-weight: 500;
	color: var(--muted);
}
.prices {
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--card);
	overflow: hidden;
}
.price-store {
	padding: 12px 14px;
}
.price-store + .price-store {
	border-top: 1px solid var(--line);
}
.price-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.price-product {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.price-product a {
	color: inherit;
}
.price-actions {
	display: flex;
	gap: 14px;
	margin-top: 4px;
}

.finder {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
	font-size: 14px;
}
.finder a {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}
.finder-row {
	display: flex;
	gap: 8px;
}
.finder-row .field {
	flex: 1;
	min-width: 0;
	height: 44px;
}
.finder-row .assist-btn {
	margin: 0;
}
.finder-results {
	margin: 0;
	padding: 0;
	list-style: none;
}
.finder-results li.muted {
	padding: 8px 2px;
	color: var(--muted);
}
.finder-results button {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 10px 8px;
	border-radius: 8px;
	text-align: left;
}
.finder-results button .muted {
	flex: none;
	color: var(--muted);
}

/* Store products in the add box's dropdown */
.suggest li.suggest-label {
	min-height: 0;
	padding: 10px 12px 4px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	cursor: default;
}
.suggest li.suggest-label:hover {
	background: none;
}
.suggest li.product-option {
	justify-content: flex-start;
	gap: 10px;
}
.suggest-img {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: contain;
	background: #fff;
}
.suggest-img.placeholder {
	display: grid;
	place-items: center;
	background: var(--bg);
	color: var(--faint);
}
.suggest-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 6px 0;
	line-height: 1.25;
}
.suggest-text .meta {
	font-size: 13px;
}
.text-btn.forget {
	margin-top: 12px;
	padding-left: 0;
}

/* Preferred products */
.name-wrap {
	flex: 1 1 7em;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.name-wrap .name,
.product-text .name {
	flex: none; /* stacked here, not in a row */
}
.item-product {
	margin-top: 1px;
	font-size: 13px;
	color: var(--muted);
	overflow-wrap: break-word;
}
.pick-tag {
	margin-left: 8px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 11.5px;
	font-weight: 600;
	vertical-align: 1px;
}
.hint.lead {
	margin: 0 4px 16px;
}
.product-img {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: contain;
	background: #fff;
}
.product-img.placeholder {
	display: grid;
	place-items: center;
	background: var(--bg);
	color: var(--faint);
}
.product-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 10px 0;
}
.product-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 5px;
}

.product-options {
	padding: 2px 14px 14px;
}

.products-empty {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--line);
	border-radius: 16px;
	font-size: 14px;
	color: var(--muted);
}
.auto-matches {
	margin-top: 10px;
}
.auto-matches summary {
	padding: 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
}
.auto-matches .hint {
	margin: 4px 4px 10px;
}
.add-product {
	margin-bottom: 10px;
	padding: 14px;
}
.product-options .price-actions {
	flex-wrap: wrap;
	margin: 0;
}
.start-over .hint {
	margin: 4px auto 0;
	max-width: 320px;
}
.add-product .label {
	margin-top: 0;
}

/* ---- Tapping things: the circle checks off, a row opens, buttons act ---- */

.item label.check {
	flex: none;
	align-self: stretch;
	display: grid;
	place-items: center;
	width: 56px;
	min-height: 54px;
	padding: 0 0 0 4px;
	cursor: pointer;
}
.item-main {
	flex: 1;
	min-width: 0;
	align-self: stretch;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 10px 14px 10px 0;
	text-align: left;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	transition: background 0.12s;
}
.add-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}
/* An opened product and its options read as one block */
.product.open {
	background: color-mix(in srgb, var(--accent-soft) 45%, var(--card));
}
.row-action {
	flex: none;
	align-self: center;
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	margin-right: 8px;
	border-radius: 12px;
	color: var(--accent);
}
.row-action.keep {
	padding: 0 14px;
	background: var(--accent-soft);
	font-size: 15px;
	font-weight: 600;
}

/* Product photos big enough to tell products apart */
.product-img {
	width: 56px;
	height: 56px;
	border-radius: 10px;
}
.suggest li.product-option {
	min-height: 84px;
	gap: 12px;
	padding: 8px 12px;
}
.suggest-img {
	width: 64px;
	height: 64px;
	border-radius: 10px;
}
.suggest-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.finder-results button {
	align-items: center;
	gap: 12px;
}
.finder-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.price-product {
	display: flex;
	align-items: center;
	gap: 12px;
}
.price-product .product-img {
	width: 64px;
	height: 64px;
}

/* Actions look like buttons, with room for a thumb */
.price-actions {
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.price-actions .text-btn {
	padding: 7px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
}
.product-options .forget {
	margin-top: 14px;
}

/* Pressed states, so a tap visibly lands */
.item-main:active,
.suggest li[role="option"]:active,
.finder-results button:active {
	background: color-mix(in srgb, var(--line) 75%, transparent);
}
.chip,
.text-btn,
.primary,
.assist-btn,
.add-btn,
.row-action,
.level,
.star,
.toast-action {
	transition-property: transform, background, color, border-color, opacity;
	transition-duration: 0.12s;
}
.chip:active,
.text-btn:active,
.primary:active,
.assist-btn:not(:disabled):active,
.add-btn:active,
.row-action:active,
.level:active,
.star:active,
.toast-action:active {
	transform: scale(0.96);
}
.card-link:active .thumb {
	opacity: 0.85;
}
.item .check:active input {
	transform: scale(0.88);
}

/* ---- Why it's on the list: recipes, restock, new ---- */

.item-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin-top: 7px;
}
.tag {
	max-width: 100%;
	overflow: hidden;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--tag);
	color: var(--on-tag);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.55;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tag.recipe {
	background: var(--tag-recipe);
	color: var(--on-tag-recipe);
}
.tag.restock {
	background: var(--tag);
	color: var(--on-tag);
}
.qty {
	font-weight: 650;
}
.item.done .item-tags {
	opacity: 0.6;
}

/* ---- Pantry ---- */

.item.stock .item-main {
	padding-left: 16px;
}
.item.stock.out .name {
	color: var(--muted);
}
.levels {
	flex: none;
	display: flex;
	gap: 6px;
	margin-right: 10px;
}
.level {
	min-width: 52px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
}
.level.low[aria-pressed="true"] {
	border-color: var(--tag-recipe);
	background: var(--tag-recipe);
	color: var(--on-tag-recipe);
}
.level.out[aria-pressed="true"] {
	border-color: var(--danger);
	background: var(--danger);
	color: var(--card);
}

/* ---- The cart: names and prices, the total with tax, and Check out ---- */

.cart .item-main .name {
	flex: 1;
}
.cart-price {
	flex: none;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.cart-total {
	padding: 14px 16px 16px;
	border-top: 1px solid var(--line);
	list-style: none;
}
.cart-total dl,
.receipt dl {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}
.cart-total dl div,
.receipt dl div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--muted);
}
.cart-total dd,
.receipt dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
	color: var(--text);
}
.cart-total .total,
.receipt .total {
	margin-top: 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
}
.cart .group-head h2 {
	font-size: 21px;
}
.cart-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--muted);
}
.primary.checkout {
	margin-top: 14px;
}

/* ---- A recipe's ingredients: whether the pantry has each one ---- */

.menu {
	position: absolute;
	z-index: 30;
	width: 230px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	box-shadow: var(--shadow);
}
.menu-title {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 8px 10px 6px;
	font-size: 13px;
	color: var(--muted);
}
.menu-title strong {
	font-size: 15px;
	color: var(--text);
}
.menu-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: 9px 10px 9px 30px;
	border-radius: 9px;
	text-align: left;
	font-size: 15px;
	position: relative;
}
.menu-option[aria-checked="true"]::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 15px;
	width: 9px;
	height: 5px;
	border: solid var(--accent);
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg);
}
.menu-option:hover,
.menu-option:focus-visible {
	background: color-mix(in srgb, var(--bg) 70%, var(--card));
	outline: none;
}
.menu-hint {
	font-size: 13px;
	color: var(--muted);
}

/* ---- Spending ---- */

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.stat-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid var(--edge);
	border-radius: 18px;
	background: var(--card);
	box-shadow: var(--card-shadow);
}
.stat-label {
	font-size: 13px;
	color: var(--muted);
}
.stat-value {
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.01em;
	font-variant-numeric: lining-nums tabular-nums;
}
.stat-tile.headline .stat-value {
	font-size: 26px;
}
.chart-card {
	padding: 12px 12px 8px;
	overflow: visible;
}
.chart {
	position: relative;
	min-height: 220px;
}
.chart svg {
	display: block;
}
.chart .grid {
	stroke: var(--line);
	stroke-width: 1;
}
.chart .tick {
	fill: var(--muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}
.chart .value {
	fill: var(--text);
	font-size: 12px;
	font-weight: 600;
}
.chart .bar {
	fill: var(--gold);
	transition: opacity 0.12s;
}
.chart .bar.hover {
	opacity: 0.75;
}
.chart .hit {
	fill: transparent;
	cursor: default;
	outline: none;
}
.chart-tip {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--card);
	box-shadow: var(--shadow);
	font-size: 12.5px;
	color: var(--muted);
	white-space: nowrap;
	pointer-events: none;
}
.chart-tip strong {
	font-size: 15px;
	color: var(--text);
}
.chart-table {
	margin: 6px 4px 4px;
	font-size: 14px;
}
.chart-table summary {
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
}
.chart-table table {
	width: 100%;
	margin-top: 8px;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
.chart-table th,
.chart-table td {
	padding: 6px 4px;
	border-top: 1px solid var(--line);
	text-align: left;
}
.chart-table th:last-child,
.chart-table td:last-child {
	text-align: right;
}
.purchase {
	list-style: none;
}
.purchase + .purchase {
	border-top: 1px solid var(--line);
}
.purchase .item-main {
	width: 100%;
	padding-left: 16px;
}
.purchase.open {
	background: color-mix(in srgb, var(--accent-soft) 35%, var(--card));
}
.purchase-total {
	flex: none;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}
.receipt {
	padding: 0 16px 14px;
}
.receipt ul {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}
.receipt li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid var(--line);
	font-size: 15px;
}
.receipt-name,
.receipt-price {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.receipt-price {
	flex: none;
	align-items: flex-end;
	font-variant-numeric: tabular-nums;
}
.price-change {
	font-size: 13px;
	font-weight: 600;
}
.price-change.up {
	color: var(--danger);
}
.price-change.down {
	color: var(--accent);
}
.receipt .text-btn.danger {
	margin-top: 10px;
	padding-left: 0;
}

/* ---- Products, by category ---- */

.products-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px 12px;
}
.products-bar .chips.scroll {
	flex: 1 1 100%; /* the add button gets its own line on phones */
	min-width: 0;
	margin-bottom: 0;
}
.add-pick {
	flex: none;
}
.add-product {
	margin-top: 14px;
}
.add-product .chips {
	margin-bottom: 10px;
}
.product-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: 18px;
	border: 1px solid var(--edge);
	background: var(--card);
	box-shadow: var(--card-shadow);
	overflow: hidden;
}
.product + .product {
	border-top: 1px solid var(--line);
}
.product-row {
	display: flex;
	align-items: center;
}
.product-row .item-main {
	gap: 12px;
	padding-left: 12px;
}

/* ---- Recipes: portions, tags, ratings, and what each one takes ---- */

.portions {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 14px;
	margin-top: 18px;
	padding: 12px 16px;
	border: 1px solid var(--edge);
	border-radius: 18px;
	background: var(--card);
	box-shadow: var(--card-shadow);
}
.portions label {
	font-size: 14px;
	font-weight: 600;
}
.portions input {
	width: 100%;
	margin: 0;
	accent-color: var(--accent);
	cursor: pointer;
}
.portions-value {
	min-width: 2ch;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.portions-note {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
.recipe-filter.chips.scroll {
	margin-top: 14px;
	margin-bottom: 0;
}
.recipe-rail .portions {
	margin-top: 12px;
}

.recipe-card {
	position: relative;
}
.card-link {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}
.stars {
	color: var(--faint);
	letter-spacing: 1px;
}
.stars .on {
	color: var(--star);
}
.card-body .card-tags {
	color: var(--on-tag-recipe);
	font-weight: 600;
}
.card-plan {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: auto;
	padding: 0 14px 12px;
}
.card-total {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}
.card-total .cost-big {
	font-size: 22px;
}
.card-total .assist-btn {
	flex: none;
	margin: 0;
	padding: 3px 10px;
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
	border-radius: 999px;
	background: transparent;
	color: var(--accent);
	font-size: 14px;
}
.card-total .plan-note {
	font-size: 13px;
}
.card-tally {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	min-height: 18px;
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
.card-match {
	flex: none;
	min-height: 24px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}
.card-plan:empty {
	display: none;
}
.plan-counts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}
.stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	text-align: center;
}
.stat strong {
	font-size: 18px;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}
.stat span {
	font-size: 11.5px;
	color: var(--muted);
	white-space: nowrap;
}
.stat.warn strong {
	color: var(--warn);
}
.stat.none strong {
	color: var(--faint);
}
.plan-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.plan-actions .assist-btn {
	flex: 1 1 auto;
	margin: 0;
	padding: 9px 10px;
	font-size: 14px;
}
.assist-btn:disabled {
	opacity: 0.55;
	cursor: default;
}
.cost-big {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
	font-variant-numeric: lining-nums tabular-nums;
}
.cost-note,
.plan-note {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.rating {
	display: flex;
	gap: 2px;
	margin: 10px 0 0 -6px;
}
.star {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	color: var(--faint);
}
.star.on {
	color: var(--star);
}
.star.on svg {
	fill: currentColor;
}
.recipe-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.tag-link {
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--tag-recipe);
	color: var(--on-tag-recipe);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.plan {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 12px;
	padding: 16px;
	border: 1px solid var(--edge);
	border-radius: 18px;
	background: var(--card);
	box-shadow: var(--card-shadow);
}
.plan .plan-counts {
	padding: 0;
	border: 0;
}
.plan .stat strong {
	font-size: 26px;
}
.plan .stat span {
	font-size: 13px;
}
.plan .plan-actions .assist-btn {
	padding: 11px 14px;
	font-size: 15px;
}
.plan-totals {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}
.plan-totals div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--muted);
}
.plan-totals dd {
	margin: 0;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text);
}
.plan-totals .total-big {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
}
.plan-totals .total-big dd {
	font-family: var(--serif);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: -0.01em;
	font-variant-numeric: lining-nums tabular-nums;
}
.lines .item {
	padding-right: 12px;
}
.line-status {
	flex: none;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--bg);
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.line-status.have {
	background: var(--accent-soft);
	color: var(--accent);
}
.line-status.match {
	background: var(--warn-soft);
	color: var(--warn);
}
.sheet-title {
	margin: 0 2px;
	font-size: 28px;
}
.sheet-hint {
	margin: 4px 2px 16px;
}

/* ---- Mouse and keyboard ---- */

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible {
	outline: none; /* fields have their own focus ring */
}
@media (hover: hover) {
	.recipe-card {
		transition:
			box-shadow 0.15s,
			transform 0.15s,
			border-color 0.15s;
	}
	.recipe-card:hover {
		box-shadow: var(--shadow);
		transform: translateY(-2px);
	}
	.chip:not([aria-pressed="true"]):hover {
		border-color: var(--faint);
	}
	.item .check:hover input:not(:checked) {
		border-color: var(--accent);
	}
	.row-action:hover,
	.add-btn:not(.wide):hover {
		background: var(--accent-soft);
	}
	.level:not([aria-pressed="true"]):hover {
		border-color: var(--faint);
		color: var(--text);
	}
	.star:hover {
		color: var(--star);
	}
	.item-main:hover,
	.item label:not(.check):hover,
	.step:hover,
	.finder-results button:hover {
		background: color-mix(in srgb, var(--bg) 55%, var(--card));
	}
	.foot button:hover,
	.line-tabs a:not([aria-current="page"]):hover {
		color: var(--text);
	}
	.tabbar > a[data-tab]:not([aria-current="page"]):hover {
		background: rgb(255 255 255 / 6%);
		color: #fff;
	}
	.nav-signout:hover {
		color: #fff;
	}
	.card-total .assist-btn:not(:disabled):hover {
		border-color: var(--accent);
		background: var(--accent);
		color: var(--on-accent);
		filter: none;
	}
	.card-match:hover,
	.low-add:hover {
		text-decoration-thickness: 2px;
	}
	.nav-add:hover {
		filter: brightness(1.04);
	}
	.primary:hover,
	.add-btn.wide:not(:disabled):hover,
	.assist-btn:hover,
	.bookmarklet:hover {
		filter: brightness(1.08);
	}
}

/* ---- Tablets ---- */

@media (min-width: 600px) {
	#app > section,
	.band-inner,
	.line-tabs {
		max-width: 720px;
	}
	.recipe-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---- Laptops and desktops: the teal sidebar, the band across the top, and the full width ---- */

@media (min-width: 960px) {
	body {
		font-size: 15px;
	}
	main {
		padding-bottom: 64px;
	}
	#app {
		margin-left: 248px;
	}
	/* One measure for the band and the page, centered beside the sidebar on big screens */
	#app > section {
		max-width: calc(var(--page) + 128px);
		padding: 40px 64px 0;
	}
	#recipes:not([data-screen="list"]),
	:is(#ingredients, #products)[data-screen="detail"] {
		padding-top: 36px;
	}
	#app > .foot,
	.line-tabs,
	.for-phone {
		display: none;
	}
	.for-desktop {
		display: block;
	}
	.toast {
		left: calc(50% + 124px); /* centered in the content, beside the sidebar */
		bottom: 32px;
	}

	/* The band: which page this is on the left, the picture on the right. The sidebar has the links. */
	.band {
		padding: 36px 0 28px;
	}
	.band::after {
		height: 18px;
	}
	.band::before {
		height: 25px;
	}
	.band-inner {
		max-width: calc(var(--page) + 128px);
		align-items: center;
		padding: 0 64px;
	}
	.band-title {
		font-size: 52px;
		letter-spacing: -0.015em;
	}
	.band-sub {
		margin-top: 10px;
		font-size: 20px;
	}
	.band-art {
		width: 104px;
		height: 104px;
	}
	.signin .band {
		padding-top: 64px;
	}
	.signin .band-inner {
		max-width: 1120px;
		margin: 0 auto;
	}
	.login {
		margin-top: 56px;
	}

	/* Sidebar: the brand, Add, and the Kitchen's sections */
	.tabbar {
		position: fixed;
		z-index: 20;
		top: 0;
		bottom: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		gap: 2px;
		width: 248px;
		padding: 30px 14px 22px;
		background: var(--sidebar);
		color: var(--sidebar-text);
	}
	.nav-brand {
		margin: 0 14px 24px;
	}
	.nav-brand p {
		margin: 0;
		font-family: var(--serif);
		font-size: 30px;
		font-weight: 500;
		line-height: 1.1;
		color: #fdf9f2;
	}
	.nav-brand .nav-for {
		margin-top: 6px;
		font-family: var(--sans);
		font-size: 13px;
		color: var(--sidebar-muted);
	}
	.nav-add {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0 0 24px;
		padding: 12px 16px;
		border-radius: 12px;
		background: #fdf9f2;
		color: #0f434b;
		font-size: 15px;
		font-weight: 600;
		text-decoration: none;
		box-shadow: 0 8px 18px -8px rgb(0 0 0 / 55%);
		transition-property: transform, filter;
		transition-duration: 0.12s;
	}
	.nav-add:active {
		transform: scale(0.97);
	}
	.nav-label {
		margin: 0 0 6px;
		padding: 20px 14px 0;
		border-top: 1px solid var(--sidebar-line);
		font-size: 11.5px;
		font-weight: 600;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: #6aa9ad;
	}
	.tabbar > a[data-tab] {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 14px;
		border-radius: 10px;
		font-size: 15px;
		color: var(--sidebar-text);
		text-decoration: none;
	}
	.tabbar > a[data-tab] svg {
		width: 20px;
		height: 20px;
		color: var(--sidebar-muted);
	}
	.tabbar > a[aria-current="page"] {
		background: var(--sidebar-active);
		font-weight: 600;
		color: #fff;
	}
	.tabbar > a[aria-current="page"] svg {
		color: #f4c15d;
	}
	.nav-foot {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin-top: auto;
		padding: 18px 14px 0;
		border-top: 1px solid var(--sidebar-line);
	}
	.nav-foot .status {
		padding: 0;
		color: var(--sidebar-muted);
	}
	.nav-foot .status::before {
		background: rgb(255 255 255 / 30%);
	}
	.nav-foot .status.live::before {
		background: #7fd3c8;
		box-shadow: 0 0 0 3px rgb(127 211 200 / 20%);
	}
	.nav-signout {
		font-size: 14px;
		color: var(--sidebar-muted);
	}

	/* Denser rows and controls than on a phone */
	.composer input {
		height: 48px;
		padding: 0 16px 0 46px;
		border-radius: 14px;
		font-size: 16px;
	}
	.add-btn {
		top: 7px;
		left: 7px;
		width: 34px;
		height: 34px;
		border-radius: 9px;
	}
	.add-btn.wide {
		left: auto;
		right: 7px;
		padding: 0 14px;
		font-size: 14px;
	}
	.suggest li {
		min-height: 40px;
	}
	.item label {
		gap: 12px;
		min-height: 44px;
		padding: 8px 4px 8px 14px;
	}
	.item label.check {
		width: 52px;
		min-height: 48px;
		padding: 0 0 0 4px;
	}
	.item:has(> .check) + .item::before {
		left: 52px;
	}
	.item-main {
		min-height: 48px;
		padding: 10px 16px 10px 0;
	}
	.suggest {
		width: max(100%, 560px); /* room for product names and photos */
	}
	.item .name,
	.lines .name {
		font-size: 16px;
	}
	.item input {
		width: 22px;
		height: 22px;
	}
	.item input::after {
		width: 9px;
		height: 4.5px;
	}
	.label {
		font-size: 11.5px;
	}
	.chip {
		height: 36px;
		padding: 0 16px;
		font-size: 14px;
	}
	.field {
		height: 46px;
	}
	.primary {
		height: 46px;
	}

	/* Groceries: one column, so the add box and the list share their edges */
	#add {
		margin: 0;
	}
	.groups {
		margin-top: 4px;
	}
	.groups:empty {
		display: none;
	}

	/* Pantry: the add box with its note beside it, then categories in columns */
	#pantry {
		display: grid;
		grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
		column-gap: 32px;
		align-items: center;
	}
	#pantry > .composer {
		margin: 0;
	}
	#pantry > .hint {
		margin: 0;
		max-width: 440px;
		font-size: 14px;
	}
	#pantry > .restock-bar {
		grid-column: 1 / -1;
		max-width: 560px;
	}
	.pantry-list {
		grid-column: 1 / -1;
		margin-top: 8px;
		columns: 380px 4;
		column-gap: 28px;
	}
	.pantry-list .group {
		display: inline-block;
		width: 100%;
		margin: 22px 0 0;
		break-inside: avoid;
	}
	.pantry-list .empty {
		column-span: all;
	}
	.level {
		height: 30px;
		font-size: 13px;
	}
	.item.stock .row-action {
		height: 32px;
		border-radius: 9px;
	}

	/* Products: categories in columns, like the list */
	.product-cats {
		columns: 340px 4;
		column-gap: 20px;
	}
	.product-cats .group {
		display: inline-block;
		width: 100%;
		margin: 20px 0 0;
		break-inside: avoid;
	}
	.products-search {
		max-width: 420px;
	}
	.products-bar {
		flex-wrap: nowrap;
		margin-bottom: 4px;
	}
	.products-bar .chips.scroll {
		flex: 1 1 auto;
	}

	/* Spending: the figures in a row */
	.stats {
		gap: 14px;
	}
	.stat-tile {
		padding: 16px 18px;
	}
	.stat-tile.headline .stat-value {
		font-size: 30px;
	}
	.hint.lead {
		margin: 0 0 18px;
	}

	/* Recipes: the search, then the results. The rail joins them on bigger screens. */
	.recipe-rail .portions {
		padding: 8px 16px;
	}
	.recipe-filter.chips.scroll {
		flex-wrap: wrap;
		overflow: visible;
		margin: 16px 0 0;
		padding: 0;
	}
	.recipe-grid {
		grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
		gap: 20px;
		margin-top: 18px;
	}
	.card-total .cost-big {
		font-size: 24px;
	}
	.tip {
		padding: 14px 18px;
	}

	/* A recipe: photo beside the title, ingredients beside the steps, at a comfortable reading width */
	#recipes[data-screen="recipe"] {
		max-width: 1240px;
	}
	.recipe-top {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "hero intro" "hero flavor";
		column-gap: 48px;
		align-items: start;
	}
	/* No photo: the title on the left, the flavor star on the right */
	.recipe-top.no-photo {
		grid-template-rows: auto;
		grid-template-areas: "intro flavor";
	}
	/* The photo runs the height of the title and the flavor beside it */
	.recipe-top .hero {
		grid-area: hero;
		height: 100%;
		min-height: 360px;
		aspect-ratio: auto;
		margin: 0;
	}
	.recipe-intro {
		grid-area: intro;
	}
	.recipe-flavor {
		grid-area: flavor;
		align-self: stretch;
		margin-top: 22px;
	}
	.no-photo .recipe-flavor {
		margin-top: 0;
	}
	.recipe-flavor .fl-panel {
		height: 100%;
		padding: 14px 18px;
	}
	.recipe-flavor .fl-head h2 {
		font-size: 21px;
	}
	.recipe-top > :only-child,
	.recipe-body > :only-child {
		grid-column: 1 / -1;
	}
	.recipe-title {
		font-size: 46px;
	}
	/* Ingredients carry prices and controls, so they get nearly half */
	.recipe-body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		gap: 56px;
		align-items: start;
		margin-top: 16px;
	}
	.step p {
		font-size: 16px;
	}
	.editor {
		max-width: 1080px;
	}
	.editor-cols {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	::before,
	::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---- A recipe's ingredients: to get, and pantry staples ----
   Rows read like the recipe: the text, then a quiet price and small controls on the right */

.ingredients .group-head.sub {
	margin-top: 4px;
}
.ingredients .card + .group-head.sub {
	margin-top: 22px;
}
.ing-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: -2px 4px 8px;
	font-size: 13px;
	color: var(--muted);
}
.ing-legend > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ing-legend svg {
	display: block;
	color: var(--accent);
}
.item.ing {
	gap: 8px;
	min-height: 52px;
	padding: 6px 8px 6px 16px;
	transition: background 0.3s;
}
.item.ing.listed {
	background: color-mix(in srgb, var(--accent-soft) 45%, var(--card));
}
.item.none {
	padding: 14px 16px;
	font-size: 15px;
	color: var(--muted);
}
.ing-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 0;
}
.ing-first {
	font-size: 16px;
	line-height: 1.35;
}
.ing-more {
	font-size: 14px;
	color: var(--muted);
}
.ing-price {
	flex: none;
	min-width: 44px;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	color: var(--muted);
}
.ing-price.none {
	color: var(--faint);
}
.ing-controls {
	flex: none;
	display: flex;
}
.ing-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--muted);
	transition-property: transform, background, color;
	transition-duration: 0.12s;
}
.ing-icon:active {
	transform: scale(0.9);
}
.ing-icon.on {
	background: var(--accent);
	color: var(--on-accent);
}
.ing-icon.spacer {
	visibility: hidden;
}
.level-pill {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 1px;
	padding: 3px 5px 3px 9px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.level-pill span {
	display: grid;
	opacity: 0.7;
}
.level-pill.stocked {
	background: var(--accent-soft);
	color: var(--accent);
}
.level-pill.low {
	background: var(--warn-soft);
	color: var(--warn);
}
.level-pill.out {
	background: color-mix(in srgb, var(--danger) 14%, var(--card));
	color: var(--danger);
}
/* "Enough for this? Yes · No, add it", on its own line under a staple that's running low */
.item.ing:has(.ing-ask) {
	flex-wrap: wrap;
}
.ing-ask {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 2px;
	margin: -8px 0 6px;
	font-size: 13px;
	color: var(--warn);
}
.ing-link {
	padding: 2px 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}
.also {
	margin: 12px 4px 0;
	font-size: 14px;
	color: var(--muted);
}
@media (hover: hover) {
	.ing-icon:not(.on):not(.spacer):hover {
		background: var(--bg);
		color: var(--accent);
	}
	.ing-icon.on:hover {
		background: color-mix(in srgb, var(--accent) 85%, var(--text));
	}
	.level-pill:hover {
		filter: brightness(0.96);
	}
	.ing-link:hover {
		text-decoration: underline;
	}
}
/* A row sliding between the two groups stays visible over the card edges */
.ingredients.sliding .card {
	overflow: visible;
}
.ingredients.sliding .item.flash {
	position: relative;
	z-index: 2;
	border-radius: 12px;
	background: var(--card);
	box-shadow: var(--shadow);
}

/* ---- A low staple on the list: is there enough at home? ---- */

.item.verifying {
	flex-wrap: wrap;
}
.verify {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 0 14px 12px 56px;
}
.verify-text {
	flex: 1 1 100%;
	font-size: 14px;
	color: var(--warn);
}
.verify-btn {
	height: 32px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	transition-property: transform, background;
	transition-duration: 0.12s;
}
.verify-btn:active {
	transform: scale(0.96);
}
.verify-btn.need {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-accent);
}

/* ---- Pantry: what the staples on the list will come to, and repeating ---- */

.restock-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 16px;
	background: var(--marigold-soft);
	color: var(--on-marigold);
	text-decoration: none;
}
.restock-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 13px;
}
.restock-text b {
	font-size: 15px;
	font-weight: 600;
}
.restock-bar strong {
	flex: none;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 500;
	font-variant-numeric: lining-nums tabular-nums;
}
.group-total {
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.repeat-choices {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.repeat-choice {
	display: flex;
	flex-direction: column;
	padding: 9px 13px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	text-align: left;
	font-size: 15px;
}
.repeat-choice small {
	font-size: 13px;
	color: var(--muted);
}
.repeat-choice[aria-pressed="true"] {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 1px var(--accent);
}
.item-product.on {
	font-weight: 600;
	color: var(--accent);
}

/* Flavor: the star, the mood filter, cook mode. See js/flavor/. */
.fl-panel {
	margin-top: 16px;
	padding: 18px;
	border: 1px solid var(--edge);
	border-radius: 18px;
	background: var(--card);
	box-shadow: var(--card-shadow);
}
.fl-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.fl-head h2,
.fl-head h3 {
	margin: 0;
	font-size: 24px;
}
.fl-head.sub {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}
.fl-head.sub h3 {
	font-size: 19px;
}
.fl-prompt {
	margin: 0;
	font-size: 21px;
	font-style: italic;
	font-weight: 400;
}
.fl-eyebrow {
	margin: 16px 0 8px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.fl-small {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.fl-small b {
	color: var(--text);
}
.fl-muted {
	font-size: 14px;
	color: var(--muted);
}
.center {
	text-align: center;
	justify-content: center;
}
.fl-sentence {
	margin: 12px 0 0;
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.3;
}
.fl-link,
.fl-foot {
	font-size: inherit;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}
.fl-foot {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	text-decoration: underline dotted;
	text-underline-offset: 3px;
}
.fl-start {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	text-decoration: none;
}

/* The star: a section for each flavor */
.fl-starwrap {
	display: flex;
	justify-content: center;
}
.fl-star {
	display: block;
	width: 100%;
	max-width: 320px;
	overflow: visible;
}
.fl-label text {
	font: 600 11.5px var(--sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	fill: var(--muted);
}
.fl-star-level {
	font-weight: 600;
	fill: var(--faint);
}
.fl-label rect {
	fill: transparent;
	stroke: transparent;
}
.fl-label.tappable,
.fl-hit {
	cursor: pointer;
	outline: none;
}
.fl-label.tappable:hover rect {
	fill: var(--tag);
}
.fl-label.on rect {
	fill: var(--me-soft);
	stroke: var(--me);
}
.fl-label.on text {
	fill: var(--text);
}
.fl-hit:hover {
	fill: color-mix(in srgb, var(--me) 8%, transparent);
}
.fl-hit:focus-visible,
.fl-label.tappable:focus-visible rect {
	stroke: var(--accent);
	stroke-width: 2;
}
.fl-glyph {
	flex: none;
	display: inline-flex;
}
.fl-glyph svg {
	display: block;
}

.fl-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted);
}
.fl-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.fl-legend i {
	width: 20px;
	height: 0;
	border-top: 2.5px solid var(--me);
}
.fl-legend i.lp {
	border-top: 2px dotted var(--fl-ink);
}
.fl-legend i.lt {
	border-top-color: var(--us);
}
.fl-legend i.le {
	border-top-style: dashed;
}

.fl-tag {
	flex: none;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--tag);
	color: var(--on-tag);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.fl-tag.pred {
	background: var(--marigold-soft);
	color: var(--on-marigold);
}
.fl-tag.tasted {
	background: var(--us-soft);
	color: var(--us);
}
.fl-tag.me {
	background: var(--me-soft);
	color: var(--me);
}
.fl-tag.them {
	background: var(--them-soft);
	color: var(--them);
}
.fl-tag.pantry {
	margin-left: 6px;
	background: var(--accent-soft);
	color: var(--accent);
}
.fl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.fl-chips.scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	margin: 12px -16px 0;
	padding: 2px 16px;
	scrollbar-width: none;
}
.fl-chip {
	flex: none;
	padding: 6px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.fl-chip[aria-pressed="true"] {
	border-color: var(--me);
	background: var(--me);
	color: var(--on-accent);
}
.fl-chip.k {
	background: var(--marigold-soft);
	border-color: transparent;
	color: var(--on-marigold);
}

/* Why this */
.fl-why {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}
.fl-why-row {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 5px 0;
	font-size: 14px;
	color: var(--muted);
}
.fl-why-row b {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
}
.fl-dots {
	display: inline-flex;
	gap: 3px;
}
.fl-dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--line);
}
.fl-dots i.on {
	background: var(--marigold-deep);
}
.fl-cook {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
}
.fl-cook > div {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: var(--muted);
}
.fl-cook b {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	overflow-wrap: anywhere;
}

/* The mood filter */
.flavor-card summary,
.tip summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	list-style: none;
	cursor: pointer;
}
.flavor-card summary::-webkit-details-marker,
.tip summary::-webkit-details-marker {
	display: none;
}
.flavor-card summary::after,
.tip summary::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform 0.15s;
}
.flavor-card[open] summary::after,
.tip[open] summary::after {
	transform: rotate(-135deg);
}
.fl-card-line {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 2px 14px 10px;
}
.fl-card-sentence {
	flex: 1;
	min-width: 0;
	font-family: var(--serif);
	font-size: 15px;
	line-height: 1.25;
	color: var(--muted);
}

/* Cook mode */
#recipes[data-screen="cook"] {
	max-width: 620px;
}
.fl-cook-head {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.fl-cook-head b {
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 500;
	text-align: center;
}
.fl-cook-head > :last-child {
	text-align: right;
}
.fl-step {
	margin-top: 16px;
	padding: 18px;
	border-radius: 18px;
	background: var(--marigold-soft);
}
.fl-step .fl-eyebrow {
	margin-top: 0;
}
.fl-step-text {
	margin: 0 0 14px;
	font-family: var(--serif);
	font-size: 23px;
	line-height: 1.3;
}
.fl-progress {
	display: flex;
	gap: 4px;
	margin-top: 16px;
}
.fl-progress i {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: var(--line);
}
.fl-progress i.done {
	background: var(--marigold-deep);
}
.fl-progress i.now {
	background: var(--me);
}
.fl-step-nav {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
}
.fl-quiet {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	font-size: 14px;
	font-weight: 600;
}
.fl-quiet:disabled {
	opacity: 0.45;
	cursor: default;
}
.fl-bar-actions.no-taste {
	grid-template-columns: 1fr;
}
.fl-bar-actions {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 10px;
	margin: 18px -16px 0;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	background: var(--bg);
}
.fl-taste {
	height: 50px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
}
.fl-next {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.fl-changes {
	margin-top: 6px;
}
.fl-change {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
	font-size: 14px;
}
.fl-change:first-child {
	border-top: 0;
}
.fl-effs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 4px;
}
.fl-effs span {
	padding: 1px 7px;
	border-radius: 6px;
	background: var(--me-soft);
	color: var(--me);
	font-size: 13px;
	font-weight: 600;
}
.fl-effs .down {
	background: var(--them-soft);
	color: var(--them);
}
.fl-close {
	flex: none;
	font-size: 22px;
	line-height: 1;
	color: var(--muted);
}

/* The tasting and ingredient sheets */
.fl-sheet-body {
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
	padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
	overscroll-behavior: contain;
}
.fl-sheet-body > .fl-close {
	position: absolute;
	top: 16px;
	right: 18px;
}
.fl-sheet-body h2 {
	margin: 0;
	padding-right: 28px;
}
.fl-sheet-body hr {
	margin: 18px 0;
	border: 0;
	border-top: 1px dotted var(--fl-rule);
}
.fl-sheet-body > .fl-eyebrow:first-of-type {
	margin-top: 0;
}
.fl-done {
	margin-top: 18px;
}
.fl-arrows {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}
.fl-arrows b {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 500;
}
.fl-arrow {
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	font-weight: 600;
}
.fl-arrow.on {
	border-color: var(--me);
	background: var(--me);
	color: var(--on-accent);
}
.fl-sug {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 0;
	border-top: 1px solid var(--line);
}
.fl-sug-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tag);
	color: var(--on-tag);
}
.fl-sug-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	color: var(--muted);
}
.fl-sug-body b {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
}
.fl-sug-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.fl-sug-meta em {
	font-size: 13px;
}
.fl-add {
	flex: none;
	padding: 6px 13px;
	border: 1px solid var(--me);
	border-radius: 10px;
	color: var(--me);
	font-size: 14px;
	font-weight: 600;
}
.fl-add.on {
	background: var(--me);
	color: var(--on-accent);
}
.fl-ing-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-right: 24px;
}
.fl-ing-head .fl-eyebrow {
	margin: 0 0 4px;
}
.fl-bars {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 7px 12px;
	margin-top: 16px;
	font-size: 13px;
}
.fl-bars b {
	font-weight: 600;
}
.fl-bar {
	height: 7px;
	border-radius: 4px;
	background: var(--line);
	overflow: hidden;
}
.fl-bar i {
	display: block;
	height: 100%;
	background: var(--marigold-deep);
}
.fl-rules {
	width: 100%;
	margin-top: 12px;
	border-collapse: collapse;
	font-size: 14px;
}
.fl-rules th {
	text-align: left;
	color: var(--muted);
}
.fl-rules td,
.fl-rules th {
	padding: 6px 8px 6px 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
.fl-rules span {
	display: block;
	font-size: 13px;
	color: var(--muted);
}

/* The ingredient reference */
@media (min-width: 960px) {
	.fl-recipe-body {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: center;
		gap: 16px;
		margin-top: 0;
	}
	.fl-recipe-body .fl-sentence {
		margin-top: 0;
		font-size: 19px;
	}
	.fl-recipe-body .fl-start {
		max-width: 300px;
	}
}

/* ---- A recipe's header: eyebrow, title, a line of facts, the lede, then the flavor star ----
   One typographic column: small caps above and below the title carry the facts, so the title and the
   photo are what you see first. */

.recipe-eyebrow {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0 0 10px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--on-tag-recipe);
}
.recipe-eyebrow a {
	color: inherit;
	text-decoration: none;
}
.recipe-desc {
	max-width: 58ch;
	margin: 16px 0 0;
	font-family: var(--serif);
	font-size: 18px;
	font-style: italic;
	line-height: 1.45;
	color: var(--muted);
}
.recipe-flavor {
	margin-top: 22px;
}
.recipe-flavor:empty {
	display: none;
}
.recipe-flavor .fl-panel {
	margin-top: 0;
}
.recipe-body {
	margin-top: 8px;
}
.recipe-body .group-head {
	align-items: baseline;
	padding-bottom: 10px;
}
.recipe-body .group-head h2 {
	font-size: 26px;
}
.ingredients-section .portions-note {
	margin: 0;
	text-align: right;
}

/* ---- The shopping bar: servings, what's where, and the store ---- */

.shop-bar {
	padding: 14px 16px 12px;
	border: 1px solid var(--edge);
	border-radius: 18px;
	background: var(--card);
	box-shadow: var(--card-shadow);
}
.shop-bar .portions {
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}
.shop-bar .portions label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}
.slider {
	position: relative;
	min-width: 0;
}
.slider:has(.ticks) {
	padding-bottom: 14px; /* room for 1×, 2× and 3× */
}
.slider input {
	display: block;
	width: 100%;
	height: 28px; /* the thumb is 18, but a finger needs more to land on */
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	cursor: pointer;
}
.slider input::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background:
		linear-gradient(var(--accent), var(--accent)) 0 0 / var(--fill, 0%) 100% no-repeat,
		var(--line);
}
.slider input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -7px;
	border: 2px solid var(--accent);
	border-radius: 50%;
	background: var(--card);
	box-shadow: var(--card-shadow);
}
.slider input::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: var(--line);
}
.slider input::-moz-range-progress {
	height: 4px;
	border-radius: 2px;
	background: var(--accent);
}
.slider input::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 2px solid var(--accent);
	border-radius: 50%;
	background: var(--card);
}
/* 1×, 2× and 3× what the recipe makes */
.ticks {
	position: absolute;
	top: 22px;
	left: 0;
	right: 0;
	height: 18px;
	pointer-events: none;
}
.tick {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: translateX(-50%);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
}
.tick i {
	width: 1px;
	height: 5px;
	margin-bottom: 1px;
	background: var(--faint);
}
.tick.on {
	color: var(--accent);
}
.tick.on i {
	background: var(--accent);
}
.shop-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}
.shop-row .plan-counts {
	flex: 1;
	min-width: 0;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 20px;
	padding: 0;
	border: 0;
}
.shop-row .stat {
	align-items: flex-start;
	text-align: left;
}
.shop-row .stat strong {
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
}
.shop-row .stat span {
	margin-top: 3px;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.select-wrap {
	position: relative;
	flex: none;
}
.store-select {
	height: 36px;
	max-width: 150px;
	padding: 0 30px 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	font-size: 14px;
	font-weight: 600;
	text-overflow: ellipsis;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}
.select-wrap > span {
	position: absolute;
	top: 50%;
	right: 9px;
	display: grid;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}
.match-note {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--warn);
}
.match-note .ing-link {
	padding: 0 2px;
}

/* ---- Ingredient rows: the amount in its own column, the thing, how to prepare it.
   Raised on paper while it still needs getting; on the ground once it's in the pantry or the cart. */

.lines {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.lines .subhead {
	padding: 20px 6px 8px;
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	transition: opacity 0.25s;
}
.lines .subhead:first-child {
	padding-top: 2px;
}
.lines .item.ing {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 6px 8px;
	min-height: 54px;
	padding: 10px 6px 10px 14px;
	border: 1px solid transparent;
	border-radius: 18px;
	transition:
		background 0.45s,
		box-shadow 0.45s,
		border-color 0.45s,
		opacity 0.25s;
}
.lines .item.ing::before {
	display: none;
}
.lines .item.ing.raised {
	border-color: var(--edge);
	background: var(--card);
	box-shadow: var(--card-shadow);
}
/* Raised rows in a run read as one sheet, with notebook rules between them */
.lines .item.ing.raised + .item.ing.raised {
	margin-top: -1px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.lines .item.ing.raised:has(+ .item.ing.raised) {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.lines .item.ing.raised + .item.ing.raised::before {
	content: "";
	display: block;
	position: absolute;
	top: -1px;
	left: 14px;
	right: 14px;
	border-top: 1px solid var(--line);
}
.lines .item.ing.grounded + .item.ing.grounded::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 14px;
	right: 14px;
	border-top: 1px dotted var(--fl-rule);
}
.lines .item.ing.dim {
	opacity: 0.3;
}
.ing-qty {
	flex: none;
	display: flex;
	flex-direction: column;
	width: 58px;
	padding-top: 1px;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.ing-qty small {
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--muted);
}
.ing-qty.inferred {
	text-decoration: underline dotted var(--faint);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.ing-qty.taste {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	color: var(--muted);
}
.lines .ing-text {
	flex: 1;
	min-width: 0;
	gap: 1px;
	padding: 0;
}
.lines .ing-icon {
	width: 32px;
	height: 32px;
}
/* The question under a low staple gets its own line */
.lines .item.ing:has(.ing-ask) {
	flex-wrap: wrap;
}
.ing-name {
	font-size: 16px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
a.ing-name {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}
a.ing-name span {
	display: grid;
	transform: rotate(-90deg);
}
.ing-detail {
	font-size: 13px;
	line-height: 1.35;
	color: var(--muted);
}
.item.ing.quiet .ing-name,
.item.ing.optional .ing-name {
	color: var(--muted);
}
.item.ing.unmatched .ing-name,
.item.ing.unmatched .ing-qty {
	color: var(--muted);
	opacity: 0.6;
}
.item.ing.tappable {
	cursor: pointer;
}
.lines .ing-price,
.lines .ing-controls,
.lines .level-pill {
	align-self: center;
}
.lines .ing-price {
	min-width: 44px;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	color: var(--text);
}
.lines .item.ing.grounded .ing-price {
	color: var(--muted);
}
.lines .ing-ask {
	flex: 1 1 100%;
	margin: -4px 0 0 66px;
}
.ing-finder {
	flex: 1;
	min-width: 0;
	padding-bottom: 4px;
}
.ing-finder .finder {
	margin-top: 0;
}
.ing-finder .finder-results {
	max-height: 320px;
	overflow-y: auto;
}
.ing-finder > .ing-link {
	margin-top: 6px;
	padding-left: 0;
}
@media (min-width: 960px) {
	.lines .item.ing {
		gap: 6px 10px;
		padding-right: 8px;
	}
	.ing-qty {
		width: 86px;
		font-size: 15px;
	}
	.ing-name {
		font-size: 16px;
	}
	.lines .ing-icon {
		width: 36px;
		height: 36px;
	}
	.lines .ing-ask {
		margin-left: 96px;
	}
}

/* ---- Under the list: what's in the cart at each store, what's still to add, and one button ---- */

.shop-foot {
	margin-top: 18px;
	padding: 14px 6px 0;
	border-top: 1px solid var(--line);
}
.shop-stores {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0 0 12px;
}
.shop-stores div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--muted);
}
.shop-stores dd {
	margin: 0;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text);
}
.shop-sum {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}
.shop-sum > div {
	display: flex;
	flex-direction: column;
}
.shop-sum .cost-big {
	font-size: 34px;
}
.shop-sum .assist-btn {
	margin: 0;
	padding: 12px 18px;
	font-size: 15px;
}
.shop-sum .plan-note {
	margin: 0;
}

/* ---- Products: faded where there's no match at the store picked; one ingredient's page ---- */

.products-search {
	margin-top: 12px;
}
.product-link {
	gap: 12px;
	padding-left: 12px;
	color: inherit;
	text-decoration: none;
}
.product.faded .product-img,
.product.faded .name,
.product.faded .item-product {
	opacity: 0.45;
}
.product.none {
	padding: 14px 16px;
	font-size: 15px;
	color: var(--muted);
}
.product-eyebrow {
	margin-top: 8px;
}
.product-about {
	max-width: 560px;
}
.product-flavor {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.product-flavor .fl-sentence {
	margin: 0;
	font-size: 18px;
}
.product-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}
.product-facts div {
	display: flex;
	flex-direction: column;
}
.product-facts dd {
	margin: 0;
	font-family: var(--serif);
	font-size: 22px;
	font-variant-numeric: lining-nums tabular-nums;
}
.product-facts dt {
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.store-block {
	max-width: 560px;
	margin-top: 22px;
}
.store-block .product {
	padding: 10px 12px 12px;
}
.store-block > .price-actions {
	margin-top: 8px;
}
.store-block .row-action {
	margin-right: 0;
}
.match-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.match-row .product-text {
	padding: 0;
}
.match-row .pick-tag {
	align-self: flex-start;
	margin: 3px 0 0;
}
.item-product.strong {
	font-size: 15px;
	color: var(--text);
}
.store-more {
	max-width: 560px;
	margin-top: 18px;
}
.store-more .ing-link {
	padding: 0 2px;
}

/* ---- Nutrition, per serving: the four numbers people look for, the rest on a tap ---- */

.facts-slot:empty {
	display: none;
}
.nutrition {
	margin-top: 18px;
	padding: 12px 6px 0;
	border-top: 1px solid var(--line);
}
.nutrition summary {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: baseline;
	gap: 0 8px;
	list-style: none;
	cursor: pointer;
}
.nutrition summary::-webkit-details-marker {
	display: none;
}
.nutrition-title {
	font-family: var(--serif);
	font-size: 19px;
}
.nutrition-sub {
	font-size: 13px;
	color: var(--muted);
}
.macros {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}
.macros > div {
	display: flex;
	flex-direction: column;
}
.macros strong {
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.1;
	font-variant-numeric: lining-nums tabular-nums;
}
.macros small {
	margin-left: 1px;
	font-size: 14px;
}
.macros span {
	margin-top: 2px;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.nutrition-more {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 12px 0 0;
}
.nutrition-more div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--muted);
}
.nutrition-more dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
	color: var(--text);
}

/* ---- Taste points between steps: a line, a small star, what it should taste like, and Taste ---- */

.steps .subhead {
	transition: opacity 0.25s;
}
.steps .step {
	transition: opacity 0.25s;
}
.taste-point {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 0 4px 40px;
	list-style: none;
	transition: opacity 0.25s;
}
.tp-rule {
	flex: 1;
	min-width: 12px;
	border-top: 1.5px dashed var(--marigold-deep);
	opacity: 0.7;
}
.tp-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 5px 6px 5px 6px;
	border-radius: 999px;
	background: var(--marigold-soft);
	color: var(--on-marigold);
	text-align: left;
	transition:
		transform 0.12s,
		filter 0.12s;
}
.tp-pill:active {
	transform: scale(0.98);
}
.tp-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 13px;
	line-height: 1.25;
}
.tp-text b {
	font-size: 13px;
	font-weight: 600;
}
.tp-text span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tp-cta {
	flex: none;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--marigold);
	color: var(--on-marigold);
	font-size: 13px;
	font-weight: 700;
}
.taste-point.tasted .tp-cta {
	background: var(--me);
	color: var(--on-accent);
}
.recipe-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-top: 32px;
}
.recipe-foot .final-taste {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 420px;
	margin: 0;
	text-decoration: none;
}
.sheet-list {
	margin: 0 2px 8px;
	font-size: 14px;
	color: var(--muted);
}

/* ---- Versions of a recipe: the original and the variations made from tastings ---- */

.variants {
	display: flex;
	gap: 4px;
	width: max-content;
	max-width: 100%;
	margin: 22px 0 0;
	padding: 4px;
	border-radius: 999px;
	background: var(--tag);
	overflow-x: auto;
	scrollbar-width: none;
}
.variants::-webkit-scrollbar {
	display: none;
}
.variants a {
	flex: none;
	padding: 7px 15px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--on-tag);
	text-decoration: none;
	white-space: nowrap;
}
.variants a[aria-current="page"] {
	background: var(--card);
	color: var(--text);
	box-shadow: var(--card-shadow);
}
.pending-notes {
	margin-top: 18px;
}
.pending-notes .plan-actions {
	margin-top: 14px;
}
.pending-notes .plan-actions .assist-btn {
	flex: none;
	text-decoration: none;
}
.fl-notes {
	margin: 10px 0 0;
	padding: 0 0 0 20px;
}
.fl-notes li {
	padding: 3px 0;
	font-size: 15px;
}

/* ---- The final tasting ---- */

.fl-axes {
	margin: 14px 0 18px;
}
.fl-axis {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 12px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
}
.fl-axis b {
	font-weight: 600;
}
.fl-seg {
	display: flex;
	padding: 3px;
	border-radius: 999px;
	background: var(--tag);
}
.fl-seg button {
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--on-tag);
	white-space: nowrap;
}
.fl-seg button.pred {
	text-decoration: underline dotted var(--marigold-deep);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.fl-seg button[aria-checked="true"] {
	background: var(--us);
	color: #fff;
}
.fl-rating {
	display: flex;
	gap: 2px;
	margin: 10px 0 0 -6px;
}
.fl-note-list {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.fl-note {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
	font-size: 15px;
}
.note-add {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}
.note-add .field {
	flex: 1;
	min-width: 0;
	height: 44px;
}
.note-add .assist-btn {
	margin: 0;
}
.fl-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}
.fl-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--accent);
}
@media (max-width: 599px) {
	.fl-axis {
		grid-template-columns: 1fr;
	}
}

/* Notes pinned over the editor while a variation is written in */
.editor-notes {
	position: sticky;
	top: 8px;
	z-index: 2;
	margin: 14px 0 4px;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--marigold-soft);
	box-shadow: var(--card-shadow);
}
.editor-notes .label {
	margin: 0 0 4px;
	color: var(--on-marigold);
}
.editor-notes label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 5px 0;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}
.editor-notes input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--accent);
}
.editor-notes label.done span {
	color: var(--muted);
	text-decoration: line-through;
}
@media (hover: hover) {
	.tp-pill:hover {
		filter: brightness(0.97);
	}
	.lines .item.ing.tappable:hover {
		border-color: var(--faint);
	}
}

/* ---- The list's rail: the cart, then what's running low ---- */

.cart-empty {
	display: none; /* wide screens only */
}
.cart-empty .card {
	padding: 14px 16px;
	font-size: 14px;
	color: var(--muted);
}
.low-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 16px;
}
.low-row + .low-row {
	border-top: 1px solid var(--line);
}
.low-row::before,
.low-mark {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border: 2px solid var(--marigold-deep);
	border-radius: 50%;
}
.low-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	padding: 8px 0;
	font-size: 15px;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.low-add {
	flex: none;
	min-width: 32px;
	min-height: 32px;
	font-family: var(--serif);
	font-size: 16px;
	font-style: italic;
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* ---- Search: a box that suggests as you type ---- */

.lookup {
	position: relative;
}
.lookup-icon {
	position: absolute;
	top: 0;
	left: 15px;
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--muted);
	pointer-events: none;
}
.lookup-input {
	width: 100%;
	height: 50px;
	padding: 0 16px 0 44px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	box-shadow: inset 0 1px 2px rgb(74 52 24 / 5%);
	font-size: 16px;
	outline: none;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.lookup-input::placeholder {
	color: var(--muted);
}
.lookup-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.lookup-menu {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: min(60vh, 440px);
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--edge);
	border-radius: 16px;
	background: var(--card);
	box-shadow: var(--shadow);
}
.lookup-title {
	margin: 8px 10px 4px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.lookup-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 42px;
	padding: 6px 10px;
	border-radius: 10px;
	text-align: left;
}
.lookup-item.on {
	background: var(--accent-soft);
}
.lookup-text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.lookup-meta {
	flex: none;
	font-size: 13px;
	color: var(--muted);
}
/* The smaller box inside a card, and the group tabs its menu opens on */
.lookup-input.compact {
	height: 42px;
	padding-left: 40px;
	border-radius: 12px;
	font-size: 15px;
}
.lookup:has(.compact) .lookup-icon {
	left: 13px;
}
.lookup-tabs {
	position: sticky;
	z-index: 1;
	top: -6px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -6px -6px 4px;
	padding: 10px 10px 8px;
	border-bottom: 1px solid var(--line);
	background: var(--card);
}
.lookup-tab {
	flex: none;
	min-height: 30px;
	padding: 0 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.lookup-tab[aria-pressed="true"] {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-accent);
}
.lookup-item.more {
	min-height: 36px;
	color: var(--accent);
}
.lookup-item.more .lookup-text {
	font-size: 14px;
	font-weight: 600;
}
.lookup-none {
	margin: 0;
	padding: 14px 10px;
	font-size: 14px;
	color: var(--muted);
}
.filter-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}
.filter-active:empty {
	display: none;
}
.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 14px;
	font-weight: 600;
}
.filter-chip span:first-child {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.filter-x {
	font-size: 16px;
	line-height: 1;
	opacity: 0.8;
}
.filter-clear {
	min-height: 34px;
	padding: 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}

/* ---- The star, for searching ---- */

.flavor-card {
	margin: 12px 0 0;
	padding: 12px 16px;
}
.flavor-title {
	margin: 0;
	font-size: 20px;
}
.flavor-caption {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	color: var(--muted);
	text-align: right;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.flavor-card summary {
	min-height: 32px;
}
.flavor-mini {
	flex: none;
	display: flex;
}
.flavor-mini:empty {
	display: none;
}
.flavor-card[open] .flavor-mini {
	display: none; /* the star itself is showing */
}
.flavor-body .fl-star {
	max-width: 280px;
	margin: -10px auto -4px;
}
.flavor-body > .lookup {
	margin: 12px 0 2px;
}

/* Aroma and mouthfeel: chips in groups, a group's name picks it all */
.chip-card-body {
	padding-top: 6px;
}
.chip-group + .chip-group {
	margin-top: 10px;
}
.chip-group-name {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	margin: 0 0 4px;
	padding: 0;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
button.chip-group-name:hover,
.chip-group-name[aria-pressed="true"] {
	color: var(--accent);
}
.chip.small {
	height: 32px;
	padding: 0 12px;
	font-size: 14px;
}
.chip-group .chips.wrap {
	gap: 6px;
}
.feel-mode {
	display: flex;
	margin: 6px 0 12px;
}
.feel-mode .kind-tab {
	flex: 1;
	justify-content: center;
	min-height: 32px;
	font-size: 14px;
}
.ingredient-flavor .chip-group {
	margin-bottom: 4px;
}

/* Credits */
.credits {
	max-width: 760px;
}
.credit-row + .credit-row {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.credit-row h2 {
	margin: 0 0 4px;
	font-size: 19px;
}
.credit-row p {
	margin: 0;
	line-height: 1.55;
	color: var(--muted);
}
.credit-row a {
	color: var(--accent);
}
.credits-link {
	font-size: 14px;
	color: var(--muted);
	text-decoration: none;
}
.nav-foot .credits-link {
	color: var(--sidebar-muted);
}

/* Recipe sources: a switch for each open cookbook */
.sources-card {
	margin-top: 12px;
}
.sources-card .home-note {
	margin: 8px 0;
}
label.source-switch input {
	appearance: none;
	position: relative;
	flex: none;
	width: 38px;
	height: 22px;
	margin: 0;
	border-radius: 999px;
	background: var(--line);
	cursor: pointer;
	transition: background 0.15s;
}
label.source-switch input::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--card);
	box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
	transition: transform 0.15s;
}
label.source-switch input:checked {
	background: var(--accent);
}
label.source-switch input:checked::after {
	transform: translateX(16px);
}
label.source-switch input:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
/* Who wrote it and took the photo, for recipes from open cookbooks */
.recipe-credit {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}
.recipe-credit a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 2px;
}

/* Filters: checkboxes with how many each would leave */
.filter-card {
	margin-top: 12px;
}
.facets {
	padding-top: 4px;
}
.facet {
	margin: 0;
	padding: 12px 0 0;
	border: 0;
}
.facet + .facet {
	margin-top: 10px;
	border-top: 1px solid var(--line);
}
.facet legend {
	float: left; /* so the fieldset's padding applies above it, like any heading */
	width: 100%;
	margin-bottom: 4px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.facet-option {
	clear: both;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 3px 0;
	cursor: pointer;
}
.facet-option input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--accent);
}
.facet-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	font-size: 15px;
}
.facet-note {
	font-size: 13px;
	color: var(--muted);
}
.facet-count {
	flex: none;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.facet-more {
	clear: both;
	min-height: 32px;
	margin-top: 2px;
}

/* Sections a search falls into */
.tier {
	margin-top: 24px;
}
.tier-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--line);
}
.tier-head h2 {
	margin: 0;
	font-size: 21px;
}
.tier-count {
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.tier-note {
	flex-basis: 100%;
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
.tier .recipe-grid {
	margin-top: 14px;
}
.tier-left {
	margin: 20px 0 0;
	font-size: 14px;
	color: var(--muted);
}

/* Recipes: with a phone's one column, the rail's pieces sit among the rest */
#recipes[data-screen="list"],
#ingredients:has(> .recipe-rail) {
	display: flex;
	flex-direction: column;
}
.recipe-rail {
	display: contents;
}
#recipes[data-screen="list"] > .recipe-results,
#ingredients > .ingredient-results {
	order: 5;
}
.add-recipe {
	order: 6;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}
.add-title {
	margin: 0 0 10px;
	font-size: 21px;
}
.add-recipe .tip {
	margin-top: 14px;
}
.recipe-card {
	position: relative;
}
.card-week {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--card);
	box-shadow: var(--card-shadow);
	color: var(--accent);
}
.card-week.on {
	background: var(--accent);
	color: var(--on-accent);
}
.topbar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* ---- This week, the Kitchen's home ---- */

.home-panel {
	margin-top: 16px;
}
.home-panel:first-child {
	margin-top: 0;
}
.home-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.home-head h2 {
	margin: 0;
	font-size: 24px;
}
.home-link {
	flex: none;
	padding: 6px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}
.home-sub {
	margin: 16px 0 4px;
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.home-quiet {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--muted);
}
.home-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--muted);
}
.home-rows {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}
.home-row {
	display: flex;
	align-items: center;
	gap: 6px 8px;
	min-height: 48px;
	padding: 6px 0;
}
.home-row + .home-row {
	border-top: 1px solid var(--line);
}
.home-name {
	flex: 1 1 60px;
	min-width: 0;
	padding: 4px 0;
	font-size: 15px;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.home-price {
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.home-btn {
	flex: none;
	min-height: 34px;
	padding: 0 10px;
	border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}
.home-btn.quiet {
	border-color: transparent;
	padding: 0 2px;
	color: var(--muted);
}
.sum {
	margin: 14px 0 0;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	font-variant-numeric: tabular-nums;
}
.sum-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
	font-size: 15px;
}
.sum-line dt b {
	display: inline-block;
	min-width: 1.6ch;
	font-weight: 600;
}
.sum-line dd {
	margin: 0;
	font-weight: 500;
}
.sum-total {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	font-weight: 600;
}
.sum-total dd {
	font-family: var(--serif);
	font-size: 28px;
	line-height: 1.1;
	font-weight: 500;
	font-variant-numeric: lining-nums tabular-nums;
}
.menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
	margin-top: 12px;
}
.menu-card {
	position: relative;
	min-width: 0;
}
.menu-link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}
.menu-photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	object-fit: cover;
	background: var(--tag-recipe);
}
.menu-photo.blank {
	background:
		radial-gradient(circle, #f2c35f 0 21%, transparent 21.5%),
		radial-gradient(circle, color-mix(in srgb, #f2c35f 30%, var(--tag-recipe)) 0 30%, transparent 30.5%),
		var(--tag-recipe);
}
.menu-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.menu-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}
.menu-meta {
	font-size: 13px;
	color: var(--muted);
}
.menu-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--card);
	box-shadow: var(--card-shadow);
	font-size: 18px;
	line-height: 1;
	color: var(--muted);
}
.menu-remove.inline {
	position: static;
	background: none;
	box-shadow: none;
}
.wish-form {
	position: relative;
	margin-top: 10px;
}
.wish-input {
	width: 100%;
	height: 44px;
	padding: 0 44px 0 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
	font-size: 15px;
	outline: none;
}
.wish-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.wish-add {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 36px;
	height: 36px;
	color: var(--accent);
}

/* ---- Ingredients ---- */

.ingredient-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 10px;
	margin-top: 12px;
}
.ingredient-row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	min-height: 60px;
	padding: 8px 12px;
	border: 1px solid var(--edge);
	border-radius: 14px;
	background: var(--card);
	color: inherit;
	text-decoration: none;
}
.ingredient-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}
.ingredient-text .name {
	overflow: hidden;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.ingredient-text .item-product {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
/* A family is a little stack of cards */
.family-row {
	margin-bottom: 4px;
	box-shadow:
		0 4px 0 -2px var(--card),
		0 4px 0 -1px var(--edge);
}
.family-go {
	flex: none;
	display: flex;
	color: var(--muted);
	transform: rotate(180deg);
}
.family-head {
	margin-bottom: 18px;
}
.family-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}
.family-title h2 {
	margin: 0;
	font-size: 30px;
	line-height: 1.1;
}
.family-title p {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.ingredient-shelf {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
}
.ingredient-shelf a {
	color: var(--accent);
	text-decoration: none;
}
.show-more {
	display: block;
	margin: 12px auto 0;
	padding: 10px 14px;
}
.ingredient-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.ingredient-head .assist-btn {
	margin: 4px 0 0;
}
.ingredient-sentence {
	margin: 6px 0 0;
	font-family: var(--serif);
	font-size: 18px;
	font-style: italic;
	color: var(--muted);
}
.ingredient-flavor .fl-star {
	max-width: 320px;
	margin: 0 auto;
}
.product-mini .product-img {
	flex: none;
	width: 44px;
	height: 44px;
}
.product-mini {
	flex-wrap: nowrap;
}
.ingredient-side > .fl-panel:first-child {
	margin-top: 16px;
}
.kind-tabs {
	display: inline-flex;
	gap: 2px;
	margin-bottom: 14px;
	padding: 3px;
	border-radius: 12px;
	background: var(--tag);
}
.kind-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 9px;
	font-size: 15px;
	font-weight: 600;
	color: var(--on-tag);
}
.kind-tab[aria-pressed="true"] {
	background: var(--card);
	box-shadow: var(--card-shadow);
	color: var(--text);
}
.kind-tab .count {
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
a.product-flavor {
	color: inherit;
	text-decoration: none;
}

@media (hover: hover) {
	.ingredient-row {
		transition: border-color 0.15s;
	}
	.ingredient-row:hover {
		border-color: var(--faint);
	}
	.lookup-item:hover {
		background: color-mix(in srgb, var(--bg) 55%, var(--card));
	}
	.lookup-item.on:hover {
		background: var(--accent-soft);
	}
	.home-btn:not(.quiet):hover {
		border-color: var(--accent);
		background: var(--accent);
		color: var(--on-accent);
	}
	.home-btn.quiet:hover,
	.menu-remove:hover {
		color: var(--text);
	}
	.card-week:not(.on):hover {
		background: var(--accent-soft);
	}
}

@media (min-width: 960px) {
	.ingredient-cols {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px;
		align-items: start;
		margin-top: 8px;
	}
	.ingredient-cols .ingredient-flavor,
	.ingredient-side > .fl-panel:first-child {
		margin-top: 16px;
	}
	.lookup-input {
		height: 48px;
		font-size: 16px;
	}
}

/* ---- Big screens: a column for the work, and a rail beside it that stays in view ---- */

@media (min-width: 1200px) {
	[data-view="groceries"],
	[data-view="home"],
	#recipes[data-screen="list"]:has(> .recipe-rail),
	#ingredients:has(> .recipe-rail) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--rail);
		column-gap: 40px;
		align-items: start;
	}
	[data-view="groceries"] {
		grid-template-rows: auto 1fr;
	}
	#recipes[data-screen="list"]:has(> .recipe-rail),
	#ingredients:has(> .recipe-rail) {
		grid-template-rows: auto auto 1fr;
	}
	#list {
		display: contents; /* its groups and rail are laid out in the grid above */
	}
	.groups,
	#recipes[data-screen="list"] > *,
	#ingredients:has(> .recipe-rail) > * {
		grid-column: 1;
	}
	.list-rail,
	.home-wish,
	.recipe-rail {
		position: sticky;
		top: 24px;
		grid-column: 2;
	}
	[data-view="home"] .home-wish {
		margin-top: 0;
	}
	/* A long cart's rows scroll under its totals, so Check out stays in view from the top of the page */
	.list-rail .cart .card {
		max-height: max(380px, calc(100vh - 280px));
		overflow-y: auto;
		scrollbar-width: thin;
	}
	.list-rail .cart-total {
		position: sticky;
		z-index: 1;
		bottom: 0;
		background: var(--card);
	}
	.list-rail {
		grid-row: 1 / span 2;
		max-height: calc(100vh - 32px); /* the padding is room for shadows */
		margin: -8px -12px 0;
		padding: 8px 12px 16px;
		overflow-y: auto;
		scrollbar-width: none;
	}
	.list-rail::-webkit-scrollbar {
		display: none;
	}
	.list-rail > .group {
		margin: 0;
	}
	.list-rail > .group + .group {
		margin-top: 26px;
	}
	.cart-empty {
		display: block;
	}
	#recipes[data-screen="list"] > .recipe-rail,
	#ingredients > .recipe-rail {
		display: block;
		grid-column: 2;
		grid-row: 1 / span 3;
	}
	#ingredients > .recipe-rail {
		position: static; /* filters and the star are taller than a screen */
		grid-row: 1 / span 4;
	}
	#ingredients:has(> .recipe-rail) {
		grid-template-rows: auto auto auto 1fr; /* a family's heading, when one's open, above the search */
	}
	/* The Flavor card's menu has more room spreading left, over the list, than in the rail */
	.recipe-rail .lookup-menu {
		left: auto;
		width: 440px;
	}
	.recipe-rail .flavor-card {
		margin-top: 0;
	}
	.recipe-rail .filter-card,
	.recipe-rail .sources-card {
		margin-top: 16px;
	}
	.add-recipe {
		margin-top: 20px;
		padding-top: 16px;
	}
	.add-title {
		font-size: 19px;
	}
}

/* ---- The Screening room ---- */

/* Moving between the Kitchen and the Screening room on phones; wide screens use the sidebar */
.area-switch {
	display: flex;
	gap: 6px;
	max-width: 560px;
	margin: -8px auto 16px;
	padding: 0 16px;
	overflow-x: auto;
	scrollbar-width: none;
}
.area-switch::-webkit-scrollbar {
	display: none;
}
.area-switch a {
	flex: none;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--on-band) 28%, transparent);
	font-size: 13px;
	font-weight: 600;
	color: var(--on-band);
	text-decoration: none;
	opacity: 0.9;
}
.area-switch a[aria-current="page"] {
	border-color: transparent;
	background: color-mix(in srgb, var(--on-band) 16%, transparent);
	opacity: 1;
}
.band-art[data-art]:not([data-art="kitchen"]),
body:not([data-area="kitchen"]) .band-art[data-art="kitchen"] {
	display: none;
}
body[data-area="screening"] .band-art[data-art="screening"],
body[data-area="calendar"] .band-art[data-art="calendar"],
body[data-area="trips"] .band-art[data-art="trips"],
body[data-area="money"] .band-art[data-art="money"],
body[data-area="week"] .band-art[data-art="week"],
body[data-area="list"] .band-art[data-art="week"],
body[data-area="checkin"] .band-art[data-art="week"],
body[data-area="goals"] .band-art[data-art="goals"] {
	display: block;
}
body:not([data-area="kitchen"]) #app > .line-tabs {
	display: none;
}
.band.us {
	--band: #6a428f;
	--band-lip: #7f58a5;
	--on-band: #fdf9f2;
	--band-soft: #e6d9f0;
	--band-shadow: rgb(40 20 60 / 25%);
}
.sr-tabs {
	margin: 26px 0 18px;
	padding: 0;
	background-size: 100% 1px;
}
.sr-tabs a {
	cursor: pointer;
}
.sr-search input {
	padding-left: 16px;
}
.sr-results:not(:empty) {
	margin: 10px 0 6px;
}
.sr-source {
	margin-top: 8px;
	font-size: 13px;
}
.sr-head {
	margin: 30px 2px 0;
	font-size: 24px;
}
.sr-head.them {
	color: var(--them);
}
.sr-lead {
	margin: 4px 2px 0;
}
.sr-list + .label,
.sr-lead + .label {
	margin-top: 20px;
}
.sr-row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 68px;
	padding: 8px 12px;
}
.sr-row + .sr-row {
	border-top: 1px solid var(--line);
}
.sr-row.theirs {
	box-shadow: inset 3px 0 0 var(--them);
}
.sr-open {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	text-align: left;
}
.sr-pic {
	flex: none;
	width: 40px;
	height: 60px;
	border-radius: 6px;
	object-fit: cover;
	background: var(--tag);
}
.sr-pic.person {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}
.sr-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sr-text b {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
}
.sr-text span {
	overflow: hidden;
	font-size: 14px;
	color: var(--muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sr-pick {
	flex: none;
	display: flex;
	gap: 6px;
}
.sr-pick .chip {
	height: 34px;
	padding: 0 12px;
	font-size: 14px;
}
.sr-pick .chip.quiet:not([aria-pressed="true"]) {
	border-color: transparent;
	background: none;
	color: var(--muted);
}
.sr-pick .chip.quiet[aria-pressed="true"] {
	background: var(--muted);
	border-color: var(--muted);
	color: var(--card);
}
/* Share: off is only yours; on shows in your colour */
.sr-share {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 2px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.sr-track {
	position: relative;
	width: 40px;
	height: 24px;
	border-radius: 999px;
	background: var(--faint);
	transition: background 0.15s;
}
.sr-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
	transition: transform 0.15s;
}
.sr-share[aria-checked="true"] {
	color: var(--me);
}
.sr-share[aria-checked="true"] .sr-track {
	background: var(--me);
}
.sr-share[aria-checked="true"] .sr-track::after {
	transform: translateX(16px);
}
.sr-share-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.sr-share-row .hint {
	margin: 0 2px;
}
.sr-sheet-left {
	display: flex;
	gap: 14px;
}
.sr-dislikes {
	margin-top: 30px;
}
.sr-dislikes summary {
	padding: 8px 2px;
	font-size: 15px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
}
.sr-dislikes .sr-list {
	margin-top: 12px;
}
@media (max-width: 380px) {
	.sr-share-word {
		display: none;
	}
}
@media (min-width: 960px) {
	.area-switch {
		display: none;
	}
	#screening .sr-search,
	#screening .sr-results,
	#screening .sr-lists {
		max-width: 640px;
	}
}

/* The feed */
.sr-filters {
	margin-bottom: 14px;
}
.sr-filter-gap {
	flex: none;
	width: 1px;
	margin: 6px 2px;
	background: var(--line);
}
.sr-checking {
	margin: 0 2px 12px;
}
.sr-none {
	margin: 24px 2px;
	text-align: center;
}
.sr-go {
	display: inline-grid;
	place-items: center;
	margin-top: 18px;
	text-decoration: none;
}
.sr-feed {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.sr-card {
	padding: 14px;
}
.sr-card.canceled .sr-poster {
	opacity: 0.55;
}
.sr-card-top {
	display: flex;
	gap: 14px;
}
.sr-poster {
	position: relative;
	flex: none;
	align-self: flex-start;
	padding: 0;
	border-radius: 8px;
}
.sr-poster .sr-pic {
	display: block;
	width: 92px;
	height: 138px;
	border-radius: 8px;
}
.sr-play {
	position: absolute;
	right: 6px;
	bottom: 6px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgb(20 16 12 / 72%);
	color: #fff;
	backdrop-filter: blur(4px);
}
.sr-card-body {
	flex: 1;
	min-width: 0;
}
.sr-kind {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
}
.sr-bump {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--marigold-soft);
	color: var(--on-marigold);
	letter-spacing: 0;
}
.sr-bump.canceled {
	background: var(--tag);
	color: var(--on-tag);
}
.sr-title {
	display: block;
	padding: 0;
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	color: var(--text);
}
.sr-when {
	margin: 6px 0 0;
	font-size: 15px;
	font-weight: 600;
}
.sr-note {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--warn);
}
.sr-reasons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.sr-reason {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 3px 10px 3px 3px;
	border-radius: 999px;
	background: var(--me-soft);
	font-size: 13px;
	color: var(--me);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sr-reason:not(:has(.sr-pic)) {
	padding-left: 10px;
}
.sr-reason .sr-pic.person {
	width: 22px;
	height: 22px;
}
.sr-reason.them {
	background: var(--them-soft);
	color: var(--them);
}
.sr-from {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--them);
}
.sr-card-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}
.sr-check {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
}
.sr-box {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 1.5px solid var(--faint);
	color: var(--on-accent);
}
.sr-check[aria-checked="true"] .sr-box {
	border-color: var(--me);
	background: var(--me);
}
.sr-dismiss {
	margin-left: auto;
}
.primary.quiet {
	background: var(--card);
	color: var(--accent);
	border: 1px solid var(--line);
	box-shadow: none;
}
.sr-pick-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 8px;
}
.sr-video {
	position: relative;
	margin-top: 14px;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
}
.sr-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.sr-title-head {
	display: flex;
	gap: 16px;
	align-items: flex-end;
}
.sr-title-head .sr-pic {
	width: 96px;
	height: 144px;
	border-radius: 8px;
}
.sr-title-head .sheet-title {
	margin: 0;
	font-size: 26px;
	line-height: 1.15;
}
.sr-overview {
	margin: 16px 2px 0;
	font-size: 15px;
	line-height: 1.5;
}
.sr-dates {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 16px 2px 0;
	font-size: 15px;
}
.sr-dates dt {
	color: var(--muted);
}
.sr-dates dd {
	margin: 0;
	font-weight: 600;
}
.sr-sheet a.text-btn {
	text-decoration: none;
}
@media (max-width: 380px) {
	.sr-card-actions {
		gap: 8px;
	}
	.sr-poster .sr-pic {
		width: 76px;
		height: 114px;
	}
}
@media (min-width: 960px) {
	#screening .sr-feed-screen,
	#screening .sr-likes-screen {
		max-width: 640px;
	}
	.sr-tabs {
		display: none;
	}
}

/* Answers, where to watch */
.sr-both {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--us);
}
.sr-watch {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 14px;
}
.sr-watch img,
.sr-provider img {
	width: 22px;
	height: 22px;
	border-radius: 6px;
}
.sr-jw {
	font-size: 11.5px;
	color: var(--muted);
}
.sr-providers dd {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
}
.sr-provider {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}
.sr-credit {
	margin: 10px 2px 0;
	font-size: 13px;
}

/* ---- The calendar ---- */
#app > #calendar {
	margin-top: 26px;
}
.cal-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.cal-key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 2px;
	font-size: 13px;
}
.cal-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: -6px;
	border-radius: 3px;
	background: var(--us);
}
.cal-dot.mine {
	background: var(--me);
}
.cal-dot.dashed {
	background: none;
	border: 1.5px dashed var(--muted);
}
.cal-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	height: 44px;
	padding: 0 18px;
}
.cal-list {
	overflow: visible;
}
.cal-row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 12px;
	padding: 12px 14px 12px 16px;
}
.cal-row + .cal-row {
	border-top: 1px solid var(--line);
}
.cal-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--us);
}
.cal-row.mine::before {
	background: var(--me);
}
.cal-row.suggested::before,
.cal-row.declined::before {
	background: none;
	border-left: 2px dashed var(--muted);
}
.cal-row.suggested .cal-body,
.cal-row.declined .cal-body {
	opacity: 0.92;
}
.cal-row.declined .cal-title {
	text-decoration: line-through;
	color: var(--muted);
}
.cal-day {
	flex: none;
	width: 40px;
	text-align: center;
	line-height: 1.1;
}
.cal-day span {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.cal-day b {
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 500;
}
/* The date is said once a day; the rows under it keep the space so everything stays in line */
.cal-day.same > * {
	visibility: hidden;
}
.cal-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 2px 0;
	text-align: left;
}
.cal-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}
.cal-kind {
	display: inline-grid;
	flex: none;
	color: var(--muted);
}
.cal-meta {
	font-size: 14px;
	color: var(--muted);
}
.cal-status {
	font-size: 13px;
	font-style: italic;
	color: var(--us);
}
.cal-plan {
	align-self: flex-start;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}
.cal-answer {
	display: flex;
	gap: 8px;
	width: 100%;
	margin: 10px 0 0 52px;
}
.cal-answer .chip {
	height: 36px;
}
.cal-when {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.cal-when .label {
	margin-top: 14px;
}
.cal-when .field {
	width: 100%;
	height: 48px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--card);
	font-size: 16px;
}
.cal-warn {
	min-height: 0;
	margin: 8px 2px 0;
	font-size: 14px;
	color: var(--warn);
}
.cal-warn:empty {
	display: none;
}
.cal-who-note {
	margin: 8px 2px 0;
}
@media (min-width: 960px) {
	#app > #calendar {
		margin-top: 0;
	}
	#calendar .cal-top,
	#calendar .cal-lists {
		max-width: 640px;
	}
}
@media (min-width: 960px) {
	/* Three areas don't fit every laptop screen: the sidebar scrolls rather than hiding Sign out */
	.tabbar {
		overflow-y: auto;
		scrollbar-width: thin;
	}
}

/* ---- Shared bits for the Us screens ---- */
#app > :is(#week, #ourlist, #goals, #checkin) {
	margin-top: 26px;
}
.goal-eyebrow {
	margin: 0 0 6px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--us);
}
.goal-text,
.list-note {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--card);
	font: inherit;
	font-size: 16px;
	resize: vertical;
}
.sheet .field {
	width: 100%;
	height: 48px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--card);
	font-size: 16px;
}
.sheet select.field {
	appearance: auto;
}

/* ---- Our list ---- */
.list-sections {
	margin-bottom: 12px;
}
.list-add {
	margin-bottom: 14px;
}
.list-card .list-item {
	min-height: 58px;
	padding: 8px 14px;
	gap: 12px;
	align-items: flex-start;
}
.list-card .list-item + .list-item {
	border-top: 1px solid var(--line);
}
.list-card .list-item + .list-item::before {
	display: none;
}
.list-check {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-top: 7px;
	border-radius: 50%;
	border: 1.5px solid var(--faint);
	color: var(--on-accent);
}
.list-check[aria-checked="true"] {
	border-color: var(--us);
	background: var(--us);
}
.list-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 0;
	text-align: left;
}
.list-title {
	font-size: 16px;
	font-weight: 500;
}
.list-item.done .list-title {
	color: var(--muted);
	text-decoration: line-through;
}
.list-meta {
	overflow: hidden;
	font-size: 14px;
	color: var(--muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}
.list-from {
	font-size: 13px;
	color: var(--them);
}
.list-empty {
	margin: 18px 2px;
}
.list-done-toggle {
	margin: 16px 0 10px;
}
.list-link {
	margin-top: 10px;
}

/* ---- Goals ---- */
.goal-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	margin-bottom: 8px;
	padding: 0 18px;
}
.goal-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.goal-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 12px 18px;
	border-radius: 18px;
	border: 1px solid var(--edge);
	background: var(--card);
	box-shadow: var(--card-shadow);
}
.goal-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	bottom: 14px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--me);
}
.goal-card.theirs::before {
	background: var(--them);
}
.goal-card.ours::before {
	background: var(--us);
}
.goal-card.paused,
.goal-card.done {
	opacity: 0.9;
}
.goal-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0;
	text-align: left;
}
.goal-title {
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
}
.goal-card.done .goal-title {
	text-decoration: line-through;
	text-decoration-color: var(--faint);
}
.goal-why {
	margin: 6px 2px 0;
	font-family: var(--serif);
	font-size: 17px;
	font-style: italic;
	color: var(--muted);
}
.goal-why.small {
	margin: 0;
	font-size: 16px;
}
.goal-support {
	margin: 0 2px;
	font-size: 15px;
}
.goal-support.small {
	font-size: 14px;
	color: var(--them);
}
.goal-meta {
	font-size: 13px;
	color: var(--muted);
}
.goal-notes-count {
	font-size: 13px;
	font-weight: 600;
	color: var(--us);
}
.goal-week {
	align-self: flex-start;
	min-height: 36px;
	font-size: 14px;
}
.goal-empty {
	margin: 14px 2px;
}
.goal-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}
.goal-due {
	flex: 1;
}
.goal-share {
	margin-top: 8px;
}
.goal-offers {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.goal-offers .chip {
	height: auto;
	min-height: 36px;
	padding: 6px 14px;
	white-space: normal;
	text-align: left;
}
.goal-thread {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}
.goal-note {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--me-soft);
	font-size: 15px;
}
.goal-note.them {
	background: var(--them-soft);
}
.goal-note-who {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.goal-note-remove {
	align-self: flex-start;
	padding: 2px 0;
	font-size: 13px;
}
.goal-author {
	margin-top: 14px;
	font-size: 13px;
}
.goal-win {
	margin-bottom: 14px;
	padding: 14px 16px;
	background: var(--marigold-soft);
}
.goal-win-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 6px 0;
	text-align: left;
}
.goal-win-row span {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}

/* ---- Calendar: places, leave-by, clashes ---- */
.cal-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.cal-main .cal-body {
	width: 100%;
}
.cal-row .cal-answer {
	margin: 10px 0 0;
}
.cal-row.theirs::before {
	background: var(--them);
}
.cal-dot.theirs {
	background: var(--them);
}
.cal-leave {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}
.cal-inline {
	padding: 4px 0;
	font-size: 14px;
	text-decoration: none;
}
.cal-alert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	width: 100%;
	margin-top: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--warn-soft);
	font-size: 14px;
	color: var(--warn);
}
.cal-alert-actions {
	display: flex;
	gap: 12px;
}
.cal-alert .text-btn {
	padding: 2px 0;
	font-size: 14px;
}
.cal-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}
.cal-settings {
	font-size: 14px;
}
.cal-when.three {
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 8px;
}
.cal-where {
	display: block;
}
.cal-early {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 8px;
}
.cal-early label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: var(--muted);
}
.cal-places {
	margin-bottom: 4px;
}
.cal-place {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
}
.cal-place + .cal-place {
	border-top: 1px solid var(--line);
}
.cal-place > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.cal-place > span span {
	font-size: 13px;
	color: var(--muted);
}
.cal-add-place {
	margin: 4px 0;
}
.cal-hint {
	margin: 6px 2px 0;
}
.cal-minutes {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
}
.cal-minutes .field {
	width: 120px;
}
.cal-address {
	margin-top: 10px;
}

/* ---- Radar and seen ---- */
.sr-radar {
	margin-bottom: 16px;
	padding: 14px 16px;
	background: var(--us-soft);
	border-color: transparent;
}
.sr-radar ul,
.ow-radar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sr-radar-row {
	display: flex;
	gap: 12px;
}
.sr-radar-row .sr-pic {
	width: 46px;
	height: 69px;
}
.sr-radar-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sr-radar-body b {
	font-size: 16px;
	line-height: 1.3;
}
.sr-radar-body > span {
	font-size: 14px;
	color: var(--muted);
}
.sr-radar-actions {
	display: flex;
	gap: 16px;
	margin-top: 2px;
}
.sr-seen-say {
	white-space: normal !important;
}
.sr-seen-say.them {
	color: var(--them) !important;
}

/* ---- Our week ---- */
.ow-name {
	margin-bottom: 14px;
	padding: 16px;
}
.ow-name-row {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}
.ow-name-row .field {
	flex: 1;
	height: 50px;
	padding: 0 14px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--bg);
	font-size: 16px;
}
.ow-top {
	margin-bottom: 16px;
	padding: 16px 18px;
	background: var(--card);
}
.ow-top.now {
	background: var(--warn-soft);
}
.ow-top.them {
	background: var(--them-soft);
}
.ow-top.them .goal-eyebrow {
	color: var(--them);
}
.ow-top.me {
	background: var(--me-soft);
}
.ow-top.me .goal-eyebrow {
	color: var(--me);
}
.ow-top.us {
	background: var(--us-soft);
}
.ow-top-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
}
.ow-top-body {
	margin: 6px 0 4px;
	font-size: 15px;
}
.ow-answer {
	margin: 10px 0 0;
}
.ow-pair {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
/* The rest of the week (coming up, looking forward to, together, groceries): one column on a
   phone, two side by side on a laptop, so the whole week is close to one screen there */
@media (min-width: 960px) {
	.ow-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: start;
		gap: 0 12px;
	}
}
.ow-person {
	position: relative;
	padding: 14px 16px 10px 18px;
}
.ow-person::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	bottom: 14px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--me);
}
.ow-person.them::before {
	background: var(--them);
}
.ow-who {
	margin: 0 0 6px;
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 500;
}
.ow-person.them .ow-who {
	color: var(--them);
}
.ow-lines {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ow-line {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
}
.ow-card .ow-line {
	padding: 0 14px;
}
.ow-card .ow-lines > li + li {
	border-top: 1px solid var(--line);
}
/* "4 more": the rest of a part of the week, one tap away */
.ow-more {
	display: block;
	margin: 2px 0 0;
}
.ow-person-actions .ow-more {
	margin: 0;
}
.ow-card > .ow-more {
	margin: 2px 10px 2px;
}
.ow-line.suggested .ow-link {
	color: var(--muted);
}
.ow-day {
	flex: none;
	width: 64px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.ow-link {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	padding: 6px 0;
	font-size: 15px;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text);
	text-decoration: none;
}
.ow-dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--me);
}
.ow-dot.them {
	background: var(--them);
}
.ow-dot.us {
	background: var(--us);
}
.ow-note,
.ow-both {
	flex: none;
	font-size: 13px;
	color: var(--us);
}
.ow-both {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--us-soft);
	font-weight: 600;
}
.ow-quiet {
	margin: 4px 0 6px;
}
.ow-support {
	margin: 8px 0 4px;
	font-size: 14px;
	color: var(--them);
}
.ow-win {
	display: block;
	margin: 8px 0 4px;
	padding: 0;
	font-size: 14px;
	text-align: left;
}
.ow-block {
	margin-top: 18px;
}
.ow-card {
	padding: 6px 0;
}
.ow-together {
	padding: 6px 0 10px;
}
.ow-list-pick,
.ow-together .ow-quiet {
	margin: 8px 14px 2px;
	font-size: 15px;
}
.ow-list-pick a,
.ow-together .ow-quiet a {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}
.ow-groceries {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	color: var(--text);
	text-decoration: none;
}
.ow-groceries-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.ow-groceries-names {
	overflow: hidden;
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--muted);
}
.ow-groceries .ow-go {
	flex: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}
@media (min-width: 720px) {
	.ow-pair {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 960px) {
	#app > :is(#week, #ourlist, #goals, #checkin) {
		margin-top: 0;
	}
	#week,
	#ourlist .list-lists,
	#ourlist .list-add,
	#ourlist .list-sections,
	#goals .goal-lists {
		max-width: 760px;
	}
	#goals .sr-tabs {
		display: flex;
		max-width: 760px;
		margin-top: 0;
	}
}
.cal-top {
	flex-wrap: wrap;
}
.cal-top .cal-key {
	order: 2;
	width: 100%;
	margin-top: 4px;
}
.cal-top .cal-actions {
	margin-left: auto;
}
.goal-sheet .goal-text + .sheet-actions,
.goal-sheet .goal-offers + .goal-text,
.goal-sheet .goal-thread + .goal-text {
	margin-top: 14px;
}
.goal-sheet .goal-offers + .goal-text {
	margin-top: 16px;
}
.ow-support b {
	font-weight: 600;
}

/* ---- The two of you: room, notes, pauses, check-in, appreciations ---- */
.us-them {
	color: var(--them);
}
.ci-segment {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	padding: 4px;
	border-radius: 999px;
	background: var(--tag);
}
.ci-segment button {
	height: 40px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	color: var(--muted);
}
.ci-segment button[aria-checked="true"] {
	background: var(--card);
	color: var(--text);
	font-weight: 600;
	box-shadow: 0 1px 3px rgb(74 52 24 / 18%);
}
.ci-segment.small button {
	height: 32px;
	font-size: 14px;
}
/* Each person's card is headed by their name and, beside it, the room they have this week */
.ow-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.ow-head .ow-who {
	margin: 0;
}
.ow-room {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.ow-room-label {
	flex: none;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.ow-room .ci-segment {
	flex: none;
}
.ow-room .ci-segment button {
	padding-inline: 12px;
}
/* Narrow phones: tighter buttons, then no "Room" word (the control keeps its spoken name); if it
   still doesn't fit beside the name, it drops to its own line instead of leaving the card */
.ow-head {
	flex-wrap: wrap;
	row-gap: 6px;
}
@media (max-width: 389px) {
	.ow-room .ci-segment button {
		padding-inline: 8px;
	}
}
@media (max-width: 349px) {
	.ow-room .ow-room-label {
		display: none;
	}
}
.ow-low {
	margin: 0 0 6px;
}
.ow-notes {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 14px;
}
.ow-held {
	display: block;
	width: 100%;
	margin-bottom: 14px;
	padding: 12px 16px;
	font-size: 15px;
	text-align: left;
	color: var(--muted);
}
.ow-held span {
	font-weight: 600;
	color: var(--accent);
}
.ow-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.ow-actions .chip {
	text-decoration: none;
	color: var(--text);
}
.ow-their-room {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
.ow-carrying {
	margin: 8px 0 0;
	font-size: 14px;
}
.ow-carrying b {
	font-weight: 600;
	color: var(--them);
}
.ow-listen {
	color: var(--muted);
	font-style: italic;
}
.us-from {
	padding: 14px 16px;
	background: var(--them-soft);
	border-color: transparent;
	box-shadow: inset 0 3px 0 var(--them), var(--card-shadow);
}
.us-from-who {
	margin: 0 0 6px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--them);
}
.us-from-body,
.ap-text {
	margin: 0;
	font-family: "Caveat", var(--serif);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--them);
}
.us-answers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.us-answers .chip {
	height: 38px;
}
.us-no-reason {
	margin: 8px 2px 0;
	font-size: 13px;
}
.us-answer-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 14px;
	font-size: 15px;
}
.us-answer-line b {
	font-weight: 600;
	color: var(--them);
}
.us-answer-to {
	color: var(--muted);
}
.us-note-text {
	margin-top: 12px;
	min-height: 100px;
	background: var(--them-soft);
	font-family: "Caveat", var(--serif);
	font-size: 23px;
	line-height: 1.2;
}
.us-note-help {
	margin: 8px 2px 0;
}
.us-context {
	margin: 0;
	padding: 10px 14px 10px 30px;
	border-radius: 12px;
	background: var(--card);
	font-size: 15px;
}
.us-quote {
	margin: 6px 0;
	padding: 10px 14px;
	border-left: 3px solid var(--me);
	border-radius: 0 12px 12px 0;
	background: var(--me-soft);
	font-family: var(--serif);
	font-size: 18px;
	font-style: italic;
}
.us-paused {
	margin-bottom: 14px;
	padding: 14px 16px;
}
.us-paused .goal-eyebrow {
	color: var(--them);
}
.us-paused .us-quote {
	border-color: var(--them);
	background: var(--them-soft);
}
.us-back {
	margin-bottom: 14px;
	padding: 16px;
	background: var(--me-soft);
	border-color: transparent;
}
.us-back .goal-eyebrow {
	color: var(--me);
}
.us-back-lead {
	margin: 0 0 10px;
	font-size: 15px;
}
.us-back .us-note-text {
	min-height: 70px;
	background: var(--card);
	font-family: var(--sans);
	font-size: 16px;
}
.us-back-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}
.us-optional {
	margin: 8px 2px 0;
	font-size: 13px;
	text-align: right;
}

/* Check-in page */
.ci-steps {
	margin: 0 0 16px;
	padding: 8px 16px;
	list-style: none;
}
.ci-step {
	position: relative;
	display: flex;
	gap: 14px;
	padding: 12px 0;
}
.ci-step + .ci-step::before {
	content: "";
	position: absolute;
	left: 13px;
	top: -12px;
	height: 24px;
	border-left: 1.5px solid var(--line);
}
.ci-num {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1.5px solid var(--faint);
	font-family: var(--serif);
	font-size: 15px;
	background: var(--card);
	z-index: 1;
}
.ci-step.done .ci-num {
	border-color: var(--me);
	background: var(--me);
	color: var(--on-accent);
}
.ci-step-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}
.ci-step-text b {
	font-size: 16px;
	font-weight: 600;
}
.ci-step-text span {
	font-size: 14px;
	color: var(--muted);
}
.ci-step-actions {
	display: flex;
	gap: 14px;
}
.ci-room {
	padding: 4px 16px 14px;
}
.ci-room .hint {
	margin: 10px 2px 0;
}
.ci-answers,
.ci-theirs {
	padding: 6px 16px 14px;
}
.ci-q {
	position: relative;
	padding-top: 12px;
}
.ci-q + .ci-q {
	border-top: 1px solid var(--line);
	margin-top: 12px;
}
.ci-q-label {
	display: block;
	margin: 0 0 6px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--me);
}
.ci-q-label.them {
	color: var(--them);
}
.ci-shared {
	color: var(--muted);
}
.ci-answer {
	min-height: 60px;
}
.ci-q-share {
	margin-left: auto;
	min-height: 36px;
}
.ci-q:has(.ci-q-share) {
	display: flex;
	flex-direction: column;
}
.ci-their-answer {
	margin: 0;
	font-size: 16px;
}
.ci-theirs {
	background: var(--them-soft);
	border-color: transparent;
}
.ci-listen {
	margin: 12px 2px 0;
}

/* Appreciations */
.ap-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}
.ap-note {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 18px;
	background: var(--them-soft);
	box-shadow: var(--card-shadow);
}
.ap-note.me {
	background: var(--me-soft);
}
.ap-note.me .ap-text {
	color: var(--me);
}
.ap-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--them);
	color: #fff;
	font-family: var(--serif);
	font-size: 15px;
}
.ap-note.me .ap-avatar {
	background: var(--me);
}
.ap-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}
.ap-meta {
	font-size: 13px;
	color: var(--muted);
}
.ap-remove {
	padding: 0;
	font-size: 13px;
}

/* Currently into, how I work */
.ab-chips {
	margin-top: 10px;
}
.ab-chip {
	gap: 2px;
	padding: 0 4px 0 12px;
}
.ab-chip.shared {
	border-color: var(--me);
	background: var(--me-soft);
	color: var(--me);
}
.ab-chip.them {
	padding: 0 14px;
	border-color: var(--them);
	background: var(--them-soft);
	color: var(--them);
}
.ab-toggle {
	padding: 0;
	font: inherit;
	color: inherit;
}
.ab-x {
	width: 28px;
	height: 28px;
	padding: 0;
	font-size: 18px;
	color: var(--muted);
}
.ab-form {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}
.ab-form .field,
#goals .goal-text {
	height: auto;
}
.ab-form .field {
	flex: 1;
	height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--card);
	font-size: 16px;
}
.ab-how-row {
	margin-top: 8px;
}
.ab-how {
	margin: 8px 0 0;
	padding: 14px 16px;
	font-size: 16px;
	line-height: 1.5;
	white-space: pre-wrap;
}
@media (min-width: 960px) {
	#checkin .ci-body {
		max-width: 760px;
	}
	#checkin .sr-tabs {
		display: flex;
		max-width: 760px;
		margin-top: 0;
	}
}
textarea {
	font: inherit;
}
.ci-answer {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--bg);
	font-size: 16px;
	resize: vertical;
}

/* ---- Focus time, free evenings, phone calendar ---- */
.cal-free {
	margin: 4px 0 2px;
}
.cal-free:empty {
	display: none;
}
.cal-free .chips {
	margin-bottom: 4px;
}
.cal-free-why {
	font-size: 13px;
}
.cal-switch {
	margin-top: 8px;
}
.cal-row.focus::before {
	background: var(--me);
}
.cal-row.theirs.focus::before {
	background: var(--them);
}
.cal-row.feed::before {
	background: var(--line);
}
.cal-row.feed .cal-title {
	color: var(--muted);
	font-weight: 500;
}
.cal-cue {
	font-size: 13px;
	font-style: italic;
	color: var(--muted);
}
.cal-help {
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.4;
}
.cal-intent {
	display: grid;
	grid-template-columns: 4.2em 1fr;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.cal-intent > span {
	font-family: var(--serif, Georgia, serif);
	font-size: 18px;
	color: var(--muted);
}
.cal-toggles {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}
.cal-help-field .label {
	display: block;
	margin-bottom: 6px;
}
.cal-phone-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 4px 0 6px;
}
.cal-phone-add {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
.cal-feed-actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}
.cal-feed-error {
	color: var(--accent);
}
.cal-feed-add {
	display: grid;
	grid-template-columns: 1fr 2fr auto;
	align-items: end;
	gap: 10px;
	margin-top: 8px;
}
.cal-feed-add .label {
	display: block;
	margin-bottom: 6px;
}
@media (max-width: 560px) {
	.cal-feed-add {
		grid-template-columns: 1fr;
	}
}
.cal-feed-help {
	margin-top: 12px;
	font-size: 14px;
	color: var(--muted);
}
.cal-feed-help summary {
	cursor: pointer;
	color: var(--accent);
	font-weight: 600;
}
.cal-feed-help ul {
	margin: 8px 0 0;
	padding-left: 18px;
	line-height: 1.5;
}

/* ---- Soft start ---- */
.us-soft {
	margin: 4px 0 6px;
}
.us-soft[hidden] {
	display: none;
}
.us-gentle {
	margin: 6px 0 0;
	color: var(--accent);
}
.us-gentle:empty {
	display: none;
}

/* ---- Our week: how was it, focus progress ---- */
.ow-react .chips {
	margin: 10px 0 6px;
}
.ow-progress {
	margin-top: 10px;
}
.ow-progress .sr-share-row {
	margin-top: 8px;
}
.ow-best {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
}
.ow-best .hint {
	margin: 0;
}
.ow-top-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-top: 6px;
}
.ow-person-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}
.goal-focus {
	display: block;
	margin: 2px 0 10px;
}

/* Date, starts, ends: keep all three inside a phone's width */
.cal-when.three {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
}
.cal-when > label {
	min-width: 0;
}
.cal-when .field {
	min-width: 0;
	padding: 0 8px;
}
.cal-when input::-webkit-calendar-picker-indicator {
	margin-left: 2px;
}
@media (max-width: 420px) {
	.cal-when.three {
		grid-template-columns: 1fr 1fr;
	}
	.cal-when.three > label:first-child {
		grid-column: 1 / -1;
	}
}
.ow-progress-text {
	width: 100%;
	min-height: 70px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--card);
	font-size: 16px;
	line-height: 1.4;
}

/* ---- Trips ---- */
.trip-top {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 8px;
}
.trip-new {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.trip-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}
.trip-card {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 16px 18px;
	color: inherit;
	text-decoration: none;
	overflow: hidden;
}
.trip-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: var(--us);
}
.trip-card.dreaming::before {
	background: repeating-linear-gradient(var(--us) 0 6px, transparent 6px 10px);
}
.trip-cards.been .trip-card {
	opacity: 0.9;
}
.trip-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.trip-stage {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--us);
}
.trip-count {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}
.trip-card-title {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}
.trip-card-meta,
.trip-card-pack {
	font-size: 14px;
	color: var(--muted);
}
.trip-from-list {
	margin-bottom: 20px;
	padding: 4px 0;
}
.trip-from-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 18px;
}
.trip-from-list li + li {
	border-top: 1px solid var(--line);
}
.trip-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 10px;
	text-decoration: none;
}
.trip-head {
	padding: 18px 20px;
	margin-bottom: 22px;
}
.trip-head-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.trip-title {
	margin: 0;
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.15;
}
.trip-head-meta {
	margin: 6px 0 0;
	color: var(--muted);
}
.trip-head-count {
	margin: 6px 0 0;
	font-weight: 600;
	color: var(--us);
}
.trip-stages {
	grid-template-columns: repeat(4, 1fr);
	margin-top: 14px;
}
.trip-note {
	margin: 14px 0 0;
	white-space: pre-wrap;
	line-height: 1.5;
}
.trip-section {
	margin-bottom: 24px;
}
.trip-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.trip-section-head h2 {
	margin: 0;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
}
.trip-days {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.trip-day {
	padding: 12px 16px;
}
.trip-day.today {
	box-shadow: inset 4px 0 0 var(--us);
}
.trip-day-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.trip-free {
	margin: 6px 0 2px;
	font-size: 14px;
}
.trip-items {
	margin: 0;
	padding: 0;
	list-style: none;
}
.card.trip-items {
	padding: 4px 14px;
}
.trip-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
}
.trip-item + .trip-item {
	border-top: 1px solid var(--line);
}
.trip-item.staying {
	opacity: 0.9; /* quieter, and its small text still readable */
}
.trip-item.done .trip-item-body b,
.trip-item.done .trip-pack-title {
	color: var(--muted);
	text-decoration: line-through;
}
.trip-item-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--us) 12%, transparent);
	color: var(--us);
}
.trip-item-body {
	display: grid;
	gap: 2px;
	flex: 1;
	min-width: 0;
	text-align: left;
}
.trip-item-body b {
	font-weight: 600;
}
.trip-item-meta {
	font-size: 14px;
	color: var(--muted);
}
.trip-item-conf {
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.trip-bookings {
	padding: 4px 14px;
}
.trip-bookings li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
}
.trip-bookings li + li {
	border-top: 1px solid var(--line);
}
.trip-booking-text {
	display: grid;
	flex: 1;
	min-width: 0;
}
.trip-booking-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}
.trip-conf {
	padding: 4px 10px;
	border-radius: 8px;
	border: 1px dashed var(--line);
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 14px;
	letter-spacing: 0.04em;
}
.trip-check {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-top: 3px;
	border-radius: 50%;
	border: 1.5px solid var(--faint);
	color: transparent;
}
.trip-check[aria-checked="true"] {
	border-color: var(--us);
	background: var(--us);
	color: var(--on-accent);
}
.trip-check:disabled {
	opacity: 0.6;
}
.trip-ideas-add,
.trip-pack-add {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}
.trip-ideas-add .field,
.trip-pack-add .field {
	flex: 1;
	min-width: 0;
}
.trip-pack-tabs {
	margin-bottom: 10px;
}
.trip-pack-tabs button[aria-selected="true"] {
	background: var(--card);
	color: var(--text);
	font-weight: 600;
	box-shadow: 0 1px 3px rgb(74 52 24 / 18%);
}
.trip-pack .trip-item {
	align-items: center;
}
.trip-pack .trip-check {
	margin-top: 0;
}
.trip-pack-title {
	flex: 1;
}
.trip-pack-remove {
	font-size: 13px;
}
.trip-pack-count {
	font-size: 14px;
	color: var(--muted);
}
.trip-starters {
	margin-top: 10px;
}
.trip-copy {
	margin-top: 10px;
}
/* Trip sheets */
.trip-field {
	display: grid;
	gap: 6px;
	margin-top: 12px;
}
.trip-dates,
.trip-when,
.trip-two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 10px;
}
.trip-when .field,
.trip-dates .field {
	min-width: 0;
}
.trip-hint {
	margin: 8px 0 0;
}
.trip-sheet .chips {
	margin-bottom: 4px;
}
.trip-sheet textarea.field {
	width: 100%;
}
/* Trips on the calendar */
.cal-row.trip::before {
	background: var(--us);
}
.cal-row.trip.theirs::before {
	background: var(--them);
}
.cal-away {
	font-size: 13px;
	color: var(--us);
}
#app > #trips {
	margin-top: 26px;
}
@media (min-width: 960px) {
	/* "#app > #trips", not "#trips": the page-wide width rule is "#app > section" and would win */
	#app > #trips {
		max-width: 760px;
		margin-top: 0;
	}
	#trips .trip-cards {
		max-width: none;
	}
}

/* ==== Getting around on a phone ====
   The five spaces sit along the bottom, where a thumb reaches, and everything is visible: nothing
   scrolls off the edge. A space's pages are the pills in the band. Add floats above the bar.
   Wide screens keep the sidebar. */
.dock,
.fab {
	display: none;
}
.area-switch[hidden] {
	display: none;
}
@media (max-width: 959.98px) {
	main {
		padding-bottom: calc(150px + env(safe-area-inset-bottom));
	}
	.dock:not([hidden]) {
		position: fixed;
		z-index: 20;
		left: 0;
		right: 0;
		bottom: 0;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		padding: 6px max(4px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
		border-top: 1px solid var(--line);
		background: color-mix(in srgb, var(--card) 88%, transparent);
		-webkit-backdrop-filter: blur(16px) saturate(1.3);
		backdrop-filter: blur(16px) saturate(1.3);
		transition: transform 0.2s ease;
	}
	.dock a {
		display: grid;
		justify-items: center;
		align-content: center;
		gap: 3px;
		min-height: 52px;
		font-size: 11.5px;
		font-weight: 600;
		letter-spacing: 0.01em;
		color: var(--muted);
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}
	.dock a[data-group="week"],
	.dock a[data-group="plans"],
	.dock a[data-group="money"] {
		--tint: var(--us);
	}
	.dock a[data-group="kitchen"] {
		--tint: var(--on-marigold);
	}
	.dock a[data-group="you"] {
		--tint: var(--accent);
	}
	.dock-ico {
		display: grid;
		place-items: center;
		width: 52px;
		height: 30px;
		border-radius: 999px;
		transition:
			background 0.2s,
			color 0.2s,
			transform 0.12s;
	}
	.dock a[aria-current="page"] {
		color: var(--text);
	}
	.dock a[aria-current="page"] .dock-ico {
		background: color-mix(in srgb, var(--tint) 18%, transparent);
		color: var(--tint);
	}
	.dock a:active .dock-ico {
		transform: scale(0.92);
	}
	.fab:not([hidden]) {
		position: fixed;
		z-index: 21;
		right: max(16px, env(safe-area-inset-right));
		bottom: calc(76px + env(safe-area-inset-bottom));
		display: grid;
		place-items: center;
		width: 54px;
		height: 54px;
		border-radius: 50%;
		background: var(--accent);
		color: var(--on-accent);
		box-shadow:
			0 10px 22px -8px color-mix(in srgb, var(--accent) 85%, transparent),
			0 2px 6px rgb(0 0 0 / 14%);
		transition:
			transform 0.15s,
			opacity 0.15s;
	}
	.fab:active {
		transform: scale(0.94);
	}
	/* Out of the way while you type, and on a recipe, where the page is the whole screen */
	body:has(:is(input:not([type="checkbox"], [type="radio"], [type="range"]), textarea, select):focus) .dock {
		transform: translateY(110%);
	}
	body:has(:is(input:not([type="checkbox"], [type="radio"], [type="range"]), textarea, select):focus) .fab,
	body:has(#recipes:not([hidden]):not([data-screen="list"])) .fab,
	body:has(:is(#ingredients, #products):not([hidden])[data-screen="detail"]) .fab {
		opacity: 0;
		pointer-events: none;
		transform: scale(0.8);
	}
	/* Messages sit clear of the bar and Add */
	body > .toast {
		bottom: calc(140px + env(safe-area-inset-bottom));
	}
	/* The band's pills are now just the pages of the space you're in: fewer, and bigger */
	.area-switch {
		gap: 8px;
		margin: -6px auto 14px;
	}
	.area-switch a {
		padding: 8px 15px;
		font-size: 14px;
	}
	/* Credits and Sign out live with You, not at the foot of every page */
	body:not([data-group="you"]) #app > .foot :is(.credits-link, .signout) {
		display: none;
	}
}

/* ---- Add, from anywhere ---- */
.add-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.add-kinds {
	display: grid;
	gap: 8px;
	margin: 12px 0 4px;
	padding: 0;
	list-style: none;
}
.add-kind {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 58px;
	padding: 8px 14px;
	border-radius: 16px;
	border: 1px solid var(--edge);
	background: var(--card);
	text-align: left;
	transition:
		transform 0.12s,
		background 0.15s;
}
.add-kind:active {
	transform: scale(0.985);
}
.add-kind.here {
	border-color: color-mix(in srgb, var(--accent) 40%, transparent);
	background: var(--accent-soft);
}
.add-kind-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	color: var(--accent);
}
.add-kind-text {
	display: grid;
	min-width: 0;
}
.add-kind-text b {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
}
.add-kind-text span {
	font-size: 14px;
	color: var(--muted);
}
@media (min-width: 600px) {
	.add-kinds {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 960px) {
	button.nav-add {
		width: 100%;
		border: 0;
		font-family: inherit;
		cursor: pointer;
	}
}

/* ==== Moving between pages ====
   The band and the bar cross-fade; the page fades out fast and the next one settles up into place.
   Nothing slides across the screen, and none of it runs if you've asked for reduced motion. */
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.22s;
}
::view-transition-group(page) {
	animation: none;
}
::view-transition-old(page) {
	animation: page-out 0.1s ease-in both;
}
::view-transition-new(page) {
	animation: page-in 0.28s cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes page-out {
	to {
		opacity: 0;
	}
}
@keyframes page-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

/* ==== Fingers ====
   On touch screens every control answers to a 44px area, even where it looks smaller: the extra
   reach is invisible, so pages keep their density. Rows you tap get the full 44. */
@media (pointer: coarse) {
	:where(.text-btn, .chip, .add-btn, .list-check, .trip-check, .trip-conf, .ab-x, .ab-toggle, .sr-title, .sr-share, .sr-check, .credits-link, .signout, .area-switch a, .ci-segment button, .home-link, .row-action, .card-week, .assist-btn, .card-match, .line-tabs a, .sr-tabs a, .trip-item-body, .ow-win, .ow-list-pick a) {
		position: relative;
	}
	:where(.text-btn, .chip, .add-btn, .list-check, .trip-check, .trip-conf, .ab-x, .ab-toggle, .sr-title, .sr-share, .sr-check, .credits-link, .signout, .area-switch a, .ci-segment button, .home-link, .row-action, .card-week, .assist-btn, .card-match, .line-tabs a, .sr-tabs a, .trip-item-body, .ow-win, .ow-list-pick a)::after {
		content: "";
		position: absolute;
		top: min(0px, calc((100% - 44px) / 2));
		bottom: min(0px, calc((100% - 44px) / 2));
		left: min(0px, calc((100% - 44px) / 2));
		right: min(0px, calc((100% - 44px) / 2));
	}
	.ow-line {
		min-height: 44px;
	}
	.ow-link {
		padding-block: 11.5px;
	}
	/* Under 16px, iPhones zoom the page when a box is tapped */
	.wish-input,
	.lookup-input.compact {
		font-size: 16px;
	}
}

/* A tick lands with a small pop (once, on the box you just tapped) */
.trip-check.pop,
.list-check.pop,
.sr-check.pop .sr-box {
	animation: tick 0.28s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes tick {
	from {
		transform: scale(0.7);
	}
}
.text-btn[data-sure] {
	color: var(--danger);
	font-weight: 700;
}

/* ==== Money ====
   Calm on purpose: no red, no alerts. Bars are a quiet fill; going past a plan is said in words. */
#app > #money {
	margin-top: 26px;
}
@media (min-width: 960px) {
	#app > #money {
		max-width: 760px;
		margin-top: 0;
	}
}
.mo-tabs {
	margin: 0 0 16px;
	padding: 0;
	background-size: 100% 1px;
}
.mo-top {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 14px;
}
.mo-top > a {
	margin-right: auto;
}
.mo-new {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.mo-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 26px 2px 10px;
}
.mo-section-head h2 {
	margin: 0;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
}
/* The month */
.mo-month {
	padding: 18px 20px 12px;
}
.mo-month-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.mo-month-head h2 {
	margin: 0;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 500;
}
.mo-month-head p {
	margin: 0;
	color: var(--muted);
}
.mo-month-head b {
	font-size: 18px;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}
.mo-cats {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mo-cat-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.mo-cat-amount {
	font-size: 15px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.mo-cat-amount b {
	color: var(--text);
}
.mo-bar {
	display: block;
	height: 8px;
	border-radius: 999px;
	background: var(--tag);
	overflow: hidden;
}
.mo-bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--us);
	transition: width 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.mo-bar.pot > span {
	background: var(--marigold-deep);
}
.mo-past {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.mo-month-foot {
	margin-top: 10px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
}
/* Entries */
.mo-entries {
	margin: 0;
	padding: 2px 16px;
	list-style: none;
}
.mo-entry + .mo-entry {
	border-top: 1px solid var(--line);
}
.mo-entry-body {
	display: grid;
	grid-template-columns: 3.4em minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	padding: 8px 0;
	text-align: left;
}
.mo-entry-day {
	font-size: 13px;
	color: var(--muted);
}
.mo-entry-text {
	display: grid;
	min-width: 0;
}
.mo-entry-text b {
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mo-entry-text span {
	font-size: 14px;
	color: var(--muted);
}
.mo-entry-amount {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.mo-entry.closed .mo-entry-amount,
.mo-entry.closed .mo-entry-text b {
	font-weight: 500;
	color: var(--muted);
}
.mo-month-label {
	display: flex;
	justify-content: space-between;
	margin: 20px 4px 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.mo-filter {
	margin-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}
/* To even out: low on the page, plain words */
.mo-even {
	margin-top: 26px;
	padding: 16px 20px;
	background: transparent;
	box-shadow: none;
	border: 1px dashed var(--faint);
}
.mo-even-figure {
	margin: 2px 0 0;
	font-family: var(--serif);
	font-size: 28px;
	font-variant-numeric: tabular-nums;
}
.mo-even-line {
	margin: 2px 0 0;
}
.mo-even-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin-top: 8px;
}
.mo-even-hint {
	margin: 6px 0 0;
	font-size: 13px;
}
/* Big expenses */
.mo-pots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}
.mo-pot {
	display: grid;
	gap: 10px;
	padding: 16px 18px 12px;
}
.mo-pot.someday,
.mo-pot.done {
	box-shadow: none;
	border: 1px solid var(--edge);
}
.mo-pot-body {
	display: grid;
	gap: 3px;
	text-align: left;
}
.mo-pot-title {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}
.mo-why {
	margin: 0;
	font-family: var(--serif);
	font-style: italic;
	color: var(--muted);
}
.mo-pot-trip {
	font-size: 14px;
	color: var(--us);
}
.mo-pot-numbers {
	display: grid;
	gap: 6px;
}
.mo-pot-saved {
	margin: 0;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.mo-pot-saved b {
	font-size: 18px;
	color: var(--text);
}
.mo-pot-pace {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
.mo-pot-actions {
	display: flex;
	justify-content: flex-end;
	gap: 18px;
}
.mo-pot-actions:empty {
	display: none;
}
.mo-adds {
	margin: 0 0 6px;
	padding: 2px 14px;
	list-style: none;
}
.mo-adds li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
}
.mo-adds li + li {
	border-top: 1px solid var(--line);
}
.mo-add-text {
	display: grid;
}
.mo-add-text span {
	font-size: 14px;
	color: var(--muted);
}
/* Sheets */
.mo-amount-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 6px 2px 10px;
	border-bottom: 1.5px solid var(--accent);
	font-family: var(--serif);
	font-size: 40px;
	color: var(--muted);
}
.mo-amount {
	flex: 1;
	min-width: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--text);
	font-variant-numeric: tabular-nums;
	outline: none;
}
.mo-amount:disabled {
	color: var(--muted);
}
.mo-sheet .field {
	width: 100%;
}
.mo-sheet .chips {
	margin-bottom: 6px;
}
.mo-sheet .sr-share-row {
	margin: 4px 0 6px;
}
.mo-more {
	margin-top: 12px;
}
.mo-more summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	list-style: none;
	padding: 6px 0;
}
.mo-more summary::-webkit-details-marker {
	display: none;
}
.mo-plan {
	display: grid;
	gap: 10px;
	margin: 14px 0 4px;
}
.mo-plan-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.mo-plan-input {
	display: flex;
	align-items: baseline;
	gap: 4px;
	width: 130px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--muted);
}
.mo-plan-input.wide {
	width: 100%;
}
.mo-plan-input .mo-amount {
	padding: 10px 0;
	font-family: var(--sans);
	font-size: 16px;
	text-align: right;
}
.mo-plan-input.wide .mo-amount {
	text-align: left;
}
.mo-range {
	width: 100%;
	margin: 6px 0 10px;
	accent-color: var(--us);
}
.mo-split-words {
	margin: 14px 0 0;
	font-family: var(--serif);
	font-size: 24px;
}
/* A trip's money, on the trip */
.trip-money {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}
@media (pointer: coarse) {
	.mo-range {
		height: 44px;
	}
}

/* ---- While a page's data is on its way ----
   app.js marks the page [data-loading]. Where there's nothing to show yet, placeholder cards stand
   in for the content: one card with lines and two plain ones under it (drawn as its shadows).
   They wait a quarter of a second before appearing, so a quick load never flashes them. */
#week[data-loading]:empty::before,
#trips[data-loading]:empty::before,
#home[data-loading]::before,
#money[data-loading]:not(:has(> :not(nav)))::after,
[data-loading] :is(.ci-body, .cal-lists, .list-lists, .goal-lists, .sr-feed-screen, .sr-seen-screen):empty::before,
#pantry[data-loading] .pantry-list::before,
[data-view="groceries"][data-loading] .groups::before {
	content: "";
	display: block;
	height: 96px;
	margin: 6px 0 236px;
	border-radius: 18px;
	background:
		linear-gradient(var(--line), var(--line)) 18px 22px / 42% 12px no-repeat,
		linear-gradient(var(--line), var(--line)) 18px 50px / 74% 9px no-repeat,
		linear-gradient(var(--line), var(--line)) 18px 68px / 56% 9px no-repeat,
		var(--card);
	box-shadow:
		0 112px 0 var(--card),
		0 224px 0 var(--card);
	opacity: 0;
	animation:
		placeholder-in 0.3s 0.25s ease-out forwards,
		placeholder-breathe 1.2s 0.55s ease-in-out infinite alternate;
}
@keyframes placeholder-in {
	to {
		opacity: 1;
	}
}
@keyframes placeholder-breathe {
	from {
		opacity: 1;
	}
	to {
		opacity: 0.5;
	}
}
/* The Kitchen draws its pages before its data arrives. Until it does, they don't say "none yet". */
#home[data-loading] > *,
#pantry[data-loading] .pantry-list > *,
[data-view="groceries"][data-loading] .groups > *,
[data-view="groceries"][data-loading] .list-rail {
	display: none;
}
@media (prefers-reduced-motion: reduce) {
	[data-loading]::before,
	[data-loading]::after,
	[data-loading] ::before {
		opacity: 1 !important;
	}
}

/* A button whose save is on its way: quieter, with a small turning ring, and not pressable again */
button[aria-busy="true"] {
	position: relative;
	pointer-events: none;
	color: transparent !important;
}
button[aria-busy="true"] > * {
	visibility: hidden;
}
button[aria-busy="true"]::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 18px;
	height: 18px;
	margin: auto;
	border: 2px solid color-mix(in srgb, var(--busy, var(--accent)) 35%, transparent);
	border-top-color: var(--busy, var(--accent));
	border-radius: 50%;
	animation: turning 0.7s linear infinite;
}
button.primary[aria-busy="true"] {
	--busy: var(--on-accent);
}
@keyframes turning {
	to {
		transform: rotate(1turn);
	}
}
@media (prefers-reduced-motion: reduce) {
	/* No turning: the button shows three dots instead */
	button[aria-busy="true"]::before {
		width: auto;
		height: auto;
		border: 0;
		content: "…";
		display: grid;
		place-items: center;
		color: var(--busy, var(--accent));
	}
}

/* A page whose load failed: a plain line and a way to try again */
.load-failed {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 40px 16px;
	text-align: center;
	color: var(--muted);
}
.load-failed p {
	margin: 0;
	font-size: 15px;
}
