@charset "UTF-8";

:root {
	color-scheme: light;
	font-family: "Nunito", sans-serif;
	color: #3F527C;
	background: var(--page-bg);
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	--ink: #3F527C;
	--muted: #AEAFAD;
	--line: rgba(136, 167, 201, 0.1);
	--blue: var(--ink);
	--page-bg: #fff;
	--navigation-bg: rgb(255 255 255 / 94%);
	--toolbar-icon-color: #878886;
	--shadow: 0 0 16px 4px rgb(187 189 194 / 15%);
}

* {
	box-sizing: border-box;
}

body {
	min-width: 0;
	min-height: 100vh;
	margin: 0;
	background: var(--page-bg);
}

button,
input {
	font: inherit;
}

button {
	color: inherit;
	-webkit-tap-highlight-color: transparent;
}

.quick-phrase-dropdown summary {
	-webkit-tap-highlight-color: transparent;
}

.app-shell {
	position: relative;
	width: min(100%, 480px);
	min-height: 100vh;
	margin: 0 auto;
	padding-bottom: calc(284px + env(safe-area-inset-bottom));
	background: var(--page-bg);
	box-shadow: var(--shadow);
}

.app-shell.has-sentence {
	padding-bottom: calc(332px + env(safe-area-inset-bottom));
}

.top-area {
	padding: 14px 20px 16px;
	background: var(--page-bg);
}

.app-site-link {
	align-items: center;
	text-decoration: none;
	padding-right: 0;
}

.app-site-link img {
	display: block;
	width: 120px;
	height: auto;
}

.app-site-link--desktop {
	display: inline-flex;
}

.app-site-link--mobile {
	display: none;
}

.app-site-link:focus-visible {
	outline: 3px solid #8aa7d6;
	outline-offset: 3px;
}

.search-box {
	display: flex;
	height: 60px;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	flex: 1;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	border-left: 1px solid var(--line);
	padding-left: 24px;
}

.desktop-search-row {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 40px;
	background: #fff;
	box-shadow: none;
	height: 60px;
}

.desktop-home {
	display: none;
}

.search-box input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
}

.search-box input::placeholder,
.composer-hint {
	color: #a0a9b5;
}

.search-icon {
	display: none;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	color: #a0a9b5;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.sticky-message-panel {
	margin-top: 20px;
	margin-bottom: 0;
	padding-bottom: 8px;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

@media (max-width: 759px) {
	.app-shell,
	.app-shell.has-sentence {
		padding-top: 0;
		padding-bottom: calc(104px + env(safe-area-inset-bottom));
	}

	.top-area {
		position: sticky;
		top: 0;
		z-index: 20;
		min-height: 0;
		padding: 0;
		border-radius: 0;
		background: rgb(251 252 253 / 88%);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}

	.top-area::after {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		height: 20px;
		background: linear-gradient(to bottom, rgb(251 252 253 / 88%), rgb(251 252 253 / 0%));
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
		content: "";
		pointer-events: none;
	}

	.top-area .app-site-link--mobile {
		display: none;
		margin: 16px 16px 0;
	}

	.top-area .mobile-toolbar-row {
		display: flex;
		align-items: center;
		gap: 0;
		margin: 16px 16px 0;
		padding: 8px 12px;
		border: 1px solid var(--line);
		border-radius: 40px;
		background: #fff;
		box-shadow: var(--shadow);
		height: 60px;
	}

	.app-site-link--mobile-inline {
		display: flex;
		flex: 0 0 auto;
		margin: 0;
		border-right: 1px solid var(--line);
		padding-right: 12px;
	}

	.app-site-link--mobile-inline img {
		width: 60px;
		height: auto;
	}

	.top-area .category-feature-row {
		min-width: 0;
		flex: 1;
		justify-content: flex-start;
		margin: 0;
		padding: 0 16px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		height: 60px;
		align-items: center;
		gap: 8px;
	}

	.categories {
		padding-top: 0;
	}

	.desktop-search-row {
		display: none;
	}

	.tabbar-field {
		display: none;
		min-width: 0;
		height: 36px;
		flex: 1;
		padding: 0 10px;
		border: 1px solid var(--line);
		border-radius: 22px;
		background: #fff;
		color: #3F527C;
		font: inherit;
		font-size: 14px;
		font-weight: 600;
	}

	.app-shell .tabbar-field:focus,
	.app-shell .tabbar-field:focus-visible {
		border-color: var(--line);
		outline: none;
		box-shadow: none;
	}

	.sticky-message-panel {
		margin: 0;
		padding: 0;
	}

	.app-shell.has-sentence .sticky-message-panel {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin: 32px 15px 0;
		padding: 12px 16px;
		min-height: 68px;
		border: 1px solid var(--line);
		border-radius: 40px;
		background: #fff;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	}

	.app-shell.has-sentence .sentence-clear {
		display: flex;
		align-items: center;
		justify-content: center;
		order: 3;
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
	}

	.app-shell .composer,
	.app-shell.has-sentence .composer {
		min-height: 0;
		gap: 6px;
		padding: 0;
	}

	.app-shell .composer-copy {
		padding: 4px 0;
	}

	.app-shell .greeting {
		margin: 0 0 2px;
		font-size: 22px;
	}

	.app-shell .composer-hint {
		font-size: 16px;
	}

	.app-shell .selected-words {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		padding: 2px 0;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
		mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
	}

	.app-shell .selected-words::-webkit-scrollbar {
		display: none;
	}

	.desktop-actions .desktop-category-add-button {
		display: none;
	}

	.app-shell .selected-word {
		flex: 0 0 auto;
		width: min(60vw, 190px);
		min-height: 46px;
		grid-template-columns: 34px minmax(0, 1fr) 24px;
		gap: 8px;
		padding: 5px 8px;
		border: 1px solid var(--line);
		box-shadow: none;
	}

	.app-shell .selected-word-photo {
		width: 34px;
		height: 34px;
	}

	.app-shell .selected-word-label {
		font-size: 13px;
	}

	.app-shell .selected-word-remove {
		width: 24px;
		height: 24px;
		align-self: center;
		font-size: 14px;
	}

	.app-shell.has-sentence .selected-words {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 2px 0;
		scroll-snap-type: x mandatory;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
		mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
	}

	.app-shell.has-sentence .selected-word {
		width: 60px;
		min-height: 60px;
		flex: 0 0 60px;
		grid-template-columns: 60px;
		gap: 0;
		padding: 0;
		scroll-snap-align: start;
	}

	.app-shell.has-sentence .selected-word-photo {
		width: 60px;
		height: 60px;
	}

	.app-shell.has-sentence .selected-word-label {
		font-size: 18px;
	}

	.app-shell.has-sentence .selected-word-remove {
		width: 16px;
		height: 16px;
		font-size: 12px;
	}

	.app-shell .sentence-bar {
		min-height: 52px;
		gap: 10px;
		padding: 4px 16px;
		border: 1px solid var(--line);
		border-radius: 30px;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.app-shell.has-sentence .sticky-message-panel .sentence-bar {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 8px;
		order: 1;
		flex: 1 1 auto;
		min-height: auto;
		height: auto;
		margin-top: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.app-shell.has-sentence .message-editor-column {
		display: none;
	}

	.app-shell .sentence-text {
		font-size: 15px;
		letter-spacing: .05em;
	}

	.app-shell.has-sentence .sentence-text {
		color: var(--ink);
		font-size: 16px;
		font-weight: 700;
		line-height: 1.2;
		white-space: normal;
		overflow-wrap: anywhere;
		text-transform: lowercase;
	}

	.app-shell .sentence-speak {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
	}

	.app-shell.has-sentence .sentence-speak {
		width: 44px;
		height: 44px;
		flex: 0 0 44px;
		order: 2;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.app-shell .sentence-speak img {
		width: 24px;
		height: 24px;
	}

	.app-shell .quick-phrase-dropdown {
		margin-top: 6px;
	}

	.app-shell .quick-phrases {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-height: min(40vh, 280px);
		overflow-y: auto;
		padding: 8px 0 0;
	}

	.app-shell .phrase-chip {
		width: 100%;
		min-height: 40px;
		gap: 10px;
		padding: 5px 12px;
		font-size: 13px;
	}

	.app-shell .phrase-chip > img {
		width: 20px;
		height: 20px;
		flex-basis: 20px;
	}

	.app-shell .phrase-chip b {
		width: 28px;
		height: 28px;
		flex-basis: 28px;
	}

	.tabbar {
		position: fixed;
		right: 0;
		bottom: calc(10px + env(safe-area-inset-bottom));
		left: 0;
		z-index: 30;
		display: grid;
		width: max-content;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px;
		margin: 0 auto;
		padding: 8px 12px;
		border: 1px solid rgb(135 136 134 / 24%);
		border-radius: 999px;
		background: var(--navigation-bg);
		box-shadow: var(--shadow);
		backdrop-filter: blur(12px);
	}

	.tabbar-item {
		display: grid;
		width: 100%;
		min-width: 0;
		height: 56px;
		grid-template-rows: 1fr;
		align-content: center;
		place-items: center;
		gap: 0;
		padding: 8px 4px;
		border: 2px solid transparent;
		border-radius: 40px;
		background: transparent;
		color: var(--toolbar-icon-color);
		cursor: pointer;
		transition: background-color 160ms ease, transform 160ms ease;
	}

	.tabbar-item--back {
		display: grid;
	}

	.tabbar {
		grid-template-columns: repeat(2, 56px);
	}

	.tabbar-item[aria-current="page"],
	.tabbar-item[aria-pressed="true"] {
		border-color: transparent;
		background: var(--page-bg);
		box-shadow: none;
		color: var(--toolbar-icon-color);
	}

	.tabbar-item:active {
		background: #e9edf3;
	}

	.tabbar-item svg {
		width: 24px;
		height: 24px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.5;
		stroke-linecap: round;
	}

	.tabbar-item--back svg,
	#tab-home svg {
		stroke-linejoin: round;
		stroke-width: 1.5;
	}

	.tabbar-label {
		display: none;
	}

}

.tabbar {
	display: none;
}

@media (max-width: 759px) {
	.tabbar {
		display: grid;
	}

	.app-shell:not(.is-emotion-view) .tabbar {
		display: none;
	}

	.app-shell.is-emotion-view .tabbar {
		width: max-content;
		height: auto;
		right: 16px;
		left: auto;
		grid-template-columns: repeat(2, 56px);
		margin: 0;
		padding: 8px 12px;
		border-radius: 999px;
	}
}

.app-shell.is-search-results #categories-title,
.app-shell.is-search-results .category-list,
.app-shell.is-search-results .emotion-view {
	display: none !important;
}

.search-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 8px 0;
}

.search-results[hidden] {
	display: none;
}

.search-result {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px 6px 6px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
}

.search-result-main {
	display: flex;
	min-width: 0;
	flex: 1;
	align-items: center;
	gap: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #3F527C;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.search-result-thumb {
	display: block;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	overflow: hidden;
	border-radius: 14px;
	background: #eef3f9;
}

.search-result-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 760px) {
	.search-result-thumb {
		width: 76px;
		height: 76px;
		flex-basis: 76px;
	}
}

.search-result-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.search-result-word {
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.search-result-label {
	color: #8d98a8;
	font-size: 12px;
}

.search-result-audio {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #eef3f9;
	cursor: pointer;
}

.search-result-audio img {
	width: 22px;
	height: 22px;
	filter: brightness(0) saturate(100%) invert(29%) sepia(16%) saturate(1320%) hue-rotate(184deg) brightness(92%) contrast(88%);
}

.search-results-empty {
	margin: 24px 0;
	color: #8d98a8;
	text-align: center;
}

.composer {
	display: flex;
	min-height: 90px;
	align-items: stretch;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	padding: 0 0 8px;
	border: none;
	border-radius: 0;
	background: transparent;
}

.app-shell.has-sentence .composer {
	min-height: 0;
	gap: 6px;
}

.composer-copy {
	display: flex;
	width: 100%;
	justify-content: flex-end;
	padding: 13px 16px;
	text-align: left;
}

.category-feature-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 16px;
}

.mobile-toolbar-row {
	display: none;
}

.category-search-icon {
	display: grid;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin-right: 16px;
	place-items: center;
	color: var(--toolbar-icon-color);
}

.category-search-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.category-feature-row .tabbar-field {
	display: none;
}

.app-shell.is-search-results .category-feature-row {
	display: none;
}

@media (max-width: 759px) {
	.top-area .category-feature-row .tabbar-field {
		display: block;
		padding: 0 16px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		height: 60px;
		width: 100%;
		color: var(--ink);
	}

	.top-area .category-feature-row .tabbar-field::placeholder {
		color: var(--toolbar-icon-color);
		opacity: 1;
	}

	.category-feature-row {
		justify-content: flex-end;
	}

	.app-shell.is-search-results .category-feature-row {
		display: flex;
	}
}

.category-add-button {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	order: 2;
	justify-self: end;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(136 167 201 / 10%);
	box-shadow: var(--shadow);
	color: #3F527C;
	line-height: 1;
	cursor: pointer;
}

@media (min-width: 760px) {
	.category-feature-row {
		min-height: 48px;
	}

	.category-feature-row .category-add-button {
		display: none;
	}

	.desktop-actions .desktop-category-add-button {
		display: grid;
		width: 62px;
		height: 62px;
		flex-basis: 62px;
		order: 0;
	}
}

.category-add-icon {
	display: block;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	color: currentColor;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	object-fit: contain;
}

.selected-words {
	display: grid;
	width: 100%;
	gap: 12px;
}

.selected-words[hidden],
.sentence-bar[hidden] {
	display: none !important;
}

.selected-word {
	position: relative;
	display: grid;
	min-height: 60px;
	width: 60px;
	grid-template-columns: 60px;
	grid-template-rows: 60px;
	align-items: start;
	gap: 0;
	padding: 0;
	border-radius: 40px;
	background: transparent;
	box-shadow: none;
	transition: transform 150ms ease, opacity 150ms ease;
}

.selected-word.active {
	transform: scale(0.95);
	transform-origin: center;
}

.selected-word.removing {
	transform: scale(0.5);
	opacity: 0;
	transform-origin: center;
}

.selected-word-photo {
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 50%;
	background: transparent;
	grid-column: 1;
	grid-row: 1;
}

.selected-word-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.selected-word-label {
	display: none;
	margin: 0;
	color: #3F527C;
	font-size: 18px;
	font-weight: 500;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.selected-word-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid;
	width: 24px;
	height: 24px;
	align-self: start;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	z-index: 10;
	cursor: pointer;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}
	color: #171a1d;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.sentence-bar {
	position: relative;
	z-index: auto;
	grid-column: 1 / -1;
	grid-row: 1;
	display: flex;
	width: 100%;
	min-height: 84px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 8px 16px;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.sentence-text {
	min-width: 0;
	margin: 0;
	color: #878886;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: .08em;
	line-height: 1.35;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.sentence-speak {
	display: grid;
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(136, 167, 201, 0.1);
	cursor: pointer;
}

.sentence-speak img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: invert(29%) sepia(21%) saturate(1300%) hue-rotate(205deg) brightness(103%) contrast(101%);
}

.sentence-clear {
	display: none;
	width: 44px;
	height: 44px;
	align-self: flex-end;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #878886;
	cursor: pointer;
}

.sentence-clear svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.greeting {
	display: flex;
	margin: 0 0 4px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: "Nunito", sans-serif;
	color: var(--ink);
	font-size: 40px;
	font-weight: 700;
}

.greeting > span {
	min-width: 0;
}

.composer-hint {
	margin: 0;
	font-size: 16px;
}



.quick-phrases {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 16px 16px 16px;
}

.quick-phrase-dropdown {
	display: none;
	margin: 0;
	border-radius: 0 0 40px 40px;
	background: transparent;
}

.quick-phrase-dropdown summary {
	display: inline-flex;
	width: fit-content;
	min-height: 40px;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 0;
	padding: 6px 12px;
	border: 0;
	border-radius: 24px;
	background: #fff;
	color: #878886;
	font-size: 14px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.quick-phrase-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	object-fit: contain;
}

.quick-phrase-dropdown summary::-webkit-details-marker {
	display: none;
}

.quick-phrase-chevron {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	transform: rotate(90deg);
	color: #8d98a8;
	font-size: 20px;
	font-weight: 400;
	text-align: center;
	line-height: 1;
}

.quick-phrase-dropdown[open] .quick-phrase-chevron {
	transform: rotate(-90deg);
}

.phrase-chip {
	display: flex;
	width: fit-content;
	max-width: 100%;
	flex: 0 0 auto;
	min-height: 52px;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid #e9edf2;
	border-radius: 40px;
	background: #fff;
	box-shadow: var(--shadow);
	color: #878886;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .02em;
	text-align: left;
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.phrase-chip > img {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	object-fit: contain;
}

.phrase-chip-label {
	text-transform: lowercase;
	white-space: nowrap;
}

.phrase-chip b {
	display: grid;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	margin-left: auto;
	padding: 0;
	place-items: center;
	border-radius: 50%;
	background: transparent;
	color: #878886;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.phrase-chip b img {
	display: block;
	width: 16px;
	height: 16px;
	object-fit: contain;
	filter: brightness(0);
	opacity: .47;
}

.phrase-chip:active {
	transform: scale(.98);
	border-color: #3F527C;
	background: #d0d9e6;
	color: #2f3e5e;
}

.categories {
	margin: 16px 0 calc(-107px - env(safe-area-inset-bottom));
	padding: 20px 20px calc(123px + env(safe-area-inset-bottom));
	border-radius: 0;
	background: var(--page-bg);
	box-shadow: none;
}

@media (max-width: 759px) {
	.categories {
		margin-top: 0;
		padding-right: 16px;
		padding-left: 16px;
	}
}

.categories h1 {
	margin: 4px 0 16px;
	color: #878886;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .11em;
	text-transform: uppercase;
}


@media not all {
	.app-shell.is-emotion-view .categories {
		grid-column: 1;
		grid-row: 2;
	}

	.app-shell.is-emotion-view .emotion-view {
		position: relative;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.app-shell.is-emotion-view .emotion-heading {
		grid-column: 1 / -1;
		grid-row: 1;
		min-height: 150px;
		align-items: center;
		flex-direction: row;
		justify-content: center;
		margin: -24px -24px 0;
		padding: 24px 32px;
		border-bottom-width: 2px;
	}

	.app-shell.is-emotion-view .emotion-heading img {
		width: 40px;
		height: 40px;
	}

	.app-shell.is-emotion-view .emotion-heading h2 {
		font-size: 30px;
	}

	.app-shell.is-emotion-view .emotion-grid {
		grid-column: 1 / -1;
		grid-row: 2;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
		margin: 16px 0 0;
	}

	.app-shell.is-emotion-view .emotion-view:has(.emotion-grid:not([hidden])) .emotion-grid {
		grid-row: 1;
		margin: -32px 0 0;
		padding-left: 0;
	}

	.app-shell.is-emotion-view.is-personal-cards-view .emotion-view:has(.emotion-grid:not([hidden])) .emotion-grid {
		grid-row: 1;
		margin: 0;
	}

	.app-shell.is-emotion-view .emotion-view:has(.category-subgroups:not([hidden])) .category-subgroups {
		grid-column: 1 / -1;
		grid-row: 1;
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		margin: -11px 0 0;
		padding: 0;
		border: 1px solid #fff;
		border-radius: 40px;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.app-shell.is-emotion-view .category-subgroups > * + *::before {
		position: absolute;
		top: 0;
		right: 14px;
		left: 14px;
		height: 1px;
		background: #e1e6ee;
		content: "";
	}

	.app-shell.is-emotion-view .subcategory-row {
		min-height: 72px;
		grid-template-columns: 48px minmax(0, 1fr) 20px;
		grid-template-rows: auto;
		align-items: center;
		gap: 16px;
		padding: 10px 16px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		text-align: left;
		transition: background-color 160ms ease;
	}

	.app-shell.is-emotion-view .subcategory-row .subcategory-icon {
		display: none;
	}

	.app-shell.is-emotion-view .subcategory-row .subcategory-symbol {
		border-radius: 50%;
	}

	.app-shell.is-emotion-view .subcategory-row .subcategory-symbol::before {
		--category-icon-color: #3F527C;
	}

	.app-shell.is-emotion-view .subcategory-row:hover {
		transform: none;
		background: #f8f9fb;
		box-shadow: none;
	}

	.app-shell.is-emotion-view .subcategory-row .subcategory-label {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		justify-self: start;
		margin: 0;
		padding: 0;
		font-size: clamp(13px, 4vw, 20px);
		text-align: left;
	}

	.app-shell.is-emotion-view .subcategory-row > .chevron {
		display: block;
		grid-column: 3;
		grid-row: 1;
	}

	.app-shell.is-emotion-view:not(.is-personal-cards-view) .sticky-message-panel {
		margin-top: 0;
	}

	.app-shell.is-emotion-view:has(.category-subgroups:not([hidden])) .categories {
		padding-right: 0;
	}

	.app-shell.is-emotion-view .emotion-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto 6px;
		align-content: start;
		height: auto;
		padding: 0 10px 10px;
		border-radius: 22px;
	}

	.app-shell.is-emotion-view .emotion-photo-placeholder {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.app-shell.is-emotion-view .emotion-card-tools {
		position: static;
		grid-column: 1;
		grid-row: 3;
		align-self: start;
		justify-self: center;
		width: 32px;
		height: 32px;
		min-height: 32px;
		margin: 0;
	}

	.app-shell.is-emotion-view .emotion-audio {
		display: flex;
		width: 32px;
		height: 32px;
		min-height: 32px;
		flex: 0 0 32px;
		align-items: center;
		justify-content: center;
		gap: 0;
		padding: 0;
		border-radius: 50%;
		background: #fff;
		box-shadow: var(--shadow);
		font-size: 0;
	}

	.app-shell.is-emotion-view .emotion-audio > span {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
	}

	.app-shell.is-emotion-view .emotion-audio-add {
		border-radius: 0 0 22px 22px;
	}

	.app-shell.is-emotion-view .emotion-add {
		border-radius: 50%;
	}

	.app-shell.is-emotion-view .emotion-photo-placeholder {
		height: auto;
		width: calc(100% + 20px);
		margin-left: -10px;
		border-radius: 22px;
	}

	.app-shell.is-emotion-view .emotion-card p {
		grid-column: 1;
		grid-row: 2;
		align-self: start;
		margin: 16px 0 2px;
		padding-right: 0;
		font-size: 18px;
	}
}

.category-list[hidden],
.emotion-view[hidden] {
	display: none;
}

.emotion-grid[hidden],
.category-subgroups[hidden] {
	display: none !important;
}

.category-subgroups {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
}

.emotion-back {
	display: none;
	width: 64px;
	height: 64px;
	min-height: 64px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--shadow);
	color: #3F527C;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.emotion-back-icon {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 50%;
	background: transparent;
}

.emotion-back-icon svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.emotion-heading {
	display: flex;
	align-items: center;
	flex-direction: row;
	justify-content: flex-start;
	gap: 12px;
	margin: 0 -20px;
	padding: 0 24px 14px;
	border-bottom: 2px solid var(--blue);
}

.emotion-heading img {
	width: 32px;
	height: 32px;
}

.emotion-heading h2 {
	margin: 0;
	color: var(--ink);
	font-size: 24px;
	font-weight: 500;
	text-align: left;
	text-transform: uppercase;
}

.app-shell.is-personal-cards-view .emotion-heading {
	display: none;
}

.app-shell.is-personal-cards-view .emotion-grid {
	margin-top: 0;
}

.emotion-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	align-items: stretch;
	gap: 16px;
	margin: 14px 0 0;
	padding: 0 12px;
}

.emotion-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	padding: 8px;
	border-radius: 40px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--line);
}

.emotion-card-tools {
	display: flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	order: 3;
	margin: auto 0 -8px;
	padding: 0 8px;
}

.emotion-audio {
	display: inline-flex;
	width: auto;
	min-width: 0;
	height: 32px;
	min-height: 32px;
	flex: 1 1 auto;
	align-self: center;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	padding: 0 16px;
	border: 0;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--shadow);
	color: #3F527C;
	font-size: 12px;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.emotion-audio:active {
	transform: scale(.96);
	background: #f0f4fa;
	color: #2f3e5e;
}

.emotion-audio > span {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	color: #AEAFAD;
	background-color: currentColor;
	font-size: 0;
	-webkit-mask: url("NAVIGACIJOA IKONOS/SpeakerSimpleHigh.svg?v=3") center / contain no-repeat;
	mask: url("NAVIGACIJOA IKONOS/SpeakerSimpleHigh.svg?v=3") center / contain no-repeat;
}

.emotion-photo-placeholder {
	order: 1;
	position: relative;
}

.emotion-photo-placeholder {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 16px;
	background: rgb(0 0 0 / 3%);
}

.emotion-photo-placeholder img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

	background: #fff;
	overflow: hidden;
}

