/* ===== Mori product refinement (2026-11-15) =====
   Loaded after product-behavior.css and before immersion-library.css.
   Rationale and markup requests: docs/design/claude-refinement.md.

   One rule runs through the file: the hard "lift" shadow means "press me".
   Things you read (bubbles, the stage header, cards of text) sit flat with a
   hairline; things you press keep the lift. Tokens only, so evening follows.
   Nothing here touches .immersion-* selectors. */

:root {
	--mr-ring: 3px solid var(--mori-primary);
	--mr-row: 44px; /* smallest touch target */
}

/* Korean breaks between words, not inside them, on the new short-copy surfaces. */
:is(.learning-interview, .practice-card, .journal-kind-choice, .future-reminder):lang(ko) {
	word-break: keep-all;
	overflow-wrap: anywhere;
}

/* ---------- 1. Conversation: one face, in the header ---------- */

.practice[data-mode="conversation"] .practice-heading,
.practice.is-empty[data-mode="conversation"] .practice-heading {
	box-shadow: none;
}
@media (max-width: 900px) {
	/* The header face is the only one now, so it fills its 44px seat. */
	#companion-avatar .mori-companion { --companion-size: 44px; }
}

/* Panels that used to clear the per-bubble face line up with the bubbles. */
.practice[data-mode="conversation"] .messages > .help-panel { margin-left: 0; }
.note-offer { margin-left: 0; }

.practice[data-mode="conversation"] .message { margin-bottom: 20px; }
/* With a mouse, the learner's time and Keep stay invisible until hover, so
   their row reads as a gap. Tighten it so turns are spaced more evenly. */
@media (hover: hover) and (pointer: fine) {
	.practice[data-mode="conversation"] .message.user { margin-bottom: 4px; }
	.practice .message.user .message-meta { padding-top: 2px; }
}
.message-bubble,
.practice[data-mode="conversation"] .message.assistant .message-bubble {
	box-shadow: none;
}
.practice[data-mode="conversation"] .message.assistant .message-bubble {
	max-width: min(100%, 68ch);
}

/* ---------- 2. Reply meta row and the translation flip ---------- */

.practice .message-meta {
	flex-wrap: wrap;
	gap: 6px;
	min-height: 32px;
	padding: 6px 2px 0;
}
/* Listen sits first in the row; hidden, it left a hole before Translate. */
.practice .reply-replay {
	opacity: .78;
	pointer-events: auto;
}

.practice .message-bubble.has-translation { position: relative; padding-right: 42px; }
.practice .translation-toggle {
 position: absolute;
 right: 5px;
 bottom: 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
	margin: 0;
	padding: 7px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--mori-text-2);
	opacity: .55;
	box-shadow: none;
	text-decoration: none;
}
.practice .translation-toggle::before,.practice .translation-toggle::after { content: none; }
.practice .translation-toggle svg { width: 16px; height: 16px; flex: none; }
.practice .translation-toggle:hover:not(:disabled),.practice .translation-toggle:focus-visible { opacity: 1; background: var(--mori-soft); }
.practice .translation-toggle[aria-pressed="true"] {
	color: var(--mori-lavender-text);
	opacity: .85;
}
.practice .translation-toggle:disabled {
	opacity: .7;
	cursor: progress;
}
.practice .translation-toggle:focus-visible {
	outline: var(--mr-ring);
	outline-offset: 2px;
}

/* The translated face is the same bubble in a second colour, never a new turn. */
.message-bubble:has(.translation-face[data-face="translation"]),
.practice[data-mode="conversation"] .message.assistant .message-bubble:has(.translation-face[data-face="translation"]) {
	border-color: var(--mori-lavender-line);
	background: var(--mori-lavender);
}

/* ---------- 3. Games: a low-energy way in ---------- */

.practice .play-tools {
	align-items: center;
	gap: 8px;
	margin: 8px 0 10px;
}
.daily-write {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 6px 10px;
	color: var(--mori-primary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 9px;
}
.daily-write:hover { background: var(--mori-learner); }
.daily-write:focus-visible { outline: var(--mr-ring); outline-offset: 2px; }
.composer-footer .voice-open { padding: 0; flex: 0 0 auto; }
.composer-footer .voice-open[aria-expanded="true"] { background: var(--mori-learner); color: var(--mori-primary); }
.practice .play-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
}
.practice .play-pill[aria-expanded="true"] {
	border-color: var(--mori-road-line);
	background: var(--mori-learner);
}
.practice .play-pill:focus-visible {
	outline: var(--mr-ring);
	outline-offset: 2px;
}

