/* ---------- Home ---------- */
.home-llm-home {
	--hlh-radius: 16px;
	--hlh-soft: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
	--hlh-card-bg: var(--background-secondary);
	--hlh-card-border: var(--background-modifier-border);
	position: relative;
	padding: 0 !important;
	overflow: hidden !important;
	background:
		radial-gradient(900px 380px at 50% -120px, color-mix(in srgb, var(--interactive-accent) 16%, transparent), transparent 70%),
		var(--background-primary);
}
.home-llm-home.hlh-bg-plain {
	background: var(--background-primary);
}
.hlh-scroll {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	z-index: 1;
}
.hlh-page {
	max-width: 860px;
	margin: 0 auto;
	padding: 56px 28px 48px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* hero */
.hlh-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}
.hlh-eyebrow {
	font-size: var(--font-ui-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--interactive-accent);
	margin-bottom: 6px;
}
.hlh-greeting {
	margin: 0;
	font-size: 2.6em;
	font-weight: 750;
	line-height: 1.05;
	letter-spacing: -0.025em;
}
.hlh-clock {
	font-size: 2.6em;
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--text-faint);
	font-variant-numeric: tabular-nums;
}

/* search */
.hlh-search {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	border-radius: var(--hlh-radius);
	border: 1px solid var(--hlh-card-border);
	background: var(--hlh-card-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.hlh-search:focus-within {
	border-color: var(--interactive-accent);
	box-shadow: 0 0 0 4px var(--hlh-soft);
}
.hlh-search-icon {
	display: flex;
	padding: 0 4px 0 18px;
	color: var(--text-faint);
}
.hlh-search-icon svg {
	width: 18px;
	height: 18px;
}
.hlh-search-input.hlh-search-input {
	flex: 1;
	height: 54px;
	padding: 0 18px 0 10px;
	border: none;
	background: transparent;
	box-shadow: none;
	font-size: 16px; /* no iOS zoom */
}
.hlh-results {
	display: none;
	width: 100%;
	padding: 6px;
	border-top: 1px solid var(--background-modifier-border);
}
.hlh-search.is-open .hlh-results {
	display: block;
}

/* quick actions */
.hlh-actions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.hlh-action {
	--hue: var(--interactive-accent);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	height: auto;
	padding: 14px;
	border-radius: var(--hlh-radius);
	border: 1px solid var(--hlh-card-border);
	background: var(--hlh-card-bg);
	box-shadow: none;
	text-align: left;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s, background 0.15s;
}
.hlh-action:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--hue) 55%, var(--background-modifier-border));
	background: color-mix(in srgb, var(--hue) 6%, var(--background-secondary));
}
.hlh-action:active {
	transform: translateY(0) scale(0.98);
}
.hlh-hue-blue { --hue: var(--color-blue); }
.hlh-hue-purple { --hue: var(--color-purple); }
.hlh-hue-cyan { --hue: var(--color-cyan); }
.hlh-hue-orange { --hue: var(--color-orange); }
.hlh-hue-green { --hue: var(--color-green); }
.hlh-action-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--hue) 16%, transparent);
	color: var(--hue);
}
.hlh-action-icon svg {
	width: 18px;
	height: 18px;
}
.hlh-action-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	width: 100%;
}
.hlh-action-label {
	font-weight: 600;
	color: var(--text-normal);
}
.hlh-action-sub {
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* recent columns */
.hlh-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.hlh-columns.is-single {
	grid-template-columns: 1fr;
}
.hlh-card {
	border-radius: var(--hlh-radius);
	border: 1px solid var(--hlh-card-border);
	background: var(--hlh-card-bg);
	padding: 14px 8px 8px;
	min-width: 0;
}
.hlh-card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 10px 8px;
	font-size: var(--font-ui-small);
	font-weight: 600;
	color: var(--text-muted);
}
.hlh-card-icon {
	display: flex;
}
.hlh-card-icon svg {
	width: 14px;
	height: 14px;
	color: var(--text-faint);
}
.hlh-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	min-height: 44px;
	border-radius: 10px;
	cursor: pointer;
}
.hlh-row:hover,
.hlh-row.is-selected {
	background: var(--background-modifier-hover);
}
.hlh-row-icon {
	display: flex;
	flex-shrink: 0;
}
.hlh-row-icon svg {
	width: 16px;
	height: 16px;
	color: var(--text-faint);
}
.hlh-row-text {
	flex: 1;
	min-width: 0;
}
.hlh-row-name,
.hlh-row-sub {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hlh-row-name {
	flex: 1;
	min-width: 0;
	color: var(--text-normal);
}
.hlh-row-sub {
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
}
.hlh-row-meta {
	flex-shrink: 0;
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
	font-variant-numeric: tabular-nums;
}
.hlh-empty {
	padding: 6px 10px 12px;
	font-size: var(--font-ui-small);
	color: var(--text-faint);
}
.hlh-stats {
	text-align: center;
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
	padding-top: 4px;
}

@media (max-width: 700px) {
	.hlh-page {
		padding: 28px 14px 40px;
		gap: 18px;
	}
	.hlh-greeting,
	.hlh-clock {
		font-size: 2em;
	}
	/* phone: one row of app-style icons */
	.hlh-actions {
		grid-template-columns: repeat(4, 1fr);
		gap: 4px;
	}
	.hlh-action {
		align-items: center;
		gap: 6px;
		padding: 6px 0;
		border: none;
		background: transparent;
		text-align: center;
	}
	.hlh-action:hover {
		transform: none;
		background: transparent;
	}
	.hlh-action-icon {
		width: 52px;
		height: 52px;
		border-radius: 15px;
	}
	.hlh-action-icon svg {
		width: 22px;
		height: 22px;
	}
	.hlh-action-label {
		font-size: 12px;
		font-weight: 500;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.hlh-action-sub {
		display: none;
	}
	.hlh-columns {
		grid-template-columns: 1fr;
	}
}

/* ----- scene backgrounds ----- */
/* dark scenes: always dark, whatever the Obsidian theme */
.home-llm-home.hlh-scene-dark {
	--hlh-card-bg: rgba(16, 16, 30, 0.8);
	--hlh-card-border: rgba(255, 255, 255, 0.09);
	--hlh-results-bg: #15141f;
	--background-modifier-hover: rgba(255, 255, 255, 0.07);
	--background-modifier-border: rgba(255, 255, 255, 0.09);
	--text-normal: #ecebf3;
	--text-muted: #b9b6cb;
	--text-faint: #827f98;
	color: var(--text-normal);
}
/* light scenes: frosted white cards, dark text */
.home-llm-home.hlh-scene-light {
	--hlh-card-bg: rgba(255, 255, 255, 0.8);
	--hlh-card-border: rgba(20, 30, 50, 0.1);
	--hlh-results-bg: #ffffff;
	--background-modifier-hover: rgba(20, 30, 50, 0.06);
	--background-modifier-border: rgba(20, 30, 50, 0.1);
	--text-normal: #1d2433;
	--text-muted: #4a5468;
	--text-faint: #7a8396;
	color: var(--text-normal);
}
.hlh-scene-light .hlh-greeting,
.hlh-scene-light .hlh-brand-name,
.hlh-scene-light .hlh-eyebrow {
	color: #33449a;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 3px rgba(255, 255, 255, 0.9);
}
.hlh-scene-light .hlh-clock {
	text-shadow: 0 1px 12px rgba(255, 255, 255, 0.5);
}
.hlh-scene-light .hlh-eyebrow {
	color: #33449a;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 3px rgba(255, 255, 255, 0.9);
}
.hlh-scene-light .hlh-clock {
	color: rgba(29, 36, 51, 0.55);
}
.hlh-dashboard .hlh-results {
	background: var(--hlh-results-bg, var(--background-primary)) !important;
}
.hlh-bg-night {
	background:
		radial-gradient(1000px 520px at 50% 20%, rgba(124, 92, 245, 0.22), transparent 70%),
		linear-gradient(180deg, #0c0a1a 0%, #151030 55%, #1c1638 100%) !important;
}
.home-llm-home.hlh-bg-night { --hlh-card-bg: rgba(20, 16, 40, 0.82); --hlh-results-bg: #17122c; }
.hlh-bg-lake {
	background: linear-gradient(180deg, #202329 0%, #242b36 32%, #1f3248 58%, #2c4b62 74%, #0a141c 100%) !important;
}
.hlh-bg-aurora {
	background: linear-gradient(180deg, #020a10 0%, #05202a 45%, #0b3135 72%, #10403f 100%) !important;
}
.hlh-bg-sunset {
	background: linear-gradient(180deg, #1d1540 0%, #55285c 28%, #c3465f 52%, #ee8549 70%, #f7b767 84%) !important;
}
.home-llm-home.hlh-bg-sunset { --hlh-card-bg: rgba(36, 18, 34, 0.78); --hlh-results-bg: #2a1525; }
.hlh-bg-dawn {
	background: linear-gradient(180deg, #8fb2da 0%, #c4c3dc 34%, #f1c7b1 58%, #fde1c2 66%, #3f5f88 100%) !important;
}
.hlh-bg-meadow {
	background: linear-gradient(180deg, #4fa8e6 0%, #8fcdf2 48%, #d5eefa 72%, #5aa551 100%) !important;
}
.hlh-bg-city {
	background: linear-gradient(180deg, #121624 0%, #1c2335 50%, #2a3450 78%, #111624 100%) !important;
}
.home-llm-home.hlh-bg-city { --hlh-card-bg: rgba(14, 17, 28, 0.82); }

.hlh-sky {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.hlh-star {
	position: absolute;
	border-radius: 50%;
	background: #fff;
}
.hlh-star.is-twinkle {
	animation: hlh-twinkle 4s ease-in-out infinite;
}
@keyframes hlh-twinkle {
	0%, 100% { opacity: 0.25; }
	50% { opacity: 1; }
}
.hlh-fx {
	position: absolute;
}
.hlh-land {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42%;
	min-height: 220px;
}
.hlh-land svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* night (cabin) */
.hlh-cloud-0, .hlh-cloud-1, .hlh-cloud-2, .hlh-cloud-3 {
	height: 12px;
	border-radius: 999px;
	background: rgba(150, 130, 230, 0.12);
	filter: blur(1px);
	animation: hlh-drift 60s linear infinite;
}
.hlh-cloud-0 { top: 9%; left: 8%; width: 220px; }
.hlh-cloud-1 { top: 21%; left: 70%; width: 280px; animation-duration: 80s; animation-delay: -20s; }
.hlh-cloud-2 { top: 26%; left: 22%; width: 160px; animation-duration: 70s; animation-delay: -40s; }
.hlh-cloud-3 { top: 13%; left: 48%; width: 120px; animation-duration: 90s; animation-delay: -10s; }
@keyframes hlh-drift {
	from { transform: translateX(-30vw); }
	to { transform: translateX(30vw); }
}
.hlh-smoke {
	animation: hlh-smoke 6s ease-in-out infinite;
}
@keyframes hlh-smoke {
	0%, 100% { opacity: 0.25; transform: translateY(0); }
	50% { opacity: 0.6; transform: translateY(-4px); }
}

/* full-size scene layers */
.hlh-layer {
	position: absolute;
	inset: 0;
}
.hlh-layer svg {
	display: block;
	width: 100%;
	height: 100%;
}
.hlh-vignette {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.32) 100%);
}
.hlh-scene-light .hlh-vignette {
	background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 60%, rgba(30, 40, 70, 0.14) 100%);
}
/* fine film grain for an illustrated, printed feel */
.hlh-grain {
	position: absolute;
	inset: 0;
	opacity: 0.07;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.hlh-tw {
	animation: hlh-twinkle 4s ease-in-out infinite;
}
.hlh-glint {
	animation: hlh-glint 3.2s ease-in-out infinite;
}
@keyframes hlh-glint {
	0%, 100% { opacity: 0.25; }
	50% { opacity: 0.95; }
}
.hlh-drift {
	animation: hlh-drift-soft 60s ease-in-out infinite alternate;
}
@keyframes hlh-drift-soft {
	from { transform: translateX(-50px); }
	to { transform: translateX(50px); }
}
.hlh-waves {
	animation: hlh-waves 7s ease-in-out infinite alternate;
}
@keyframes hlh-waves {
	from { transform: translateX(-8px); }
	to { transform: translateX(8px); }
}

/* aurora: soft curtains with vertical rays */
.hlh-aurora-0, .hlh-aurora-1, .hlh-aurora-2 {
	left: -20%;
	width: 140%;
	top: 2%;
	height: 42%;
	mix-blend-mode: screen;
	filter: blur(10px);
	border-radius: 45% 55% 40% 50% / 70% 60% 35% 30%;
	-webkit-mask-image: repeating-linear-gradient(90deg, #000 0 3px, rgba(0, 0, 0, 0.35) 3px 9px, #000 9px 12px, rgba(0, 0, 0, 0.12) 12px 21px);
	mask-image: repeating-linear-gradient(90deg, #000 0 3px, rgba(0, 0, 0, 0.35) 3px 9px, #000 9px 12px, rgba(0, 0, 0, 0.12) 12px 21px);
	transform-origin: 50% 100%;
	animation: hlh-aurora 22s ease-in-out infinite alternate;
}
.hlh-aurora-0 {
	background: linear-gradient(180deg, transparent 0%, rgba(120, 255, 200, 0.25) 30%, rgba(70, 245, 170, 0.75) 68%, rgba(40, 210, 160, 0.9) 82%, transparent 100%);
	opacity: 0.85;
}
.hlh-aurora-1 {
	top: 8%;
	left: -35%;
	background: linear-gradient(180deg, transparent 0%, rgba(190, 120, 255, 0.45) 25%, rgba(120, 240, 190, 0.6) 70%, transparent 100%);
	opacity: 0.6;
	animation-duration: 28s;
	animation-delay: -9s;
}
.hlh-aurora-2 {
	top: 0;
	height: 30%;
	left: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(255, 120, 200, 0.35) 40%, rgba(90, 230, 200, 0.4) 80%, transparent 100%);
	opacity: 0.45;
	animation-duration: 34s;
	animation-delay: -17s;
}
@keyframes hlh-aurora {
	0% { transform: translateX(-4%) skewX(-14deg) scaleY(0.92); }
	50% { transform: translateX(2%) skewX(-6deg) scaleY(1.08); }
	100% { transform: translateX(5%) skewX(-16deg) scaleY(0.96); }
}

.hlh-aurora {
	animation: hlh-aurora-sway 14s ease-in-out infinite alternate;
}
@keyframes hlh-aurora-sway {
	0% { transform: translateX(-18px); opacity: 0.8; }
	50% { opacity: 1; }
	100% { transform: translateX(18px); opacity: 0.85; }
}

.hlh-blink {
	animation: hlh-blink 2.4s steps(1) infinite;
}
@keyframes hlh-blink {
	0%, 60% { opacity: 1; }
	61%, 100% { opacity: 0.15; }
}

/* rain: two layers at different speeds */
.hlh-rain-0, .hlh-rain-1 {
	inset: -200px 0 0 0;
	background-image: repeating-linear-gradient(102deg, transparent 0 22px, rgba(200, 215, 240, 0.18) 22px 23px, transparent 23px 51px);
	background-size: 100% 260px;
	animation: hlh-rain 0.55s linear infinite;
}
.hlh-rain-1 {
	background-image: repeating-linear-gradient(104deg, transparent 0 37px, rgba(200, 215, 240, 0.1) 37px 38px, transparent 38px 83px);
	background-size: 100% 180px;
	animation-duration: 0.9s;
}
@keyframes hlh-rain {
	from { background-position: 0 0; }
	to { background-position: -56px 260px; }
}

@media (prefers-reduced-motion: reduce) {
	.hlh-star, .hlh-fx, .hlh-smoke, .hlh-tw, .hlh-glint, .hlh-drift, .hlh-waves, .hlh-aurora, .hlh-blink { animation: none !important; }
}

/* ----- dashboard style ----- */
.hlh-page.hlh-dashboard {
	max-width: 1280px;
	padding: 64px 28px 40px;
	gap: 36px;
}
.hlh-dash-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.hlh-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}
.hlh-brand-logo {
	display: flex;
	filter: drop-shadow(0 0 22px rgba(124, 77, 255, 0.55));
}
.hlh-brand-logo svg {
	width: 56px;
	height: 56px;
}
.hlh-ampm {
	margin-left: 0.18em;
	font-size: 0.36em;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.hlh-brand-icon {
	display: flex;
	color: var(--interactive-accent);
	filter: drop-shadow(0 0 18px color-mix(in srgb, var(--interactive-accent) 60%, transparent));
}
.hlh-brand-icon svg {
	width: 44px;
	height: 44px;
	stroke-width: 1.75;
}
.hlh-brand-name {
	font-size: 3.2em;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}
.hlh-dash-bar {
	display: flex;
	gap: 12px;
	width: 100%;
	max-width: 720px;
}
.hlh-dash-bar .hlh-search {
	flex: 1;
	flex-wrap: nowrap;
}
.hlh-dash-bar .hlh-search-input.hlh-search-input {
	height: 50px;
}
.hlh-dashboard .hlh-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 10;
	border: 1px solid var(--hlh-card-border);
	border-radius: 14px;
	background: var(--background-primary);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.hlh-dash-new {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 20px;
	border-radius: var(--hlh-radius);
	border: 1px solid var(--hlh-card-border);
	background: var(--hlh-card-bg);
	box-shadow: none;
	font-weight: 600;
	color: var(--text-normal);
	cursor: pointer;
	white-space: nowrap;
}
.hlh-dash-new:hover {
	border-color: var(--interactive-accent);
}
.hlh-dash-new-icon {
	display: flex;
}
.hlh-dash-new-icon svg {
	width: 16px;
	height: 16px;
}
.hlh-dash-quick {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.hlh-dash-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--hlh-card-border);
	background: var(--hlh-card-bg);
	box-shadow: none;
	font-size: var(--font-ui-small);
	color: var(--text-muted);
	cursor: pointer;
}
.hlh-dash-chip:hover {
	color: var(--text-normal);
	border-color: var(--interactive-accent);
}
.hlh-dash-chip-icon {
	display: flex;
}
.hlh-dash-chip-icon svg {
	width: 14px;
	height: 14px;
}
.hlh-dash-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-areas:
		"stats stats vault"
		"recent recent vault";
	gap: 16px;
}
.hlh-area {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
/* every card fills its grid cell, so columns finish on the same line */
.hlh-area > .hlh-card {
	flex: 1;
}
.hlh-area-clock { grid-area: clock; }
.hlh-area-vault { grid-area: vault; }
.hlh-area-recent { grid-area: recent; }
.hlh-area-stats { grid-area: stats; }
.hlh-dashboard .hlh-card,
.hl-widget .hlh-card {
	padding: 0 0 8px;
}
.hlh-dashboard .hlh-card-head,
.hl-widget .hlh-card-head {
	padding: 16px 18px 6px;
	color: var(--text-muted);
}
.hlh-dashboard .hlh-card-body,
.hl-widget .hlh-card-body {
	padding: 0 8px;
}
.hlh-card-link {
	margin-left: auto;
	height: auto;
	padding: 2px 8px;
	border-radius: 6px;
	background: transparent;
	box-shadow: none;
	font-size: var(--font-ui-smaller);
	color: var(--interactive-accent);
	cursor: pointer;
}

/* clock */
.hlh-dashboard .hlh-clock-card,
.hl-widget .hlh-clock-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 18px 16px;
	text-align: center;
}
.hlh-clock-greet {
	color: var(--text-muted);
	font-size: var(--font-ui-small);
}
.hlh-clock-big {
	font-size: 3.4em;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.hlh-clock-date {
	color: var(--text-muted);
}

/* calendar */
.hlh-cal {
	padding: 4px 12px 8px;
}
.hlh-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.hlh-cal-title {
	font-weight: 600;
}
.hlh-cal-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 8px;
	border: 1px solid var(--hlh-card-border);
	background: transparent;
	box-shadow: none;
	color: var(--text-muted);
	cursor: pointer;
}
.hlh-cal-btn:hover {
	color: var(--text-normal);
	background: var(--background-modifier-hover);
}
.hlh-cal-btn svg {
	width: 16px;
	height: 16px;
}
.hlh-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	text-align: center;
}
.hlh-cal-dow {
	padding: 4px 0;
	font-size: 11px;
	color: var(--text-faint);
}
.hlh-cal-day {
	position: relative;
	height: 32px;
	padding: 0;
	border-radius: 8px;
	border: 1px solid transparent;
	background: transparent;
	box-shadow: none;
	font-size: var(--font-ui-small);
	font-variant-numeric: tabular-nums;
	color: var(--text-normal);
	cursor: pointer;
}
.hlh-cal-day:hover {
	background: var(--background-modifier-hover);
}
.hlh-cal-day.is-other {
	color: var(--text-faint);
}
.hlh-cal-day.is-today {
	border-color: var(--interactive-accent);
	background: color-mix(in srgb, var(--interactive-accent) 22%, transparent);
	font-weight: 700;
}
.hlh-cal-day.has-note::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 3px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--interactive-accent);
}

/* vault stats */
.hlh-stats-row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding: 4px 8px 6px;
}
.hlh-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 0;
}
.hlh-stat-icon {
	display: flex;
	color: var(--text-faint);
}
.hlh-stat-icon svg {
	width: 15px;
	height: 15px;
}
.hlh-stat-num {
	font-size: 1.5em;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
}
.hlh-stat-label {
	font-size: 11px;
	color: var(--text-faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}


@media (max-width: 1000px) {
	.hlh-dash-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"stats stats"
			"vault recent";
	}
}
@media (max-width: 700px) {
	.hlh-page.hlh-dashboard {
		padding: 32px 14px 32px;
		gap: 24px;
	}
	.hlh-brand-name {
		font-size: 2.2em;
	}
	.hlh-brand-icon svg,
	.hlh-brand-logo svg {
		width: 40px;
		height: 40px;
	}
	.hlh-dash-new span:last-child {
		display: none;
	}
	.hlh-dash-new {
		padding: 0 16px;
	}
	.hlh-dash-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "stats" "vault" "recent";
	}
	.hlh-stats-row {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* ---------- Chat ---------- */
.home-llm-chat {
	--hlc-radius: 16px;
	--hlc-soft: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
}
.home-llm-chat {
	display: flex;
	flex-direction: column;
	padding: 0 !important;
	height: 100%;
	background: var(--background-primary);
}
.hlc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var(--text-muted);
}
.hlc-icon:hover {
	background: var(--background-modifier-hover);
	color: var(--text-normal);
}
.hlc-icon.is-active {
	color: var(--interactive-accent);
	background: var(--hlc-soft);
}
.hlc-icon svg {
	width: 16px;
	height: 16px;
}

/* header */
.hlc-header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--background-modifier-border);
}
.hlc-model {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	border: 1px solid var(--background-modifier-border);
	font-size: var(--font-ui-small);
	font-weight: 600;
	color: var(--text-normal);
	cursor: pointer;
}
.hlc-model:hover {
	background: var(--background-modifier-hover);
}
.hlc-model-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hlc-model-icon svg {
	width: 14px;
	height: 14px;
	color: var(--interactive-accent);
}
.hlc-model-chevron svg {
	width: 14px;
	height: 14px;
	color: var(--text-faint);
}
.hlc-header-actions {
	display: flex;
	gap: 2px;
	margin-left: auto;
}

/* messages */
.hlc-list {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px 8px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	user-select: text;
	-webkit-user-select: text;
}
.hlc-msg {
	display: flex;
	flex-direction: column;
	max-width: 100%;
	animation: hlc-in 0.18s ease-out;
}
@keyframes hlc-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}
.hlc-user {
	align-items: flex-end;
}
.hlc-bubble {
	max-width: 88%;
	padding: 9px 14px;
	border-radius: 18px 18px 4px 18px;
	background: var(--hlc-soft);
	color: var(--text-normal);
	white-space: pre-wrap;
	word-wrap: break-word;
	line-height: 1.45;
}
.hlc-who {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	color: var(--text-muted);
}
.hlc-who-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: var(--hlc-soft);
}
.hlc-who-icon svg {
	width: 12px;
	height: 12px;
	color: var(--interactive-accent);
}
.hlc-body {
	line-height: 1.55;
	word-wrap: break-word;
}
.hlc-body > :first-child {
	margin-top: 0;
}
.hlc-body > :last-child {
	margin-bottom: 0;
}
.hlc-body pre {
	border-radius: 10px;
}
.hlc-error {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--text-error) 10%, transparent);
	color: var(--text-error);
	font-size: var(--font-ui-small);
}
.hlc-error-icon svg {
	width: 16px;
	height: 16px;
}
.hlc-tools {
	display: flex;
	gap: 0;
	margin-top: 4px;
	margin-left: -6px;
	opacity: 0;
	transition: opacity 0.15s;
}
.hlc-msg:hover .hlc-tools,
.hlc-msg:last-child .hlc-tools,
.is-mobile .hlc-tools {
	opacity: 1;
}
.hlc-tools .hlc-icon {
	width: 26px;
	height: 26px;
}
.hlc-tools .hlc-icon svg {
	width: 14px;
	height: 14px;
}
.hlc-typing {
	display: flex;
	gap: 4px;
	padding: 8px 2px;
}
.hlc-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--text-faint);
	animation: hlc-bounce 1.2s infinite ease-in-out;
}
.hlc-typing span:nth-child(2) { animation-delay: 0.15s; }
.hlc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hlc-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* empty state */
.hlc-empty {
	margin: auto 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 24px 4px;
}
.hlc-empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--hlc-soft);
	margin-bottom: 6px;
}
.hlc-empty-icon svg {
	width: 24px;
	height: 24px;
	color: var(--interactive-accent);
}
.hlc-empty-title {
	font-size: 1.25em;
	font-weight: 600;
}
.hlc-empty-sub {
	font-size: var(--font-ui-small);
	color: var(--text-faint);
	margin-bottom: 14px;
}
.hlc-suggestions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	width: 100%;
	max-width: 420px;
}
.hlc-suggestion {
	display: flex;
	align-items: center;
	gap: 10px;
	height: auto;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--background-modifier-border);
	background: var(--background-primary);
	box-shadow: none;
	text-align: left;
	white-space: normal;
	font-size: var(--font-ui-small);
	color: var(--text-normal);
	cursor: pointer;
}
.hlc-suggestion:hover {
	background: var(--background-modifier-hover);
	border-color: var(--interactive-accent);
}
.hlc-suggestion-icon svg {
	width: 16px;
	height: 16px;
	color: var(--interactive-accent);
}

