.life-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	max-width: 920px;
	margin: 0 auto 34px;
	padding: 16px 0 0;
}
.life-head h1 {
	font-size: 32px;
	letter-spacing: -0.03em;
	margin: 4px 0 8px;
	font-weight: 600;
}
.life-head p {
	color: var(--muted);
	margin: 0;
	font-size: 14px;
}
.eyebrow {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.08em;
}
.life-head button {
	white-space: nowrap;
}
.desk-flow,
.meal-flow,
.moment-flow {
	max-width: 920px;
	margin: 0 auto;
	padding-bottom: 60px;
}
.desk-day {
	border-top: 1px solid var(--line);
	padding: 17px 0 26px;
}
.desk-day > header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 13px;
	color: var(--muted);
	font-size: 13px;
}
.desk-day > header b {
	color: var(--ink);
	font-weight: 600;
}
.desk-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	background: var(--line);
	border: 1px solid var(--line);
}
.desk-cell {
	background: #fff;
	min-height: 180px;
	position: relative;
	display: flex;
	flex-direction: column;
}
.desk-cell .photo {
	height: 250px;
}
.desk-cell small {
	padding: 10px 13px 12px;
	color: var(--muted);
	font-size: 12px;
	min-height: 37px;
}
.desk-cell.missing {
	align-items: center;
	justify-content: center;
	background: #fbfaf8;
	border: 1px dashed #d8d5cf;
	min-height: 250px;
}
.desk-cell.missing small {
	position: absolute;
	bottom: 0;
	left: 0;
}
.desk-cell.missing button {
	background: transparent;
	border: 0;
	color: var(--muted);
	font-size: 13px;
	padding: 30px;
	cursor: pointer;
}
.desk-cell .wait {
	color: #aaa69e;
	font-size: 13px;
	margin: auto;
}
.photo {
	display: block;
	border: 0;
	padding: 0;
	background: #f3f2ee;
	width: 100%;
	overflow: hidden;
	cursor: zoom-in;
}
.photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.desk-cell .photo img {
	aspect-ratio: 1.4;
}
.life-card {
	border-top: 1px solid var(--line);
	padding: 20px 0 28px;
}
.life-card > header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
}
.life-card header div {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.life-card header b {
	font-size: 16px;
	font-weight: 600;
}
.life-card header span {
	color: var(--muted);
	font-size: 12px;
}
.life-card header button {
	color: var(--muted);
	background: transparent;
	border: 0;
	padding: 3px 0;
	cursor: pointer;
}
.meal-card > .photo {
	max-height: 460px;
	aspect-ratio: 1.5;
}
.meal-card > .photo img {
	object-fit: cover;
}
.note {
	font-size: 14px;
	line-height: 1.7;
	white-space: pre-wrap;
	margin: 14px 0 8px;
}
.moment-card h2 {
	font-size: 21px;
	margin: 0;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.moment-images {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
}
.moment-images .photo {
	aspect-ratio: 1.18;
}
.moment-images .photo:only-child {
	aspect-ratio: 1.7;
}
.tags {
	color: var(--muted);
	font-size: 12px;
	margin-top: 10px;
}
.social {
	margin-top: 17px;
	border-top: 1px solid var(--line);
	padding-top: 11px;
}
.social > button {
	background: transparent;
	border: 0;
	color: var(--muted);
	padding: 0;
	cursor: pointer;
	font-size: 12px;
}
.social > button.liked {
	color: #897c6e;
}
.comments {
	margin: 10px 0 8px;
}
.comments p {
	font-size: 12px;
	line-height: 1.5;
	margin: 3px 0;
	color: var(--muted);
}
.comments p b {
	color: var(--ink);
	font-weight: 500;
	margin-right: 7px;
}
.comment {
	display: flex;
	border-bottom: 1px solid var(--line);
	max-width: 390px;
}
.comment input {
	border: 0;
	outline: 0;
	background: transparent;
	flex: 1;
	padding: 7px 0;
	font: inherit;
	font-size: 12px;
	min-width: 0;
}
.comment button {
	background: transparent;
	border: 0;
	color: var(--muted);
	cursor: pointer;
}
.empty-state {
	border-top: 1px solid var(--line);
	padding: 70px 0;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
}
.empty-state button {
	display: block;
	margin: 17px auto 0;
	background: transparent;
	border: 0;
	color: var(--ink);
	text-decoration: underline;
	cursor: pointer;
}
.life-sheet {
	border: 0;
	padding: 0;
	background: transparent;
	width: min(480px, calc(100vw - 30px));
	max-height: calc(100dvh - 30px);
}
.life-sheet::backdrop {
	background: rgba(28, 28, 25, 0.17);
	backdrop-filter: blur(3px);
}
.life-sheet .sheet,
.life-form {
	background: #fff;
	padding: 24px;
	border: 1px solid var(--line);
	box-shadow: 0 12px 50px rgba(30, 28, 23, 0.12);
}
.life-form header,
.sheet header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 23px;
}
.life-form h2,
.sheet h2 {
	font-size: 19px;
	margin: 0;
}
.life-form header button,
.sheet header button,
.image-viewer > button {
	background: transparent;
	border: 0;
	color: var(--muted);
	cursor: pointer;
}
.life-form label {
	display: block;
	color: var(--muted);
	font-size: 12px;
	margin: 14px 0;
}
.life-form input,
.life-form textarea,
.life-form select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: #fbfaf8;
	padding: 11px 9px;
	margin-top: 7px;
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	outline: none;
}
.life-form textarea {
	min-height: 90px;
	resize: vertical;
}
.life-form input:focus,
.life-form textarea:focus,
.life-form select:focus {
	border-color: #9d968d;
}
.life-form footer {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	align-items: center;
	border-top: 1px solid var(--line);
	margin-top: 23px;
	padding-top: 17px;
}
.life-form footer button {
	background: transparent;
	border: 0;
	color: var(--muted);
	cursor: pointer;
	padding: 9px;
}
.life-form footer .solid {
	color: #fff;
}
.image-viewer {
	position: relative;
	background: #fff;
	min-height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.image-viewer > button {
	position: absolute;
	right: 12px;
	top: 10px;
	z-index: 1;
}
.image-viewer img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 70px);
	object-fit: contain;
}
.image-viewer:not(.loaded) img {
	opacity: 0.45;
}
@media (max-width: 767px) {
	.life-head {
		margin: 0 0 24px;
		padding: 5px 0 0;
	}
	.life-head h1 {
		font-size: 27px;
	}
	.life-head p {
		font-size: 13px;
	}
	.desk-flow,
	.meal-flow,
	.moment-flow {
		padding-bottom: 74px;
	}
	.desk-cell .photo {
		height: auto;
	}
	.desk-cell.missing {
		min-height: 180px;
	}
	.desk-cell small {
		padding: 8px 9px;
		font-size: 11px;
	}
	.desk-cell.missing button {
		padding: 25px 8px;
		font-size: 12px;
	}
	.life-card {
		padding: 17px 0 23px;
	}
	.moment-images {
		grid-template-columns: repeat(2, 1fr);
	}
	.life-sheet {
		width: calc(100vw - 20px);
	}
	.life-form,
	.life-sheet .sheet {
		padding: 20px 18px;
	}
	.life-form footer {
		position: sticky;
		bottom: -20px;
		background: #fff;
		margin-left: -18px;
		margin-right: -18px;
		padding-left: 18px;
		padding-right: 18px;
	}
	.meal-card > .photo {
		max-height: none;
	}
}
@media (min-width: 1200px) {
	.life-head,
	.desk-flow,
	.meal-flow,
	.moment-flow {
		max-width: 960px;
	}
}
.life-filter {
	max-width: 920px;
	margin: -12px auto 25px;
	display: flex;
	gap: 4px;
}
.life-filter button {
	border: 0;
	background: transparent;
	color: var(--muted);
	padding: 7px 12px;
	font-size: 13px;
	cursor: pointer;
	border-bottom: 1px solid transparent;
}
.life-filter button.active {
	color: var(--ink);
	border-color: var(--ink);
}
.meal-images {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3px;
}
.meal-images .photo {
	aspect-ratio: 1.1;
}
.photo-row {
	position: relative;
}
.photo-row .edit-link {
	position: absolute;
	right: 9px;
	bottom: 8px;
	border: 0;
	background: rgba(255, 255, 255, 0.88);
	color: var(--ink);
	font-size: 11px;
	padding: 5px 8px;
	cursor: pointer;
}
dialog.moment-scene {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	overflow: auto;
	overscroll-behavior: contain;
	color: var(--ink);
	background:
		radial-gradient(ellipse at 74% 85%, #f0eee480, transparent 55%), #faf9f5;
}
.moment-scene::backdrop {
	background: var(--paper);
}
.moment-form {
	width: min(100%, 48rem);
	margin: auto;
	padding: 0 clamp(18px, 4vw, 42px) max(32px, env(safe-area-inset-bottom));
}
.moment-form header {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: max(12px, env(safe-area-inset-top)) 0 12px;
	background: #faf9f5;
}
.moment-form header button {
	min-height: 44px;
	padding: 7px 14px;
	border-radius: 12px;
}
.moment-form header [data-close] {
	color: var(--muted);
}
.moment-form header .solid {
	background: #51634e;
	color: white;
	min-width: 64px;
}
.moment-form header .solid:disabled {
	background: #e7e9e0;
	color: #73796b;
}
.moment-paper {
	margin-top: clamp(26px, 15dvh, 134px);
	padding-inline: clamp(0px, 2vw, 20px);
}
.moment-paper time {
	display: block;
	font-size: 13px;
	letter-spacing: 0.09em;
	color: #747c70;
	margin-bottom: 18px;
}
.moment-paper textarea {
	width: 100%;
	min-height: 110px;
	max-height: 42dvh;
	margin: 0;
	resize: none;
	border: 0;
	background: transparent;
	padding: 0 2px;
	color: #354032;
	font:
		400 clamp(21px, 2.5vw, 29px) / 1.65 "Songti SC",
		serif;
	outline: none;
	caret-color: #687b5c;
}
.moment-paper textarea::placeholder {
	color: #838a7e;
}
.moment-photos {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}
.moment-photos [data-photo] {
	width: 64px;
	height: 64px;
	background: #eeeee6;
	color: #78816f;
	font-size: 23px;
	font-weight: 300;
	border-radius: 10px;
}
.moment-form details,
.moment-form [data-delete] {
	margin-top: 24px;
	color: var(--muted);
	font-size: 13px;
}
.moment-form details label {
	margin: 10px 0;
}
@media (max-width: 600px) {
	.moment-paper {
		margin-top: 24px;
	}
	.moment-paper textarea {
		resize: none;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.moment-paper {
		animation: moment-paper-in 0.55s ease-out;
	}
	@keyframes moment-paper-in {
		from {
			opacity: 0.25;
			transform: translateY(5px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}
.moment-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.moment-thumbs:empty {
	display: none;
}
.moment-thumbs button {
	position: relative;
	padding: 0;
}
.moment-thumbs img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
}
.moment-thumbs span {
	position: absolute;
	right: 2px;
	top: 2px;
	color: white;
	background: #283026aa;
	border-radius: 50%;
	width: 19px;
}
.moment-form p:empty,
.moment-card .note:empty,
.moment-card .tags:empty {
	display: none;
}
.moment-form [role="status"] {
	font-size: 13px;
	color: #69574b;
	margin-top: 8px;
}

.moment-month {
	display: grid;
	grid-template-columns: minmax(78px, 115px) minmax(0, 1fr);
	gap: clamp(18px, 4vw, 52px);
	padding: 8px 0 38px;
}
.moment-month > h2 {
	color: #475344;
	font:
		500 29px / 1.35 "Songti SC",
		serif;
	margin: 6px 0 0;
}
.moment-month > h2 small {
	display: block;
	font:
		500 13px / 1.6 -apple-system,
		sans-serif;
	letter-spacing: 0.06em;
	color: var(--muted);
}
.moment-stack {
	display: grid;
	gap: 18px;
	min-width: 0;
}
.moment-card {
	--author-bg: #e4ebdf;
	--author-ink: #485d43;
	min-width: 0;
	background: #fffefa;
	border: 1px solid #e4e2d9;
	border-radius: 18px;
	padding: clamp(18px, 2.3vw, 30px);
	box-shadow: 0 3px 9px #30342605;
	overflow-wrap: anywhere;
}
.moment-card[data-author="b"] {
	--author-bg: #e1e8ec;
	--author-ink: #445e70;
}
.moment-card .moment-byline {
	flex-direction: row;
	align-items: center;
	gap: 11px;
}
.moment-byline i {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 14px;
	background: var(--author-bg);
	color: var(--author-ink);
	font:
		500 20px / 1 "Songti SC",
		serif;
}
.moment-card .moment-byline div {
	gap: 0;
}
.moment-byline time {
	font-size: 12px;
	color: var(--muted);
}
.moment-card header {
	align-items: center;
	margin-bottom: 15px;
}
.moment-card header button {
	min-height: 40px;
	padding-inline: 8px;
	font-size: 13px;
}
.moment-card .note {
	margin: 10px 0;
	font-size: 16px;
	line-height: 1.75;
}
.moment-card .moment-images {
	max-width: 38rem;
	gap: 5px;
}
.moment-images .photo {
	border-radius: 9px;
	overflow: hidden;
}
.moment-card .social {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px 15px;
	align-items: center;
	border: 0;
	padding: 0;
	margin-top: 16px;
}
.moment-card .social > button {
	justify-self: start;
	min-height: 38px;
	color: #606b5b;
}
.moment-card .social > button::before {
	content: "♡";
	margin-right: 4px;
}
.moment-card .social > button.liked::before {
	content: "♥";
}
.moment-card .comments:not(:empty) {
	grid-column: 1 / -1;
	grid-row: 1;
	padding: 9px 13px;
	border-radius: 10px;
	background: #f4f4ef;
	margin: 0;
}
.moment-card .comments:empty {
	display: none;
}
.moment-card .comments p {
	font-size: 14px;
	line-height: 1.6;
}
.moment-card .comment {
	border: 0;
	max-width: none;
	border-radius: 13px;
	background: #f5f5f0;
	padding-inline: 12px;
}
.moment-card .comment:focus-within {
	outline: 1px solid #8f9d88;
}
.moment-card .comment input {
	padding: 8px 0;
	font-size: 14px;
}
.moment-card .comment button {
	min-width: 32px;
	min-height: 38px;
}
@media (max-width: 660px) {
	.moment-month {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-bottom: 24px;
	}
	.moment-month > h2 {
		display: flex;
		align-items: baseline;
		gap: 6px;
		font-size: 23px;
	}
	.moment-stack {
		gap: 14px;
	}
	.moment-card {
		padding: 16px;
		border-radius: 15px;
	}
	.moment-card .comment input {
		font-size: 16px;
	}
}
.photo-cover {
	max-width: 40rem;
}
.photo-cover .photo {
	position: relative;
	border-radius: 13px;
	aspect-ratio: 1.6;
}
.photo-cover small {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: #20231fc4;
	color: white;
	border-radius: 16px;
	padding: 3px 9px;
	font-size: 12px;
}
.desk-day {
	border: 0;
	padding: 10px 0 32px;
}
.desk-pair {
	overflow: hidden;
	border-radius: 16px;
	border: 0;
	gap: 3px;
	background: var(--paper);
}
.desk-cell.missing {
	border: 0;
	background: #efefe8;
}
.desk-cell .photo,
.desk-cell.missing {
	height: auto;
	min-height: 0;
	aspect-ratio: 4 / 3;
}
.desk-cell {
	min-height: 0;
}
.desk-cell.missing {
	aspect-ratio: auto;
}
.desk-pair {
	min-height: clamp(150px, 24vw, 300px);
}
.desk-pair small b {
	font-weight: 600;
	color: var(--ink);
}
.meal-day {
	padding-bottom: 32px;
}
.meal-day h2 {
	font:
		500 20px / 1.5 "Songti SC",
		serif;
	color: #53634f;
	margin-bottom: 12px;
}
.meal-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 16px;
}
.meal-card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fffefa;
	padding: 16px;
}
.meal-card .photo-cover {
	margin: -16px -16px 14px;
}
.meal-card .photo-cover .photo {
	border-radius: 0;
}
.meal-card .social,
.desk-day .social {
	border: 0;
}
.meal-card .comment,
.desk-day .comment {
	border: 0;
	background: #f2f2ec;
	border-radius: 12px;
	padding-inline: 10px;
}
.life-form footer .solid {
	background: #52634e;
	border-radius: 10px;
}
.photo-gallery[open] {
	position: fixed;
	inset: 0;
	margin: 0;
	width: 100%;
	max-width: none;
	height: 100dvh;
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #191b19;
	color: #fafaf4;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	overflow: hidden;
}
.photo-gallery::backdrop {
	background: #191b19;
}
.photo-gallery header,
.photo-gallery footer {
	display: flex;
	align-items: center;
	padding: 10px max(18px, env(safe-area-inset-right)) 10px
		max(18px, env(safe-area-inset-left));
}
.photo-gallery header {
	padding-top: max(10px, env(safe-area-inset-top));
	justify-content: space-between;
	font-size: 14px;
}
.photo-gallery footer {
	padding-bottom: max(10px, env(safe-area-inset-bottom));
	justify-content: center;
	gap: 24px;
}
.photo-gallery button {
	min-width: 44px;
	min-height: 44px;
	color: inherit;
}
.photo-gallery footer button {
	font-size: 26px;
}
.photo-gallery button:disabled {
	opacity: 0.25;
}
.gallery-film {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.gallery-film figure {
	flex: 0 0 100%;
	height: 100%;
	margin: 0;
	scroll-snap-align: start;
}
.gallery-film img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
@media (max-width: 650px) {
	.meal-grid {
		grid-template-columns: 1fr;
	}
	.desk-cell .photo {
		height: auto;
	}
	.gallery-film {
		scroll-padding: 0;
	}
}
.daily-photo {
	border-radius: 16px;
	background: #fffefa;
}
.choose-photo {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 150px;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #edeee6;
	color: #5c6958;
}
.choose-photo span {
	display: flex;
	inset: 0;
	position: absolute;
	gap: 2px;
}
.choose-photo img {
	flex: 1;
	min-width: 0;
	width: 0;
	height: 100%;
	object-fit: cover;
}
.choose-photo b {
	position: relative;
	background: #fffff3df;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 500;
	padding: 6px 12px;
}
.daily-photo details {
	margin-top: 16px;
}
.daily-photo summary {
	cursor: pointer;
	font-size: 14px;
	color: var(--muted);
	padding: 8px 0;
}
.daily-photo [role="status"]:empty {
	display: none;
}
.photo-gallery.quiet :is(header, footer) {
	opacity: 0;
	pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
	.photo-gallery :is(header, footer) {
		transition: opacity 0.22s ease;
	}
}
