:root {
	color-scheme: light;
	accent-color: var(--action);
	--bg: #f6faf8;
	--card: #fff;
	--soft: #edf5f1;
	--ink: #102622;
	--muted: #526b63;
	--line: #d3e3db;
	--brand: #258675;
	--action: #166d60;
	--on-action: #fff;
	--tint: #e1f3ec;
	--mint: #92d9bf;
	--cyan: #68bdb2;
	--radius: 16px;
	--shadow: 0 16px 64px #163e3014;
	--font:
		Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
		sans-serif;
	--mono: ui-monospace, monospace;
	--s: 4px;
	--motion: 160ms;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #102622;
	--card: #19312c;
	--soft: #213d35;
	--ink: #f2faf5;
	--muted: #b1c8bd;
	--line: #405d52;
	--brand: #72c9af;
	--action: #9cdbc2;
	--on-action: #102622;
	--tint: #27483d;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px / 1.55 var(--font);
}
html,
body {
	overflow-x: clip;
}
a {
	color: var(--action);
}
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}
button,
.btn,
select,
input,
textarea {
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--card);
	padding: 8px 14px;
	min-height: 42px;
}
button,
.btn,
select,
summary {
	cursor: pointer;
}
.btn {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--ink);
}
button:hover,
.btn:hover {
	background: var(--tint);
}
.primary,
.primary:hover {
	background: var(--action);
	color: var(--on-action);
	border-color: transparent;
}
button:disabled {
	opacity: 0.55;
	cursor: default;
}
:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
}
h1,
h2,
h3,
p {
	margin: 0 0 16px;
}
h1,
h2 {
	line-height: 1.08;
	letter-spacing: -0.045em;
}
p {
	color: var(--muted);
}
hr {
	border: 0;
	border-top: 1px solid var(--line);
}
.wrap {
	max-width: 1240px;
	margin: auto;
	padding: 0 clamp(16px, 4vw, 64px);
}
.row,
nav,
header,
footer {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}
.spread {
	justify-content: space-between;
}
.card,
article,
dialog {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 16px;
}
.label {
	font: 600 12px var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--action);
}
.brand {
	font-weight: 750;
	letter-spacing: -0.05em;
	font-size: 24px;
	color: var(--ink);
	text-decoration: none;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.mark {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 8px;
}
.dark-mark,
:root[data-theme="dark"] .light-mark {
	display: none;
}
:root[data-theme="dark"] .dark-mark {
	display: block;
}
.site-footer {
	border-top: 1px solid var(--line);
	padding: 20px clamp(16px, 4vw, 64px);
	background: var(--card);
}
body:has(> .site-footer),
#root:has(> .site-footer) {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}
.site-footer {
	margin-top: auto;
}
header {
	background: var(--card);
	border-bottom: 1px solid var(--line);
	padding: 12px clamp(16px, 4vw, 64px);
	position: sticky;
	top: 0;
	z-index: 2;
}
nav a,
footer a {
	text-decoration: none;
	color: var(--ink);
}
.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
	padding: 72px 0;
}
.hero h1 {
	font-size: clamp(44px, 6vw, 88px);
	max-width: 10em;
}
.hero p {
	font-size: 19px;
	max-width: 46ch;
}
.preview {
	background: var(--tint);
	padding: clamp(16px, 3vw, 40px);
	border-radius: 24px;
}
.preview article {
	box-shadow: var(--shadow);
}
.branch {
	border-left: 2px solid var(--brand);
	padding-left: 16px;
	margin: 12px;
}
.section {
	padding: 48px 0;
	border-top: 1px solid var(--line);
}
.section h2 {
	font-size: clamp(28px, 4vw, 52px);
}
footer {
	padding: 32px 0;
}
.mobile {
	display: none;
}
dialog {
	color: var(--ink);
	width: min(520px, 94vw);
	max-height: 85dvh;
	overflow: auto;
	box-shadow: var(--shadow);
}
dialog::backdrop {
	background: #10261e88;
}
textarea,
input:not([type="checkbox"]) {
	max-width: 100%;
	width: 100%;
}
textarea {
	resize: vertical;
}
.panes {
	display: flex;
	height: calc(100dvh - 132px);
	gap: 1px;
	background: var(--line);
}
.pane {
	background: var(--card);
	padding: 20px;
	overflow: auto;
	min-width: 0;
}
.side {
	flex: 0 0 clamp(290px, 22vw, 350px);
}
.chat {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.history {
	flex: 1;
	overflow: auto;
}
.tabs {
	display: flex;
	gap: 8px;
	padding: 8px;
	flex-wrap: wrap;
}
.source {
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.selected {
	background: var(--tint);
	color: var(--action);
}
.muted,
small {
	color: var(--muted);
}
.studio button {
	width: 100%;
	text-align: left;
	margin-bottom: 8px;
}
.book {
	border-top: 4px solid var(--brand);
}
.list {
	display: grid;
	gap: 8px;
}
.notice {
	background: var(--tint);
	padding: 8px 16px;
}
.output {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.flash {
	padding: 32px;
	background: var(--tint);
	width: 100%;
	font-size: 22px;
}
.panelTitle {
	font-size: 22px;
}
.spacer {
	margin: 32px 0;
}
svg {
	vertical-align: middle;
}
.truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 40vw;
}
.pane pre {
	overflow: auto;
}
.pane table {
	display: block;
	overflow: auto;
}
@media (max-width: 1099px) {
	.panes {
		height: calc(100dvh - 175px);
	}
	.pane {
		width: 100%;
		flex: auto;
	}
	.pane:not(.active) {
		display: none;
	}
	.tabs .desktop {
		display: none;
	}
}
@media (max-width: 760px) {
	header nav,
	.desktopNav {
		display: none;
	}
	.mobile {
		display: block;
	}
	.hero {
		grid-template-columns: 1fr;
		padding: 44px 0;
		gap: 24px;
	}
	.hero h1 {
		font-size: 50px;
	}
	.pane {
		padding: 14px;
	}
	.brand {
		font-size: 20px;
	}
	header {
		gap: 6px;
	}
	.section {
		padding: 32px 0;
	}
	.panes {
		padding-bottom: env(safe-area-inset-bottom);
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto;
		transition: none;
	}
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
}
dialog nav {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}
@media (min-width: 1100px) {
	.folded {
		display: none;
	}
}
.studio b {
	color: var(--action);
}
.source,
.history,
.card {
	overflow-wrap: anywhere;
}
.history article {
	margin: 12px 0;
}
.chat form {
	padding-top: 8px;
}
:root {
	--gridline: color-mix(in srgb, var(--brand) 12%, transparent);
	--glow: color-mix(in srgb, var(--mint) 20%, var(--card));
	--hairline: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.preview {
	background-color: var(--tint);
	background-image:
		radial-gradient(ellipse at top right, var(--glow), transparent 65%),
		radial-gradient(var(--gridline) 1px, transparent 1px);
	background-size:
		auto,
		12px 12px;
	border: 1px solid var(--line);
}
.map-preview {
	display: grid;
	justify-items: center;
	background: var(--soft);
	padding: 20px;
	border-radius: 12px;
}
.map-root,
.leaves span {
	border: 1px solid var(--hairline);
	border-radius: 8px;
	background: var(--card);
	padding: 6px 12px;
	font-size: 14px;
}
.map-root {
	background: var(--tint);
	font-weight: 650;
}
.leaves {
	position: relative;
	display: flex;
	gap: 16px;
	margin-top: 20px;
}
.leaves:before {
	content: "";
	position: absolute;
	top: -12px;
	left: 25%;
	right: 25%;
	height: 11px;
	border: 1px solid var(--hairline);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
}
.map-root:after {
	content: "";
	display: block;
	height: 10px;
	position: absolute;
	left: 50%;
	border-left: 1px solid var(--hairline);
	margin-top: 6px;
}
.map-preview {
	position: relative;
}
.hero h1 {
	text-wrap: balance;
}
.quick {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.quick p {
	max-width: 48ch;
}
.studio button {
	border-left: 3px solid var(--brand);
}
.flash {
	transition: background var(--motion);
}
@media (max-width: 760px) {
	header select {
		font-size: 14px;
		padding: 6px;
	}
	.leaves {
		gap: 6px;
	}
	.leaves span {
		padding: 4px 8px;
	}
	.preview article {
		padding: 16px;
	}
	.panes {
		height: auto;
		min-height: 65dvh;
	}
	.pane.chat.active {
		height: 72dvh;
	}
	.pane:not(.chat) {
		min-height: 65dvh;
	}
	.chat form {
		position: sticky;
		bottom: 0;
		background: var(--card);
	}
}
.activity-strip {
	border-top: 1px solid var(--line);
}
.activity-strip details {
	border-bottom: 1px solid var(--line);
}
.activity-strip summary {
	padding: 16px 8px;
	font-size: 20px;
	font-weight: 600;
}
.activity-demo {
	padding: 24px;
	margin: 0 8px 16px;
	background: var(--tint);
	border-radius: var(--radius);
}
.activity-demo h3 {
	margin-top: 8px;
}
.activity-demo p {
	max-width: 56ch;
}
#menu {
	margin: 0 0 0 auto;
	height: 100dvh;
	max-height: 100dvh;
	width: min(360px, 92vw);
	border-radius: var(--radius) 0 0 var(--radius);
}
.primary-nav details {
	position: relative;
}
.primary-nav details div {
	position: absolute;
	z-index: 4;
	min-width: 190px;
	background: var(--card);
	box-shadow: var(--shadow);
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	display: grid;
	gap: 4px;
}
.primary-nav details a {
	padding: 8px;
	border-radius: 8px;
}
.primary-nav details a:hover {
	background: var(--soft);
}
[id^="role-"] {
	scroll-margin-top: 100px;
}
.preview-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.preview-emblem,
.tool-icon {
	display: inline-grid;
	place-items: center;
	background: var(--tint);
	color: var(--action);
	width: 40px;
	height: 40px;
	border-radius: 12px;
	flex-shrink: 0;
}
.preview-heading h2 {
	margin: 4px 0 0;
}
.preview-picker {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	border: 0;
	background: var(--soft);
	border-radius: 12px;
	padding: 4px;
	margin: 0;
}
.preview-picker label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1 1 auto;
	padding: 8px 6px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}
.preview-picker input {
	position: absolute;
	opacity: 0;
	width: 1px;
}
.preview-picker label:has(:checked) {
	background: var(--card);
	box-shadow: var(--shadow);
	color: var(--action);
	font-weight: 650;
}
.preview-picker label:focus-within {
	outline: 2px solid var(--action);
}
.preview-panel {
	display: none;
	min-height: 165px;
	padding-top: 18px;
}
.preview-panel p {
	font-size: 16px;
	margin-bottom: 0;
}
.preview-panel details {
	background: var(--tint);
	padding: 18px;
	border-radius: 12px;
}
.notebook-preview:has([value="map"]:checked) [data-preview="map"],
.notebook-preview:has([value="cards"]:checked) [data-preview="cards"],
.notebook-preview:has([value="notes"]:checked) [data-preview="notes"] {
	display: block;
}
.book-cover {
	padding: 16px;
	margin: -24px -24px 18px;
	background:
		repeating-linear-gradient(
			135deg,
			transparent 0 15px,
			var(--gridline) 15px 16px
		),
		var(--tint);
	border-radius: 12px 12px 0 0;
	color: var(--action);
}
.book h2 a {
	text-decoration: none;
	color: var(--ink);
}
.book h2 a:hover {
	text-decoration: underline;
}
.studio button {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--line);
	padding: 8px;
	font-weight: 600;
}
.tool-icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
}
.tabs button[aria-pressed="true"] {
	background: var(--tint);
	border-color: var(--brand);
	color: var(--action);
}