/* composer */
.hlc-composer {
	padding: 8px 10px 10px;
	padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.hlc-box {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 8px 6px 12px;
	border-radius: var(--hlc-radius);
	border: 1px solid var(--background-modifier-border);
	background: var(--background-secondary);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.hlc-box:focus-within {
	border-color: var(--interactive-accent);
	box-shadow: 0 0 0 3px var(--hlc-soft);
}
.hlc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.hlc-chips:empty {
	display: none;
}
.hlc-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 2px 4px 2px 8px;
	border-radius: 999px;
	background: var(--hlc-soft);
	color: var(--interactive-accent);
	font-size: var(--font-ui-smaller);
	font-weight: 600;
}
.hlc-chip-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hlc-chip svg {
	width: 12px;
	height: 12px;
}
.hlc-chip-x {
	display: inline-flex;
	padding: 2px;
	border-radius: 50%;
	cursor: pointer;
}
.hlc-chip-x:hover {
	background: var(--hlc-soft);
}
.hlc-input {
	width: 100%;
	min-height: 30px;
	max-height: 200px;
	padding: 4px 0;
	box-sizing: border-box;
	overflow-y: hidden;
	scrollbar-width: none;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	resize: none;
	font-size: 16px; /* no iOS zoom */
	line-height: 1.45;
}
.hlc-box-row {
	display: flex;
	align-items: center;
}
.hlc-spacer {
	flex: 1;
}
.hlc-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	background: var(--interactive-accent);
	color: var(--text-on-accent);
	box-shadow: none;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
}
.hlc-send:hover:not(:disabled) {
	background: var(--interactive-accent-hover);
}
.hlc-send:active:not(:disabled) {
	transform: scale(0.94);
}
.hlc-send:disabled {
	opacity: 0.35;
	cursor: default;
}
.hlc-send svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.5;
}