/* The chooser takes its own row, so focus order and reading order agree:
   Let's play, the games, then Talk with mori. */
.practice .play-chooser,
.practice-hub {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.practice .play-chooser {
	flex: 1 1 100%;
	max-height: min(46dvh, 380px);
	padding: 3px; /* room for focus rings inside the scroll box */
	overflow-y: auto;
	overscroll-behavior: contain;
}
.practice-hub { margin: 12px 0; }
.practice-hub > :not(.practice-card) {
	grid-column: 1 / -1;
	margin: 0;
}

.practice-card,
.play-chooser .practice-card,
.practice-hub .practice-card {
	display: grid;
	align-content: start;
	gap: 3px;
	min-width: 0;
	min-height: 68px;
	padding: 12px 14px;
	border: 1px solid var(--mori-card-line);
	border-radius: 16px;
	background: var(--mori-card);
	color: var(--mori-ink);
	font: inherit;
	line-height: 1.35;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}
.practice-card strong {
	font-size: 15px;
	font-weight: 800;
	overflow-wrap: anywhere;
}
.practice-card small {
	margin: 0; /* the grid gap spaces title and line */
	color: var(--mori-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}
.practice-card:hover:not(:disabled),
.play-chooser .practice-card:hover:not(:disabled) {
	border-color: var(--mori-sage-line);
	background: var(--mori-sage);
}
.practice-card:focus-visible {
	outline: var(--mr-ring);
	outline-offset: 2px;
}
/* An odd one out at the end fills the row instead of leaving a gap. */
:is(.play-chooser, .practice-hub) > .practice-card:last-of-type:nth-of-type(odd) {
	grid-column: 1 / -1;
	min-height: 56px;
}
@media (min-width: 700px) {
	.practice .play-chooser,
	.practice-hub { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
	:is(.play-chooser, .practice-hub) > .practice-card:last-of-type:nth-of-type(odd) {
		grid-column: auto;
		min-height: 68px;
	}
}
@media (max-width: 340px) {
	.practice .play-chooser,
	.practice-hub { grid-template-columns: 1fr; }
}

.play-banner {
	margin: 8px 0;
	padding: 6px 8px 6px 16px;
	font-size: 14px;
	font-weight: 700;
}

/* ---------- 4. Voice: each state has its own shape ---------- */

.voice-panel {
	padding: 16px;
	border-width: 1px;
	box-shadow: none;
}
.voice-panel .voice-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	gap: 0 12px;
}
.voice-panel .voice-state {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
}
.voice-panel .voice-time {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.voice-panel .voice-head:has(.voice-time:empty) .voice-state {
	grid-row: 1 / span 2;
	align-self: center;
}

/* The indicator: a 40px seat whose glyph is drawn from gradients, so a state
   is told apart by shape as well as colour, with or without motion.
   connecting = dashed ring · listening = filled dot with a halo ·
   thinking = three dots · speaking = three bars · paused = two bars ·
   ended = one flat line. */
.voice-panel .voice-dot {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 40px;
	height: 40px;
	border: 2px solid var(--mori-card-line);
	border-radius: 50%;
	background-color: var(--mori-card);
	background-repeat: no-repeat;
	color: var(--mori-muted);
	transform: none;
	opacity: 1;
}
.voice-panel[data-state="connecting"] .voice-dot {
	border-style: dashed;
	border-color: var(--mori-muted);
}
.voice-panel[data-state="listening"] .voice-dot {
	border-color: transparent;
	background-color: var(--mori-progress);
	background-image: radial-gradient(circle, var(--mori-canvas) 0 5px, transparent 5.5px);
	box-shadow: 0 0 0 4px var(--mori-sage-line);
}
.voice-panel:is([data-state^="Thinking"], [data-state="thinking"]) .voice-dot {
	border-color: var(--mori-lavender-line);
	background-color: var(--mori-lavender);
	color: var(--mori-lavender-text);
	background-image:
		radial-gradient(circle, currentColor 0 3px, transparent 3.5px),
		radial-gradient(circle, currentColor 0 3px, transparent 3.5px),
		radial-gradient(circle, currentColor 0 3px, transparent 3.5px);
	background-size: 8px 8px;
	background-position: calc(50% - 9px) 50%, 50% 50%, calc(50% + 9px) 50%;
}
.voice-panel[data-state="speaking"] .voice-dot {
	border-color: var(--mori-warm-text);
	background-color: var(--mori-card);
	color: var(--mori-warm-text);
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-size: 4px 10px, 4px 18px, 4px 12px;
	background-position: calc(50% - 8px) 50%, 50% 50%, calc(50% + 8px) 50%;
}
.voice-panel[data-state="paused"] .voice-dot {
	border-color: var(--mori-muted);
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-size: 5px 14px;
	background-position: calc(50% - 5px) 50%, calc(50% + 5px) 50%;
}
.voice-panel[data-state="ended"] .voice-dot {
	background-color: transparent;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 14px 3px;
	background-position: 50% 50%;
}
.voice-panel[data-state="ended"] {
	border-color: var(--mori-card-line);
	background: var(--mori-soft);
}
.voice-panel[data-state="ended"] .voice-state { color: var(--mori-muted); }

@media (prefers-reduced-motion: no-preference) {
	.voice-panel[data-state="connecting"] .voice-dot { animation: mr-voice-turn 2.4s linear infinite; }
	.voice-panel[data-state="listening"] .voice-dot { animation: mr-voice-halo 1.8s ease-in-out infinite; }
	.voice-panel:is([data-state^="Thinking"], [data-state="thinking"]) .voice-dot { animation: mr-voice-think 1.4s ease-in-out infinite; }
	.voice-panel[data-state="speaking"] .voice-dot { animation: mr-voice-bars .9s ease-in-out infinite; }
}
@keyframes mr-voice-turn { to { transform: rotate(360deg); } }
@keyframes mr-voice-halo {
	0%, 100% { box-shadow: 0 0 0 2px var(--mori-sage-line); }
	50% { box-shadow: 0 0 0 8px var(--mori-sage-line); }
}
@keyframes mr-voice-think {
	0%, 100% { opacity: 1; }
	50% { opacity: .55; }
}
@keyframes mr-voice-bars {
	0%, 100% { background-size: 4px 10px, 4px 18px, 4px 12px; }
	50% { background-size: 4px 18px, 4px 9px, 4px 16px; }
}

/* A demo must read as a demo: a labelled, dashed sample, and no "live" green. */
.voice-panel .voice-demo {
	margin: 12px 0 0;
	padding: 8px 12px;
	border: 1.5px dashed var(--mori-reason-text);
	border-radius: 12px;
	background: var(--mori-reason-bg);
	color: var(--mori-reason-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}
.voice-panel:has(> .voice-demo:not([hidden])) { border-style: dashed; }
.voice-panel:has(> .voice-demo:not([hidden]))[data-state="listening"] .voice-dot {
	border: 2px dashed var(--mori-reason-text);
	background-color: var(--mori-card);
	background-image: radial-gradient(circle, var(--mori-reason-text) 0 5px, transparent 5.5px);
	box-shadow: none;
	animation: none;
}

.voice-panel .voice-captions {
	min-height: 88px;
	max-height: min(34dvh, 240px);
	padding: 12px 14px;
	border-radius: 16px;
}
.voice-panel .voice-line {
	font-size: 16px;
	line-height: 1.6;
}
.voice-panel .voice-actions { gap: 10px; }
.voice-note {
	margin: 0 0 10px 2px;
	font-size: 14px;
}

/* Consent copy stays whole and easy to read; its buttons are full targets. */
.dictation-consent {
	padding: 16px;
	border-width: 1px;
	font-size: 14px;
	line-height: 1.65;
}
.dictation-consent-actions { gap: 8px 12px; margin-top: 12px; }
.dictation-consent-actions .primary,
.dictation-consent-actions .text-button { min-height: var(--mr-row); }

/* ---------- 5. Composer ---------- */

/* "0 / 4,000" matters while writing; at rest it is noise under the box. */
.practice .composer #count { transition: opacity .15s ease-out; }
.practice .composer:not(:focus-within) #count { opacity: 0; }

/* ---------- 6. Learning interview: one question at a time ---------- */

.learning-interview {
	flex: none;
	width: 100%;
	max-width: 640px;
	margin: 12px auto 16px;
	padding: 20px 18px;
	border: 1px solid var(--mori-card-line);
	border-radius: var(--mori-r-panel);
	background: var(--mori-card);
	color: var(--mori-ink);
}
/* While the interview is open the page scrolls as one document, so a long
   review or an open keyboard never traps the card in a short flex slot. */
.workspace[data-page="conversation"] .main-content:has(> .practice > .learning-interview:not([hidden])) {
	overflow-y: auto;
}
.practice[data-mode="conversation"]:has(> .learning-interview:not([hidden])) {
	height: auto;
	flex: none;
}
.practice[data-mode="conversation"]:has(> .learning-interview:not([hidden])) .messages {
	flex: none;
	min-height: 0;
	overflow: visible;
}
@media (max-width: 900px) {
	.workspace[data-page="conversation"] .main-content:has(> .practice > .learning-interview:not([hidden])) {
		margin-bottom: calc(var(--b-tabbar-h) + env(safe-area-inset-bottom, 0px));
		padding-bottom: 16px;
		scroll-padding-block: 12px 24px;
	}
}

.learning-interview > h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.01em;
	text-wrap: balance;
}
/* During questions the title steps back so the question is the heading. */
.learning-interview:has(> .interview-progress) > h2 {
	margin-bottom: 14px;
	color: var(--mori-leaf-text);
	font-size: 13px;
	letter-spacing: 0;
}
.learning-interview > p {
	margin: 0 0 8px;
	color: var(--mori-text-2);
	font-size: 15px;
	line-height: 1.65;
}
.learning-interview > p.fine {
	color: var(--mori-muted);
	font-size: 13px;
}
.learning-interview .interview-progress {
	margin: 0 0 8px;
	color: var(--mori-muted);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
/* A bar appears only when the markup supplies real numbers:
   style="--interview-step:3;--interview-steps:14". Without them, text only. */
.learning-interview .interview-progress[style*="--interview-step"]::after {
	content: "";
	display: block;
	height: 6px;
	margin-top: 10px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--mori-progress) calc(var(--interview-step) / var(--interview-steps, 1) * 100%), var(--mori-track) 0);
}
.learning-interview h3 {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
	text-wrap: pretty;
}
.learning-interview form {
	display: grid;
	gap: 14px;
	margin: 0;
}
.learning-interview textarea,
.learning-interview input:not([type="checkbox"]):not([type="hidden"]) {
	display: block;
	width: 100%;
	min-height: 104px;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--mori-field-line);
	border-radius: 14px;
	background: var(--mori-field);
	color: var(--mori-ink);
	font-size: 16px;
	line-height: 1.6;
	resize: vertical;
}
.learning-interview input:not([type="checkbox"]):not([type="hidden"]) { min-height: 48px; }
.learning-interview :is(textarea, input):focus { border-color: var(--mori-primary); }
.learning-interview :is(textarea, input):focus-visible {
	outline: var(--mr-ring);
	outline-offset: 2px;
}

/* Answers are rows with a radio mark: same width, easy to scan, easy to hit. */
.learning-interview .interview-options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin: 0;
}
.learning-interview .interview-options button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 10px 14px;
	border: 1.5px solid var(--mori-pill-line);
	border-radius: 14px;
	background: var(--mori-chip);
	box-shadow: none;
	color: var(--mori-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: start;
	text-decoration: none;
}
.learning-interview .interview-options button::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--mori-pill-line);
	border-radius: 50%;
	background: var(--mori-field);
}
.learning-interview .interview-options button:hover:not(:disabled) { background: var(--mori-sage); }
.learning-interview .interview-options button[aria-pressed="true"] {
	border-color: var(--mori-primary);
	background: var(--mori-sage);
	box-shadow: none;
	color: var(--mori-ink);
	font-weight: 800;
}
.learning-interview .interview-options button[aria-pressed="true"]::before {
	border-color: var(--mori-primary);
	background: radial-gradient(circle, var(--mori-primary) 0 4.5px, var(--mori-field) 5px);
}
@media (min-width: 560px) {
	.learning-interview { padding: 28px; }
	.learning-interview .interview-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* One clear way forward; skipping and reviewing stay in reach, in quieter type. */
.learning-interview .interview-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	margin-top: 4px;
}
.learning-interview > .interview-actions { margin-top: 18px; }
/* "> .primary" is the lone "Review my answers" button shown when no question is left. */
.learning-interview .interview-actions .primary,
.learning-interview > .primary {
	min-height: 48px;
	padding: 10px 26px;
	border-color: var(--mori-primary);
	border-radius: var(--mori-r-pill);
	background: var(--mori-primary);
	box-shadow: var(--mori-lift) var(--mori-primary-shadow);
	color: var(--mori-on-primary);
	font-size: 15px;
	font-weight: 800;
}
.learning-interview .interview-actions .primary:hover:not(:disabled),
.learning-interview > .primary:hover:not(:disabled) { background: var(--mori-primary-hover); }
.learning-interview .interview-actions .primary:active:not(:disabled),
.learning-interview > .primary:active:not(:disabled) {
	transform: translateY(2px);
	box-shadow: 0 1px 0 var(--mori-primary-shadow);
}
.learning-interview .interview-actions .primary:disabled,
.learning-interview > .primary:disabled { box-shadow: none; }
.learning-interview .interview-actions .text-button {
	min-height: var(--mr-row);
	padding: 8px 4px;
	font-size: 14px;
	text-underline-offset: 4px;
}
.learning-interview button:focus-visible {
	outline: var(--mr-ring);
	outline-offset: 2px;
}
@media (max-width: 559px) {
	.learning-interview .interview-actions .primary { flex: 1 1 100%; margin-bottom: 4px; }
}