.notebook-preview .preview-panel a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 12px;
}
main.wrap {
	width: 100%;
}

/* Shared reading surfaces and interactive accents */
:root {
	--bg: #f7faf9;
	--ink: #102a29;
	--action: #0f766e;
	--brand: #0f766e;
	--line: #dbe6e3;
	--soft: #f1f6f4;
	--tint: #dcf5ee;
	--hover: #115e59;
}
:root[data-theme="dark"] {
	--bg: #0b1717;
	--card: #112322;
	--soft: #18302e;
	--ink: #ecf7f5;
	--muted: #a8bfba;
	--line: #29423e;
	--action: #80ddcc;
	--brand: #2dd4bf;
	--hover: #a7eddd;
	--tint: #203e39;
}
.primary:hover {
	background: var(--hover);
}
.marketing-header {
	min-height: 70px;
	background: color-mix(in srgb, var(--card) 94%, transparent);
	backdrop-filter: blur(12px);
}
.hero h1,
.page-intro h1,
.review h1 {
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 650;
	text-wrap: balance;
}
.hero .label,
.page-intro .label {
	font: 600 12px var(--mono);
}
.hero {
	padding-block: clamp(36px, 5vw, 76px);
}
.section h2,
.closing h2 {
	font-size: clamp(27px, 3vw, 40px);
	font-weight: 650;
}
.evidence {
	border-block: 1px solid var(--line);
	padding: 15px 0;
	margin-bottom: 15px;
}
.evidence p {
	font-size: 15px;
	margin: 6px 0 0;
}
.evidence summary {
	font-size: 13px;
	font-weight: 600;
}
#workflow article {
	border: 0;
	border-top: 2px solid var(--line);
	border-radius: 0;
	background: transparent;
	padding: 22px 10px 8px 0;
}
#workflow svg {
	color: var(--action);
}
.page-intro,
.review {
	padding-block: clamp(36px, 6vw, 84px);
}
.page-intro {
	max-width: 760px;
}
.auth-fields {
	display: grid;
	gap: 14px;
	padding: 20px 0;
	border: 0;
	max-width: 420px;
}
.auth-fields input {
	display: block;
}
.closing,
.sample-card {
	background: var(--tint);
	padding: clamp(24px, 4vw, 48px);
	border-radius: 18px;
	margin-bottom: 36px;
}
.closing h2 {
	margin: 0;
}
.reading-links {
	display: grid;
}
.section .reading-links a {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	text-decoration: none;
	font-weight: 600;
}
.review-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.review-card {
	display: block;
	background: var(--card);
	border: 1px solid var(--line);
	padding: 22px;
	border-radius: 16px;
	text-decoration: none;
	color: var(--ink);
}
.review-card h3 {
	margin: 8px 0;
}
.review-card code {
	font-size: 12px;
	overflow-wrap: anywhere;
	color: var(--muted);
}
.review-card:hover {
	border-color: var(--brand);
}
.review label {
	display: grid;
	gap: 4px;
}
.review .section {
	margin-top: 24px;
}
.review [hidden] {
	display: none;
}
.flash {
	display: grid;
	place-content: center;
	gap: 14px;
	min-height: 170px;
	margin-bottom: 14px;
}
.flash[aria-pressed="true"] {
	background: var(--soft);
}
.mind-tree,
.reading-section {
	padding: 18px;
	background: var(--soft);
	border-radius: 12px;
	margin: 12px 0;
}
.branch {
	padding: 8px 14px;
	background: var(--card);
}
dialog label.source {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
}
dialog input[type="radio"] {
	width: auto;
	min-height: auto;
}
dialog label.source:has(:checked) {
	background: var(--tint);
}
.chat form {
	background: var(--soft);
	padding: 12px;
	border-radius: 14px;
}
.chat form textarea {
	background: var(--card);
}
.book {
	border-top-width: 1px;
}
section[id],
article[id] {
	scroll-margin-top: 86px;
}
@media (min-width: 1100px) {
	.side {
		flex-basis: 300px;
	}
	.side:last-child {
		flex-basis: 320px;
	}
}
@media (max-width: 1050px) {
	.marketing-header .desktopNav,
	.marketing-header .primary-nav {
		display: none;
	}
	.marketing-header .mobile {
		display: block;
	}
	.review-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 760px) {
	.review-grid {
		grid-template-columns: 1fr;
	}
	.marketing-header {
		min-height: 62px;
	}
	.hero {
		gap: 24px;
	}
	.closing {
		align-items: flex-start;
	}
	.hero h1 {
		font-size: clamp(40px, 9vw, 50px);
	}
}
.pane .source label {
	display: flex;
	align-items: center;
	gap: 8px;
}
.pane .source strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pane input[type="checkbox"] {
	min-height: 18px;
	width: 18px;
}
.source p {
	font-size: 14px;
	margin: 4px 0 8px;
}
.studio small,
.flash small {
	display: block;
	font-size: 13px;
	font-weight: 400;
}
.studio button {
	text-align: start;
}
@media (min-width: 1100px) {
	.tabs:has(+ .panes) button:not(.desktop) {
		display: none;
	}
}
main:has(.book) .grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr));
}
dialog:has(input[type="file"]) label:has(input[type="file"]) {
	display: grid;
	gap: 12px;
	padding: 22px;
	background: var(--soft);
	border: 1px dashed var(--brand);
	border-radius: 12px;
}