/* ribbon spacers */
.side-dock-ribbon-action.home-llm-ribbon-spacer {
	position: relative;
	height: 14px;
	min-height: 14px;
	padding: 0;
	background: none !important;
	cursor: grab;
	transition: height 0.12s ease;
}
.home-llm-ribbon-spacer svg {
	display: none;
}
.home-llm-ribbon-spacer::after {
	content: "";
	position: absolute;
	left: 30%;
	right: 30%;
	top: 50%;
	border-top: 1px solid var(--background-modifier-border);
}
/* while Command is held: big, obvious drag handles */
.home-llm-ribbon-editing .side-dock-ribbon-action.home-llm-ribbon-spacer {
	height: 26px;
	min-height: 26px;
	margin: 2px 4px;
	border-radius: 6px;
	border: 1px dashed var(--interactive-accent);
	background: color-mix(in srgb, var(--interactive-accent) 15%, transparent) !important;
	display: flex;
	align-items: center;
	justify-content: center;
}
.home-llm-ribbon-editing .home-llm-ribbon-spacer svg {
	display: block;
	width: 14px;
	height: 14px;
	color: var(--interactive-accent);
}
.home-llm-ribbon-editing .home-llm-ribbon-spacer::after {
	display: none;
}

/* ---------- Chat history ---------- */
.hlc-body-wrap {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.hlc-history {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	background: var(--background-primary);
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.15s, transform 0.15s;
}
.hlc-history.is-open {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.hlc-history-head {
	padding: 10px 10px 6px;
}
.hlc-history-search.hlc-history-search {
	width: 100%;
	height: 34px;
	border-radius: 10px;
	font-size: 16px;
}
.hlc-history-list {
	flex: 1;
	overflow-y: auto;
	padding: 0 6px 10px;
}
.hlc-history-group {
	padding: 12px 8px 4px;
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	color: var(--text-faint);
}
.hlc-history-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 8px;
	border-radius: 8px;
	cursor: pointer;
}
.hlc-history-item:hover {
	background: var(--background-modifier-hover);
}
.hlc-history-item.is-current {
	background: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
}
.hlc-history-text {
	flex: 1;
	min-width: 0;
}
.hlc-history-title,
.hlc-history-meta {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hlc-history-title {
	font-size: var(--font-ui-small);
}
.hlc-history-meta {
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
}
.hlc-history-del {
	opacity: 0;
	flex-shrink: 0;
}
.hlc-history-item:hover .hlc-history-del,
.is-mobile .hlc-history-del {
	opacity: 1;
}
.hlc-history-empty {
	padding: 24px 10px;
	text-align: center;
	font-size: var(--font-ui-small);
	color: var(--text-faint);
}

/* ---------- Spell check ---------- */
.hlp-modal {
	width: min(620px, 92vw);
}
.hlp-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.hlp-count {
	color: var(--text-muted);
	font-size: var(--font-ui-small);
}
.hlp-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 60vh;
	overflow-y: auto;
}
.hlp-item {
	--hlp-hue: var(--color-red);
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--background-modifier-border);
	border-left: 3px solid var(--hlp-hue);
	background: var(--background-secondary);
}
.hlp-punctuation { --hlp-hue: var(--color-orange); }
.hlp-grammar { --hlp-hue: var(--color-blue); }
.hlp-clarity { --hlp-hue: var(--color-purple); }
.hlp-item.is-fixed,
.hlp-item.is-ignored,
.hlp-item.is-missing {
	opacity: 0.55;
}
.hlp-item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}
.hlp-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	color: var(--hlp-hue);
}
.hlp-badge-icon {
	display: flex;
}
.hlp-badge-icon svg {
	width: 13px;
	height: 13px;
}
.hlp-state {
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
}
.hlp-change {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	line-height: 1.5;
	user-select: text;
}
.hlp-old {
	color: var(--text-muted);
	text-decoration: line-through;
	text-decoration-color: var(--color-red);
}
.hlp-new {
	color: var(--text-normal);
	font-weight: 600;
	background: color-mix(in srgb, var(--color-green) 16%, transparent);
	border-radius: 4px;
	padding: 0 4px;
}
.hlp-arrow {
	display: flex;
	color: var(--text-faint);
}
.hlp-arrow svg {
	width: 14px;
	height: 14px;
}
.hlp-reason {
	margin-top: 4px;
	font-size: var(--font-ui-small);
	color: var(--text-muted);
}
.hlp-actions {
	display: flex;
	gap: 6px;
	margin-top: 10px;
}
.hlp-actions button {
	height: 28px;
	padding: 0 12px;
	font-size: var(--font-ui-small);
}
.hlc-input.is-scrolling {
	overflow-y: auto;
}

