/* Journal and Kelly's Journal */

.journal {
	gap: 18px;
}

.journal__sub {
	margin-top: -6px;
	font-size: 13px;
	font-weight: 300;
	text-align: center;
	color: var(--muted);
}

/* ---- Numbers ---- */

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 6px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	text-align: center;
}

.stat__label {
	font-size: 11.5px;
	color: var(--muted);
}

.stat__value {
	font-family: var(--serif);
	font-size: 30px;
	line-height: 1.15;
	color: var(--accent-ink);
}

.stat__unit {
	font-size: 12.5px;
	font-weight: 300;
}

/* ---- Overview ---- */

.overview {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.overview .section-title {
	margin-bottom: 6px;
}

.trend {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
}

.trend__label {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 132px;
	font-size: 13px;
}

.trend__chart {
	flex: 1 1 auto;
	display: flex;
}

.trend__chart svg {
	width: 100%;
	height: 28px;
}

.trend__line {
	fill: none;
	stroke: var(--spark);
	stroke-width: 1.3;
}

.trend__dot {
	fill: var(--accent);
}

.trend__value {
	flex: none;
	width: 28px;
	font-size: 13px;
	text-align: right;
}

.overview__axis {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	padding: 10px 30px 0 136px;
	border-top: 1px solid var(--line);
	font-size: 10.5px;
	letter-spacing: 0.4px;
	color: var(--muted);
}

/* ---- Recent entries ---- */

.recent {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.recent .section-title {
	margin-bottom: 2px;
}

.recent__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.recent__empty {
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--muted);
}

/* ---- One routine, read-only (screens/entry.js) ---- */

.entry-view__date {
	margin-top: -6px;
	text-align: center;
	font-size: 14px;
	color: var(--muted);
}

.entry-view__answers {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.entry-question {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
}

.entry-question__title {
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
}

.entry-question__sub {
	font-size: 14px;
	font-weight: 300;
	color: var(--ink-soft);
}

.entry-question__answers {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.entry-question__answers li {
	padding-left: 14px;
	border-left: 2px solid var(--spark);
	font-size: 15px;
	line-height: 1.5;
	white-space: pre-line;
	-webkit-user-select: text;
	user-select: text;
}

.entry-question__answers li.is-empty {
	color: var(--placeholder);
	font-style: italic;
}

.entry-view__edit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
}

.entry-view__edit:hover {
	color: var(--on-accent);
}

.entry-view__locked,
.entry-view__missing {
	text-align: center;
}