.personal-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.personal-cards-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 24px 12px;
	color: #878886;
	font-size: 16px;
	text-align: center;
}

.emotion-card p {
	margin: 6px 0 2px;
	min-height: 2.4em;
	order: 2;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 0 8px;
	color: #878886;
	font-size: 16px;
	font-weight: 500;
	text-align: left;
	line-height: 1.2;
	text-transform: uppercase;
}

.category-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
	overflow: visible;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 40px;
	background: #fff;
	box-shadow: none;
}

.category-list > * + * {
	position: relative;
}

.category-list > * + *::before {
	position: absolute;
	top: 0;
	right: 14px;
	left: 14px;
	height: 1px;
	background: #e1e6ee;
	content: "";
}

.category-row,
.subcategory-row {
	position: relative;
	display: grid;
	width: 100%;
	min-height: 0;
	grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
	align-items: center;
	gap: clamp(12px, 2vw, 24px);
	padding: 16px;
	padding-right: calc(clamp(44px, 5vw, 56px) + 24px);
	border: 1px solid #eef1f5;
	border-radius: 52px;
	background: #fff;
	font-size: 16px;
	font-weight: 500;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease;
}
.category-row {
	height: auto;
	min-height: 72px;
	grid-template-columns: 48px minmax(0, 1fr) 20px;
	grid-template-rows: auto;
	align-items: center;
	gap: 12px;
	margin-bottom: 0;
	padding: 10px 14px;
	border-radius: 40px;
	background: #fff;
	box-shadow: none;
	text-transform: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
	border: 1px solid var(--line);
}

.category-list .category-row {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transition: background-color 160ms ease;
}

.category-row:hover {
	transform: translateY(-2px);
	box-shadow: none;
}

.category-list .category-row:hover {
	transform: none;
	background: #f8f9fb;
	box-shadow: none;
}

.category-row .category-icon {
	display: none;
}

.category-row .category-symbol {
	position: static;
	display: grid;
	width: 48px;
	height: 48px;
	grid-column: 1;
	grid-row: 1;
	place-items: center;
	justify-self: start;
	border-radius: 50%;
	background: transparent;
}

.category-row .category-symbol::before {
	width: 32px;
	height: 32px;
	--category-icon-color: #3F527C;
}

