@font-face {
	font-family: "NanumSquare Neo";
	src: url("/fonts/NanumSquareNeoTTF-bRg.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "NanumSquare Neo";
	src: url("/fonts/NanumSquareNeoTTF-cBd.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
:root {
	color-scheme: light;
	--ink: #243c33;
	--muted: #52665a;
	--green: #2c5547;
	--paper: #fcfcf8;
	--sage: #edf2e8;
	--line: #d7ded5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--paper);
	font-size: 15px;
	line-height: 1.5;
	scrollbar-color: #9aa99c transparent;
	caret-color: var(--green);
}
* {
	box-sizing: border-box;
}
[hidden] {
	display: none !important;
}
body {
	margin: 0;
}
::selection {
	background: #dbe8d1;
	color: var(--ink);
}
button,
input,
select,
textarea {
	font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
	-webkit-tap-highlight-color: transparent;
}
button,
summary {
	cursor: pointer;
}
a {
	color: var(--green);
	text-underline-offset: 3px;
}
button {
	color: inherit;
}
button,
input,
select,
textarea {
	border: 1px solid var(--line);
	border-radius: 6px;
}
button {
	background: transparent;
	padding: 9px 14px;
	min-height: 42px;
}
button:hover {
	background: var(--sage);
}
button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 3px;
}
h1:focus {
	outline: none;
}
input,
select,
textarea {
	width: 100%;
	padding: 10px 12px;
	background: #fff;
	color: var(--ink);
}
input::placeholder,
textarea::placeholder {
	color: var(--muted);
	opacity: 1;
}
textarea {
	resize: vertical;
	line-height: 1.65;
}
label {
	display: block;
	font-weight: 500;
}
label input,
label select,
label textarea {
	display: block;
	margin-top: 7px;
	font-weight: 400;
}
h1,
h2,
p {
	margin: 0;
}
h1 {
	font-size: 28px;
	letter-spacing: -0.025em;
	line-height: 1.25;
	font-weight: 600;
}
h2,
legend {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}
.muted,
.fine,
small,
.field-help {
	color: var(--muted);
}
.fine,
small,
.field-help {
	font-size: 13px;
}
.field-help {
	display: block;
	font-weight: 400;
	margin-top: 7px;
}
.primary {
	color: #fff;
	background: var(--green);
	border-color: var(--green);
	font-weight: 600;
}
.primary:hover {
	background: #204235;
}
.secondary {
	background: #fff;
}
.text-button {
	border: 0;
	color: var(--green);
	padding: 8px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.brand {
	font:
		600 36px / 1 Georgia,
		serif;
	letter-spacing: -0.04em;
	text-decoration: none;
	width: fit-content;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
#notice:empty {
	display: none;
}
#notice {
	position: fixed;
	z-index: 5;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--ink);
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	max-width: min(600px, 90vw);
	width: max-content;
}
.login-shell {
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
}
.login-card {
	width: 100%;
	max-width: 440px;
	padding: 36px 40px 28px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	text-align: center;
}
.login-brand {
	display: inline-block;
	font-size: 28px;
}
.login-companion {
	display: grid;
	place-items: center;
	min-height: 96px;
	margin: 24px 0 16px;
}
.login-card h1 {
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.login-intro {
	margin-top: 10px;
	font-size: 14px;
	color: var(--muted);
}
.login-card form {
	display: grid;
	gap: 16px;
	margin-top: 28px;
}
.login-card #login-form {
	text-align: left;
}
.social-actions {
	display: grid;
	gap: 12px;
}
.social-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 12px 40px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
}
.social-icon {
	position: absolute;
	left: 18px;
	flex: none;
	object-fit: contain;
}
.social-kakao,
.social-kakao:hover {
	border-color: #fee500;
	background: #fee500;
	color: rgb(0 0 0 / 85%);
}
.social-google,
.social-google:hover {
	border-color: #747775;
	background: #fff;
	color: #1f1f1f;
	font-family: "Google Sans", Arial, sans-serif;
}
.social-button:hover:not(:disabled) {
	box-shadow: inset 0 0 0 1px currentColor;
}
.social-button:active:not(:disabled) {
	transform: translateY(1px);
}
.login-status {
	min-height: 1.5em;
	font-size: 13px;
	color: var(--muted);
}
.invite-status {
	font-size: 13px;
	color: var(--green);
}
.manual-invite {
	font-size: 13px;
	color: var(--muted);
}
.manual-invite summary {
	width: fit-content;
	margin: auto;
	padding: 4px;
}
.manual-invite label {
	margin-top: 16px;
	text-align: left;
}
.manual-invite input {
	margin-top: 6px;
}
.manual-invite .fine {
	margin-top: 8px;
}
.admin-invite-link {
	display: flex;
	gap: 8px;
	margin: 6px 0 12px;
}
.admin-invite-link input {
	min-width: 0;
	flex: 1;
}
.admin-invite-link button {
	flex: none;
}
.waitlist-card .waitlist-name {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
	overflow-wrap: anywhere;
}
.waitlist-actions {
	display: grid;
	gap: 10px;
	margin: 24px 0 16px;
}
.waitlist-actions .text-button,
.waitlist-signout {
	font-size: 13px;
}
.waitlist-card .login-status {
	min-height: 3em;
	text-wrap: pretty;
}
.waitlist-signout {
	margin-top: 16px;
}
.admin-waitlist-section {
	margin: 24px 0;
}
.admin-waitlist-section > .fine {
	margin: 8px 0 16px;
	max-width: 60ch;
}
.waitlist-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}
.waitlist-person {
	min-width: 0;
	overflow-wrap: anywhere;
}
.waitlist-person p {
	margin-top: 4px;
}
.waitlist-row button {
	flex-shrink: 0;
}
.legacy-invitation {
	margin: 20px 0;
	font-size: 13px;
	color: var(--muted);
}
@media (max-width: 600px) {
	.waitlist-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}