/* ---------- Vault stats card ---------- */
/* The stats card is purple throughout, whatever the theme's accent colour. */
.hls-card {
	--hls-purple: #8a5cf5;
}

.hls-card {
	display: flex;
	flex-direction: column;
}
.hls-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 4px 16px 10px;
}
.hls-hero {
	padding: 4px 0 2px;
}
.hls-big {
	font-size: 2.6em;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(120deg, var(--text-normal), color-mix(in srgb, var(--hls-purple) 70%, var(--text-normal)));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hls-big-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: var(--font-ui-small);
	color: var(--text-muted);
}
.hls-today {
	padding: 1px 8px;
	border-radius: 999px;
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--hls-purple);
	background: color-mix(in srgb, var(--hls-purple) 16%, transparent);
}
.hls-today.is-down {
	color: color-mix(in srgb, var(--hls-purple) 70%, var(--text-muted));
	background: color-mix(in srgb, var(--hls-purple) 10%, transparent);
}
.hls-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.hls-tile {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	align-items: center;
	padding: 9px 10px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--text-normal) 4%, transparent);
	border: 1px solid var(--hlh-card-border, var(--background-modifier-border));
	min-width: 0;
}
.hls-tile-icon {
	grid-row: 1 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	color: var(--hls-purple);
	background: color-mix(in srgb, var(--hls-purple) 14%, transparent);
}
.hls-tile-icon svg {
	width: 15px;
	height: 15px;
}
.hls-tile-num {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hls-tile-label {
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hls-tasks-top {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: var(--font-ui-small);
	font-weight: 600;
}
.hls-tasks-count {
	font-weight: 400;
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}
.hls-bar {
	height: 8px;
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in srgb, var(--text-normal) 8%, transparent);
}
.hls-bar-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--hls-purple) 60%, transparent), var(--hls-purple));
}
.hls-rows {
	margin: 0 -8px;
}
.hls-rows-label {
	padding: 4px 10px 0;
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	color: var(--text-faint);
}