/* Review: label over answer, with Edit beside each one. */
.learning-interview .interview-review {
	display: grid;
	gap: 0;
	margin: 14px 0 0;
	border-top: 1px solid var(--mori-card-line);
}
.learning-interview .interview-review > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "label edit" "answer edit";
	align-items: center;
	gap: 2px 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mori-card-line);
}
.learning-interview .interview-review dt {
	grid-area: label;
	color: var(--mori-muted);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
}
.learning-interview .interview-review dd {
	grid-area: answer;
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.learning-interview .interview-review dd:empty::before {
	content: "—";
	color: var(--mori-muted);
}
.learning-interview .interview-review button {
	grid-area: edit;
	min-width: var(--mr-row);
	min-height: var(--mr-row);
	padding: 8px 6px;
	font-size: 13px;
	font-weight: 700;
}
@media (min-width: 560px) {
	.learning-interview .interview-review > div {
		grid-template-columns: 148px minmax(0, 1fr) auto;
		grid-template-areas: "label answer edit";
		gap: 12px 16px;
	}
	.learning-interview .interview-review dt { font-size: 13px; }
}

/* The remember choice is consent: full text, a real checkbox, its own box. */
.learning-interview > label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: var(--mr-row);
	margin: 16px 0 0;
	padding: 14px;
	border: 1px solid var(--mori-peach-line);
	border-radius: 16px;
	background: var(--mori-peach);
	color: var(--mori-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	cursor: pointer;
}
.learning-interview > label > input[type="checkbox"] {
	flex: none;
	width: 22px;
	height: 22px;
	min-height: 0;
	margin: 0;
	padding: 0;
	accent-color: var(--mori-primary);
}
.learning-interview > [role="alert"] {
	margin: 14px 0 0;
	padding: 10px 12px;
	border: 1px solid var(--mori-danger-line);
	border-radius: 12px;
	background: var(--mori-danger-bg);
	color: var(--mori-danger-text);
	font-size: 14px;
}

/* ---------- 7. Guided journals ---------- */

/* The starting cards are the way in; "New note" becomes the quiet second door. */
.journal-page #journal-new {
	border: 1.5px solid var(--mori-pill-line);
	background: transparent;
	color: var(--mori-primary);
	font-weight: 700;
}
.journal-page #journal-new:hover,
.journal-page #journal-new[aria-expanded="true"] { background: var(--mori-sage); }