.environment {
	background: var(--sage);
	padding: 12px 16px;
	border-radius: 6px;
	color: var(--muted);
}
.login-card .environment {
	margin-top: 16px;
	padding: 0;
	background: transparent;
	font-size: 13px;
}
.login-card #pilot-note {
	margin-top: 20px;
}
.workspace {
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	height: 100dvh;
}
.sidebar {
	background: #f1f4ee;
	border-right: 1px solid var(--line);
	padding: 30px 18px 16px;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.sidebar .brand {
	margin: 0 12px 30px;
}
nav {
	display: grid;
	gap: 4px;
}
.nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 12px;
	border-radius: 6px;
	color: var(--muted);
	font-weight: 500;
	text-decoration: none;
}
.nav-item span {
	font-size: 13px;
	font-weight: 400;
}
.nav-item:hover {
	background: #e7ede2;
}
.nav-item.active {
	color: var(--green);
	background: #dfe9d8;
	font-weight: 650;
}
.history-panel {
	margin-top: 30px;
	min-height: 0;
	overflow: auto;
	flex: 1;
}
summary {
	padding: 10px 0;
	font-weight: 500;
}
.history-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	margin: 8px 0 14px;
}
.history-actions button {
	font-size: 13px;
	padding: 8px;
}
.search-label input {
	font-size: 13px;
}
.sessions {
	display: grid;
	gap: 4px;
	margin-top: 14px;
}
.session {
	text-align: left;
	width: 100%;
	border: 0;
	padding: 10px 12px;
	overflow: hidden;
}
.session strong {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 14px;
	font-weight: 500;
}
.session small {
	display: block;
	margin-top: 5px;
}
.session.selected {
	background: #e4ebde;
}