/* Reference layouts: a compact notebook desk above the study guide. */
.ref-home,
.library {
	max-width: 1360px;
}
.ref-home .hero,
.library-hero {
	position: relative;
	isolation: isolate;
}
.ref-home .hero:before,
.library-hero:before,
.closing:before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0 calc((100% - 100vw) / 2);
	pointer-events: none;
	background:
		radial-gradient(
			ellipse 62% 96% at 26% -12%,
			transparent 83%,
			var(--tint) 98%,
			transparent 100%
		),
		radial-gradient(ellipse at 88% 66%, var(--tint), transparent 65%);
}
.ref-home .hero {
	grid-template-columns: 0.86fr 1.14fr;
	gap: 28px;
	padding: 28px 0 16px;
}
.ref-home .hero h1,
.library-hero h1 {
	font-size: clamp(32px, 3.25vw, 52px);
	letter-spacing: -0.045em;
	line-height: 1.18;
	font-weight: 730;
}
.ref-home .hero h1:after,
.library-hero h1:after {
	content: "";
	display: block;
	width: 100px;
	height: 5px;
	margin: 6px 0 0 38%;
	background: var(--brand);
	border-radius: 100% 40%;
	transform: rotate(-3deg);
}
.ref-home .hero > div > p.label {
	display: none;
}
.ref-home .hero p,
.library-hero > div > p {
	font-size: 17px;
}
.desk-demo.preview {
	padding: 5px;
	border-radius: 14px;
	background: var(--soft);
}
.desk-demo article {
	padding: 0;
	overflow: hidden;
	border-radius: 10px;
}
.desk-demo .preview-heading {
	padding: 8px 12px;
	background: var(--card);
	margin: 0;
	border-bottom: 1px solid var(--line);
	justify-content: space-between;
}
.mini-brand,
.demo-sources span,
.demo-tools a,
.demo-compose {
	display: flex;
	align-items: center;
	gap: 6px;
}
.mini-brand {
	font-weight: 750;
}
.desk-demo .preview-heading > div {
	display: flex;
	align-items: center;
	gap: 8px;
}
.desk-demo .preview-heading h2 {
	font-size: 15px;
	margin: 0;
}
.demo-columns {
	display: grid;
	grid-template-columns: minmax(86px, 0.67fr) minmax(0, 2fr) minmax(
			88px,
			0.74fr
		);
	font-size: 13px;
}
.demo-columns aside {
	padding: 14px 8px;
	background: var(--soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.demo-tools a,
.demo-sources span {
	border-radius: 6px;
	padding: 6px;
	color: var(--ink);
	background: var(--card);
	text-decoration: none;
}
.demo-tools svg,
.demo-sources svg {
	color: var(--action);
	flex-shrink: 0;
}
.demo-center {
	display: flex;
	flex-direction: column;
	padding: 8px;
	min-width: 0;
}
.demo-center .preview-picker {
	order: -1;
	background: transparent;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	gap: 0;
}
.demo-center .preview-picker label {
	padding: 6px 2px;
	font-size: 12px;
}
.demo-center .preview-picker label svg {
	display: none;
}
.demo-center .preview-picker label:has(:checked) {
	border-bottom: 2px solid var(--brand);
	border-radius: 0;
	box-shadow: none;
}
.desk-demo:has([value="chat"]:checked) [data-preview="chat"] {
	display: block;
}
.demo-center .preview-panel {
	margin: 0;
	border: none;
	padding: 12px 4px;
	min-height: 155px;
}
.demo-center .evidence strong {
	display: block;
	background: var(--tint);
	padding: 7px 10px;
	border-radius: 8px;
	margin: 5px 0;
}
.ref-home .demo-center p {
	font-size: 13px;
	line-height: 1.55;
}
.demo-center details {
	padding: 6px;
	background: var(--soft);
}
.demo-compose {
	margin-top: auto;
	justify-content: space-between;
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 5px 10px;
}
.source-ribbon,
.feature-band,
.library-hero,
.quick-import > div {
	display: flex;
	align-items: center;
	gap: 14px;
}
.source-ribbon {
	justify-content: center;
	padding: 10px 0;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--muted);
}
.source-ribbon a {
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 7px;
	padding: 3px 12px;
	background: var(--card);
	display: flex;
	align-items: center;
	gap: 6px;
}
.ref-home .section {
	padding: 22px 0;
	border: 0;
}
.ref-home .section h2 {
	font-size: clamp(22px, 2vw, 30px);
	margin-bottom: 14px;
}
#workflow h2,
#roles h2 {
	text-align: center;
}
#workflow article,
#roles article {
	display: grid;
	grid-template-columns: auto 1fr;
	align-content: center;
	gap: 2px 14px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	background: var(--card);
	border-radius: 12px;
}
#workflow article svg,
#roles article svg {
	grid-row: 1 / 4;
	color: var(--action);
	align-self: center;
}
.ref-home article h3,
.feature-band h3 {
	font-size: 18px;
	margin: 0;
}
#workflow article p,
#roles article p,
.feature-band p {
	margin: 0;
	font-size: 14px;
}
#workflow article a,
#roles article a {
	font-size: 12px;
}
.feature-band {
	align-items: stretch;
	margin-block: 10px;
}
.feature-band > a {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: 1fr 0.85fr;
	gap: 10px;
	padding: 14px;
	border-radius: 12px;
	text-decoration: none;
	color: var(--ink);
	background: var(--soft);
}
.feature-band h3 {
	margin: 6px 0;
}
.feature-mini {
	display: grid;
	align-content: center;
	justify-items: center;
	text-align: center;
	gap: 3px;
	background: var(--card);
	box-shadow: 0 3px 14px var(--gridline);
	border-radius: 8px;
	color: var(--action);
	font-size: 12px;
	padding: 10px;
}
.ref-home .reading-links {
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}
.ref-home .reading-links a {
	padding: 15px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--card);
}
.ref-home .closing {
	padding: 22px 6%;
	margin-bottom: 20px;
	background: linear-gradient(115deg, var(--tint), var(--soft), var(--tint));
}
.ref-home .closing h2 {
	font-size: 24px;
}
.library-notice {
	text-align: center;
	color: var(--muted);
	font-size: 12px;
	padding-top: 6px;
}
.library-hero {
	padding: 48px 0 36px;
	gap: 36px;
}
.library-hero > div,
.quick-import {
	flex: 1;
	min-width: 0;
}
.library .btn,
.ref-home .btn {
	gap: 8px;
}
.quick-import {
	background: color-mix(in srgb, var(--card) 85%, transparent);
	padding: 22px;
}
.quick-import h2 {
	font-size: 22px;
	margin: 0;
}
.quick-import h2 svg,
.quick-import a svg {
	color: var(--action);
}
.quick-import p {
	font-size: 14px;
	margin: 6px 0 14px;
}
.quick-import a {
	display: grid;
	gap: 7px;
	flex: 1;
	background: var(--card);
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.library-filters {
	border-bottom: 1px solid var(--line);
	padding-bottom: 9px;
}
.library-filters button {
	border: 0;
	background: transparent;
}
.library-filters button[aria-pressed="true"] {
	border-radius: 0;
	border-bottom: 3px solid var(--brand);
	color: var(--action);
}
.library-filters label {
	margin-left: auto;
}
.library .book {
	position: relative;
	padding: 16px 16px 16px 112px;
	min-height: 170px;
}
.library .book-cover {
	position: absolute;
	inset: 16px auto 16px 16px;
	width: 80px;
	margin: 0;
	border-radius: 7px 12px 12px 7px;
	display: grid;
	place-items: center;
	color: white;
	background:
		radial-gradient(ellipse at 10% 0%, #ffffff60, transparent 70%),
		linear-gradient(150deg, transparent 65%, #ffffff54 66%, transparent 90%),
		var(--cover, #4ebca9);
	box-shadow:
		inset 5px 0 #ffffff4d,
		0 5px 10px var(--gridline);
}
.book[data-cover="1"],
.book[data-cover="5"] {
	--cover: #969de4;
}
.book[data-cover="2"] {
	--cover: #71bd98;
}
.book[data-cover="3"] {
	--cover: #72aedb;
}
.book[data-cover="4"] {
	--cover: #e7ae72;
}
.library .book-cover svg {
	width: 32px;
	height: 32px;
}
.library .book-info {
	position: absolute;
	right: 9px;
	top: 9px;
}
.book-info button,
.library .book > button {
	padding: 4px 6px;
	min-height: 28px;
	font-size: 12px;
}
.library .book h2 {
	font-size: 18px;
	padding-right: 24px;
	margin: 4px 0 8px;
}
.library .book p {
	font-size: 13px;
	margin-bottom: 6px;
}
.book-description {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.library.wrap:has(.book) .grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
	.library.wrap:has(.book) .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ref-home .hero {
		grid-template-columns: 1fr 1.2fr;
	}
	.demo-columns {
		grid-template-columns: minmax(0, 1fr) 92px;
	}
	.demo-columns .demo-sources {
		display: none;
	}
	.feature-band > a {
		grid-template-columns: 1fr;
	}
	.library-hero {
		gap: 20px;
	}
}
@media (max-width: 760px) {
	.ref-home .hero,
	.library-hero {
		display: grid;
		grid-template-columns: 1fr;
		padding-block: 24px;
		gap: 18px;
	}
	.feature-band {
		flex-direction: column;
	}
	.feature-band > a {
		grid-template-columns: 1fr 110px;
	}
	.library-filters label {
		margin-left: 0;
	}
	.library.wrap:has(.book) .grid,
	.ref-home .reading-links {
		grid-template-columns: 1fr;
	}
	.library-hero h1 {
		font-size: 34px;
	}
	.quick-import > div {
		gap: 6px;
	}
	.quick-import a {
		padding: 8px;
		font-size: 14px;
	}
	.demo-columns {
		grid-template-columns: minmax(0, 1fr) 88px;
	}
	.ref-home .closing h2 {
		font-size: 21px;
	}
}
.ref-home .closing:before {
	content: none;
}
.ref-home .hero h1 {
	max-width: none;
}
:lang(zh-CN) .ref-home .hero h1,
:lang(zh-TW) .ref-home .hero h1 {
	font-size: clamp(30px, 2.55vw, 42px);
	letter-spacing: -0.055em;
}
.library-header nav {
	font-size: 14px;
}
.library-header [aria-current="page"] {
	padding: 7px 12px;
	border-radius: 18px;
	color: var(--action);
	background: var(--tint);
}
.library-header input {
	max-width: 230px;
}
.library-filters button:last-child {
	margin-left: auto;
}
.recent-reads {
	padding-bottom: 28px;
}
.recent-reads h2 {
	font-size: 21px;
	padding-left: 10px;
	border-left: 4px solid var(--brand);
}
.recent-reads > div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.recent-reads a {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 13px;
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--ink);
	text-decoration: none;
}
.recent-reads svg {
	color: var(--brand);
	background: var(--tint);
	padding: 8px;
	width: 42px;
	height: 48px;
	border-radius: 6px;
}
.recent-reads small {
	display: block;
}
.recent-reads a span:last-child {
	margin-left: auto;
}
@media (max-width: 760px) {
	.recent-reads > div {
		grid-template-columns: 1fr;
	}
	.library-header input {
		max-width: 105px;
	}
	.library-header .row {
		gap: 6px;
	}
	.library-header nav {
		display: none;
	}
}
.panes {border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:0 12px 12px}
.panes .side {background:var(--soft)}
.panes .pane>h2 {font-size:21px}
.panes .studio button {background:var(--card);border-radius:9px}
.history article {padding:12px;background:transparent;border:0}
.prompt-bubble {display:block;width:fit-content;max-width:90%;margin:0 0 14px auto;padding:9px 14px;border-radius:14px 14px 3px 14px;background:var(--tint)}
@media(max-width:760px){.panes{margin:0;border-radius:0}.panes .chat{padding:12px}}