.journal-start-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 4px 0 28px;
}
.journal-page .journal-kind-choice {
	position: relative;
	display: grid;
	align-content: start;
	gap: 4px;
	min-width: 0;
	min-height: 88px;
	padding: 14px 16px;
	border: 1px solid var(--mori-card-line);
	border-radius: 18px;
	background: var(--mori-card);
	color: var(--mori-ink);
	line-height: 1.35;
	text-align: start;
}
.journal-page .journal-kind-choice strong {
	font-size: 15px;
	font-weight: 800;
}
.journal-page .journal-kind-choice small {
	color: var(--mori-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}
.journal-page .journal-kind-choice:hover:not(:disabled) {
	border-color: var(--mori-pill-line);
	background: var(--mori-cream);
}
.journal-page .journal-kind-choice:focus-visible {
	outline: var(--mr-ring);
	outline-offset: 2px;
}

/* The first choice is the obvious one: full width, tinted, with a "go" mark. */
.journal-start-cards > .journal-kind-choice:first-child {
	grid-column: 1 / -1;
	align-content: center;
	min-height: 100px;
	padding: 18px 72px 18px 18px;
	border-color: var(--mori-sage-line);
	background: var(--mori-sage);
}
.journal-start-cards > .journal-kind-choice:first-child strong { font-size: 19px; }
.journal-start-cards > .journal-kind-choice:first-child small {
	color: var(--mori-text-2);
	font-size: 14px;
}
.journal-start-cards > .journal-kind-choice:first-child:hover:not(:disabled) {
	border-color: var(--mori-road-line);
	background: var(--mori-learner);
}
.journal-start-cards > .journal-kind-choice:first-child::before {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 40px;
	height: 40px;
	margin-top: -21px;
	border-radius: 50%;
	background: var(--mori-primary);
	box-shadow: var(--mori-lift) var(--mori-primary-shadow);
}
.journal-start-cards > .journal-kind-choice:first-child::after {
	content: "";
	position: absolute;
	right: 33px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border: solid var(--mori-on-primary);
	border-width: 2.5px 2.5px 0 0;
	transform: rotate(45deg);
}
/* With the first card on its own row, an even-numbered last card is alone. */
.journal-start-cards > .journal-kind-choice:last-child:nth-child(even) {
	grid-column: 1 / -1;
	min-height: 64px;
}
@media (min-width: 901px) {
	/* Four across: with five starting points, the four after "My day" share one row. */
	.journal-start-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
	.journal-start-cards > .journal-kind-choice:last-child:nth-child(even) {
		grid-column: auto;
		min-height: 88px;
	}
	/* A last card left alone on its row (2, 6, 10 … cards) fills it. */
	.journal-start-cards > .journal-kind-choice:last-child:nth-child(4n + 2) {
		grid-column: 1 / -1;
		min-height: 64px;
	}
}

/* The "New note" menu shows the same choices as a compact panel. */
#journal-kind-chooser {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 8px 0 16px;
	padding: 10px;
	border: 1px solid var(--mori-card-line);
	border-radius: var(--mori-r-card);
	background: var(--mori-soft);
}
#journal-kind-chooser .journal-kind-choice {
	min-height: 64px;
	padding: 10px 12px;
	border-radius: 14px;
}
#journal-kind-filters button[aria-pressed="true"] {
	border-color: var(--mori-primary);
	font-weight: 700;
}
@media (max-width: 600px) {
	.journal-intro { font-size: 15px; line-height: 1.6; }
}