.main-content {
	min-width: 0;
	min-height: 0;
	overflow: auto;
}
.practice {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 1080px;
	margin: auto;
	padding: 32px clamp(24px, 4vw, 64px) 24px;
	min-height: 550px;
}
.page-header {
	margin-bottom: 24px;
}
.page-header p {
	margin-top: 8px;
}
.mode-note {
	font-size: 13px;
	color: var(--muted);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.messages {
	flex: 1;
	min-height: 100px;
	overflow-y: auto;
	overflow-wrap: anywhere;
	padding: 24px 8px 16px 0;
}
.empty {
	max-width: 52ch;
	margin: clamp(20px, 7vh, 72px) 0;
}
.empty h2 {
	font:
		27px / 1.3 Georgia,
		serif;
	margin-bottom: 12px;
}
.empty p {
	color: var(--muted);
	line-height: 1.7;
}
.message {
	margin-bottom: 28px;
	max-width: 72ch;
}
.message.user {
	padding: 16px 20px;
	background: var(--sage);
	border-radius: 8px;
}
.message-label {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 8px;
	font-size: 13px;
}
.message-label time {
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.message p {
	white-space: pre-wrap;
	line-height: 1.8;
}
.turn-status:not(:empty),
.archived-note {
	margin: 12px 0;
	color: var(--muted);
}
.retry {
	align-self: flex-start;
	margin-bottom: 12px;
}
.composer {
	border-top: 1px solid var(--line);
	padding-top: 16px;
}
.composer textarea {
	display: block;
	margin-top: 8px;
	min-height: 105px;
	max-height: 40dvh;
}
.composer-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	font-size: 13px;
	color: var(--muted);
}
#composer-hint {
	flex: 1;
}
#count {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.writing-guide {
	padding: 20px 0 8px;
}
.writing-guide h2 {
	font-size: 15px;
}
.prompt-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.prompt-list button {
	text-align: left;
	font-size: 14px;
	background: #fff;
	padding: 8px 12px;
}
.prompt-list button:hover {
	background: var(--sage);
}
/* An empty writing session gives its space to the editor, not an empty transcript. */
.practice:has(#writing-guide:not([hidden])):has(#messages:empty) .messages {
	flex: 0;
	min-height: 20px;
	padding: 0;
}
.practice:has(#writing-guide:not([hidden])):has(#messages:empty) .composer {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.practice:has(#writing-guide:not([hidden])):has(#messages:empty)
	.composer
	textarea {
	flex: 1;
	min-height: 180px;
	max-height: none;
}
.settings-page {
	max-width: 940px;
	padding: 32px clamp(24px, 4vw, 64px) 64px;
	margin: auto;
}
.settings-page > .environment {
	margin-bottom: 28px;
}
fieldset {
	margin: 0 0 30px;
	padding: 0;
	border: 0;
}
legend {
	padding: 0;
	margin-bottom: 20px;
}
fieldset + fieldset {
	border-top: 1px solid var(--line);
	padding-top: 28px;
}
fieldset + fieldset legend {
	float: left;
	width: 100%;
}
fieldset + fieldset legend + * {
	clear: both;
}
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 24px;
}
fieldset > label + label {
	margin-top: 20px;
}
.form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 16px 0;
	position: sticky;
	bottom: 0;
	background: var(--paper);
	border-top: 1px solid var(--line);
}
.header-actions {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 20px;
}
.header-actions button {
	flex-shrink: 0;
}
#memory-page { width:100%; max-width:900px; padding-top:32px; }
#memory-page > .page-header { align-items:center; margin-bottom:32px; }
#memory-page h1 { font-family:inherit; font-size:24px; line-height:1.4; font-weight:700; letter-spacing:-.02em; }
#memory-page > .page-header p { margin:8px 0 0; font-size:14px; }
#memory-page #refresh-memory { padding:8px 0; font-size:13px; text-decoration:underline; text-underline-offset:4px; }
#memory-page .memory-status { margin:0 0 24px; padding:0; color:var(--muted); font-size:13px; line-height:1.7; }
#memory-page .memory-section { margin:0 0 32px; padding:0; border:0; }
#memory-page .memory-section h2 { margin:0 0 8px; font-size:16px; line-height:1.6; font-weight:700; }
#memory-page .memory-help { margin:0 0 12px; color:var(--muted); font-size:13px; line-height:1.7; }
#memory-page .memory-list { border-block:1px solid var(--line); }
#memory-page .memory-list > .fine { margin:0; padding:20px 0; font-size:14px; }
#memory-page .fact { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
#memory-page .fact:last-child { border-bottom:0; }
#memory-page .fact > p { min-width:0; margin:0; max-width:70ch; font-size:15px; line-height:1.85; }
#memory-page .memory-wording { min-width:0; flex:1; }
#memory-page .memory-wording > p { margin:0; max-width:70ch; font-size:15px; line-height:1.85; }
#memory-page .memory-wording .memory-raw { margin-top:8px; }
#memory-page .memory-wording .memory-raw summary { font-size:12px; }
#memory-page .fact > button { flex:none; margin:3px 0 0; padding:4px 0; font-size:12px; text-decoration:underline; text-underline-offset:4px; }
#memory-page .memory-edit-actions { display:flex; flex-direction:column; gap:12px; margin-top:16px; }
#memory-page .memory-edit > summary,#memory-page .memory-history > summary,#memory-page .memory-diagnostics > summary { width:fit-content; color:var(--muted); cursor:pointer; font-size:13px; line-height:1.7; padding-block:4px; }
#memory-page .memory-edit form { max-width:600px; margin:16px 0 8px; }
#memory-page .memory-edit form > p { margin:0 0 16px; }
#memory-page .memory-edit label { font-size:13px; }
#memory-page .memory-edit textarea { margin-top:8px; font-size:14px; line-height:1.7; }
#memory-page .memory-edit label + label { margin-top:16px; }
#memory-page .memory-edit form button { margin-top:12px; padding:8px 12px; font-size:13px; }
#memory-page .memory-history { margin:0 0 20px; }
#memory-page .memory-history > p { margin:12px 0 4px; line-height:1.7; }
#memory-page .memory-history .fact { display:block; }
#memory-page .memory-history .fact p { margin:0; }
#memory-page .memory-history .fact s { display:block; margin-bottom:8px; color:var(--muted); font-size:13px; line-height:1.7; }
#memory-page .memory-diagnostics { border-top:1px solid var(--line); padding-top:16px; font-size:13px; }
#memory-page .memory-diagnostics p { max-width:70ch; margin:12px 0; line-height:1.7; }
#memory-page .memory-raw { min-width:0; width:100%; }
#memory-page .memory-raw summary { width:fit-content; font-size:14px; line-height:1.8; color:var(--muted); cursor:pointer; }
#memory-page .memory-raw pre { max-width:100%; margin:12px 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.7; }
#memory-page .memory-raw button { margin-top:0; font-size:12px; }
.memory-counts { display:grid; grid-template-columns:1fr auto; max-width:420px; gap:8px; font-size:13px; }
.memory-counts dd { margin:0; font-variant-numeric:tabular-nums; }
@media(max-width:600px) {
 #memory-page { padding:24px 20px 40px; }
 #memory-page > .page-header { gap:16px; align-items:flex-start; margin-bottom:24px; }
 #memory-page h1 { font-size:22px; }
 #memory-page .fact { gap:16px; }
 #memory-page .fact > button { min-height:36px; margin-top:0; }
}
@media (max-width: 1000px) {
	.workspace {
		grid-template-columns: 216px minmax(0, 1fr);
	}
	.sidebar {
		padding-inline: 12px;
	}
	.form-grid {
		gap: 20px;
	}
	.composer-footer {
		flex-wrap: wrap;
		gap: 10px;
	}
	#composer-hint {
		flex-basis: 100%;
	}
	#count {
		flex: 1;
	}
}
@media (max-width: 700px) {
	.workspace {
		display: block;
		height: auto;
	}
	.sidebar {
		padding: 18px 16px 10px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
	.sidebar .brand {
		margin: 0 0 18px;
		font-size: 30px;
	}
	nav {
		grid-template-columns: 1fr 1fr;
		gap: 4px;
	}
	.nav-item {
		padding: 10px 4px;
		min-height: 44px;
		justify-content: center;
		text-align: center;
		font-size: 13px;
	}
	.nav-item span {
		display: none;
	}
	.history-panel {
		margin-top: 12px;
		flex: auto;
	}
	.history-content {
		max-height: 300px;
		overflow: auto;
	}

	.main-content {
		overflow: visible;
	}
	.practice {
		height: calc(100dvh - 190px);
		min-height: 570px;
		padding: 24px 20px 20px;
	}
	.page-header {
		margin-bottom: 18px;
	}
	h1 {
		font-size: 25px;
	}
	.settings-page {
		padding: 24px 20px 48px;
	}
	.form-grid {
		grid-template-columns: 1fr;
	}
	.header-actions {
		flex-wrap: wrap;
	}
	.empty {
		margin: 20px 0;
	}
	.empty h2 {
		font-size: 24px;
	}
	.writing-guide {
		padding-top: 16px;
	}
	.prompt-list {
		display: grid;
	}
	.prompt-list button {
		min-height: 44px;
	}
	.practice:has(#writing-guide:not([hidden])) {
		height: auto;
	}
	.practice:has(#writing-guide:not([hidden])) .messages:empty {
		min-height: 12px;
	}
	.login-shell {
		padding: 24px 16px;
	}
	.login-card {
		padding: 28px 24px 20px;
	}
	.login-card h1 {
		font-size: 22px;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.nav-item {
		transition: background-color 120ms ease-out;
	}
}

/* Account controls stay out of primary practice navigation. */
.app-toolbar {
	height: 56px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 0 28px;
	position: sticky;
	top: 0;
	z-index: 3;
	background: var(--paper);
}
.account-menu {
	position: relative;
}
.account-menu summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-radius: 6px;
	list-style: none;
}
.account-menu summary::-webkit-details-marker {
	display: none;
}
.account-menu summary:hover {
	background: var(--sage);
}
.account-options {
	position: absolute;
	top: 100%;
	right: 0;
	width: 190px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--paper);
}
.account-options a,
.account-options button {
	display: block;
	width: 100%;
	padding: 10px 12px;
	text-align: left;
	text-decoration: none;
	border-radius: 4px;
}
.account-options a:hover {
	background: var(--sage);
}
.practice {
	height: calc(100% - 56px);
	padding-top: 12px;
}
.settings-page {
	padding-top: 12px;
}
.setup-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
	font-size: 13px;
	color: var(--muted);
	padding: 10px 0;
}
.setup-bar button {
	flex-shrink: 0;
}
.setup-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 30px;
}
.preference-receipt {
	font-size: 13px;
	color: var(--muted);
	padding-top: 12px;
	line-height: 1.6;
}
@media (max-width: 700px) {
	nav {
		grid-template-columns: 1fr 1fr;
	}
	.app-toolbar {
		padding: 0 10px;
		height: 48px;
	}
	.practice {
		height: calc(100dvh - 238px);
	}
	.setup-bar {
		align-items: start;
	}
	.setup-actions {
		flex-wrap: wrap;
		gap: 14px;
	}
}