/* ---------- Widgets in notes ---------- */
.hl-widget {
	--hlh-radius: 16px;
	--hlh-soft: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
	--hlh-card-bg: var(--background-secondary);
	--hlh-card-border: var(--background-modifier-border);
	margin: 6px 0;
	max-width: 560px;
}
.hl-widget .hlh-card {
	padding-bottom: 8px;
}
.hl-widget .hlh-card-head {
	margin-bottom: 6px;
}
.hl-widget-suggestion {
	display: flex;
	align-items: center;
	gap: 10px;
}
.hl-widget-suggestion-icon {
	display: flex;
	color: var(--interactive-accent);
}
.hl-widget-suggestion-icon svg {
	width: 16px;
	height: 16px;
}

/* ---------- Graph view: purple links ---------- */
/* Obsidian reads graph colours from hidden ".graph-view.color-*" elements it adds to the page.
   Purple is the default; the "Purple links" setting adds hl-graph-default-lines to turn it off. */
body:not(.hl-graph-default-lines) .graph-view.color-line {
	color: rgba(160, 120, 255, 0.6);
}
body:not(.hl-graph-default-lines) .graph-view.color-line-highlight {
	color: rgb(178, 140, 255);
}

/* ---------- Chat: note tools ---------- */
.hlc-activity {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0 8px;
}
.hlc-activity-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	padding: 2px 9px 2px 7px;
	border-radius: 999px;
	border: 1px solid var(--background-modifier-border);
	background: var(--background-secondary);
	font-size: var(--font-ui-smaller);
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hlc-activity-icon {
	display: flex;
	color: var(--interactive-accent);
}
.hlc-activity-icon svg {
	width: 12px;
	height: 12px;
}
.hlc-approve {
	margin-top: 4px;
	border-radius: 14px;
	border: 1px solid color-mix(in srgb, var(--interactive-accent) 45%, var(--background-modifier-border));
	background: var(--background-secondary);
	overflow: hidden;
}
.hlc-approve-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 6px;
}
.hlc-approve-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: var(--interactive-accent);
	background: color-mix(in srgb, var(--interactive-accent) 14%, transparent);
}
.hlc-approve-icon svg {
	width: 15px;
	height: 15px;
}
.hlc-approve-title {
	min-width: 0;
	font-weight: 600;
	font-size: var(--font-ui-small);
}
.hlc-approve-path {
	font-weight: 400;
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hlc-approve-summary {
	padding: 0 12px 8px;
	font-size: var(--font-ui-small);
	color: var(--text-muted);
}
.hlc-diff {
	max-height: 260px;
	overflow: auto;
	padding: 6px 0;
	border-top: 1px solid var(--background-modifier-border);
	border-bottom: 1px solid var(--background-modifier-border);
	background: var(--background-primary);
	font-family: var(--font-monospace);
	font-size: 12px;
	line-height: 1.5;
	user-select: text;
	-webkit-user-select: text;
}
.hlc-diff-line {
	display: flex;
	padding: 0 10px;
	white-space: pre-wrap;
	word-break: break-word;
}
.hlc-diff-sign {
	flex-shrink: 0;
	width: 16px;
	color: var(--text-faint);
}
.hlc-diff-line.is-same {
	color: var(--text-muted);
}
.hlc-diff-line.is-del {
	background: color-mix(in srgb, var(--color-red) 14%, transparent);
	color: var(--text-normal);
}
.hlc-diff-line.is-del .hlc-diff-sign {
	color: var(--color-red);
}
.hlc-diff-line.is-add {
	background: color-mix(in srgb, var(--color-green) 14%, transparent);
	color: var(--text-normal);
}
.hlc-diff-line.is-add .hlc-diff-sign {
	color: var(--color-green);
}
.hlc-diff-line.is-gap {
	color: var(--text-faint);
	font-style: italic;
}
.hlc-approve-actions {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
}

/* ---------- Feature switches ---------- */
.side-dock-ribbon-action.hl-hidden {
	display: none !important;
}
.hlc-model-effort {
	padding: 0 6px;
	border-radius: 999px;
	font-size: var(--font-ui-smaller);
	font-weight: 500;
	color: var(--interactive-accent);
	background: color-mix(in srgb, var(--interactive-accent) 14%, transparent);
	white-space: nowrap;
}

/* ---------- Voice notes ---------- */

.side-dock-ribbon-action.hl-recording {
	color: var(--color-red);
}

.side-dock-ribbon-action.hl-recording svg {
	animation: hl-rec-pulse 1.4s ease-in-out infinite;
}

.hl-rec-wrap {
	position: fixed;
	top: calc(var(--header-height, 40px) + 8px);
	left: 50%;
	transform: translateX(-50%);
	z-index: var(--layer-notice);
	width: min(640px, calc(100vw - 24px));
	display: flex;
	flex-direction: column;
	gap: 6px;
	animation: hl-rec-in 180ms ease-out;
}

.hl-rec-wrap.is-mobile {
	top: calc(env(safe-area-inset-top, 0px) + 8px);
}

.hl-rec-bar {
	height: 48px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 8px 0 16px;
	border-radius: 24px;
	background: var(--background-primary);
	border: 1px solid var(--background-modifier-border);
	box-shadow: var(--shadow-l);
}

/* Live transcript: the last few lines of what's been said, fading in from the top. */
.hl-rec-live {
	max-height: calc(3 * 1.5em + 20px);
	overflow: hidden;
	padding: 10px 16px;
	border-radius: 14px;
	background: var(--background-primary);
	border: 1px solid var(--background-modifier-border);
	box-shadow: var(--shadow-s);
	font-size: var(--font-ui-small);
	line-height: 1.5;
	color: var(--text-normal);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px);
	mask-image: linear-gradient(to bottom, transparent 0, #000 14px);
}

.hl-rec-live.is-empty {
	color: var(--text-faint);
	font-style: italic;
}

.hl-rec-live.is-error {
	color: var(--text-error);
	font-style: normal;
}

.hl-rec-live-dots {
	color: var(--text-faint);
	animation: hl-rec-pulse 1.4s ease-in-out infinite;
}

.hl-rec-dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-red);
	animation: hl-rec-pulse 1.4s ease-in-out infinite;
}

.hl-rec-time {
	flex: none;
	min-width: 3.2em;
	font-variant-numeric: tabular-nums;
	font-size: var(--font-ui-small);
	font-weight: 600;
	color: var(--text-normal);
}

.hl-rec-wave {
	flex: 1;
	min-width: 0;
	height: 30px;
	color: var(--interactive-accent);
}

.hl-rec-btn.clickable-icon {
	flex: none;
	width: 34px;
	height: 34px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--text-normal);
}

.hl-rec-btn.clickable-icon:hover {
	background: var(--background-modifier-hover);
}

.hl-rec-stop.clickable-icon {
	color: var(--color-red);
}

.hl-rec-stop svg {
	fill: currentColor;
}

.hl-rec-bar.is-paused .hl-rec-dot {
	background: var(--text-faint);
	animation: none;
}

.hl-rec-bar.is-paused .hl-rec-wave {
	opacity: 0.5;
}

@keyframes hl-rec-pulse {
	50% {
		opacity: 0.35;
	}
}