/* ---------- 8. Future me and recommendations: one family ---------- */

/* Both are a hairline card with a small bold label, then the content.
   Recommendations carry mori's pick on sage; Future me carries the learner's
   own words on butter, marked with the same dotted-road green as the Garden. */
.recommendation-card { box-shadow: none; }

.future-reminder {
	max-width: 640px;
	margin: 12px 0 16px;
	padding: 16px 18px;
	border: 1px solid var(--mori-butter-line);
	border-radius: var(--mori-r-card);
	background: var(--mori-butter);
	color: var(--mori-ink);
	overflow-wrap: anywhere;
}
.future-reminder > :first-child { margin-top: 0; }
.future-reminder > :last-child { margin-bottom: 0; }
/* In the Garden the reminders are rows of the road card's own grid. */
.road-parts > .future-reminder {
	grid-column: 1 / -1;
	max-width: none;
	margin: 0;
}
.road-card .future-reminder :is(h2, h3, h4) {
	letter-spacing: .08em;
	text-transform: uppercase;
}
/* The label is a heading in the Garden and a first paragraph in Chat. */
.future-reminder :is(h2, h3, h4),
.future-reminder > p:first-child:has(+ blockquote) {
	margin: 0 0 8px;
	color: var(--mori-warm-text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: .01em;
}
.future-reminder blockquote {
	margin: 8px 0;
	padding: 2px 0 2px 14px;
	border-left: 3px solid var(--mori-road-line);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
	white-space: pre-wrap;
}
.future-reminder p {
	margin: 8px 0;
	color: var(--mori-text-2);
	font-size: 14px;
	line-height: 1.6;
}
.future-reminder :is(time, small, cite) {
	color: var(--mori-muted);
	font-size: 12px;
	font-style: normal;
}
.future-reminder :is(a, button) {
	display: inline-flex;
	align-items: center;
	min-height: var(--mr-row);
}
.future-reminder :is(a, button):focus-visible {
	outline: var(--mr-ring);
	outline-offset: 2px;
}

/* ---------- 9. Settings and page rhythm ---------- */

/* One column width and one field shape down the Settings page. */
#coach-page > :is(.interface-settings, .voice-settings, .coaching-options, #profile-form, .app-information, .setup-actions, #allowance, #practice-minutes, #settings-environment) {
	max-width: 640px;
}
#coach-page :is(input:not([type="checkbox"]):not([type="radio"]), select) {
	min-height: var(--mr-row);
	border-radius: 12px;
}
#coach-page textarea { border-radius: 12px; }
#coach-page :is(.voice-settings, .coaching-options, .app-information) > summary { padding-block: 11px; }
#coach-page .check-label {
	min-height: var(--mr-row);
	margin: 6px 0;
}
#coach-page .check-label input {
	flex: none;
	width: 20px;
	height: 20px;
	min-height: 20px;
	margin: 0;
	padding: 0;
}