@media (max-width: 700px) {
	.app-toolbar {
		position: absolute;
		top: 10px;
		right: 10px;
		height: 44px;
		padding: 0;
		background: transparent;
	}
	.practice {
		height: calc(100dvh - 190px);
	}
}

.practice-heading {
	display: flex;
	align-items: center;
	gap: 14px;
}
.practice-heading h1 {
	margin-bottom: 2px;
}
.practice-heading p {
	margin: 0;
}
#account-avatar,
#companion-avatar {
	display: inline-flex;
	flex-shrink: 0;
}
.identity-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}
.identity-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
	padding: 12px 18px;
}
.identity-choice small {
	display: block;
	color: var(--muted);
}
.message-label {
	align-items: center;
}
#avatar-dialog {
	color: var(--ink);
	background: var(--paper);
	width: min(960px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 16px;
}
#avatar-dialog::backdrop {
	background: rgb(20 36 29 / 35%);
}
.avatar-customizer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
}
.avatar-dialog-header {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 28px;
	border-bottom: 1px solid var(--line);
}
.avatar-dialog-header h2 {
	font-size: 24px;
	margin: 0;
}
.avatar-dialog-header button {
	display: inline-flex;
}
.avatar-options {
	overflow-y: auto;
	max-height: 560px;
	padding: 24px 28px;
}
.avatar-options fieldset {
	border: 0;
	margin: 0 0 28px;
	padding: 0;
}
.avatar-options legend {
	margin-bottom: 12px;
	font-weight: 600;
}
.avatar-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.avatar-option {
	position: relative;
	display: flex;
	align-items: center;
	flex-direction: column;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 8px;
	gap: 2px;
	font-size: 14px;
}
.avatar-option:hover {
	background: var(--sage);
}
.avatar-option:has(input:checked) {
	border-color: var(--green);
	background: var(--sage);
}
.avatar-option:has(input:focus-visible) {
	outline: 2px solid var(--green);
	outline-offset: 3px;
}
.avatar-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	opacity: 0;
}
.avatar-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: var(--sage);
	padding: 28px;
	text-align: center;
}
.avatar-preview h3,
.avatar-preview p {
	margin: 0;
}
.avatar-preview label {
	text-align: left;
	width: 100%;
}
.avatar-preview .primary {
	width: 100%;
	margin-top: 8px;
}
#avatar-error {
	color: #8b312d;
}
@media (max-width: 700px) {
	.avatar-customizer {
		grid-template-columns: minmax(0, 1fr);
	}
	.avatar-dialog-header {
		padding: 16px;
	}
	.avatar-dialog-header h2 {
		font-size: 20px;
	}
	.avatar-preview {
		grid-row: 2;
		padding: 16px;
		gap: 8px;
	}
	#avatar-large agent-avatar {
		--size: 80px !important;
	}
	.avatar-preview .fine,
	#avatar-description {
		display: none;
	}
	.avatar-options {
		max-height: 300px;
		padding: 20px;
	}
	.avatar-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.avatar-option {
		padding: 4px;
		font-size: 13px;
	}
	.identity-choice {
		flex: 1 1 220px;
	}
}