@keyframes hl-rec-in {
	from {
		opacity: 0;
		transform: translate(-50%, -8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hl-rec-dot,
	.hl-rec-live-dots,
	.side-dock-ribbon-action.hl-recording svg,
	.hl-rec-wrap {
		animation: none;
	}
}

/* A feature that can't run because AI is off. */
.setting-item.hl-setting-off .setting-item-name {
	color: var(--text-muted);
}

/* Player that opens when a transcript time is clicked and the note's recording isn't on screen. */
.hl-mini-player {
	position: fixed;
	bottom: calc(var(--status-bar-height, 24px) + 16px);
	left: 50%;
	transform: translateX(-50%);
	z-index: var(--layer-notice);
	width: min(560px, calc(100vw - 24px));
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 14px;
	border-radius: 28px;
	background: var(--background-primary);
	border: 1px solid var(--background-modifier-border);
	box-shadow: var(--shadow-l);
}

.hl-mini-player.is-mobile {
	bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
}

.hl-mini-player-icon {
	display: flex;
	color: var(--interactive-accent);
}

.hl-mini-player-name {
	flex: none;
	max-width: 30%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: var(--font-ui-small);
	color: var(--text-muted);
}

.hl-mini-player audio {
	flex: 1;
	min-width: 0;
	height: 36px;
}

/* Transcript times look like small chips rather than links. */
.markdown-rendered a.external-link[href^="obsidian://home-ai-seek"] {
	text-decoration: none;
	padding: 0 6px;
	border-radius: 6px;
	background: var(--background-modifier-hover);
	background-image: none;
	font-variant-numeric: tabular-nums;
	font-size: 0.85em;
	color: var(--text-accent);
}

/* ---------- Focus timer ---------- */

.hlh-area-focus { grid-area: focus; }

.hlh-dash-grid.has-focus {
	grid-template-areas:
		"stats stats focus"
		"recent recent vault";
}

@media (max-width: 1000px) {
	.hlh-dash-grid.has-focus {
		grid-template-areas:
			"stats stats"
			"focus vault"
			"recent recent";
	}
}

@media (max-width: 700px) {
	.hlh-dash-grid.has-focus {
		grid-template-areas: "stats" "focus" "vault" "recent";
	}
}

/* The timer uses one colour everywhere: purple unless changed in settings (set on body as --hl-focus-colour). */
.hlh-focus-card,
.hl-focus-ribbon {
	--hl-focus: var(--hl-focus-colour, #8a5cf5);
}

.hlh-focus-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 4px 12px 8px;
}

.hlh-focus-modes {
	display: flex;
	gap: 4px;
	padding: 3px;
	border-radius: 999px;
	background: var(--background-modifier-hover);
}

.hlh-focus-mode {
	padding: 3px 10px;
	height: auto;
	border-radius: 999px;
	font-size: var(--font-ui-smaller);
	color: var(--text-muted);
	background: transparent;
	box-shadow: none;
}

.hlh-focus-mode.is-active {
	color: var(--text-on-accent);
	background: var(--hl-focus);
}

.hlh-focus-dial {
	position: relative;
	width: 150px;
	height: 150px;
}

.hlh-focus-ring {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.hlh-focus-ring circle {
	fill: none;
	stroke-width: 7;
}

.hlh-focus-track {
	stroke: var(--background-modifier-border);
}

.hlh-focus-arc {
	stroke: var(--hl-focus);
	stroke-linecap: round;
	transition: stroke-dashoffset 0.9s linear;
}

.hlh-focus-centre {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.hlh-focus-time {
	font-size: 2.1em;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	color: var(--text-normal);
}

.hlh-focus-label {
	font-size: var(--font-ui-smaller);
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.hlh-focus-controls {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hlh-focus-btn {
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--background-modifier-hover);
	box-shadow: none;
	color: var(--text-normal);
}

.hlh-focus-btn.is-primary {
	width: 48px;
	height: 48px;
	background: var(--hl-focus);
	color: var(--text-on-accent);
}

.hlh-focus-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hlh-focus-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--background-modifier-border);
}

.hlh-focus-dot.is-done {
	background: var(--hl-focus);
}

.hlh-focus-today {
	margin-left: 4px;
	font-size: var(--font-ui-smaller);
	color: var(--text-faint);
}

/* Modern home: a wide, short card with the dial on the left. */
.hlh-focus-card.is-compact .hlh-focus-body {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"dial modes"
		"dial controls"
		"dial dots";
	justify-items: start;
	align-items: center;
	column-gap: 24px;
	row-gap: 8px;
}

.hlh-focus-card.is-compact .hlh-focus-dial {
	grid-area: dial;
	width: 120px;
	height: 120px;
}

.hlh-focus-card.is-compact .hlh-focus-time {
	font-size: 1.7em;
}

.hlh-focus-card.is-compact .hlh-focus-modes { grid-area: modes; }
.hlh-focus-card.is-compact .hlh-focus-controls { grid-area: controls; }
.hlh-focus-card.is-compact .hlh-focus-dots { grid-area: dots; }

/* Ribbon button shows the minutes left in a small badge. */
.side-dock-ribbon-action.hl-focus-ribbon {
	position: relative;
}

.side-dock-ribbon-action.hl-focus-ribbon[data-hl-left]::after {
	content: attr(data-hl-left);
	position: absolute;
	right: -2px;
	bottom: -2px;
	min-width: 16px;
	height: 14px;
	padding: 0 3px;
	border-radius: 7px;
	font-size: 9px;
	font-weight: 700;
	line-height: 14px;
	text-align: center;
	color: var(--text-on-accent);
	background: var(--text-faint);
}

.side-dock-ribbon-action.hl-focus-ribbon.is-running {
	color: var(--hl-focus);
}

.side-dock-ribbon-action.hl-focus-ribbon.is-running[data-hl-left]::after {
	background: var(--hl-focus);
}

/* Tab bar timer: a small pill at the far right of the top tab group's header. */
.hl-focus-tab {
	--hl-focus: var(--hl-focus-colour, #8a5cf5);
	flex: none;
	align-self: center;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	margin: 0 4px;
	padding: 0 10px 0 7px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--hl-focus) 16%, transparent);
	color: var(--hl-focus);
	font-size: var(--font-ui-small);
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	-webkit-app-region: no-drag;
}

.hl-focus-tab:hover {
	background: color-mix(in srgb, var(--hl-focus) 26%, transparent);
}

.hl-focus-tab.hl-hidden {
	display: none;
}

.hl-focus-tab.is-paused {
	opacity: 0.7;
}

.hl-focus-tab-ring {
	width: 15px;
	height: 15px;
	transform: rotate(-90deg);
}

.hl-focus-tab-ring circle {
	fill: none;
	stroke-width: 3;
}

.hl-focus-tab-track {
	stroke: color-mix(in srgb, var(--hl-focus) 30%, transparent);
}

.hl-focus-tab-arc {
	stroke: var(--hl-focus);
	stroke-linecap: round;
	transition: stroke-dashoffset 0.9s linear;
}

/* ---------- Flashcards and quizzes ---------- */

.hl-study {
	width: min(620px, 94vw);
}

.hl-study-progress {
	height: 4px;
	border-radius: 2px;
	background: var(--background-modifier-border);
	overflow: hidden;
}

.hl-study-progress-fill {
	height: 100%;
	background: var(--interactive-accent);
	transition: width 0.25s ease;
}

.hl-study-count {
	margin: 8px 0 14px;
	font-size: var(--font-ui-smaller);
	color: var(--text-muted);
	text-align: right;
}

.hl-study-card {
	min-height: 220px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 28px;
	border-radius: 16px;
	border: 1px solid var(--background-modifier-border);
	background: var(--background-secondary);
	text-align: center;
	cursor: pointer;
	user-select: none;
	animation: hl-study-flip 0.25s ease;
}

.hl-study-card.is-flipped {
	border-color: var(--interactive-accent);
}

.hl-study-side {
	font-size: var(--font-ui-smaller);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-faint);
}

.hl-study-text {
	font-size: 1.3em;
	font-weight: 600;
	line-height: 1.4;
	color: var(--text-normal);
}

.hl-study-front-small {
	font-size: var(--font-ui-small);
	color: var(--text-muted);
}

.hl-study-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.hl-study-buttons button {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hl-study-btn-icon {
	display: flex;
}

.hl-study-btn-icon svg {
	width: 16px;
	height: 16px;
}

.hl-study-question {
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 14px;
}

.hl-study-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hl-study-option {
	height: auto;
	min-height: 44px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: flex-start;
	text-align: left;
	white-space: normal;
	border-radius: 10px;
}

.hl-study-letter {
	flex: none;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: var(--font-ui-smaller);
	font-weight: 700;
	background: var(--background-modifier-hover);
}

.hl-study-option.is-right {
	border-color: var(--color-green);
	background: rgba(var(--color-green-rgb), 0.15);
}

.hl-study-option.is-wrong {
	border-color: var(--color-red);
	background: rgba(var(--color-red-rgb), 0.15);
}

.hl-study-option:disabled {
	opacity: 1;
	cursor: default;
}

.hl-study-explain {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--background-secondary);
	color: var(--text-muted);
	font-size: var(--font-ui-small);
}

.hl-study-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 24px 0 4px;
}

.hl-study-done-icon svg {
	width: 40px;
	height: 40px;
	color: var(--interactive-accent);
}