.category-row .category-label {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	justify-self: start;
	color: var(--ink);
	font-size: clamp(13px, 4vw, 20px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.15;
	text-align: left;
	text-transform: none;
}

.category-row.has-subgroups-summary {
	grid-template-rows: auto auto;
	row-gap: 4px;
}

.category-row.has-subgroups-summary .category-symbol,
.category-row.has-subgroups-summary > .chevron {
	grid-row: 1 / 3;
}

.category-row.has-subgroups-summary .category-label {
	align-self: end;
}

.category-subgroup-summary {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	color: #8d98a8;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
}

.subcategory-row {
	height: auto;
	min-height: 72px;
	grid-template-columns: 48px minmax(0, 1fr) 20px;
	grid-template-rows: auto;
	align-items: center;
	gap: 12px;
	margin-bottom: 0;
	padding: 10px 14px;
	border-radius: 18px;
	background: #fff;
	box-shadow: none;
	text-transform: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
	border: 1px solid var(--line);
}

.subcategory-row:hover {
	transform: translateY(-2px);
	box-shadow: none;
}

.subcategory-row .subcategory-icon {
	display: none;
}

.subcategory-row .subcategory-symbol {
	position: static;
	display: grid;
	width: 48px;
	height: 48px;
	grid-column: 1;
	grid-row: 1;
	place-items: center;
	justify-self: start;
	border-radius: 18px;
	background: transparent;
}

.subcategory-row .subcategory-symbol::before {
	width: 32px;
	height: 32px;
}

.subcategory-row .subcategory-label {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	justify-self: start;
	color: var(--ink);
	font-size: clamp(13px, 4vw, 20px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.15;
	text-align: left;
	text-transform: none;
}

@media (min-width: 760px) {
	.app-shell.is-emotion-view .category-feature-row {
		display: none;
	}

	.app-shell:not(.is-emotion-view) .category-feature-row {
		display: none;
	}

	.app-shell:not(.is-emotion-view) .categories {
		padding-top: 13px;
	}

	.category-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.category-subgroups {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}

@media (max-width: 759px) {
	.app-shell.is-emotion-view .category-subgroups {
		gap: 0;
		margin-top: 0;
		padding: 0;
		border: 1px solid #fff;
		border-radius: 40px;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.app-shell.is-emotion-view .category-subgroups > * + *::before {
		position: absolute;
		top: 0;
		right: 14px;
		left: 14px;
		height: 1px;
		background: #e1e6ee;
		content: "";
	}

	.app-shell.is-emotion-view .subcategory-row {
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		transition: background-color 160ms ease;
	}

	.app-shell.is-emotion-view .subcategory-row:hover {
		transform: none;
		background: #f8f9fb;
		box-shadow: none;
	}

	.app-shell.is-emotion-view .subcategory-row .subcategory-symbol {
		border-radius: 50%;
	}

	.app-shell.is-emotion-view .subcategory-row .subcategory-symbol::before {
		--category-icon-color: #3F527C;
	}
}

.category-row--local-cards {
	--category-color: #DDE4F0;
	--category-icon-mask: url("NAVIGACIJOA IKONOS/megstamiausi.svg?v=2");
}

.category-row--food {
	--category-color: #EAF1E6;
	--category-icon-mask: url("kategoriju-ikonos/VALGYTI.svg");
}

.category-row--drink {
	--category-color: #DDE4F0;
	--category-icon-mask: url("kategoriju-ikonos/GERTI.svg");
}

.category-row--toilet {
	--category-color: #D4CCB4;
	--category-icon-mask: url("kategoriju-ikonos/TUALETAS.svg");
}

.category-row--communication {
	--category-color: #B4AFCF;
	--category-icon-mask: url("kategoriju-ikonos/BENDRAUKIME.svg");
}

.category-row--pain {
	--category-color: #D98989;
	--category-icon-mask: url("kategoriju-ikonos/SKAUDA.svg");
}

.category-row--chores,
.category-row--rest {
	--category-color: #B9CBC8;
}

.category-row--chores {
	--category-icon-mask: url("IKONOS POGRUPIAI/NAM%C5%B2%20RUO%C5%A0A.svg");
}

.category-row--rest {
	--category-icon-mask: url("IKONOS POGRUPIAI/POILSIS.svg");
}

.category-row--locations {
	--category-color: #98BE9D;
	--category-icon-mask: url("kategoriju-ikonos/VIETOS.svg");
}

.category-row--cooking {
	--category-color: #D4B199;
	--category-icon-mask: url("kategoriju-ikonos/GAMINTI.svg");
}

.category-row--sport {
	--category-color: #E7E6B6;
	--category-icon-mask: url("kategoriju-ikonos/SPORTAS.svg");
}

.category-row--personal-items {
	--category-color: #B0BBA4;
	--category-icon-mask: url("kategoriju-ikonos/DAIKTAI.svg");
}

.category-row--colors {
	--category-color: #A2B8BA;
	--category-icon-mask: url("kategoriju-ikonos/SPALVOS.svg");
}

.category-row--numbers {
	--category-color: #CCB9B9;
	--category-icon-mask: url("kategoriju-ikonos/SKAI%C4%8CIAI.svg");
}

.category-row--hygiene {
	--category-color: #BBD2D7;
	--category-icon-mask: url("IKONOS POGRUPIAI/HIGIENA.svg");
}

.category-row--clothing {
	--category-color: #C57890;
	--category-icon-mask: url("IKONOS POGRUPIAI/APRANGA.svg");
}

.subcategory-row--meals {
	--category-icon-mask: url("IKONOS POGRUPIAI/PATIEKLAI.svg");
}

.subcategory-row--pastries {
	--category-icon-mask: url("IKONOS POGRUPIAI/KEPINIAI.svg");
}

.subcategory-row--snacks {
	--category-icon-mask: url("IKONOS POGRUPIAI/U%C5%BDKAND%C5%BDIAI.svg");
}

.subcategory-row--sweets {
	--category-icon-mask: url("IKONOS POGRUPIAI/SALDUMYNAI.svg");
}

.subcategory-row--ingredients {
	--category-icon-mask: url("IKONOS POGRUPIAI/MAISTO PRODUKTAI.svg");
}

.subcategory-row--cooking-process {
	--category-icon-mask: url("IKONOS POGRUPIAI/GAMINIMO PROCESAS.svg");
}

.subcategory-row--utensils {
	--category-icon-mask: url("IKONOS POGRUPIAI/INDAI.svg");
}

.subcategory-row--fruit {
	--category-icon-mask: url("IKONOS POGRUPIAI/VAISIAI.svg");
}

.subcategory-row--berries {
	--category-icon-mask: url("IKONOS POGRUPIAI/UOGOS.svg");
}

.subcategory-row--vegetables {
	--category-icon-mask: url("IKONOS POGRUPIAI/DAR%C5%BDOV%C4%96S.svg");
}

.subcategory-row--bread {
	--category-icon-mask: url("IKONOS POGRUPIAI/DUONA.svg");
}

.subcategory-row--eggs {
	--category-icon-mask: url("IKONOS POGRUPIAI/KIAU%C5%A0INIAI.svg");
}

.subcategory-row--dairy {
	--category-icon-mask: url("IKONOS POGRUPIAI/PIENAS.svg");
}

.subcategory-row--meat {
	--category-icon-mask: url("IKONOS POGRUPIAI/M%C4%96SA.svg");
}

.subcategory-row--fish {
	--category-icon-mask: url("IKONOS POGRUPIAI/%C5%BDUVIS.svg");
}

.subcategory-row--pasta {
	--category-icon-mask: url("IKONOS POGRUPIAI/MAKARONAI.svg");
}

.subcategory-row--sauces {
	--category-icon-mask: url("IKONOS POGRUPIAI/PADA%C5%BDAI.svg");
}

.subcategory-row--grains {
	--category-icon-mask: url("IKONOS POGRUPIAI/KRUOPOS.svg");
}

.subcategory-row--spices {
	--category-icon-mask: url("IKONOS POGRUPIAI/PRIESKONIAI.svg");
}

.subcategory-row--prepared-foods {
	--category-icon-mask: url("IKONOS POGRUPIAI/DE%C5%A0REL%C4%96S.svg");
}

.emotion-view {
	--category-color: #DDE4F0;
	--category-icon-mask: url("kategoriju-ikonos/DAIKTAI.svg");
}

.emotion-view--food {
	--category-color: #EAF1E6;
	--category-icon-mask: url("kategoriju-ikonos/VALGYTI.svg");
}

.emotion-view--drink {
	--category-color: #DDE4F0;
	--category-icon-mask: url("kategoriju-ikonos/GERTI.svg");
}

.emotion-view--toilet {
	--category-color: #D4CCB4;
	--category-icon-mask: url("kategoriju-ikonos/TUALETAS.svg");
}

.emotion-view--communication {
	--category-color: #B4AFCF;
	--category-icon-mask: url("kategoriju-ikonos/BENDRAUKIME.svg");
}

.emotion-view--pain {
	--category-color: #D98989;
	--category-icon-mask: url("kategoriju-ikonos/SKAUDA.svg");
}

.emotion-view--chores,
.emotion-view--rest {
	--category-color: #B9CBC8;
}

.emotion-view--chores {
	--category-icon-mask: url("IKONOS POGRUPIAI/NAM%C5%B2%20RUO%C5%A0A.svg");
}

.emotion-view--rest {
	--category-icon-mask: url("IKONOS POGRUPIAI/POILSIS.svg");
}

.emotion-view--locations {
	--category-color: #98BE9D;
	--category-icon-mask: url("kategoriju-ikonos/VIETOS.svg");
}

.emotion-view--cooking {
	--category-color: #D4B199;
	--category-icon-mask: url("kategoriju-ikonos/GAMINTI.svg");
}

.emotion-view--sport {
	--category-color: #E7E6B6;
	--category-icon-mask: url("kategoriju-ikonos/SPORTAS.svg");
}

.emotion-view--personal-items {
	--category-color: #B0BBA4;
	--category-icon-mask: url("kategoriju-ikonos/DAIKTAI.svg");
}

.emotion-view--colors {
	--category-color: #A2B8BA;
	--category-icon-mask: url("kategoriju-ikonos/SPALVOS.svg");
}

.emotion-view--numbers {
	--category-color: #CCB9B9;
	--category-icon-mask: url("kategoriju-ikonos/SKAI%C4%8CIAI.svg");
}

.emotion-view--hygiene {
	--category-color: #BBD2D7;
	--category-icon-mask: url("IKONOS POGRUPIAI/HIGIENA.svg");
}

.emotion-view--clothing {
	--category-color: #C57890;
	--category-icon-mask: url("IKONOS POGRUPIAI/APRANGA.svg");
}

.emotion-card {
	position: relative;
}

.emotion-card::before {
	position: absolute;
	z-index: 2;
	top: 20px;
	left: 20px;
	width: 32px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: color-mix(in srgb, var(--category-color, #DDE4F0) 38%, #fff);
	content: "";
	pointer-events: none;
}

.emotion-card::after {
	position: absolute;
	z-index: 3;
	top: 28px;
	left: 28px;
	width: 16px;
	height: 16px;
	background: color-mix(in srgb, var(--category-color, #DDE4F0) 45%, #3F527C);
	content: "";
	-webkit-mask: var(--category-icon-mask) center / contain no-repeat;
	mask: var(--category-icon-mask) center / contain no-repeat;
	pointer-events: none;
}

.category-copy,
.subcategory-copy {
	display: contents;
}

.category-symbol,
.subcategory-symbol {
	display: grid;
	width: 100px;
	aspect-ratio: 1;
	place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--category-color, #DDE4F0) 38%, #fff);
}

.category-label,
.subcategory-label {
	min-width: 0;
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	overflow-wrap: normal;
	word-break: normal;
}

.category-symbol::before,
.subcategory-symbol::before {
	width: 52%;
	height: 52%;
	--category-icon-color: #3F527C;
	background: var(--category-icon-color);
	content: "";
	-webkit-mask: var(--category-icon-mask) center / contain no-repeat;
	mask: var(--category-icon-mask) center / contain no-repeat;
	filter: drop-shadow(0.5px 0 0 var(--category-icon-color))
		drop-shadow(-0.5px 0 0 var(--category-icon-color))
		drop-shadow(0 0.5px 0 var(--category-icon-color))
		drop-shadow(0 -0.5px 0 var(--category-icon-color));
}

.category-label,
.subcategory-label {
	color: var(--ink);
	font-size: clamp(18px, 2.4vw, 32px);
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.15;
}

.emotion-view--food .emotion-heading,
.emotion-view--drink .emotion-heading,
.emotion-view--toilet .emotion-heading,
.emotion-view--communication .emotion-heading,
.emotion-view--pain .emotion-heading,
.emotion-view--chores .emotion-heading,
.emotion-view--rest .emotion-heading,
.emotion-view--locations .emotion-heading,
.emotion-view--cooking .emotion-heading,
.emotion-view--sport .emotion-heading,
.emotion-view--personal-items .emotion-heading,
.emotion-view--colors .emotion-heading,
.emotion-view--numbers .emotion-heading,
.emotion-view--hygiene .emotion-heading,
.emotion-view--clothing .emotion-heading {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	padding: 0;
	border: 0;
}

.emotion-view--food .emotion-grid,
.emotion-view--drink .emotion-grid,
.emotion-view--toilet .emotion-grid,
.emotion-view--communication .emotion-grid,
.emotion-view--pain .emotion-grid,
.emotion-view--chores .emotion-grid,
.emotion-view--rest .emotion-grid,
.emotion-view--locations .emotion-grid,
.emotion-view--cooking .emotion-grid,
.emotion-view--sport .emotion-grid,
.emotion-view--personal-items .emotion-grid,
.emotion-view--colors .emotion-grid,
.emotion-view--numbers .emotion-grid,
.emotion-view--hygiene .emotion-grid,
.emotion-view--clothing .emotion-grid {
	padding: 8px;
	border-radius: 24px;
}

.subcategory-row {
	margin-bottom: 0;
}
.category-row:last-of-type {
	margin-bottom: 0;
}

@media (max-width: 759px) {
	.emotion-view--food .emotion-heading,
	.emotion-view--drink .emotion-heading,
	.emotion-view--toilet .emotion-heading,
	.emotion-view--communication .emotion-heading,
	.emotion-view--pain .emotion-heading,
	.emotion-view--chores .emotion-heading,
	.emotion-view--rest .emotion-heading,
	.emotion-view--locations .emotion-heading,
	.emotion-view--cooking .emotion-heading,
	.emotion-view--sport .emotion-heading,
	.emotion-view--personal-items .emotion-heading,
	.emotion-view--colors .emotion-heading,
	.emotion-view--numbers .emotion-heading,
	.emotion-view--hygiene .emotion-heading,
	.emotion-view--clothing .emotion-heading {
		margin: -1px;
	}

	.emotion-view--food .emotion-grid,
	.emotion-view--drink .emotion-grid,
	.emotion-view--toilet .emotion-grid,
	.emotion-view--communication .emotion-grid,
	.emotion-view--pain .emotion-grid,
	.emotion-view--chores .emotion-grid,
	.emotion-view--rest .emotion-grid,
	.emotion-view--locations .emotion-grid,
	.emotion-view--cooking .emotion-grid,
	.emotion-view--sport .emotion-grid,
	.emotion-view--personal-items .emotion-grid,
	.emotion-view--colors .emotion-grid,
	.emotion-view--numbers .emotion-grid,
	.emotion-view--hygiene .emotion-grid,
	.emotion-view--clothing .emotion-grid {
		margin: 0;
		padding-right: 0;
		padding-left: 0;
		padding-bottom: 24px;
		border-radius: 0;
	}

	.emotion-heading {
		margin-right: -16px;
		margin-left: -16px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.emotion-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto 0px;
		padding: 0 16px 16px;
	}

	.emotion-card p {
		grid-column: 1;
		grid-row: 2;
		align-self: start;
		padding-right: 0;
	}

	.emotion-photo-placeholder {
		grid-column: 1 / -1;
		grid-row: 1;
		width: calc(100% + 32px);
		margin-left: -16px;
		border-radius: 18px;
	}

	.emotion-card-tools {
		position: static;
		grid-column: 1;
		grid-row: 3;
		align-self: start;
		justify-self: center;
		width: 32px;
		height: 32px;
		min-height: 32px;
		margin: 0;
	}

	.emotion-audio {
		display: flex;
		width: 32px;
		height: 32px;
		min-height: 32px;
		flex: 0 0 32px;
		align-items: center;
		justify-content: center;
		gap: 0;
		padding: 0;
		border-radius: 50%;
		background: #fff;
		box-shadow: var(--shadow);
		font-size: 0;
	}

	.emotion-audio > span {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
	}

	.emotion-grid {
		margin-right: 0;
		margin-left: 0;
	}
}

.category-row:active,
.subcategory-row:active {
	background: #f5f7fa;
	color: #2f3e5e;
}

.category-row > .chevron,
.subcategory-row > .chevron {
	display: block;
	grid-column: 3;
	grid-row: 1;
	justify-self: center;
}
.category-row:active {
	background: #f5f7fa;
}

.subcategory-row:active {
	background: #f5f7fa;
}

.category-icon,
.subcategory-icon {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 42px;
	background: transparent;
}

.category-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.category-icon img,
.subcategory-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.chevron {
	color: #8d98a8;
	font-size: 25px;
	font-weight: 300;
	line-height: 1;
}

.bottom-nav {
	position: fixed;
	z-index: 10;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	width: min(100%, 480px);
	height: auto;
	min-height: calc(120px + env(safe-area-inset-bottom));
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: auto auto auto auto 1fr;
	margin: 0 auto;
	padding: 8px 10px env(safe-area-inset-bottom);
	border-top: 1px solid rgb(136 167 201 / 10%);
	border-radius: 40px 40px 0 0;
	background: rgb(255 255 255 / 97%);
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
}

@media (max-width: 759px) {
	.bottom-nav {
		display: none;
	}
}

.app-shell.is-emotion-view .emotion-card {
	display: flex;
	height: 100%;
	min-height: 0;
	flex-direction: column;
	padding: 8px;
	border-radius: 20px;
	overflow: hidden;
	isolation: isolate;
}

.app-shell.is-emotion-view .emotion-grid {
	grid-auto-rows: minmax(0, 1fr);
	align-items: stretch;
}

.app-shell.is-emotion-view .emotion-photo-placeholder {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 1.15 / 1;
	margin: 40px 0 0;
	overflow: hidden;
	border-radius: 16px;
	background: #f5f5f5;
}

.app-shell.is-emotion-view .emotion-card--color-swatch .emotion-photo-placeholder {
	background: var(--color-swatch);
}

.app-shell.is-emotion-view .emotion-photo-placeholder img {
	position: static;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.app-shell.is-emotion-view .emotion-card p {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 100%;
	justify-self: center;
	height: 2.4em;
	min-height: 2.4em;
	margin: 16px 0 2px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	backdrop-filter: none;
	align-items: flex-start;
	justify-content: center;
	color: #3F527C;
	font-weight: 600;
	text-align: center;
}

.app-shell.is-emotion-view .emotion-card-tools {
	position: absolute;
	z-index: 4;
	top: 8px;
	right: auto;
	left: 8px;
	width: auto;
	height: 32px;
	min-height: 32px;
	margin: 0;
	justify-content: flex-start;
	grid-area: auto;
}

.app-shell.is-emotion-view .emotion-audio {
	width: auto;
	min-width: 0;
	height: 32px;
	min-height: 32px;
	flex: 0 0 auto;
	justify-content: center;
	gap: 6px;
	padding: 0 10px;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--shadow);
	color: #AEAFAD;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
}

.app-shell.is-emotion-view .emotion-audio > span {
	width: 20px;
	height: 20px;
	flex-basis: 20px;
}

.app-shell.is-emotion-view .emotion-audio:active {
	background: #F5F7FA;
}

.app-shell.is-emotion-view .emotion-card::before,
.app-shell.is-emotion-view .emotion-card::after {
	display: none;
}

.app-shell.has-sentence .bottom-nav {
	height: auto;
	min-height: calc(264px + env(safe-area-inset-bottom));
}

.bottom-nav .nav-back {
	grid-column: 1;
	grid-row: 1;
}

.bottom-nav .nav-create {
	grid-column: 2;
	grid-row: 1;
}

.bottom-nav .nav-home {
	grid-column: 3;
	grid-row: 1;
}

.bottom-nav-actions {
	display: grid;
	width: 100%;
	grid-column: 1 / -1;
	grid-row: 5;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	justify-self: center;
}

.bottom-nav .nav-item {
	min-height: 90px;
	margin-top: 16px;
}

.bottom-nav .nav-back,
.bottom-nav .nav-home {
	color: #aeafad;
	font-weight: 400;
}

.bottom-nav .nav-back-icon,
.bottom-nav .nav-home-icon {
	background: transparent;
	color: #aeafad;
}

.bottom-nav .nav-back-icon img,
.bottom-nav .nav-home-icon img {
	filter: grayscale(1);
	opacity: .62;
}

.bottom-nav .nav-create {
	align-self: stretch;
	width: 100%;
	height: auto;
	min-height: 90px;
	padding: 6px 4px;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #aeafad;
	font-size: 16px;
	letter-spacing: 0;
}

.bottom-nav .nav-create.is-active {
	color: #aeafad;
	font-weight: 400;
}

.bottom-nav .nav-create .nav-icon {
	width: 34px;
	height: 34px;
	color: #aeafad;
	font-size: 36px;
}

.bottom-nav .create-label-mobile {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.05;
}

@media (max-width: 759px) {
	.bottom-nav,
	.app-shell.has-sentence .bottom-nav {
		min-height: 0;
		padding-top: 16px;
		padding-bottom: calc(4px + env(safe-area-inset-bottom));
		border-radius: 24px 24px 0 0;
	}

	.bottom-nav-actions {
		width: 100%;
		margin-top: 0;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-items: center;
		gap: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.bottom-nav .nav-item {
		position: relative;
		width: 48px;
		height: 48px;
		min-height: 48px;
		gap: 0;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		font-size: 0;
		line-height: 1;
	}

	.bottom-nav .nav-item > span:not(.nav-icon):not(.nav-back-icon):not(.nav-home-icon) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		clip-path: inset(50%);
	}

	.bottom-nav .nav-back-icon,
	.bottom-nav .nav-home-icon {
		width: 48px;
		height: 48px;
		border: 0;
		background: transparent;
		color: #3F527C;
	}

	.bottom-nav .nav-back-icon img,
	.bottom-nav .nav-home-icon img {
		width: 26px;
		height: 26px;
		filter: none;
		opacity: .8;
	}

	.bottom-nav .nav-create {
		align-self: center;
		justify-self: center;
		display: grid;
		width: 48px;
		height: 48px;
		min-height: 48px;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		box-shadow: none;
		color: #8d98a8;
		font-size: 0;
	}

	.bottom-nav .nav-create.is-active {
		background: transparent;
		color: #8d98a8;
	}

	.bottom-nav .nav-create .nav-icon {
		width: 28px;
		height: 28px;
		padding: 0;
		font-size: 30px;
		line-height: 1;
		color: inherit;
		opacity: .8;
	}
}

.bottom-nav .composer-copy {
	display: flex;
	min-width: 0;
	grid-column: 1 / -1;
	grid-row: 1;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	padding: 34px 12px 32px;
}

@media (max-width: 759px) {
	.bottom-nav .composer-copy {
		padding-right: 0;
		padding-left: 0;
	}
}

.bottom-nav .composer-copy[hidden] {
	display: none !important;
}

.bottom-nav .greeting {
	flex: 0 0 auto;
	margin: 0;
	font-size: 24px;
	line-height: 1.1;
}

.bottom-nav .composer-hint {
	min-width: 0;
	font-size: 18px;
	text-align: left;
}

.bottom-nav .quick-phrase-dropdown {
	position: relative;
	grid-column: 1 / -1;
	grid-row: 2;
	margin: 0;
	border-radius: 0;
}

.bottom-nav .quick-phrase-dropdown[open] {
	display: grid;
	grid-template-rows: auto auto;
	overflow: hidden;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--shadow);
}

.bottom-nav .quick-phrase-dropdown summary {
	min-height: 42px;
	margin: 0 8px;
	padding: 0 14px;
	border-top: 0;
	border-radius: 24px;
	background: rgb(89 116 174 / 8%);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
}

.bottom-nav .quick-phrase-dropdown[open] summary {
	grid-row: 2;
	border-radius: 0 0 24px 24px;
}

@media (max-width: 759px) {
	.bottom-nav .quick-phrase-dropdown summary {
		margin-right: 0;
		margin-left: 0;
	}
}

.bottom-nav .quick-phrase-chevron {
	color: var(--blue);
}

.bottom-nav .quick-phrase-dropdown[open] .quick-phrases {
	position: static;
	grid-row: 1;
	display: grid;
	max-height: min(40vh, 280px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior-y: contain;
	-webkit-overflow-scrolling: touch;
	padding: 12px;
	border: 0;
	border-radius: 16px 16px 0 0;
	background: #fff;
}

.bottom-nav .quick-phrases .phrase-chip {
	width: 100%;
	min-width: 0;
	gap: 4px;
	padding: 6px;
	font-size: 13px;
}

.bottom-nav .quick-phrases .phrase-chip > img {
	width: 20px;
	height: 20px;
	flex-basis: 20px;
}

.bottom-nav .quick-phrases .phrase-chip b {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
}

.bottom-nav .quick-phrases .phrase-chip b img {
	width: 20px;
	height: 20px;
}

@media (max-width: 359px) {
	.bottom-nav .quick-phrases .phrase-chip {
		gap: 2px;
		padding: 3px;
		font-size: 10px;
	}

	.bottom-nav .quick-phrases .phrase-chip > img {
		width: 16px;
		height: 16px;
		flex-basis: 16px;
	}

	.bottom-nav .quick-phrases .phrase-chip b {
		width: 22px;
		height: 22px;
		flex-basis: 22px;
	}

	.bottom-nav .quick-phrases .phrase-chip b img {
		width: 14px;
		height: 14px;
	}
}

.bottom-nav .selected-words {
	display: flex;
	min-width: 0;
	grid-column: 1 / -1;
	grid-row: 3;
	align-items: center;
	gap: 12px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 2px 2px 6px;
	scrollbar-width: none;
}

@media (max-width: 759px) {
	.bottom-nav .selected-words {
		padding-right: 0;
		padding-left: 0;
	}
}

.bottom-nav .selected-words::-webkit-scrollbar {
	display: none;
}

.bottom-nav .selected-word {
	width: min(72vw, 220px);
	min-height: 58px;
	flex: 0 0 auto;
	grid-template-columns: 42px minmax(0, 1fr) 24px;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid var(--line);
	border-radius: 32px;
	box-shadow: none;
}

.bottom-nav .selected-word-photo {
	width: 42px;
	height: 42px;
	flex-basis: 42px;
}

.bottom-nav .selected-word-label {
	font-size: 13px;
}

.bottom-nav .selected-word-remove {
	width: 24px;
	height: 24px;
}

.bottom-nav .sentence-bar {
	grid-column: 1 / -1;
	grid-row: 4;
	min-height: 60px;
	max-height: 76px;
	padding: 8px 10px;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 30px;
	background: #fff;
}

@media (max-width: 759px) {
	.bottom-nav .composer-copy {
		padding-top: 0;
		padding-bottom: 8px;
	}

	.bottom-nav .selected-words {
		padding-top: 10px;
	}

	.bottom-nav .sentence-bar {
		margin-top: 4px;
	}

	.bottom-nav .greeting {
		font-size: 20px;
	}

	.bottom-nav .composer-hint {
		font-size: 16px;
	}

	.app-shell.has-sentence .composer {
		min-height: 90px;
	}

	.app-shell.has-sentence .sentence-bar {
		border-radius: 48px;
	}
}

.nav-item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	min-height: 100px;
	border: 0;
	border-radius: 40px;
	background: transparent;
	color: #878886;
	font-size: 16px;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.nav-back,
.nav-home {
	padding: 0 8px;
	color: #AEAFAD;
	font-size: 15px;
	font-weight: 600;
}

.nav-back-icon,
.nav-home-icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: transparent;
	color: #AEAFAD;
	font-size: 26px;
	line-height: 1;
}

.nav-back-icon img,
.nav-home-icon img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.nav-item.is-active {
	color: var(--blue);
	font-weight: 600;
}

.nav-item:not(.nav-create):active {
	transform: scale(.96);
	background: #e9edf3;
	color: #2f3e5e;
}

.nav-icon {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 50%;
	background: transparent;
	font-size: 29px;
	line-height: 1;
}

.nav-icon img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.nav-create {
	position: static;
	z-index: auto;
	align-self: center;
	width: auto;
	height: 100px;
	min-height: 100px;
	justify-self: stretch;
	margin: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #3F527C;
	font-size: 16px;
	letter-spacing: .04em;
}

.nav-create.is-active {
	color: #3F527C;
	font-weight: 400;
}

.nav-create .nav-icon {
	width: 36px;
	height: 36px;
	background: transparent;
	color: #3F527C;
	font-size: 24px;
}

.app-shell.has-sentence .nav-create {
	align-self: center;
	margin: 0;
}

.create-label-desktop {
	display: none;
}

.sr-only {
	position: absolute;
	overflow: hidden;
	width: 1px;
	height: 1px;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	clip-path: inset(50%);
}

.card-dialog {
	width: min(100% - 32px, 440px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 32px;
	background: #fff;
	box-shadow: var(--shadow);
	color: var(--ink);
}

.card-dialog::backdrop {
	background: rgb(34 49 73 / 30%);
	backdrop-filter: blur(3px);
}

.card-dialog-form {
	display: grid;
	gap: 20px;
	padding: 24px;
}

.card-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.card-dialog-header h2 {
	margin: 0;
	color: var(--ink);
	font-size: 22px;
	font-weight: 700;
}

.card-dialog-header p {
	margin: 4px 0 0;
	color: #878886;
	font-size: 14px;
}

.card-dialog-close {
	display: grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #f5f7f5;
	color: var(--ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.card-form-field,
.card-photo-field,
.card-audio-field {
	display: grid;
	gap: 8px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
}

.card-form-field input {
	width: 100%;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #dce4ef;
	border-radius: 16px;
	background: #fff;
	color: var(--ink);
	font-size: 16px;
}

.card-photo-controls {
	display: flex;
	align-items: center;
	gap: 14px;
}

.card-audio-controls {
	display: grid;
	justify-items: start;
	gap: 10px;
}

.card-audio-preview {
	display: block;
	width: min(100%, 320px);
	height: 40px;
}

.card-audio-preview[hidden] {
	display: none;
}

.card-photo-preview {
	display: grid;
	width: 80px;
	height: 80px;
	flex: 0 0 80px;
	place-items: center;
	overflow: hidden;
	border-radius: 24px;
	background: #edf0f3;
}

.card-photo-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-photo-select,
.card-cancel-button,
.card-save-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	border: 1px solid #dce4ef;
	border-radius: 24px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.card-photo-select[hidden] {
	display: none;
}

.card-form-status {
	min-height: 20px;
	margin: -12px 0 0;
	color: #a33d3d;
	font-size: 13px;
}

.card-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.card-save-button {
	border-color: #3F527C;
	background: #3F527C;
	color: #fff;
}

button:focus-visible,
input:focus-visible {
	outline: 3px solid #8aa7d6;
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.phrase-chip:hover {
		transform: translateY(-2px);
		border-color: rgb(89 116 174 / 32%);
		background: #f8faff;
		box-shadow: var(--shadow);
	}

	.category-row:hover,
	.subcategory-row:hover {
		background: #f8f9fb;
		color: var(--ink);
	}

	.nav-item:not(.nav-create):hover {
		background: #f0f4fa;
		color: var(--ink);
	}

	.nav-item:not(.nav-create):hover .nav-icon img {
		filter: brightness(0) saturate(100%) invert(29%) sepia(16%) saturate(1320%) hue-rotate(184deg) brightness(92%) contrast(88%);
	}

	.nav-create:hover {
		transform: translateY(-2px);
		box-shadow: var(--shadow);
	}
}

button:active {
	transform: scale(.98);
}

.category-list .category-row:first-child,
.app-shell.is-emotion-view .category-subgroups .subcategory-row:first-child {
	border-top-left-radius: 39px;
	border-top-right-radius: 39px;
}

.category-list .category-row:last-child,
.app-shell.is-emotion-view .category-subgroups .subcategory-row:last-child {
	border-bottom-left-radius: 39px;
	border-bottom-right-radius: 39px;
}

.category-list .category-row:active,
.app-shell.is-emotion-view .category-subgroups .subcategory-row:active {
	background: rgb(136 167 201 / 10%);
	transform: none;
	transition: none;
}

@media (hover: hover) and (pointer: fine) {
	.category-list .category-row:hover,
	.app-shell.is-emotion-view .category-subgroups .subcategory-row:hover {
		background: rgb(136 167 201 / 10%);
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		 scroll-behavior: auto !important;
		 transition-duration: .01ms !important;
		 animation-duration: .01ms !important;
		 animation-iteration-count: 1 !important;
	}
}

@media not all {
	:root {
		scrollbar-gutter: stable;
	}

	body {
		padding: 32px 0;
	}

	.app-shell {
		display: grid;
		width: min(100% - 64px, 1680px);
		min-height: calc(100vh - 64px);
		grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
		grid-template-rows: auto 1fr;
		align-content: start;
		align-items: start;
		gap: 24px;
		padding: 52px 5.7vw 32px;
		border: 1px solid #dce4ef;
		border-radius: 40px;
		overflow: visible;
	}

	.top-area,
	.sticky-message-panel {
		display: contents;
	}

	.desktop-search-row {
		display: flex;
		grid-column: 1 / -1;
		grid-row: 1;
		align-items: center;
		gap: 0;
	}

	.desktop-actions {
		display: flex;
		height: 104px;
		min-width: 0;
		max-width: 100%;
		flex: 1 1 auto;
		align-items: center;
		gap: 16px;
		padding: 12px;
		border-radius: 999px;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.desktop-home {
		display: grid;
		width: 62px;
		height: 62px;
		flex: 0 0 62px;
		place-items: center;
		border: 0;
		border-radius: 50%;
		background: #fff;
		box-shadow: var(--shadow);
		color: #3F527C;
		cursor: pointer;
		transition: background-color 160ms ease;
	}

	.desktop-home svg {
		width: 24px;
		height: 24px;
	}

	.desktop-search-toggle {
		display: grid;
		width: 62px;
		height: 62px;
		flex: 0 0 62px;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #fff;
		box-shadow: var(--shadow);
		color: var(--toolbar-icon-color);
		cursor: pointer;
		transition: background-color 160ms ease, color 160ms ease;
	}

	.desktop-search-toggle .search-icon {
		width: 24px;
		height: 24px;
		flex-basis: 24px;
		color: var(--toolbar-icon-color);
		stroke-width: 2.5;
	}

	.desktop-actions .nav-create {
		display: flex;
		width: auto;
		height: 72px;
		min-height: 72px;
		align-items: center;
		justify-content: center;
		flex-direction: row;
		gap: 8px;
		margin: 0;
		padding: 0 16px;
		border: 0;
		border-radius: 999px;
		background: var(--page-bg);
		box-shadow: none;
		color: var(--ink);
		font-size: 15px;
		letter-spacing: 0;
		white-space: nowrap;
	}

	.desktop-actions .nav-create .nav-icon {
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
		background: transparent;
		color: inherit;
		font-size: 25px;
	}

	.desktop-actions .create-label-desktop {
		display: inline;
		font-size: 14px;
		font-weight: 600;
	}

	.desktop-actions .emotion-back {
		display: none;
		position: fixed;
		right: 56px;
		bottom: 56px;
		z-index: 40;
		width: 96px;
		height: 96px;
		min-height: 96px;
		flex: 0 0 96px;
		border-radius: 50%;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.desktop-actions .emotion-back-icon {
		width: 40px;
		height: 40px;
	}

	.desktop-actions .emotion-back-icon svg {
		width: 36px;
		height: 36px;
	}

	.app-shell.is-emotion-view .desktop-actions .emotion-back {
		display: grid;
	}

	.desktop-actions button:hover {
		background: var(--page-bg);
	}

	.desktop-actions .nav-create:hover {
		transform: none;
		box-shadow: none;
	}

	.desktop-actions .search-box {
		width: 100%;
		min-width: 0;
		max-width: 1200px;
		margin-right: 0;
		height: 72px;
		flex: 1 1 0%;
		overflow: visible;
		padding: 0 12px;
		border-color: transparent;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.desktop-actions .search-box input {
		font-size: 24px;
	}

	.desktop-actions .search-box input:focus-visible {
		outline: none;
	}

	.desktop-actions .search-box:has(input:focus-visible) {
		background: #f5f6f7;
	}

	.desktop-actions .search-box input::placeholder {
		color: var(--toolbar-icon-color);
	}

	.sticky-message-panel {
		display: none;
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		height: 180px;
		margin: 24px 0 0;
		padding: 0;
		border-radius: 18px;
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: var(--shadow);
	}

	.sticky-message-panel .message-editor-column {
		height: 100%;
	}

	.sticky-message-panel .composer {
		height: 100%;
		min-height: 0;
		gap: 0;
		padding: 20px 24px;
	}

	.sticky-message-panel .composer-copy {
		padding: 0;
	}

	.sticky-message-panel .greeting {
		margin-bottom: 2px;
		font-size: 32px;
		line-height: 1.1;
	}

	.sticky-message-panel .composer-hint {
		font-size: 16px;
		line-height: 1.2;
	}

	.bottom-nav {
		display: none;
	}

	.composer {
		height: auto;
		min-height: 110px;
		margin: 0;
		padding: 20px 24px;
		border-radius: 40px 40px 0 0;
		background: transparent;
		box-shadow: none;
	}

	.sticky-message-panel .sentence-bar {
		position: static;
		z-index: auto;
		width: calc(100% - 48px);
		min-height: 84px;
		margin: 0 24px;
		padding: 12px 14px 12px 24px;
		border: 1px solid var(--line);
		border-radius: 42px;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.app-shell.has-sentence {
		padding-bottom: 32px;
	}

	.app-shell.has-sentence .bottom-nav {
		height: 84px;
	}

	.app-shell.has-sentence .nav-create {
		align-self: center;
		margin: 0;
	}

	.quick-phrase-dropdown {
		margin: 32px 0 0;
		border-radius: 0 0 40px 40px;
		background: transparent;
		box-shadow: none;
	}

	.quick-phrases {
		padding: 12px 24px 20px;
	}

	.categories {
		grid-column: 1;
		grid-row: 3;
		width: 100%;
		margin: 0;
		padding: 24px;
		border-radius: 40px;
	}

	.category-list {
		margin-inline: -24px;
	}

	.category-row,
	.subcategory-row {
		grid-template-columns: 48px minmax(0, 1fr) 20px;
		gap: 16px;
		padding: 10px 16px;
	}

	.category-row .category-icon,
	.subcategory-row .subcategory-icon {
		width: 100%;
	}

	.bottom-nav {
		position: relative;
		z-index: 1;
		grid-column: 1;
		grid-row: 2;
		display: flex;
		width: auto;
		height: 84px;
		align-self: start;
		justify-self: start;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
	}

	.bottom-nav .nav-back,
	.bottom-nav .nav-home {
		display: none;
	}

	.bottom-nav-actions {
		display: contents;
	}

	.bottom-nav .nav-item {
		min-height: 90px;
		gap: 2px;
		border-radius: 40px;
		font-size: 16px;
		line-height: 1.1;
	}

	.nav-icon {
		width: 22px;
		height: 22px;
		font-size: 20px;
	}

	.nav-icon img {
		width: 18px;
		height: 18px;
	}

	.nav-create {
		position: static;
		z-index: auto;
		align-self: center;
		width: auto;
		height: 84px;
		min-height: 84px;
		justify-self: auto;
		flex-direction: row-reverse;
		gap: 18px;
		margin: 0;
		padding: 0 35px;
		border-radius: 44px;
		background: #fff;
		box-shadow: var(--shadow);
		font-size: 30px;
		text-align: left;
		white-space: nowrap;
	}

	.create-label-mobile {
		display: none;
	}

	.create-label-desktop {
		display: block;
	}

	.nav-create .nav-icon {
		width: 32px;
		height: 32px;
		background: transparent;
		color: #3F527C;
		font-size: 38px;
	}

	.categories,
	.app-shell.is-emotion-view .categories {
		grid-row: 2;
	}

	.app-shell.is-emotion-view .categories {
		padding-left: 0;
	}

	.sticky-message-panel {
		grid-row: 2;
	}

	.app-shell.has-sentence .sticky-message-panel {
		display: flex;
		grid-column: 2;
		grid-row: 2;
		flex-direction: column;
		margin-top: 13px;
		height: auto;
		min-height: 0;
		gap: 8px;
		padding: 16px;
		border: 1px solid var(--line);
		border-radius: 40px;
		background: #fff;
		box-shadow: var(--shadow);
		backdrop-filter: blur(12px);
	}

	.app-shell.has-sentence .sentence-clear {
		display: grid;
	}

	.app-shell.has-sentence .sentence-bar {
		width: 100%;
		min-height: 84px;
		gap: 10px;
		margin: 0;
		padding: 8px 20px;
		border: 1px solid var(--line);
		border-radius: 48px;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.app-shell.has-sentence .sticky-message-panel .message-editor-column {
		height: auto;
		margin-top: 8px;
	}

	.app-shell.has-sentence .sticky-message-panel .composer {
		height: auto;
		gap: 6px;
		justify-content: flex-start;
		padding: 0;
	}

	.app-shell.has-sentence .selected-words {
		display: grid;
		gap: 12px;
		overflow: visible;
		padding: 2px 0;
	}

	.app-shell.has-sentence .selected-word {
		width: 100%;
		min-height: 88px;
		grid-template-columns: 64px minmax(0, 1fr) 48px;
		gap: 12px;
		padding: 8px 12px;
		border: 1px solid var(--line);
		background: #fff;
		box-shadow: none;
	}

	.app-shell.has-sentence .selected-word-photo {
		width: 64px;
		height: 64px;
	}

	.app-shell.has-sentence .selected-word-label {
		font-size: 18px;
	}

	.app-shell.has-sentence .selected-word-remove {
		width: 16px;
		height: 16px;
		align-self: center;
		font-size: 12px;
	}

	.app-shell.has-sentence .sentence-text {
		color: var(--ink);
		font-size: 18px;
		letter-spacing: .05em;
		line-height: 1.2;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.app-shell.has-sentence .sentence-speak {
		width: 56px;
		height: 56px;
		flex-basis: 56px;
	}

	.app-shell.has-sentence .categories {
		grid-column: 1;
		grid-row: 2;
	}

	.bottom-nav {
		display: none;
	}
}

/* Category illustrations */
.category-row .category-icon,
.subcategory-row .subcategory-icon {
	display: block;
	width: 48px;
	height: 48px;
	grid-column: 1;
	grid-row: 1;
	border-radius: 0;
	background: transparent;
}

.category-row .category-icon img,
.subcategory-row .subcategory-icon img {
	display: block;
	border-radius: 0;
	object-fit: contain;
}

.category-row .category-symbol,
.subcategory-row .subcategory-symbol {
	display: none;
}

.category-row.has-subgroups-summary .category-icon {
	grid-row: 1 / 3;
}

.app-shell.is-emotion-view .subcategory-row .subcategory-icon {
	display: block;
}

.app-shell.is-emotion-view .subcategory-row .subcategory-symbol {
	display: none;
}

.home-intro {
	display: none;
}

.home-tiles {
	display: none;
}

/* Mobile home screen */
@media (max-width: 759px) {
	:root {
		--figma-ink: #0d1339;
		--figma-muted: #7c89a6;
		--figma-line: #eceff4;
		--figma-bg: #fbfcfd;
		--figma-surface: #fafcfd;
		--figma-brand: #5974ae;
		--figma-secondary: rgb(136 167 201 / 10%);
	}

	body,
	.app-shell,
	.top-area {
		background: var(--figma-bg);
	}

	.top-area::after {
		background: linear-gradient(to bottom, rgb(251 252 253 / 88%), rgb(251 252 253 / 0%));
	}

	.app-shell.is-emotion-view .emotion-card,
	.app-shell .category-chip {
		background: var(--figma-surface);
	}

	.app-shell,
	.app-shell.has-sentence {
		padding-bottom: calc(132px + env(safe-area-inset-bottom));
		box-shadow: none;
	}

	.top-area .mobile-toolbar-row {
		height: 64px;
		margin: 0 20px;
		padding: 0 20px;
		border: 0;
		border-radius: 32px;
		background: var(--figma-surface);
		box-shadow: 0 6px 20px rgb(63 82 124 / 8%);
	}

	.top-area {
		padding-top: 16px;
	}

	.app-site-link--mobile-inline {
		display: none;
	}

	.app-shell.has-sentence .top-area {
		padding-bottom: 16px;
	}

	.app-shell.has-sentence .sentence-text {
		color: var(--figma-ink);
	}

	.app-shell.has-sentence .sticky-message-panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto auto;
		align-items: center;
		gap: 12px 8px;
		padding: 20px 16px 16px 20px;
		border-radius: 28px;
	}

	.app-shell.has-sentence .sticky-message-panel .sentence-bar {
		display: contents;
	}

	.app-shell.has-sentence .sentence-text {
		grid-area: 1 / 1 / 2 / -1;
		font-size: 20px;
		font-weight: 700;
		line-height: 1.3;
		text-transform: lowercase;
	}

	.app-shell.has-sentence .sentence-show {
		grid-area: 2 / 2;
	}

	.app-shell.has-sentence .sentence-speak {
		grid-area: 2 / 3;
		width: 44px;
		height: 44px;
	}

	.app-shell.has-sentence .sentence-clear {
		grid-area: 2 / 4;
		width: 44px;
		height: 44px;
		align-self: center;
		justify-self: center;
	}

	.app-shell.has-sentence .sticky-message-panel {
		position: relative;
		margin: 16px 20px 0;
	}

	.app-shell.has-sentence .message-editor-column {
		position: static;
		display: block;
		grid-area: 3 / 1 / 4 / -1;
		min-width: 0;
	}

	.app-shell.has-sentence .quick-phrase-dropdown {
		display: block;
		margin-top: 4px;
	}

	.app-shell.has-sentence .quick-phrases {
		max-height: min(30vh, 220px);
	}

	.app-shell.has-sentence .composer {
		min-height: 0;
	}

	.app-shell.has-sentence .selected-words {
		gap: 12px;
		padding: 8px 4px 4px;
	}

	.app-shell.has-sentence .selected-word {
		position: relative;
		width: 64px;
		min-height: 64px;
		flex: 0 0 64px;
		grid-template-columns: 64px;
		overflow: visible;
		border: 0;
		border-radius: 16px;
		background: transparent;
	}

	.app-shell.has-sentence .selected-word-photo {
		width: 64px;
		height: 64px;
		overflow: hidden;
		border-radius: 16px;
		background: var(--figma-surface);
		box-shadow: 0 4px 14px rgb(63 82 124 / 10%);
	}

	.app-shell.has-sentence .selected-word-photo img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.app-shell.has-sentence .selected-word-label {
		display: none;
	}

	.app-shell.has-sentence .selected-word-remove {
		position: absolute;
		top: -6px;
		right: -6px;
		display: grid;
		width: 22px;
		height: 22px;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--figma-brand);
		color: #fff;
		font-size: 14px;
		line-height: 1;
	}

	.top-area .category-feature-row {
		padding: 0;
	}

	.top-area .category-feature-row .tabbar-field {
		height: 64px;
		padding: 0;
		font-size: 16px;
		font-weight: 400;
	}

	.top-area .category-feature-row .tabbar-field::placeholder {
		color: var(--figma-muted);
	}

	.category-search-icon svg {
		stroke-width: 1.5;
	}

	.category-search-icon {
		order: 2;
		margin: 0 0 0 12px;
		color: var(--figma-muted);
	}

	.category-search-icon,
	.category-search-icon svg {
		width: 24px;
		height: 24px;
		flex-basis: 24px;
	}

	.categories {
		background: var(--figma-bg);
	}

	.app-shell:not(.is-emotion-view) .categories {
		padding-right: 20px;
		padding-left: 20px;
	}

	.app-shell:not(.is-emotion-view):not(.is-search-results) .home-intro {
		display: block;
		padding: 28px 0 8px;
	}

	.home-greeting {
		display: flex;
		align-items: center;
		gap: 12px;
		margin: 0;
		color: var(--figma-ink);
		font-size: 24px;
		font-weight: 700;
		line-height: 1.2;
	}

	.home-greeting img {
		width: 32px;
		height: 32px;
		object-fit: contain;
	}

	.home-prompt {
		margin: 8px 0 0;
		color: var(--figma-muted);
		font-size: 16px;
		font-weight: 600;
	}

	.category-chips {
		display: flex;
		gap: 8px;
		margin: 24px -20px 0;
		padding: 4px 20px 12px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.category-chips::-webkit-scrollbar {
		display: none;
	}

	.category-chip {
		flex: 0 0 auto;
		padding: 10px 14px;
		border: 0;
		border-radius: 20px;
		background: #fff;
		box-shadow: 0 4px 14px rgb(63 82 124 / 7%);
		color: var(--figma-ink);
		font-size: 16px;
		font-weight: 400;
		white-space: nowrap;
		cursor: pointer;
	}

	.app-shell .category-list {
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.app-shell .category-list > * + *::before {
		right: 0;
		left: 0;
		background: var(--figma-line);
	}

	.app-shell .category-list .category-row {
		min-height: 68px;
		grid-template-columns: 32px minmax(0, 1fr);
		gap: 20px;
		padding: 16px 0;
		border-radius: 0;
	}

	.app-shell .category-list .category-row .category-icon {
		width: 32px;
		height: 32px;
	}

	.app-shell .category-list .category-row .category-label {
		color: var(--figma-ink);
		font-size: 18px;
		font-weight: 700;
		letter-spacing: 0;
	}

	.app-shell .category-list .category-row > .chevron,
	.app-shell .category-list .category-subgroup-summary {
		display: none;
	}

	.app-shell .category-list .category-row.has-subgroups-summary {
		grid-template-rows: auto;
		row-gap: 0;
	}

	.app-shell .category-list .category-row.has-subgroups-summary .category-icon {
		grid-row: 1;
	}

	.app-shell .category-list .category-row.has-subgroups-summary .category-label {
		align-self: center;
	}

	.app-shell .category-list .category-row:first-child,
	.app-shell .category-list .category-row:last-child {
		border-radius: 0;
	}

	.app-shell.is-emotion-view .category-subgroups {
		gap: 0;
		margin-top: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.app-shell.is-emotion-view .category-subgroups > * + *::before {
		right: 0;
		left: 0;
		background: var(--figma-line);
	}

	.app-shell.is-emotion-view:has(.category-subgroups:not([hidden])) .categories {
		padding-top: 16px;
		padding-right: 20px;
		padding-left: 20px;
	}

	.app-shell.is-emotion-view .category-subgroups .subcategory-row {
		min-height: 68px;
		grid-template-columns: 32px minmax(0, 1fr);
		gap: 20px;
		padding: 16px 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.app-shell.is-emotion-view .category-subgroups .subcategory-row:last-child {
		border-radius: 0;
	}

	.app-shell.is-emotion-view .category-subgroups .subcategory-row .subcategory-icon {
		width: 32px;
		height: 32px;
	}

	.app-shell.is-emotion-view .category-subgroups .subcategory-row .subcategory-label {
		color: var(--figma-ink);
		font-size: 18px;
		font-weight: 700;
		letter-spacing: 0;
	}

	.app-shell.is-emotion-view .category-subgroups .subcategory-row > .chevron {
		display: none;
	}

	.app-shell.is-emotion-view .emotion-photo-placeholder {
		margin-top: 0;
	}

	.app-shell.is-emotion-view .emotion-card p {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		color: var(--figma-ink);
		text-align: left;
		text-transform: none;
	}

	.app-shell.is-emotion-view .emotion-card-tools {
		position: static;
		order: 3;
		display: flex;
		width: 100%;
		height: auto;
		min-height: 0;
		gap: 8px;
		margin: auto 0 0;
		padding: 0;
	}

	.app-shell.is-emotion-view .emotion-audio {
		width: auto;
		height: 40px;
		min-height: 40px;
		flex: 1 1 auto;
		background: rgb(136 167 201 / 10%);
		box-shadow: none;
		color: var(--figma-muted);
		font-size: 14px;
		font-weight: 400;
	}

	.app-shell.is-emotion-view .tabbar {
		display: none;
	}

	.app-shell .bottom-nav,
	.app-shell.has-sentence .bottom-nav {
		display: block;
		min-height: 0;
		padding: 0 0 env(safe-area-inset-bottom);
		border-top: 0;
		border-radius: 40px 40px 0 0;
		background: var(--figma-surface);
		box-shadow: 0 -8px 30px rgb(63 82 124 / 8%);
	}

	.app-shell .bottom-nav-actions {
		display: grid;
		height: 96px;
		grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
		align-items: center;
	}

	.app-shell .bottom-nav .nav-item {
		width: auto;
		height: auto;
		min-height: 0;
		flex-direction: column;
		gap: 4px;
		background: transparent;
		color: var(--figma-muted);
		font-size: 14px;
		font-weight: 400;
	}

	.app-shell .bottom-nav .nav-back,
	.app-shell .bottom-nav .nav-home {
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: 400;
	}

	.app-shell .bottom-nav .nav-item > span:not(.nav-icon):not(.nav-back-icon):not(.nav-home-icon):not(.nav-create-icon) {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		clip-path: none;
		font-size: 14px;
		font-weight: 400;
		line-height: 1.2;
		text-align: center;
		white-space: normal;
	}

	.app-shell .bottom-nav .nav-back-icon,
	.app-shell .bottom-nav .nav-home-icon {
		display: grid;
		width: 24px;
		height: 24px;
		place-items: center;
	}

	.app-shell .bottom-nav .nav-back-icon img,
	.app-shell .bottom-nav .nav-home-icon img {
		width: 24px;
		height: 24px;
		opacity: 1;
	}

	.app-shell .bottom-nav .nav-create {
		display: flex;
		width: 120px;
		height: 120px;
		align-self: start;
		justify-self: center;
		align-items: center;
		justify-content: center;
		margin-top: -24px;
		padding: 0;
		border-radius: 50%;
		background: var(--figma-surface);
		box-shadow: 0 -8px 30px rgb(63 82 124 / 8%);
		color: var(--figma-ink);
		font-weight: 400;
	}

	.app-shell .bottom-nav .nav-create > span:not(.nav-create-icon) {
		max-width: 84px;
		color: var(--figma-ink);
		font-size: 14px;
		font-weight: 400;
	}

	.app-shell .bottom-nav .bottom-nav-actions .nav-item.nav-create > span.nav-create-icon {
		position: relative;
		display: block;
		width: 26px;
		height: 26px;
		overflow: visible;
		clip: auto;
		clip-path: none;
		border-radius: 50%;
		background: var(--figma-brand);
	}

	.nav-create-icon::before,
	.nav-create-icon::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 12px;
		height: 1.5px;
		border-radius: 1px;
		background: #fff;
		content: "";
		transform: translate(-50%, -50%);
	}

	.nav-create-icon::after {
		transform: translate(-50%, -50%) rotate(90deg);
	}

	.home-heading {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.home-settings,
	.need-time-button {
		display: grid;
		flex: 0 0 auto;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgb(136 167 201 / 10%);
		color: var(--figma-muted);
		cursor: pointer;
	}

	.home-settings {
		width: 44px;
		height: 44px;
	}

	.need-time-button {
		width: 40px;
		height: 40px;
		margin-left: 8px;
	}

	.home-settings svg,
	.need-time-button svg,
	.sentence-show svg,
	.sheet-back svg {
		width: 24px;
		height: 24px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.5;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.app-shell .category-chip.category-chip--mood {
		background: rgb(136 167 201 / 10%);
	}

	.app-shell.has-sentence .sentence-show {
		display: grid;
		width: 44px;
		height: 44px;
		flex: 0 0 44px;
		order: 2;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgb(136 167 201 / 10%);
		color: #3F527C;
		cursor: pointer;
	}

	.quick-sentences {
		display: flex;
		gap: 8px;
		margin: 20px -20px 0;
		padding: 4px 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.quick-sentences::-webkit-scrollbar {
		display: none;
	}

	.quick-sentences + .category-chips {
		margin-top: 4px;
	}

	.app-shell .category-chip.category-chip--quick {
		background: var(--figma-secondary);
		border-color: transparent;
	}

	.frequent-title {
		margin: 0 0 8px;
		color: var(--figma-muted);
		font-size: 14px;
	}

	.frequent-row {
		display: flex;
		gap: 8px;
		margin: 0 -20px;
		padding: 0 20px 12px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.frequent-row::-webkit-scrollbar {
		display: none;
	}

	.frequent-chip {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		gap: 8px;
		padding: 8px 14px;
		border: 0;
		border-radius: 20px;
		background: var(--figma-surface);
		box-shadow: 0 4px 14px rgb(63 82 124 / 7%);
		color: var(--figma-ink);
		font-size: 16px;
		font-weight: 400;
		cursor: pointer;
	}

	.frequent-chip:has(img) {
		padding-left: 6px;
	}

	.frequent-chip img {
		width: 28px;
		height: 28px;
		border-radius: 50%;
		object-fit: cover;
	}

	.app-shell.has-sentence .selected-word--text,
	body.text-only .app-shell.has-sentence .selected-word {
		width: auto;
		min-width: 64px;
		min-height: 48px;
		flex: 0 0 auto;
		grid-template-columns: auto;
		align-self: center;
		padding: 0 18px;
		border-radius: 16px;
		background: var(--figma-surface);
		box-shadow: 0 4px 14px rgb(63 82 124 / 10%);
	}

	.app-shell.has-sentence .selected-word--text .selected-word-photo,
	body.text-only .app-shell.has-sentence .selected-word-photo {
		display: none;
	}

	.app-shell.has-sentence .selected-word--text .selected-word-label,
	body.text-only .app-shell.has-sentence .selected-word-label {
		display: flex;
		max-width: min(70vw, 240px);
		min-height: 48px;
		align-items: center;
		margin: 0;
		color: var(--figma-ink);
		font-size: 16px;
		font-weight: 400;
		line-height: 1.25;
		text-transform: none;
		white-space: normal;
	}

	body.text-only .app-shell.is-emotion-view .emotion-photo-placeholder {
		display: none;
	}
}

@media all {
	.sheet,
	.show-screen {
		position: fixed;
		z-index: 100;
		inset: 0;
	}

	.sheet {
		display: flex;
		align-items: flex-end;
		justify-content: center;
	}

	.sheet[hidden],
	.sheet-back[hidden],
	.show-screen[hidden] {
		display: none;
	}

	.sheet-backdrop {
		position: absolute;
		inset: 0;
		background: rgb(63 82 124 / 24%);
	}

	.sheet-panel {
		position: relative;
		width: min(100%, 480px);
		max-height: 80vh;
		overflow-y: auto;
		padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
		border-radius: 32px 32px 0 0;
		background: var(--figma-bg);
		outline: 0;
	}

	.sheet-handle {
		width: 40px;
		height: 4px;
		margin: 0 auto 16px;
		border-radius: 2px;
		background: #d9dee6;
	}

	.sheet-header {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 16px;
	}

	.sheet-header h2 {
		margin: 0;
		color: var(--figma-ink);
		font-size: 20px;
		font-weight: 700;
	}

	.sheet-back {
		display: grid;
		width: 40px;
		height: 40px;
		margin-left: -8px;
		place-items: center;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--figma-muted);
		cursor: pointer;
	}

	.sheet-body {
		display: grid;
		gap: 12px;
	}

	.sheet-body[data-layout="grid"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sheet-option {
		min-height: 64px;
		padding: 12px 16px;
		border: 0;
		border-radius: 20px;
		background: var(--figma-surface);
		box-shadow: 0 4px 14px rgb(63 82 124 / 7%);
		color: var(--figma-ink);
		font-size: 16px;
		font-weight: 400;
		line-height: 1.3;
		text-align: left;
		cursor: pointer;
	}

	.sheet-option.is-selected {
		background: rgb(136 167 201 / 20%);
	}

	.sheet-option--quiet {
		grid-column: 1 / -1;
		background: transparent;
		box-shadow: none;
		color: var(--figma-muted);
		text-align: center;
	}

	.sheet-row {
		display: flex;
		gap: 8px;
	}

	.sheet-row .sheet-option {
		flex: 1 1 auto;
	}

	.sheet-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-top: 8px;
		text-decoration: none;
	}

	.sheet-link img {
		width: 88px;
		height: auto;
	}

	.sheet-link-arrow {
		color: var(--figma-muted);
		font-size: 24px;
		line-height: 1;
	}

	.sheet-add {
		width: 64px;
		flex: 0 0 64px;
		border: 0;
		border-radius: 20px;
		background: rgb(136 167 201 / 10%);
		color: #3F527C;
		font-size: 24px;
		cursor: pointer;
	}

	.sheet-switch-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 16px;
		border-radius: 20px;
		background: var(--figma-surface);
	}

	.sheet-switch-text {
		display: grid;
		gap: 2px;
	}

	.sheet-switch-title {
		color: var(--figma-ink);
		font-size: 16px;
	}

	.sheet-switch-hint {
		color: var(--figma-muted);
		font-size: 14px;
	}

	.switch {
		position: relative;
		width: 52px;
		height: 30px;
		flex: 0 0 52px;
		padding: 0;
		border: 0;
		border-radius: 15px;
		background: #d9dee6;
		cursor: pointer;
		transition: background-color 160ms ease;
	}

	.switch::after {
		position: absolute;
		top: 3px;
		left: 3px;
		width: 24px;
		height: 24px;
		border-radius: 50%;
		background: #fff;
		content: "";
		transition: transform 160ms ease;
	}

	.switch[aria-checked="true"] {
		background: var(--figma-brand);
	}

	.switch[aria-checked="true"]::after {
		transform: translateX(22px);
	}

	.show-screen {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding: 32px 24px;
		background: var(--figma-bg);
		outline: 0;
		cursor: pointer;
	}

	.show-text {
		margin: 0;
		color: var(--figma-ink);
		font-size: clamp(32px, 10vw, 56px);
		font-weight: 700;
		line-height: 1.2;
		text-align: center;
		overflow-wrap: anywhere;
	}

	.show-hint {
		position: absolute;
		bottom: calc(24px + env(safe-area-inset-bottom));
		color: var(--figma-muted);
		font-size: 14px;
	}

	body.calm *,
	body.calm *::before,
	body.calm *::after {
		box-shadow: none !important;
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}

	body.calm img {
		filter: saturate(.7);
	}

	body.calm .mobile-toolbar-row,
	body.calm .category-chip,
	body.calm .frequent-chip,
	body.calm .emotion-card,
	body.calm .sheet-option,
	body.calm .selected-word--text,
	body.calm.text-only .selected-word,
	body.calm .selected-word-photo {
		border: 1px solid var(--figma-line);
	}

	body.calm .bottom-nav {
		border-top: 1px solid var(--figma-line);
	}

	.app-shell .bottom-nav .nav-back,
	.app-shell .bottom-nav .nav-home {
		color: var(--figma-muted);
	}

	.app-shell .bottom-nav .nav-back-icon,
	.app-shell .bottom-nav .nav-home-icon {
		background: var(--figma-muted);
		-webkit-mask: var(--nav-icon) center / contain no-repeat;
		mask: var(--nav-icon) center / contain no-repeat;
	}

	.app-shell .bottom-nav .nav-back-icon {
		--nav-icon: url("NAVIGACIJOA IKONOS/ATGAL.svg");
	}

	.app-shell .bottom-nav .nav-home-icon {
		--nav-icon: url("NAVIGACIJOA IKONOS/PRADŽIA.svg");
	}

	.app-shell .bottom-nav .nav-back-icon img,
	.app-shell .bottom-nav .nav-home-icon img {
		opacity: 0;
	}

	.app-shell .sentence-clear {
		color: var(--figma-muted);
	}

	.app-shell .category-chip,
	.frequent-chip,
	.sheet-option:not(.sheet-option--quiet),
	.app-shell .bottom-nav .nav-create {
		border: 1px solid var(--figma-secondary);
	}

	.app-shell .bottom-nav .nav-item:disabled {
		cursor: default;
	}
}

@media (min-width: 760px) {
	:root {
		--figma-ink: #0d1339;
		--figma-muted: #7c89a6;
		--figma-line: #eceff4;
		--figma-bg: #fbfcfd;
		--figma-surface: #fafcfd;
		--figma-brand: #5974ae;
		--figma-secondary: rgb(136 167 201 / 10%);
		--figma-soft-shadow: 0 6px 20px rgb(63 82 124 / 8%);
		--bar-h: 88px;
		--side-w: 360px;
		--card-min: 220px;
		--card-label: 20px;
		--text-size: 28px;
		scrollbar-gutter: stable;
	}

	body.large-view {
		--card-min: 300px;
		--card-label: 26px;
		--text-size: 40px;
		--side-w: 420px;
	}

	body {
		padding: 0;
		background: var(--figma-bg);
		color: var(--figma-ink);
	}

	body .app-shell {
		display: grid;
		width: 100%;
		max-width: none;
		min-height: 100vh;
		margin: 0;
		padding: 0;
		grid-template-columns: var(--side-w) minmax(0, 1fr);
		grid-template-rows: var(--bar-h) auto minmax(0, 1fr);
		align-content: stretch;
		align-items: start;
		gap: 0;
		border: 0;
		border-radius: 0;
		background: var(--figma-bg);
		box-shadow: none;
	}

	body .top-area {
		display: contents;
	}

	body .bottom-nav,
	body .tabbar,
	body .mobile-toolbar-row,
	body .app-site-link--mobile,
	body .need-time-button,
	body .home-settings,
	body .desktop-search-toggle {
		display: none;
	}

	/* Top bar */
	body .desktop-search-row {
		position: sticky;
		top: 0;
		z-index: 30;
		display: block;
		height: var(--bar-h);
		grid-column: 1 / -1;
		grid-row: 1;
		padding: 0;
		border: 0;
		border-bottom: 1px solid var(--figma-line);
		border-radius: 0;
		background: rgb(251 252 253 / 97%);
		box-shadow: none;
	}

	body .desktop-actions {
		display: flex;
		width: 100%;
		max-width: none;
		height: 100%;
		align-items: center;
		gap: 16px;
		padding: 0 32px 0 24px;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	body .app-site-link--desktop {
		order: 1;
		display: flex;
		flex: 0 0 auto;
	}

	body .app-site-link--desktop img {
		width: 104px;
		height: auto;
	}

	body .desktop-home {
		order: 2;
		display: grid;
		width: 56px;
		height: 56px;
		flex: 0 0 56px;
		place-items: center;
		border: 0;
		border-radius: 50%;
		background: var(--figma-secondary);
		box-shadow: none;
		color: var(--figma-muted);
		cursor: pointer;
	}

	body .desktop-home svg,
	body .desktop-tool svg {
		width: 26px;
		height: 26px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.5;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	body .desktop-actions .search-box {
		order: 3;
		width: auto;
		min-width: 0;
		max-width: 720px;
		height: 56px;
		flex: 1 1 auto;
		margin: 0 auto 0 0;
		padding: 0 24px 0 56px;
		border: 0;
		border-radius: 28px;
		background: var(--figma-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c89a6' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.3'/%3E%3Cpath d='m15.5 15.5 4.2 4.2'/%3E%3C/svg%3E") 20px center / 26px no-repeat;
		box-shadow: none;
	}

	body .desktop-actions .search-box input {
		font-size: 20px;
		font-weight: 400;
		color: var(--figma-ink);
	}

	body .desktop-actions .search-box input::placeholder {
		color: var(--figma-muted);
	}

	body .desktop-tool,
	body .desktop-actions .desktop-category-add-button {
		display: inline-flex;
		height: 56px;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		gap: 10px;
		padding: 0 22px;
		border: 0;
		border-radius: 28px;
		background: var(--figma-secondary);
		box-shadow: none;
		color: var(--figma-muted);
		font-size: 18px;
		font-weight: 400;
		cursor: pointer;
	}

	body .desktop-tool {
		order: 4;
	}

	body .desktop-tool--icon {
		order: 5;
		width: 56px;
		padding: 0;
		color: var(--figma-muted);
	}

	body .desktop-actions .desktop-category-add-button {
		order: 6;
		width: auto;
		background: var(--figma-brand);
		color: #fff;
		font-weight: 700;
	}

	body .desktop-actions .desktop-category-add-button .category-add-icon {
		width: 24px;
		height: 24px;
		stroke-width: 2;
	}

	body .desktop-add-label {
		display: inline;
	}

	body .desktop-actions .emotion-back {
		order: 7;
	}

	/* Sidebar */
	body .categories {
		display: contents;
	}

	body .app-shell .category-list,
	body .app-shell .category-list[hidden],
	body .app-shell.is-search-results .category-list {
		position: sticky;
		top: var(--bar-h);
		display: grid !important;
		height: calc(100vh - var(--bar-h));
		grid-column: 1;
		grid-row: 2 / 4;
		align-content: start;
		gap: 4px;
		margin: 0;
		padding: 16px 16px 32px 24px;
		overflow-y: auto;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	body .app-shell .category-list {
		scrollbar-width: thin;
		scrollbar-color: #d9dee6 transparent;
	}

	body .app-shell .category-list > * + *::before {
		display: none;
	}

	body .app-shell .category-list .category-row {
		min-height: 64px;
		grid-template-columns: 44px minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 16px;
		padding: 10px 16px;
		border: 0;
		border-radius: 20px;
		background: transparent;
		box-shadow: none;
	}

	body .app-shell .category-list .category-row:hover {
		background: var(--figma-secondary);
	}

	body .app-shell .category-list .category-row.is-active {
		background: rgb(89 116 174 / 14%);
	}

	body .app-shell .category-list .category-row .category-icon {
		width: 44px;
		height: 44px;
	}

	body .app-shell .category-list .category-row .category-label {
		color: var(--figma-ink);
		font-size: 20px;
		font-weight: 700;
		letter-spacing: 0;
	}

	body .app-shell .category-list .category-row.is-active .category-label {
		color: var(--figma-brand);
		font-weight: 800;
	}

	body .app-shell .category-list .category-row > .chevron,
	body .app-shell .category-list .category-subgroup-summary {
		display: none;
	}

	body .app-shell .category-list .category-row.has-subgroups-summary {
		grid-template-rows: auto;
		row-gap: 0;
	}

	body .app-shell .category-list .category-row.has-subgroups-summary .category-icon {
		grid-row: 1;
	}

	body .app-shell .category-list .category-row.has-subgroups-summary .category-label {
		align-self: center;
	}

	/* Sentence panel */
	body .app-shell .sticky-message-panel {
		position: sticky;
		top: calc(var(--bar-h) + 12px);
		z-index: 20;
		display: grid;
		grid-column: 2;
		grid-row: 2;
		grid-template-columns: minmax(0, 1fr) auto auto auto;
		align-items: center;
		gap: 12px;
		margin: 12px 32px 0;
		padding: 20px 24px;
		border: 1px solid var(--figma-secondary);
		border-radius: 28px;
		background: var(--figma-surface);
		box-shadow: var(--figma-soft-shadow);
	}

	body .app-shell .sticky-message-panel .sentence-bar,
	body .app-shell .sticky-message-panel .sentence-bar[hidden] {
		display: contents !important;
	}

	body .app-shell .sentence-text {
		grid-column: 1;
		grid-row: 1;
		min-height: 44px;
		display: block;
		align-self: center;
		color: var(--figma-ink);
		font-size: var(--text-size);
		font-weight: 700;
		letter-spacing: 0;
		line-height: 1.25;
		overflow-wrap: anywhere;
		text-transform: lowercase;
	}

	body .app-shell .sentence-text:empty::before {
		color: var(--figma-muted);
		content: "Pasirink kortelę arba sakinį…";
		font-size: 20px;
		font-weight: 400;
		text-transform: none;
	}

	body .app-shell .sentence-show,
	body .app-shell .sentence-clear,
	body .app-shell .sentence-speak {
		display: inline-flex;
		width: 52px;
		height: 52px;
		flex: 0 0 52px;
		align-items: center;
		justify-content: center;
		grid-row: 1;
		align-self: center;
		justify-self: center;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--figma-secondary);
		color: var(--figma-muted);
		cursor: pointer;
	}

	body .app-shell .sentence-show {
		grid-column: 2;
	}

	body .app-shell .sentence-clear {
		grid-column: 3;
		order: 0;
	}

	body .app-shell .sentence-speak {
		grid-column: 4;
		width: 60px;
		height: 60px;
		flex-basis: 60px;
		background: var(--figma-brand);
	}

	body .app-shell .sentence-show svg,
	body .app-shell .sentence-clear svg {
		width: 24px;
		height: 24px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.5;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	body .app-shell .sentence-speak img {
		width: 28px;
		height: 28px;
		filter: brightness(0) invert(1);
	}

	body .app-shell:not(.has-sentence) .sentence-show,
	body .app-shell:not(.has-sentence) .sentence-clear,
	body .app-shell:not(.has-sentence) .sentence-speak {
		opacity: .45;
		pointer-events: none;
	}

	body .app-shell .message-editor-column {
		display: grid;
		grid-column: 1 / -1;
		grid-row: 2;
		gap: 12px;
		min-width: 0;
		height: auto;
		margin: 0;
	}

	body .app-shell .message-editor-column .composer {
		min-height: 0;
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: transparent;
	}

	body .app-shell .selected-words {
		display: flex;
		gap: 14px;
		padding: 10px 6px 4px;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	body .app-shell .selected-words[hidden] {
		display: none;
	}

	body .app-shell .selected-word {
		position: relative;
		display: grid;
		width: 80px;
		min-height: 80px;
		flex: 0 0 80px;
		grid-template-columns: 80px;
		gap: 0;
		padding: 0;
		overflow: visible;
		border: 0;
		border-radius: 18px;
		background: transparent;
		box-shadow: none;
	}

	body .app-shell .selected-word-photo {
		width: 80px;
		height: 80px;
		overflow: hidden;
		border-radius: 18px;
		background: var(--figma-secondary);
		box-shadow: var(--figma-soft-shadow);
	}

	body .app-shell .selected-word-photo img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	body .app-shell .selected-word-label {
		display: none;
	}

	body .app-shell .selected-word--text,
	body.text-only .app-shell .selected-word {
		width: auto;
		min-width: 80px;
		min-height: 56px;
		flex: 0 0 auto;
		grid-template-columns: auto;
		align-self: center;
		padding: 0 22px;
		border-radius: 18px;
		background: var(--figma-secondary);
	}

	body .app-shell .selected-word--text .selected-word-photo,
	body.text-only .app-shell .selected-word-photo {
		display: none;
	}

	body .app-shell .selected-word--text .selected-word-label,
	body.text-only .app-shell .selected-word-label {
		display: flex;
		min-height: 56px;
		align-items: center;
		margin: 0;
		color: var(--figma-ink);
		font-size: 18px;
		font-weight: 400;
		line-height: 1.25;
		text-transform: none;
	}

	body .app-shell .selected-word-remove {
		position: absolute;
		top: -8px;
		right: -8px;
		display: grid;
		width: 26px;
		height: 26px;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--figma-brand);
		color: #fff;
		font-size: 16px;
		line-height: 1;
		cursor: pointer;
	}

	body .app-shell .quick-phrase-dropdown {
		display: none;
		margin: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	body .app-shell .quick-phrase-dropdown summary {
		display: none;
	}

	body .app-shell .quick-phrases {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		max-height: none;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	body .app-shell .quick-phrases .phrase-chip {
		width: auto;
		height: 44px;
		min-height: 0;
		gap: 8px;
		padding: 0 18px 0 12px;
		border: 0;
		border-radius: 22px;
		background: var(--figma-secondary);
		color: var(--figma-ink);
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}

	body .app-shell .quick-phrases .phrase-chip b {
		display: none;
	}

	body .app-shell .quick-phrases .phrase-chip > img {
		width: 22px;
		height: 22px;
	}

	/* Main column */
	body .app-shell .home-intro,
	body .app-shell .emotion-view,
	body .app-shell .search-results {
		grid-column: 2;
		grid-row: 3;
		min-width: 0;
		padding: 24px 32px 96px;
	}

	body .app-shell:not(.is-emotion-view):not(.is-search-results) .home-intro {
		display: block;
	}

	body .app-shell .home-heading {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	body .app-shell .home-greeting {
		display: flex;
		align-items: center;
		gap: 16px;
		margin: 0;
		color: var(--figma-ink);
		font-size: 40px;
		font-weight: 800;
	}

	body .app-shell .home-greeting img {
		width: 48px;
		height: 48px;
		object-fit: contain;
	}

	body .app-shell .home-prompt {
		margin: 8px 0 24px;
		color: var(--figma-muted);
		font-size: 20px;
		font-weight: 400;
	}

	body .app-shell .quick-sentences {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
		margin: 0 0 28px;
		padding: 0;
		overflow: visible;
	}

	body .app-shell .category-chips {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
		margin: 0 0 28px;
		padding: 0;
		overflow: visible;
	}

	body .app-shell .category-chip:not(.category-chip--tool):not(.category-chip--quick) {
		display: none;
	}

	body .app-shell .category-chip,
	body .app-shell .frequent-chip {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 14px 24px;
		border: 1px solid var(--figma-secondary);
		border-radius: 26px;
		background: var(--figma-surface);
		box-shadow: var(--figma-soft-shadow);
		color: var(--figma-ink);
		font-size: 18px;
		font-weight: 400;
		cursor: pointer;
		transition: transform 160ms ease, box-shadow 160ms ease;
	}

	body .app-shell .category-chip--quick,
	body .app-shell .category-chip--mood,
	body .app-shell .category-chip--tool {
		background: var(--figma-secondary);
		box-shadow: none;
	}

	body .app-shell .category-chip:hover,
	body .app-shell .frequent-chip:hover {
		transform: translateY(-2px);
	}

	body .app-shell .frequent-title {
		margin: 0 0 12px;
		color: var(--figma-muted);
		font-size: 16px;
	}

	body .app-shell .frequent-row {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	body .app-shell .frequent-chip img {
		width: 36px;
		height: 36px;
		border-radius: 50%;
		object-fit: cover;
	}

	body .app-shell .home-tiles {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
		gap: 20px;
		margin-top: 32px;
	}

	body .app-shell .home-tile {
		display: flex;
		min-height: 168px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 14px;
		padding: 20px 16px;
		border: 1px solid var(--figma-secondary);
		border-radius: 24px;
		background: var(--figma-surface);
		box-shadow: var(--figma-soft-shadow);
		color: var(--figma-ink);
		cursor: pointer;
		transition: transform 160ms ease;
	}

	body .app-shell .home-tile:hover {
		transform: translateY(-3px);
	}

	body .app-shell .home-tile img {
		width: 80px;
		height: 80px;
		object-fit: contain;
	}

	body .app-shell .home-tile-label {
		font-size: var(--card-label);
		font-weight: 700;
		text-align: center;
	}

	body.large-view .app-shell .home-tile img {
		width: 112px;
		height: 112px;
	}

	/* Category view */
	body .app-shell.is-emotion-view .emotion-view {
		display: block;
	}

	body .app-shell.is-emotion-view .emotion-view .emotion-heading {
		position: static;
		display: flex;
		width: auto;
		height: auto;
		align-items: center;
		gap: 16px;
		margin: 0 0 28px;
		padding: 0;
		overflow: visible;
		clip: auto;
		clip-path: none;
		border: 0;
		white-space: normal;
	}

	body .app-shell.is-emotion-view .emotion-heading img {
		width: 48px;
		height: 48px;
		object-fit: contain;
	}

	body .app-shell.is-emotion-view .emotion-heading h2 {
		margin: 0;
		color: var(--figma-ink);
		font-size: 36px;
		font-weight: 800;
		text-transform: none;
		letter-spacing: 0;
	}

	body .app-shell.is-emotion-view .category-subgroups {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	body .app-shell.is-emotion-view .category-subgroups > * + *::before {
		display: none;
	}

	body .app-shell.is-emotion-view .category-subgroups .subcategory-row {
		display: grid;
		min-height: 104px;
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 20px;
		padding: 20px 24px;
		border: 1px solid var(--figma-secondary);
		border-radius: 24px;
		background: var(--figma-surface);
		box-shadow: var(--figma-soft-shadow);
		transition: transform 160ms ease;
	}

	body .app-shell.is-emotion-view .category-subgroups .subcategory-row:hover {
		transform: translateY(-2px);
		background: var(--figma-surface);
	}

	body .app-shell.is-emotion-view .category-subgroups .subcategory-row .subcategory-icon {
		display: block;
		width: 64px;
		height: 64px;
	}

	body .app-shell.is-emotion-view .category-subgroups .subcategory-row .subcategory-symbol,
	body .app-shell.is-emotion-view .category-subgroups .subcategory-row > .chevron {
		display: none;
	}

	body .app-shell.is-emotion-view .category-subgroups .subcategory-row .subcategory-label {
		color: var(--figma-ink);
		font-size: 22px;
		font-weight: 700;
		letter-spacing: 0;
	}

	body .app-shell.is-emotion-view .emotion-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
		gap: 24px;
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	body .app-shell.is-emotion-view .emotion-grid[hidden] {
		display: none;
	}

	body .app-shell.is-emotion-view .emotion-card {
		position: relative;
		display: flex;
		height: 100%;
		flex-direction: column;
		padding: 12px;
		overflow: hidden;
		border: 1px solid var(--figma-secondary);
		border-radius: 24px;
		background: var(--figma-surface);
		box-shadow: var(--figma-soft-shadow);
		cursor: pointer;
		transition: transform 160ms ease, box-shadow 160ms ease;
	}

	body .app-shell.is-emotion-view .emotion-card:hover {
		transform: translateY(-3px);
	}

	body .app-shell.is-emotion-view .emotion-photo-placeholder {
		position: relative;
		width: 100%;
		height: auto;
		margin: 0;
		aspect-ratio: 1.15 / 1;
		overflow: hidden;
		border-radius: 18px;
		background: var(--figma-secondary);
	}

	body .app-shell.is-emotion-view .emotion-photo-placeholder::after {
		position: absolute;
		top: 10px;
		right: 10px;
		display: grid;
		width: 36px;
		height: 36px;
		place-items: center;
		border-radius: 50%;
		background: var(--figma-surface);
		color: var(--figma-muted);
		content: "+";
		font-size: 26px;
		line-height: 1;
	}

	body .app-shell.is-emotion-view .emotion-card.is-selected {
		outline: 3px solid var(--figma-brand);
		outline-offset: -3px;
	}

	body .app-shell.is-emotion-view .emotion-card.is-selected .emotion-photo-placeholder::after {
		background: var(--figma-brand);
		color: #fff;
		content: "✓";
		font-size: 20px;
	}

	body .app-shell.is-emotion-view .emotion-card p {
		display: flex;
		width: 100%;
		height: auto;
		min-height: 2.6em;
		align-items: center;
		justify-content: flex-start;
		margin: 14px 0 12px;
		padding: 0;
		color: var(--figma-ink);
		font-size: var(--card-label);
		font-weight: 700;
		line-height: 1.25;
		text-align: left;
		text-transform: none;
	}

	body .app-shell.is-emotion-view .emotion-card-tools {
		position: static;
		display: flex;
		width: 100%;
		height: auto;
		min-height: 0;
		margin: auto 0 0;
		padding: 0;
	}

	body .app-shell.is-emotion-view .emotion-audio {
		width: 100%;
		height: 52px;
		min-height: 52px;
		flex: 1 1 auto;
		justify-content: center;
		gap: 8px;
		padding: 0 16px;
		border-radius: 26px;
		background: var(--figma-secondary);
		box-shadow: none;
		color: var(--figma-muted);
		font-size: 17px;
		font-weight: 400;
	}

	body .app-shell.is-emotion-view .emotion-audio:hover,
	body .app-shell.is-emotion-view .emotion-audio.is-playing {
		background: rgb(136 167 201 / 22%);
		color: var(--figma-brand);
	}

	body.text-only .app-shell.is-emotion-view .emotion-photo-placeholder {
		display: none;
	}

	body .app-shell .search-results {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
		align-content: start;
		gap: 16px;
	}

	body .app-shell .search-results[hidden] {
		display: none;
	}

	body .app-shell.is-emotion-view .desktop-actions .emotion-back {
		position: fixed;
		z-index: 40;
		right: 32px;
		bottom: 32px;
		display: grid;
		width: 72px;
		height: 72px;
		min-height: 72px;
		flex: 0 0 72px;
		place-items: center;
		border: 0;
		border-radius: 50%;
		background: var(--figma-brand);
		box-shadow: var(--figma-soft-shadow);
		color: #fff;
		cursor: pointer;
	}

	/* Dialogs and sheets */
	.sheet {
		align-items: center;
	}

	.sheet-panel {
		width: min(100%, 560px);
		max-height: 80vh;
		padding: 28px;
		border-radius: 32px;
		box-shadow: 0 24px 60px rgb(63 82 124 / 22%);
	}

	.sheet-handle {
		display: none;
	}

	.sheet-header h2 {
		font-size: 24px;
	}

	.sheet-option {
		font-size: 18px;
	}

	.show-text {
		font-size: clamp(40px, 7vw, 120px);
	}
}

@media all {
	.card-dialog {
		width: min(100%, 480px);
		max-width: 100%;
		max-height: 90dvh;
		margin: auto auto 0;
		border: 0;
		border-radius: 32px 32px 0 0;
		background: var(--figma-bg);
		box-shadow: none;
		color: var(--figma-ink);
	}

	.card-dialog::backdrop {
		background: rgb(63 82 124 / 24%);
		backdrop-filter: none;
	}

	.card-dialog-form {
		gap: 24px;
		padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
	}

	.card-dialog-header h2 {
		color: var(--figma-ink);
		font-size: 20px;
	}

	.card-dialog-header p {
		color: var(--figma-muted);
		font-size: 14px;
		font-weight: 400;
	}

	.card-dialog-close {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
		background: rgb(136 167 201 / 10%);
		color: var(--figma-muted);
	}

	.card-form-field,
	.card-photo-field,
	.card-audio-field {
		gap: 10px;
		color: var(--figma-ink);
		font-size: 16px;
		font-weight: 700;
	}

	.card-form-field input {
		height: 56px;
		border: 0;
		border-radius: 20px;
		background: rgb(136 167 201 / 10%);
		color: var(--figma-ink);
		font-weight: 400;
	}

	.card-form-field input:focus {
		outline: 2px solid rgb(136 167 201 / 60%);
		outline-offset: 0;
	}

	.card-photo-preview {
		width: 72px;
		height: 72px;
		flex-basis: 72px;
		border-radius: 20px;
		background: rgb(136 167 201 / 10%) url("kategoriju-ikonos/pridėti kortelę.png") center / 36px no-repeat;
	}

	.card-audio-controls {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-items: stretch;
		align-items: stretch;
	}

	.card-audio-controls .card-photo-select {
		align-self: stretch;
		line-height: 1.2;
		text-align: center;
	}

	.card-audio-preview {
		grid-column: 1 / -1;
		width: 100%;
	}

	.card-photo-select,
	.card-cancel-button,
	.card-save-button {
		min-height: 48px;
		padding: 0 16px;
		border: 0;
		border-radius: 24px;
		background: rgb(136 167 201 / 10%);
		color: var(--figma-ink);
		font-size: 16px;
		font-weight: 400;
	}

	.card-dialog-actions {
		gap: 12px;
	}

	.card-dialog-actions .card-cancel-button {
		flex: 1 1 0;
	}

	.card-dialog-actions .card-save-button {
		flex: 1.4 1 0;
		background: var(--figma-brand);
		color: #fff;
		font-weight: 700;
	}

	.app-shell.is-emotion-view .emotion-photo-placeholder::after {
		position: absolute;
		top: 8px;
		right: 8px;
		display: grid;
		width: 28px;
		height: 28px;
		place-items: center;
		border-radius: 50%;
		background: var(--figma-surface);
		color: var(--figma-muted);
		content: "+";
		font-size: 20px;
		line-height: 1;
	}

	.app-shell.is-emotion-view .emotion-card.is-selected {
		outline: 2px solid var(--figma-brand);
		outline-offset: -2px;
	}

	.app-shell.is-emotion-view .emotion-card.is-selected .emotion-photo-placeholder::after {
		background: var(--figma-brand);
		color: #fff;
		content: "✓";
		font-size: 16px;
	}

	.app-shell.is-emotion-view .emotion-audio.is-playing {
		background: rgb(136 167 201 / 20%);
		color: var(--figma-brand);
	}
}

@media (min-width: 760px) {
	body .card-dialog {
		width: min(100% - 32px, 520px);
		margin: auto;
		border-radius: 32px;
	}

	body .card-dialog::backdrop {
		background: rgb(63 82 124 / 28%);
	}

	body .card-dialog-form {
		padding: 28px;
	}
}

@media (min-width: 760px) and (max-width: 1180px) {
	:root {
		--side-w: 300px;
	}

	body .desktop-tool:not(.desktop-tool--icon) {
		width: 56px;
		padding: 0;
	}

	body .desktop-tool:not(.desktop-tool--icon) span {
		display: none;
	}

	body .app-shell .sentence-show,
	body .app-shell .sentence-clear {
		width: 52px;
		padding: 0;
	}

	body .app-shell .home-intro,
	body .app-shell .emotion-view,
	body .app-shell .search-results {
		padding-right: 24px;
		padding-left: 24px;
	}

	body .app-shell .sticky-message-panel {
		margin-right: 24px;
		margin-left: 24px;
	}
}

/* Primary button states */
:root {
	--btn-bg: #5974ae;
	--btn-hover: #516a9e;
	--btn-pressed: #3f527c;
	--btn-text: #fafcfd;
	--btn-border: #3f527c;
	--btn-shadow: 0 6px 16px rgb(89 116 174 / 20%);
	--btn-disabled-bg: #fbfcfd;
	--btn-disabled-text: #bebebe;
	--btn-icon-dark: brightness(0) saturate(100%) invert(29%) sepia(16%) saturate(1320%) hue-rotate(184deg) brightness(92%) contrast(88%);
}

.card-dialog .card-save-button,
body .desktop-actions .desktop-category-add-button,
body .app-shell .sentence-speak,
body .app-shell.is-emotion-view .desktop-actions .emotion-back {
	border: 1px solid var(--btn-bg);
	background: var(--btn-bg);
	box-shadow: var(--btn-shadow);
	color: var(--btn-text);
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.card-dialog .card-save-button:hover,
body .desktop-actions .desktop-category-add-button:hover,
body .app-shell .sentence-speak:hover,
body .app-shell.is-emotion-view .desktop-actions .emotion-back:hover {
	border-color: var(--btn-hover);
	background: var(--btn-hover);
}

.card-dialog .card-save-button:focus-visible,
body .desktop-actions .desktop-category-add-button:focus-visible,
body .app-shell .sentence-speak:focus-visible,
body .app-shell.is-emotion-view .desktop-actions .emotion-back:focus-visible {
	border-color: var(--btn-border);
	background: transparent;
	box-shadow: none;
	color: var(--btn-border);
	outline: 0;
}

.card-dialog .card-save-button:active,
body .desktop-actions .desktop-category-add-button:active,
body .app-shell .sentence-speak:active,
body .app-shell.is-emotion-view .desktop-actions .emotion-back:active {
	border-color: var(--btn-pressed);
	background: var(--btn-pressed);
	box-shadow: none;
	color: var(--btn-text);
	transform: none;
}

.card-dialog .card-save-button:disabled,
body .desktop-actions .desktop-category-add-button:disabled,
body .app-shell .sentence-speak:disabled,
body .app-shell:not(.has-sentence) .sentence-speak {
	border-color: var(--btn-disabled-bg);
	background: var(--btn-disabled-bg);
	box-shadow: none;
	color: var(--btn-disabled-text);
	cursor: default;
	opacity: 1;
	pointer-events: none;
}

body .app-shell .sentence-speak:focus-visible img {
	filter: var(--btn-icon-dark);
}

body .app-shell .sentence-speak:disabled img,
body .app-shell:not(.has-sentence) .sentence-speak img {
	filter: brightness(0) invert(.75);
}

body .app-shell.is-emotion-view .desktop-actions .emotion-back:focus-visible .emotion-back-icon,
body .app-shell.is-emotion-view .desktop-actions .emotion-back:active .emotion-back-icon {
	color: inherit;
}