/* Daily practice: a quiet writing workspace, with the companion given room to breathe. */
.workspace {
	grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
	padding: 28px 16px 16px;
	background: #f3f4ef;
	border: 0;
	gap: 8px;
}
.sidebar .brand {
	font-size: 30px;
	margin: 0 12px 22px;
}
.new-conversation {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	background: var(--paper);
	margin-bottom: 12px;
	border-color: var(--line);
	border-radius: 10px;
}
.nav-item {
	justify-content: flex-start;
	gap: 12px;
	padding: 12px;
	border-radius: 8px;
}
.nav-item span {
	font-size: 14px;
	font-weight: 500;
}
.nav-item.active {
	background: #e1e9de;
}
.history-panel {
	margin-top: 24px;
}
.history-panel > summary {
	font-size: 12px;
	color: var(--muted);
	padding: 8px 10px;
}
.history-actions {
	margin: 0;
	justify-content: flex-end;
}
.history-actions button {
	min-height: 32px;
	text-decoration: none;
	padding: 4px 10px;
}
.search-label input {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	padding: 8px 10px;
}
.sessions {
	margin-top: 12px;
	gap: 6px;
}
.session {
	padding: 10px;
	border-radius: 8px;
}
.session strong {
	font-size: 13px;
}
.session small {
	font-size: 12px;
	margin-top: 3px;
}
.sidebar-account {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.account-menu summary {
	min-height: 52px;
	gap: 10px;
}
.account-menu summary > svg {
	margin-left: auto;
}
.account-options {
	top: auto;
	bottom: calc(100% + 8px);
	left: 0;
	right: auto;
	width: 204px;
	z-index: 6;
}
.main-content {
	background: var(--paper);
}
.app-toolbar {
	height: 58px;
	padding: 0 36px;
	justify-content: space-between;
	border-bottom: 1px solid #e8ece5;
	font-size: 13px;
	color: var(--muted);
}
#today-label {
	font-variant-numeric: tabular-nums;
}
.practice {
	padding: 24px clamp(28px, 5vw, 80px) 24px;
	max-width: 1080px;
	height: calc(100% - 58px);
	min-height: 560px;
}
.practice-heading {
	gap: 22px;
	margin-bottom: 12px;
	flex-shrink: 0;
}
.practice-heading h1 {
	font:
		400 34px / 1.2 Georgia,
		serif;
	letter-spacing: -0.025em;
}
.practice-heading p {
	margin-top: 8px;
	font-size: 13px;
}
#companion-presence {
	padding: 0;
	border: 0;
	background: none;
	border-radius: 50%;
	flex-shrink: 0;
	width: 104px;
	height: 104px;
}
#companion-presence:disabled {
	opacity: 1;
}
.companion-state {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-top: 5px;
}
.mode-note {
	border: 0;
	padding: 0 0 14px;
	font-size: 12px;
}
.messages {
	padding: 24px 12px 20px 0;
}
.message {
	max-width: 70ch;
	margin-bottom: 32px;
}
.message.user {
	margin-left: auto;
	max-width: 62ch;
	background: #f0f2ec;
	padding: 16px 20px;
	border-radius: 14px 14px 4px 14px;
}
.message.assistant {
	padding: 0 8px;
}
.message-label {
	gap: 10px;
	margin-bottom: 6px;
}
.message-label time {
	margin-left: auto;
	font-size: 12px;
}
.message p {
	font-size: 16px;
	line-height: 1.85;
}
.composer {
	flex-shrink: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px 18px 12px;
}
.composer > label {
	font-size: 12px;
	color: var(--muted);
	font-weight: 500;
}
.composer textarea {
	margin-top: 2px;
	padding: 8px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	min-height: 68px;
	height: 76px;
	max-height: 240px;
	font-size: 16px;
	resize: vertical;
}
.composer textarea:focus-visible {
	outline: 0;
}
.composer:focus-within {
	border-color: var(--green);
	outline: 1px solid var(--green);
	outline-offset: 1px;
}
.composer-footer {
	margin-top: 8px;
	gap: 12px;
	font-size: 12px;
}
.composer-footer .primary {
	border-radius: 10px;
	min-width: 78px;
}
#composer-hint {
	flex-basis: auto;
}
.empty {
	margin: 24px auto;
	text-align: center;
	max-width: 46ch;
}
.empty h2 {
	font-size: 25px;
}
.practice.is-empty[data-mode="conversation"] .practice-heading {
	margin-top: clamp(12px, 6vh, 56px);
	justify-content: center;
}
.practice.is-empty[data-mode="conversation"] .mode-note {
	text-align: center;
}
.practice[data-mode="writing"] {
	display: flex;
	height: auto;
	min-height: calc(100% - 58px);
	padding-top: 36px;
}
.practice[data-mode="writing"] .practice-heading {
	margin-bottom: 12px;
}
.practice[data-mode="writing"] .mode-note {
	display: none;
}
.writing-guide {
	padding: 18px 0 24px;
}
.writing-guide h2 {
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}
.prompt-list {
	display: grid;
	gap: 0;
	margin-top: 10px;
}
.prompt-list button {
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid #e4e9e0;
	padding: 10px 4px;
	background: none;
	color: var(--ink);
	font-size: 14px;
}
.prompt-list button[aria-pressed="true"] {
	color: var(--green);
	font-weight: 600;
	background: var(--sage);
	padding-inline: 12px;
	border-radius: 6px;
}
.practice[data-mode="writing"] .composer {
	order: initial;
	padding: 24px 28px 16px;
	border-radius: 12px;
	min-height: 320px;
}
.practice[data-mode="writing"] .composer textarea {
	min-height: 200px;
	max-height: 600px;
	height: 220px;
	font:
		400 19px / 1.85 Georgia,
		serif;
}
.writing-question {
	font-size: 15px;
	line-height: 1.6;
	margin: 10px 0;
	color: var(--green);
}
#writing-history-label {
	font-size: 16px;
	font-weight: 500;
	padding-top: 40px;
}
.practice[data-mode="writing"] .messages {
	overflow: visible;
	flex: none;
	min-height: 0;
	padding-top: 24px;
}
.settings-page {
	max-width: 900px;
	padding: 36px clamp(28px, 5vw, 64px) 64px;
}
.settings-page h1 {
	font:
		400 36px / 1.2 Georgia,
		serif;
}
.settings-page .page-header p {
	max-width: 54ch;
	line-height: 1.7;
}
#settings-environment {
	background: none;
	padding: 0;
	font-size: 13px;
	max-width: 68ch;
}
.identity-choices {
	gap: 16px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 28px;
}
.identity-choice {
	padding: 20px;
	gap: 12px;
	border-radius: 12px;
	background: #f0f3eb;
	border: 0;
	flex-direction: column;
	text-align: center;
}
.identity-choice small {
	margin-top: 5px;
}
.form-actions {
	border-top: 1px solid var(--line);
	padding-block: 16px;
}
.avatar-state-controls {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	width: 100%;
}
.avatar-state-controls button {
	min-height: 34px;
	font-size: 12px;
	padding: 6px 8px;
	border-color: transparent;
}
.avatar-state-controls button[aria-pressed="true"] {
	background: var(--paper);
	border-color: var(--line);
}
.avatar-cycle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 400;
}
.avatar-cycle input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--green);
}
.avatar-preview {
	gap: 10px;
	padding: 22px;
}
#avatar-description {
	font-size: 13px;
}
#avatar-motion-note {
	font-size: 12px;
}
@media (prefers-reduced-motion: no-preference) {
	#companion-presence[data-state="idle"]
		agent-avatar[data-in-view]:not([data-paused]) {
		animation: mori-rest 11s ease-in-out infinite;
		transform-origin: 50% 85%;
	}
	#companion-presence.greeting agent-avatar[data-in-view]:not([data-paused]) {
		animation: mori-greeting 1.5s ease-out;
	}
	@keyframes mori-rest {
		0%,
		35%,
		75%,
		100% {
			transform: rotate(0);
		}
		45%,
		55% {
			transform: rotate(-3deg) translateY(-2px);
		}
		85% {
			transform: rotate(2deg);
		}
	}
	@keyframes mori-greeting {
		0%,
		100% {
			transform: rotate(0);
		}
		20% {
			transform: rotate(-7deg);
		}
		45% {
			transform: rotate(6deg);
		}
		70% {
			transform: rotate(-3deg);
		}
	}
}
@media (max-width: 1100px) and (min-width: 901px) {
	.workspace {
		grid-template-columns: 212px minmax(0, 1fr);
	}
	.practice {
		padding-inline: 28px;
	}
}
@media (max-width: 900px) {
	.workspace {
		display: block;
		height: auto;
		min-height: 100dvh;
	}
	.sidebar {
		position: relative;
		padding: 18px 20px 10px;
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 8px 16px;
		border-bottom: 1px solid var(--line);
	}
	.sidebar .brand {
		font-size: 28px;
		margin: 0;
		align-self: center;
	}
	.sidebar nav {
		grid-column: 1 / -1;
		grid-row: 2;
		display: flex;
		gap: 8px;
		padding-top: 8px;
	}
	.nav-item {
		padding: 8px 12px;
		min-height: 42px;
		gap: 8px;
		text-align: left;
		justify-content: flex-start;
	}
	.nav-item span {
		display: inline;
		font-size: 13px;
	}
	.sidebar-account {
		position: absolute;
		right: 16px;
		top: 10px;
		border: 0;
		padding: 0;
		margin: 0;
	}
	.account-menu summary {
		padding: 4px;
		min-height: 44px;
	}
	.account-options {
		top: calc(100% + 8px);
		bottom: auto;
		right: 0;
		left: auto;
	}
	.new-conversation {
		grid-column: 2;
		grid-row: 2;
		padding: 8px;
		min-height: 42px;
		margin: 8px 0 0;
		width: 42px;
		z-index: 1;
	}
	.new-conversation span {
		display: none;
	}
	.history-panel {
		grid-column: 1 / -1;
		margin: 0;
		overflow: visible;
	}
	.history-panel > summary {
		padding: 5px 4px;
		min-height: 30px;
	}
	.history-content {
		position: absolute;
		top: 100%;
		left: 12px;
		right: 12px;
		padding: 12px;
		z-index: 5;
		background: var(--paper);
		border: 1px solid var(--line);
		border-radius: 12px;
		max-height: 55dvh;
		overflow: auto;
	}
	.app-toolbar {
		position: static;
		height: 44px;
		padding: 0 24px;
		background: var(--paper);
		border: 0;
		font-size: 12px;
	}
	.main-content {
		overflow: visible;
	}
	.practice {
		height: calc(100dvh - 202px);
		min-height: 540px;
		padding: 16px 24px 24px;
	}
	.practice-heading {
		gap: 16px;
	}
	.practice-heading h1 {
		font-size: 29px;
	}
	#companion-presence {
		width: 88px;
		height: 88px;
	}
	#companion-avatar agent-avatar {
		--size: 88px !important;
	}
	.practice[data-mode="writing"] {
		padding-top: 16px;
		min-height: 0;
	}
	.composer-footer {
		flex-wrap: wrap;
	}
	#composer-hint {
		flex: 1;
		font-size: 12px;
	}
	.settings-page {
		padding: 20px 24px 48px;
	}
	.settings-page h1 {
		font-size: 30px;
	}
	.form-grid {
		grid-template-columns: 1fr 1fr;
	}
	.avatar-preview {
		padding: 16px;
	}
	.avatar-state-controls {
		grid-template-columns: repeat(4, 1fr);
	}
	.avatar-preview .avatar-cycle {
		display: flex;
	}
	.avatar-preview #avatar-motion-note {
		display: none;
	}
	#avatar-large agent-avatar {
		--size: 100px !important;
	}
}
@media (max-width: 480px) {
	.sidebar {
		padding-inline: 16px;
	}
	.practice,
	.settings-page {
		padding-inline: 18px;
	}
	.practice-heading h1 {
		font-size: 26px;
	}
	.practice-heading p {
		font-size: 12px;
	}
	.identity-choices {
		gap: 10px;
	}
	.identity-choice {
		padding: 16px 10px;
		font-size: 14px;
	}
	.identity-choice small {
		font-size: 12px;
	}
	.form-grid {
		grid-template-columns: 1fr;
	}
	.composer {
		padding: 12px;
	}
	.practice[data-mode="writing"] .composer {
		padding: 20px 16px 12px;
	}
	#composer-hint {
		flex-basis: 100%;
	}
	.message-label time {
		font-size: 12px;
	}
	.avatar-dialog-header h2 {
		font-size: 18px;
	}
	.avatar-options {
		max-height: 240px;
	}
}
.interface-settings {
	margin-bottom: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--line);
}
.interface-controls {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 8px;
}
.interface-controls select {
	max-width: 220px;
}
.interface-controls button {
	flex-shrink: 0;
}
html[lang="ko"] {
	font-family:
		"NanumSquare Neo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	line-height: 1.65;
}
html[lang="ko"] .practice-heading h1,
html[lang="ko"] .settings-page h1,
html[lang="ko"] .empty h2 {
	font-family: inherit;
	font-weight: 700;
	letter-spacing: -0.025em;
}
html[lang="ko"] .practice[data-mode="writing"] .composer textarea {
	font-family: inherit;
	font-size: 18px;
}
@media (max-width: 480px) {
	.interface-controls {
		flex-wrap: wrap;
	}
}