.hl-study-score {
	font-size: 2.4em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.hl-study-score-label {
	color: var(--text-muted);
}

@keyframes hl-study-flip {
	from {
		transform: rotateX(25deg);
		opacity: 0.4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hl-study-card,
	.hlh-focus-arc {
		animation: none;
		transition: none;
	}
}

/* ---------- Read aloud ---------- */

.hl-reader {
	position: fixed;
	bottom: calc(var(--status-bar-height, 24px) + 16px);
	left: 50%;
	transform: translateX(-50%);
	z-index: var(--layer-notice);
	width: min(520px, calc(100vw - 24px));
	padding: 12px 14px 0;
	border-radius: 18px;
	background: var(--background-primary);
	border: 1px solid var(--background-modifier-border);
	box-shadow: var(--shadow-l);
	overflow: hidden;
	animation: hl-rec-in 180ms ease-out;
}

.hl-reader.is-mobile {
	bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
}

.hl-reader-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	color: var(--text-muted);
}

.hl-reader-icon {
	display: flex;
	color: var(--interactive-accent);
}

.hl-reader-icon svg {
	width: 14px;
	height: 14px;
}

.hl-reader-title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hl-reader-line {
	margin: 8px 0 10px;
	min-height: 2.9em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: var(--font-ui-medium);
	line-height: 1.45;
	color: var(--text-normal);
}

.hl-reader-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding-bottom: 12px;
}