@media (max-width: 900px) {
	/* The sticky Save bar used to slide under the fixed tab bar. */
	#profile-form .form-actions {
		bottom: calc(var(--b-tabbar-h) + env(safe-area-inset-bottom, 0px));
	}
}
@media (max-width: 600px) {
	/* Every page shares the chat's 16px gutter and one heading size. */
	#coach-page, #memory-page, #me-page, #journey-page, #library-page { padding-inline: 16px; }
	:is(#coach-page, #memory-page, #me-page, #journey-page, #library-page) > .page-header h1,
	.journal-page > .page-header h1 {
		font-size: 26px;
		line-height: 1.25;
	}
}

/* ---------- 10. Touch targets ---------- */

@media (hover: none), (pointer: coarse) {
	/* 16px fields stop iOS from zooming the page on focus. More specific
	   sizes elsewhere still win; this only lifts the inherited 15px, and it
	   leaves the Immersion page to its own stylesheet. */
	:is(input, select, textarea):not(:where(#immersion-page *)) { font-size: max(16px, 1em); }
	.practice .composer textarea,
	.practice.has-conversation .composer textarea { font-size: 16px; }

	/* Small pills keep their look and gain an invisible 44px hit area. */
	.practice .help-open { position: relative; }
	.practice .translation-toggle::after,
	.practice .help-open::after {
		content: "";
		position: absolute;
		inset: -6px -2px;
	}

	.recast-use,
	.help-tab,
	.library-filter,
	.memory-pref-change,
	.interface-controls button,
	.dictation-settings .text-button,
	.note-offer .text-button,
	.avatar-state-controls button,
	#journal-back,
	#journal-export { min-height: var(--mr-row); }
	.help-close {
		min-width: var(--mr-row);
		min-height: var(--mr-row);
	}
	.journal-toolbar button {
		min-width: var(--mr-row);
		min-height: var(--mr-row);
	}
	.journal-toolbar select { min-height: var(--mr-row); }
	.workspace .sidebar .history-actions .text-button { min-height: var(--mr-row); }
	#memory-page .fact > button {
		min-height: var(--mr-row);
		padding-inline: 6px;
	}
}

/* ---------- 11. Motion and contrast preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
	.practice-card,
	.journal-page .journal-kind-choice,
	.learning-interview .interview-options button {
		transition: background-color .12s ease-out, border-color .12s ease-out;
	}
	.practice .translation-toggle::before { transition: transform .2s ease-out; }
	.practice-card:active:not(:disabled),
	.journal-page .journal-kind-choice:active:not(:disabled) { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
	.practice .composer #count { transition: none; }
	.learning-interview .interview-actions .primary:active:not(:disabled),
	.learning-interview > .primary:active:not(:disabled) { transform: none; }
}
@media (forced-colors: active) {
	/* Selected and state cues that rely on fills get a border or a real colour. */
	.learning-interview .interview-options button[aria-pressed="true"],
	.practice .translation-toggle[aria-pressed="true"] { border-width: 3px; }
	.voice-panel .voice-dot { forced-color-adjust: none; }
	.journal-start-cards > .journal-kind-choice:first-child { border-width: 3px; }
}