.app-information {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}
.app-information summary {
	font-size: 13px;
}
.app-information h2 {
	font-size: 14px;
	margin: 14px 0 8px;
}
.app-information a {
	display: inline-block;
	margin-top: 8px;
}
/* Optional practice tools stay below the companion, outside the daily writing editor. */
.practice-tools,
.source-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.practice-tools {
	margin: 0 0 12px;
}
.practice-materials {
	border-block: 1px solid var(--line);
	padding: 16px 0;
	margin-bottom: 24px;
}
.practice-materials summary {
	font-weight: 700;
}
.practice-materials form {
	margin-top: 20px;
}
.source-actions input {
	flex: 1;
	min-width: 180px;
}
.practice-source {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}
.practice-source > a {
	font-weight: 700;
	overflow-wrap: anywhere;
}
.practice-source p {
	font-size: 14px;
	line-height: 1.7;
}
.source-excerpt {
	max-width: 70ch;
	color: var(--muted);
}
.attached-source {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 0;
	font-size: 13px;
}
.attached-source a {
	overflow-wrap: anywhere;
}
.coaching-options {
	margin: 0 0 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}
.coaching-options summary {
	font-weight: 700;
}
.coaching-options form {
	margin-top: 20px;
}
.check-label {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 14px 0;
}
.check-label input {
	width: 18px;
	min-height: 18px;
	accent-color: var(--green);
}