.hl-reader-btn.clickable-icon {
	width: 34px;
	height: 34px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.hl-reader-btn.is-primary.clickable-icon {
	width: 42px;
	height: 42px;
	color: var(--text-on-accent);
	background: var(--interactive-accent);
}

.hl-reader-speed {
	height: 28px;
	padding: 0 10px;
	border-radius: 14px;
	font-size: var(--font-ui-smaller);
	font-variant-numeric: tabular-nums;
	background: var(--background-modifier-hover);
	box-shadow: none;
}

.hl-reader-progress {
	height: 3px;
	margin: 0 -14px;
	background: linear-gradient(to right, var(--interactive-accent) var(--hl-read-progress, 0%), transparent var(--hl-read-progress, 0%));
}

/* ---------- Writing streak ---------- */

.hls-streak {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0 4px;
	padding: 8px 12px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--hls-purple, #8a5cf5) 14%, transparent);
}

.hls-streak-icon {
	display: flex;
	color: var(--hls-purple, #8a5cf5);
}

.hls-streak-icon svg {
	width: 20px;
	height: 20px;
}

.hls-streak.is-done .hls-streak-icon svg {
	fill: color-mix(in srgb, var(--hls-purple, #8a5cf5) 45%, transparent);
}

.hls-streak.is-zero {
	background: var(--background-modifier-hover);
}

.hls-streak.is-zero .hls-streak-icon {
	color: var(--text-faint);
}

.hls-streak-text {
	flex: 1;
	min-width: 0;
}

.hls-streak-num {
	font-weight: 650;
	color: var(--text-normal);
}

.hls-streak-sub {
	font-size: var(--font-ui-smaller);
	color: var(--text-muted);
	white-space: normal;
}

.hls-streak-best {
	flex: none;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: var(--font-ui-smaller);
	font-variant-numeric: tabular-nums;
	color: var(--text-muted);
	background: var(--background-modifier-hover);
}

/* ---------- Canvas drawing ---------- */

.hl-ink-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 30;
	overflow: visible;
}

.hl-ink-active .canvas-wrapper {
	cursor: crosshair;
	touch-action: none;
}

.hl-ink-active.hl-ink-erasing .canvas-wrapper {
	cursor: cell;
}

/* The canvas's own card toolbar is replaced by the drawing palette while drawing. */
.hl-ink-active .canvas-card-menu {
	display: none;
}

.canvas-node.hl-ink-hidden {
	visibility: hidden;
}

.canvas-card-menu-button.hl-ink-menu-btn.hl-hidden {
	display: none;
}

.hl-ink-palette {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	row-gap: 4px;
	width: max-content;
	max-width: calc(100% - 24px);
	padding: 6px;
	border-radius: 16px;
	background: var(--background-primary);
	border: 1px solid var(--background-modifier-border);
	box-shadow: var(--shadow-l);
	animation: hl-rec-in 160ms ease-out;
}

.hl-ink-palette.is-mobile {
	bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.hl-ink-group {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 0 4px;
}

.hl-ink-group:not(:first-child) {
	border-left: 1px solid var(--background-modifier-border);
}

.hl-ink-btn.clickable-icon {
	width: 34px;
	height: 34px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
}

.hl-ink-btn.clickable-icon.is-active {
	color: var(--text-on-accent);
	background: var(--interactive-accent);
}

.hl-ink-swatch {
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 50%;
	background: var(--hl-swatch);
	border: 2px solid var(--background-primary);
	box-shadow: 0 0 0 1px var(--background-modifier-border);
}

.hl-ink-swatch.is-active {
	box-shadow: 0 0 0 2px var(--interactive-accent);
}

.hl-ink-size {
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
}

.hl-ink-size.is-active {
	background: var(--background-modifier-hover);
}

.hl-ink-size-dot {
	width: var(--hl-dot);
	height: var(--hl-dot);
	border-radius: 50%;
	background: var(--text-normal);
}

.hl-ink-done {
	height: 34px;
	padding: 0 16px;
	border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
	.hl-ink-palette {
		animation: none;
	}
}

/* ---------- Performance ---------- */

/* Background animations stop in low power mode, when turned off, and while Obsidian isn't the app in front. */
.home-llm-home.hlh-still .hlh-sky,
.home-llm-home.hlh-still .hlh-sky *,
.hl-window-blurred .home-llm-home .hlh-sky,
.hl-window-blurred .home-llm-home .hlh-sky * {
	animation-play-state: paused;
}

.home-llm-home.hlh-still .hlh-rain-0,
.home-llm-home.hlh-still .hlh-rain-1 {
	display: none;
}

.hl-usage .setting-item-description {
	font-variant-numeric: tabular-nums;
}

.hl-plugin-big .setting-item-name {
	color: var(--text-warning);
}

/* ---------- Cleaner dashboard ---------- */

/* Softer card edges, so the page reads as a few calm panels rather than a grid of boxes. */
.hlh-dashboard {
	--hlh-card-border: color-mix(in srgb, var(--text-normal) 7%, transparent);
}

.hlh-dashboard .hlh-card {
	padding-bottom: 12px;
}

/* Vault: a 3 × 2 grid of numbers that fills its card instead of a thin strip. */
.hlh-area-vault > .hlh-card {
	display: flex;
	flex-direction: column;
}

.hlh-area-vault .hlh-stats-row {
	flex: 1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-content: center;
	row-gap: 22px;
	padding: 8px 12px 12px;
}

.hlh-area-vault .hlh-stat-num {
	font-size: 1.9em;
}

.hlh-area-vault .hlh-stat-label {
	font-size: var(--font-ui-smaller);
}

/* Focus timer: a slightly smaller dial so the top row stays compact. */
.hlh-area-focus .hlh-focus-dial {
	width: 132px;
	height: 132px;
}

.hlh-area-focus .hlh-focus-time {
	font-size: 1.85em;
}

.hlh-area-focus .hlh-focus-body {
	gap: 10px;
}

/* Vault stats, wide: word count beside the streak, and four tiles to a row. */
.hls-top {
	display: flex;
	flex-direction: column;
}

.hlh-area-stats .hls-top {
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

.hlh-area-stats .hls-top .hls-hero {
	flex: none;
}

.hlh-area-stats .hls-top .hls-streak {
	flex: 1;
	margin: 0;
}

.hlh-area-stats .hls-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 700px) {
	.hlh-area-stats .hls-top {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.hlh-area-stats .hls-top .hls-streak {
		margin: 10px 0 4px;
	}

	.hlh-area-stats .hls-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hlh-area-vault .hlh-stats-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- AI chat as a full page (in a tab) ---------- */

.home-llm-chat.is-page .hlc-list > *,
.home-llm-chat.is-page .hlc-composer > * {
	width: 100%;
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

.home-llm-chat.is-page .hlc-empty {
	padding-top: 12vh;
}

.home-llm-chat.is-page .hlc-empty-icon svg {
	width: 40px;
	height: 40px;
}

.home-llm-chat.is-page .hlc-empty-title {
	font-size: 2em;
	font-weight: 700;
}

.home-llm-chat.is-page .hlc-suggestions {
	max-width: 640px;
}

.home-llm-chat.is-page .hlc-composer {
	padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.workspace-tab-header-new-tab.hl-ai-tab-btn.hl-hidden {
	display: none;
}

/* Focus timer stop button. */
.hlh-focus-btn.is-stop:disabled {
	opacity: 0.35;
	cursor: default;
}

/* ---------- Model picker ---------- */

.hl-picker {
	--hl-pick: #8a5cf5;
	position: fixed;
	z-index: var(--layer-menu);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--background-primary);
	border: 1px solid var(--background-modifier-border);
	box-shadow: var(--shadow-l);
	font-size: var(--font-ui-small);
	animation: hl-picker-in 120ms ease-out;
}

.hl-picker.is-narrow {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto;
}

.hl-picker-main {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 1px solid var(--background-modifier-border);
}

.hl-picker.is-narrow .hl-picker-main {
	border-right: none;
	border-bottom: 1px solid var(--background-modifier-border);
}

.hl-picker-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 10px 6px;
	padding: 0 10px;
	height: 34px;
	border-radius: 10px;
	background: var(--background-modifier-hover);
}

.hl-picker-search-icon {
	display: flex;
	color: var(--text-faint);
}

.hl-picker-search-icon svg {
	width: 15px;
	height: 15px;
}

.hl-picker-search input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	padding: 0;
	font-size: var(--font-ui-small);
}

.hl-picker-list {
	flex: 1;
	min-height: 120px;
	overflow-y: auto;
	padding: 2px 6px 6px;
}

.hl-picker-head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 8px 4px;
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--text-muted);
}

.hl-picker-head-icon {
	display: flex;
	color: var(--hl-pick);
}

.hl-picker-head-icon svg {
	width: 13px;
	height: 13px;
}

.hl-picker-row {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 8px;
	cursor: pointer;
	color: var(--text-normal);
}

.hl-picker-row.is-active {
	background: color-mix(in srgb, var(--hl-pick) 16%, transparent);
}

.hl-picker-row.is-current .hl-picker-name {
	font-weight: 650;
}

.hl-picker-check {
	flex: none;
	display: flex;
	width: 16px;
	color: var(--hl-pick);
}

.hl-picker-check svg {
	width: 14px;
	height: 14px;
}

.hl-picker-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hl-picker-badge {
	flex: none;
	padding: 1px 7px;
	border-radius: 9px;
	font-size: 10.5px;
	font-weight: 600;
	color: var(--hl-pick);
	background: color-mix(in srgb, var(--hl-pick) 14%, transparent);
}

.hl-picker-setup,
.hl-picker-more {
	display: flex;
	align-items: center;
	gap: 6px;
	width: calc(100% - 8px);
	margin: 2px 4px;
	padding: 6px 8px;
	height: auto;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	font-size: var(--font-ui-small);
	color: var(--text-muted);
	justify-content: flex-start;
}

.hl-picker-setup:hover,
.hl-picker-more:hover {
	background: var(--background-modifier-hover);
	color: var(--text-normal);
}

.hl-picker-setup svg {
	width: 14px;
	height: 14px;
}

.hl-picker-more {
	color: var(--hl-pick);
	font-weight: 600;
}

.hl-picker-empty {
	padding: 20px;
	text-align: center;
	color: var(--text-faint);
}

.hl-picker-effort {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-top: 1px solid var(--background-modifier-border);
}

.hl-picker-effort-label {
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	color: var(--text-muted);
}

.hl-picker-seg {
	flex: 1;
	display: flex;
	padding: 2px;
	border-radius: 9px;
	background: var(--background-modifier-hover);
	overflow-x: auto;
}

.hl-picker-seg button {
	flex: 1;
	height: 24px;
	padding: 0 6px;
	border-radius: 7px;
	background: transparent;
	box-shadow: none;
	font-size: 11px;
	white-space: nowrap;
	color: var(--text-muted);
}

.hl-picker-seg button.is-active {
	color: var(--text-on-accent);
	background: var(--hl-pick);
}

.hl-picker-foot {
	padding: 4px 8px 8px;
}

.hl-picker-link {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 8px;
	background: transparent;
	box-shadow: none;
	font-size: var(--font-ui-smaller);
	color: var(--text-muted);
}

.hl-picker-link svg {
	width: 13px;
	height: 13px;
}

.hl-picker-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	overflow-y: auto;
	background: color-mix(in srgb, var(--hl-pick) 4%, var(--background-primary));
}


.hl-picker-info-name {
	font-size: 1.15em;
	font-weight: 700;
	color: var(--text-normal);
}

.hl-picker-info-id {
	margin-top: -8px;
	font-size: var(--font-ui-smaller);
	font-family: var(--font-monospace);
	color: var(--text-faint);
	word-break: break-all;
}

.hl-picker-info-good {
	line-height: 1.45;
	color: var(--text-normal);
}

.hl-picker-bars {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.hl-picker-bar {
	display: grid;
	grid-template-columns: 44px 1fr 34px;
	align-items: center;
	gap: 8px;
}

.hl-picker-bar-label {
	font-size: var(--font-ui-smaller);
	color: var(--text-muted);
}

.hl-picker-bar-track {
	height: 6px;
	border-radius: 3px;
	background: var(--background-modifier-border);
	overflow: hidden;
}

.hl-picker-bar-fill {
	width: var(--hl-fill);
	height: 100%;
	border-radius: 3px;
	background: var(--hl-pick);
	transition: width 0.2s ease;
}

.hl-picker-bar-num {
	font-size: var(--font-ui-smaller);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: right;
	color: var(--text-normal);
}

.hl-picker-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.hl-picker-tag {
	padding: 2px 8px;
	border-radius: 9px;
	font-size: 11px;
	color: var(--text-muted);
	background: var(--background-modifier-hover);
}

.hl-picker-info-note {
	margin-top: auto;
	font-size: 11px;
	line-height: 1.4;
	color: var(--text-faint);
}

@keyframes hl-picker-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hl-picker {
		animation: none;
	}
}

.hl-picker.is-narrow .hl-picker-info {
	max-height: 46%;
}

.hl-picker-use {
	align-self: flex-start;
}

/* ---------- Dashboard fits the screen (tablets and desktop) ---------- */

/* When there's room, the dashboard fills exactly the visible height: the header takes what it needs, the card
   rows share the rest, and a card with more than fits scrolls inside itself instead of making the page scroll. */
@media (min-width: 701px) and (min-height: 560px) {
	.hlh-style-dashboard .hlh-page.hlh-dashboard {
		box-sizing: border-box;
		height: 100%;
		min-height: 0;
	}

	.hlh-style-dashboard .hlh-dash-grid {
		flex: 1;
		min-height: 0;
		grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
	}

	.hlh-style-dashboard .hlh-area {
		min-height: 0;
	}

	.hlh-style-dashboard .hlh-area > .hlh-card {
		min-height: 0;
		overflow-y: auto;
		scrollbar-width: thin;
	}
}

/* Portrait iPad and narrower windows use three rows. */
@media (min-width: 701px) and (max-width: 1000px) and (min-height: 560px) {
	/* The first two rows take the height their content needs; Recent gets the rest and scrolls if it has to. */
	.hlh-style-dashboard .hlh-dash-grid {
		grid-template-rows: auto auto minmax(0, 1fr);
	}
}

/* A tighter header when height is limited (iPads, laptops), leaving more room for the cards. */
@media (max-height: 1050px) {
	.hlh-page.hlh-dashboard {
		padding: 28px 24px 20px;
		gap: 18px;
	}

	.hlh-dashboard .hlh-dash-top {
		gap: 12px;
	}

	.hlh-dashboard .hlh-brand-name {
		font-size: 2.5em;
	}

	.hlh-dashboard .hlh-brand-logo svg {
		width: 44px;
		height: 44px;
	}

	.hlh-dashboard .hlh-search-input.hlh-search-input {
		height: 44px;
	}

	.hlh-dashboard .hlh-dash-grid {
		gap: 14px;
	}
}

/* Short screens (landscape iPad): drop the least important rows so every card fits without scrolling. */
@media (min-width: 701px) and (max-height: 820px), (min-width: 701px) and (max-width: 1000px) {
	.hlh-style-dashboard .hls-rows {
		display: none;
	}

	.hlh-style-dashboard .hlh-area-vault .hlh-stats-row {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		row-gap: 0;
	}

	.hlh-style-dashboard .hlh-area-vault .hlh-stat-num {
		font-size: 1.5em;
	}

	.hlh-style-dashboard .hlh-area-focus .hlh-focus-dial {
		width: 108px;
		height: 108px;
	}

	.hlh-style-dashboard .hlh-area-focus .hlh-focus-time {
		font-size: 1.5em;
	}

	.hlh-style-dashboard .hlh-area-focus .hlh-focus-body {
		gap: 6px;
	}
}