/* A writing desk: the document, rather than conversation bubbles, owns the space. */
.journal-page {
	max-width: 1160px;
	margin: 0 auto;
	padding: 24px 40px 60px;
	width: 100%;
	overflow-y: auto;
}
.journal-page > .page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}
.journal-layout {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 38px;
	align-items: start;
}
.journal-library h2 {
	font-size: 12px;
	font-weight: 700;
	color: var(--muted, #66776e);
	margin: 0 0 14px;
}
.journal-entry {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 7px;
	width: 100%;
	border: 0;
	background: transparent;
	border-radius: 6px;
	padding: 12px;
	margin: 0 0 4px;
}
.journal-entry strong {
	font-size: 13px;
	font-weight: 400;
	overflow-wrap: anywhere;
}
.journal-entry span {
	font-size: 11px;
	color: #65746b;
}
.journal-entry[aria-current="true"] {
	background: #e8eee4;
}
.journal-paper {
	background: #fffefa;
	padding: 28px 36px 20px;
	border: 1px solid #e0e4dc;
	border-radius: 8px;
	min-width: 0;
}
#journal-title {
	font-size: 27px;
	font-weight: 700;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 8px 0;
	width: 100%;
	box-shadow: none;
}
.journal-prompt {
	font-size: 13px;
	line-height: 1.8;
	color: #69766e;
	margin: 10px 0 24px;
}
.journal-toolbar {
	display: flex;
	align-items: center;
	gap: 4px;
	border-block: 1px solid #e7e9e2;
	padding: 6px 0;
	flex-wrap: wrap;
}
.journal-toolbar button {
	padding: 6px 9px;
	min-height: 34px;
	border: 0;
	background: transparent;
	font-size: 12px;
}
.journal-toolbar button[aria-pressed="true"] {
	background: #e1e9dd;
	color: #244c3e;
}
.toolbar-spacer {
	flex: 1;
}
#journal-editor .tiptap {
	min-height: 320px;
	outline: none;
	padding: 24px 0;
	font-size: 16px;
	line-height: 1.95;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}
#journal-editor .tiptap:focus-visible {
	outline: 2px solid #aab9a4;
	outline-offset: 7px;
}
#journal-editor p {
	margin: 0 0 1em;
}
#journal-editor h1 {
	font-size: 25px;
}
#journal-editor h2 {
	font-size: 21px;
}
#journal-editor ul,
#journal-editor ol {
	padding-left: 1.5em;
}
#journal-editor blockquote {
	border-left: 3px solid #aebda7;
	padding-left: 18px;
	margin: 18px 0;
	color: #50634f;
}
.journal-save-row {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 12px;
	color: #5d7064;
}
#journal-status {
	flex: 1;
	min-width: 100px;
}
.journal-sharing {
	border-top: 1px solid #e7e9e2;
	margin-top: 20px;
	padding-top: 18px;
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
}
.journal-sharing p {
	line-height: 1.7;
	max-width: 320px;
	margin: 0;
}
.journal-sharing button {
	flex-shrink: 0;
}
@media (max-width: 900px) {
	.journal-page {
		padding: 20px;
	}
	.journal-layout {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.journal-library #journal-entries {
		display: flex;
		gap: 8px;
		overflow: auto;
	}
	.journal-entry {
		min-width: 150px;
		max-width: 200px;
	}
	.journal-paper {
		padding: 20px;
	}
	.journal-sharing {
		align-items: flex-start;
		flex-direction: column;
	}
}
.speech-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 8px 0;
	color: var(--muted);
	font-size: 12px;
}
#speech-player {
	display: none;
}
.listen-reply {
	font-size: 12px;
	margin-top: 5px;
}
.voice-settings {
	padding: 18px 0;
	border-bottom: 1px solid #e1e6dd;
}
.voice-settings > label {
	margin-top: 14px;
}
.voice-settings select {
	max-width: 150px;
}

/* Approved companion workspace: forest sidebar and warm reading paper. */
:root { --paper:#fcfcf8; --sage:#eef2e6; --ink:#243c33; }
.sidebar { background:#2c5547; color:#f4f6e9; border-right:0; }
.sidebar .brand,.sidebar a,.sidebar button,.sidebar summary { color:#f4f6e9; }
.sidebar .muted,.sidebar small { color:#c4d1c5; }
.sidebar .new-conversation { background:#e3edce; color:#233c32; border-color:transparent; }
.sidebar .new-conversation:hover { background:#d2e1b7; }
.sidebar button:hover,.sidebar summary:hover,.sidebar .nav-item:hover,.sidebar .session:hover { background:#416858; }
.sidebar .new-conversation:hover { background:#d2e1b7; color:#233c32; }
.sidebar .nav-item.active,.sidebar .session.active { background:#416858; color:#fff; }
.sidebar input { background:#304d3f; border-color:#6a8070; color:#fff; }
.sidebar input::placeholder { color:#c4d1c5; }
.sidebar :focus-visible { outline-color:#e3edce; }
.sidebar .account-options { background:#304d3f; border-color:#6a8070; }
.sidebar .account-options a:hover,.sidebar .account-options button:hover { background:#3e5b45; }
.sidebar-companion { display:flex; justify-content:center; min-height:128px; margin:-12px 0 16px; }
.practice { max-width:1060px; margin-inline:auto; width:100%; }
.message { max-width:72ch; }
.message.user { background:#eff0e6; }
.source-card { display:block; margin-block:18px 6px; padding:18px 20px; background:#f0f1e7; border:1px solid #d6ddce; border-radius:12px; font-size:15px; line-height:1.6; text-decoration:none; }
.source-card:hover { background:#e7eddb; text-decoration:underline; }
.translation-toggle { border:0; padding:4px 0; margin-block:4px; font-size:13px; color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
.translation-text { line-height:1.9; }
.practice-receipt { margin-block:8px 16px; font-size:13px; color:var(--muted); }
.practice-receipt form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding-block:12px; }
.practice-receipt input { width:160px; }
.practice-receipt small { flex-basis:100%; }
.allowance { margin-block:0 12px; font-variant-numeric:tabular-nums; }
#practice-minutes { margin-bottom:24px; }
@media(max-width:900px){
 .sidebar-companion { display:none; }
 .source-card { padding:14px; }
 .practice-receipt form { display:grid; grid-template-columns:1fr 1fr; }
 .practice-receipt input { width:100%; }
 .practice-receipt button,.practice-receipt small { grid-column:1/-1; }
}

.sidebar .session.selected { background:#416858; color:#fff; }
.sidebar .session.selected small { color:#dce6d6; }
.translation-setting { margin-block:20px; max-width:380px; }
#admin-panel { margin-bottom:24px; }
#admin-panel button { margin:8px 8px 8px 0; }
@media(max-width:480px){ .sidebar nav { gap:2px; padding-right:38px; } .sidebar .nav-item { padding:8px 5px; gap:4px; } .sidebar .nav-item span { font-size:12px; } }
@media(min-width:901px){
 .practice.has-conversation #companion-presence { width:64px; height:64px; }
 .practice.has-conversation #companion-avatar { width:64px; height:64px; }
 .practice.has-conversation .practice-heading h1 { font-size:26px; }
 .practice.has-conversation .composer textarea { min-height:60px; height:60px; }
 .sidebar .history-actions { display:none; }
}
#admin-usage { overflow-x:auto; }
#admin-usage table { border-collapse:collapse; margin-top:16px; width:100%; font-size:12px; font-variant-numeric:tabular-nums; }
#admin-usage th,#admin-usage td { padding:8px; text-align:left; border-bottom:1px solid var(--line); }
