[v-cloak] {
	display: none !important;
}

.smart-grammar-app {
	font-family: "Sarabun", sans-serif;
	background: #f8fafc;
	color: #0f172a;
}

.smart-main {
	background:
		radial-gradient(circle at 18% 0%, rgba(224, 242, 254, 0.9) 0, rgba(224, 242, 254, 0) 340px),
		linear-gradient(180deg, #f8fbff 0%, #f8fafc 300px);
}

.smart-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 16px;
	margin: 24px 24px 0;
	min-height: 340px;
	padding: 34px;
	overflow: hidden;
	border: 1px solid rgba(199, 210, 254, 0.7);
	border-radius: 24px;
	background: #1e1b4b;
	box-shadow: 0 22px 58px rgba(30, 27, 75, 0.18);
}

.smart-hero-bg,
.smart-hero-overlay {
	position: absolute;
	inset: 0;
}

.smart-hero-bg {
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}

.smart-hero-overlay {
	z-index: 1;
	background:
		radial-gradient(circle at 78% 12%, rgba(251, 191, 36, 0.34) 0%, rgba(251, 191, 36, 0.12) 25%, rgba(251, 191, 36, 0) 48%),
		linear-gradient(90deg, rgba(30, 27, 75, 0.9) 0%, rgba(49, 46, 129, 0.72) 40%, rgba(67, 56, 202, 0.28) 72%, rgba(14, 165, 233, 0.04) 100%),
		linear-gradient(0deg, rgba(15, 23, 42, 0.54) 0%, rgba(15, 23, 42, 0.04) 54%);
}

.smart-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex: 1 1 auto;
	max-width: 700px;
	width: 100%;
	min-width: 0;
}

.smart-mobile-menu {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 18px;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
	backdrop-filter: blur(10px);
}

.smart-mobile-menu:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.64);
	color: #fff;
}

.smart-hero-copy {
	min-width: 0;
}

.smart-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 6px 10px;
	border: 1px solid rgba(253, 230, 138, 0.92);
	border-radius: 999px;
	background: rgba(251, 191, 36, 0.95);
	color: #451a03;
	font-size: 13px;
	font-weight: 800;
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 22px rgba(120, 53, 15, 0.18);
}

.smart-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: 0;
	text-shadow: 0 3px 24px rgba(15, 23, 42, 0.58);
}

.smart-hero-gold {
	background: linear-gradient(95deg, #fff3c4 0%, #fbbf24 45%, #f59e0b 70%, #ffe9a8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.smart-hero p {
	max-width: 720px;
	margin: 12px 0 0;
	color: rgba(239, 246, 255, 0.92);
	font-size: 17px;
	line-height: 1.7;
	font-weight: 600;
	text-shadow: 0 2px 16px rgba(15, 23, 42, 0.48);
}

.smart-hero-stats {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	flex: 0 0 auto;
}

.smart-hero-stats div {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(8px);
	color: #fff;
}

.smart-hero-stats strong,
.smart-hero-stats span {
	display: inline;
}

.smart-hero-stats i {
	color: #fcd34d;
	font-size: 12px;
	text-shadow: 0 2px 12px rgba(15, 23, 42, 0.48);
}

.smart-hero-stats strong {
	color: #fcd34d;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(15, 23, 42, 0.48);
}

.smart-hero-stats span {
	margin-top: 0;
	color: rgba(239, 246, 255, 0.9);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	text-shadow: 0 1px 10px rgba(15, 23, 42, 0.42);
}

.smart-reader-shell {
	padding: 18px 24px 44px;
	background: transparent;
}

.smart-reader-tools {
	position: sticky;
	top: 0;
	z-index: 10;
	display: grid;
	grid-template-columns: minmax(300px, 1fr) auto auto;
	gap: 14px;
	align-items: center;
	padding: 12px;
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid #dbeafe;
	border-radius: 18px;
	backdrop-filter: blur(8px);
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.smart-search,
.smart-page-nav,
.smart-page-nav label {
	display: flex;
	align-items: center;
}

.smart-search {
	min-width: 0;
	height: 52px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
}

.smart-search > i {
	flex: 0 0 auto;
	color: #4f46e5;
	margin-right: 10px;
}

.smart-search input {
	width: 100%;
	height: 50px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #111827;
	font-size: 16px;
}

.smart-search input::placeholder,
.smart-page-nav input::placeholder {
	color: #4b5563;
	opacity: 1;
}

.smart-page-nav {
	min-height: 52px;
	gap: 8px;
	padding: 6px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
}

.smart-page-nav label {
	gap: 7px;
	height: 40px;
	padding: 0 8px;
	color: #334155;
	font-size: 14px;
	font-weight: 800;
}

.smart-page-nav input {
	width: 76px;
	height: 40px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #f9fafb;
	color: #111827;
	text-align: center;
	font-weight: 800;
	outline: 0;
}

.smart-page-nav button,
.smart-icon-button,
.smart-image-dialog-head button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1f2937;
	border-radius: 10px;
	transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.smart-page-nav button,
.smart-icon-button {
	width: 40px;
	height: 40px;
}

.smart-page-nav .smart-nav-button {
	width: auto;
	min-width: 108px;
	padding: 0 13px;
	gap: 8px;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	color: #4338ca;
	font-weight: 800;
}

.smart-page-nav .smart-go-button {
	background: #4f46e5;
	color: #fff;
	border: 1px solid #4f46e5;
}

.smart-page-nav button:hover,
.smart-icon-button:hover,
.smart-image-dialog-head button:hover {
	background: #e0e7ff;
	color: #312e81;
	border-color: #818cf8;
}

.smart-page-nav button:disabled {
	color: #94a3b8;
	cursor: not-allowed;
	background: #f8fafc;
	border-color: #e5e7eb;
}

.smart-open-image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #4338ca;
	font-size: 13px;
	font-weight: 800;
	border-radius: 12px;
	padding: 9px 12px;
	transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.smart-open-image-icon {
	width: 40px;
	height: 40px;
	padding: 0;
	flex: 0 0 auto;
	font-size: 16px;
}

.smart-open-image:hover {
	color: #312e81;
	border-color: #818cf8;
	background: #eef2ff;
}

.smart-toc-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid #c7d2fe;
	border-radius: 14px;
	background: #eef2ff;
	color: #4338ca;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.smart-toc-trigger:hover {
	background: #e0e7ff;
	border-color: #a5b4fc;
	color: #312e81;
}

.smart-search-panel {
	max-width: 1120px;
	margin: 16px auto 0;
	background: #fff;
	border: 1px solid #e0e7ff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.smart-search-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
	color: #111827;
}

.smart-search-panel-head span {
	color: #6b7280;
	font-size: 13px;
}

.smart-result-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 10px;
	padding: 12px;
	max-height: 310px;
	overflow: auto;
}

.smart-result {
	display: block;
	width: 100%;
	text-align: left;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	transition: background-color 0.16s ease, border-color 0.16s ease;
}

.smart-result:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.smart-result.active {
	background: #eef2ff;
	border-color: #818cf8;
}

.smart-page-pill {
	display: inline-flex;
	align-items: center;
	margin-bottom: 6px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #e0e7ff;
	color: #3730a3;
	font-size: 12px;
	font-weight: 800;
}

.smart-result-title,
.smart-snippet {
	display: block;
}

.smart-result-title {
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
}

.smart-snippet {
	color: #4b5563;
	font-size: 13px;
	line-height: 1.55;
	margin-top: 4px;
}

.smart-reader {
	max-width: 1120px;
	margin: 18px auto 0;
	background: #fff;
	border: 1px solid #e0e7ff;
	border-radius: 18px;
	min-height: calc(100vh - 245px);
	box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
}

.smart-reader-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 28px 18px;
	border-bottom: 1px solid #e0e7ff;
	border-radius: 18px 18px 0 0;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.smart-kicker {
	color: #4f46e5;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
}

.smart-reader-head h3 {
	color: #111827;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.35;
	text-wrap: balance;
}

.smart-reader-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.smart-reader-body {
	padding: 32px 28px 28px;
	overflow-x: auto;
}

.smart-reader-content {
	max-width: 78ch;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.88;
	color: #111827;
}

.smart-text-line {
	min-height: 1.88em;
	white-space: pre-wrap;
	text-wrap: pretty;
}

.smart-text-centered {
	text-align: center;
}

.smart-text-spacer {
	min-height: 1.15em;
}

.smart-rule-line strong {
	font-weight: 800;
	color: #111827;
}

.smart-table-wrap {
	margin: 10px auto 18px;
	overflow-x: auto;
}

.smart-detected-table {
	width: auto;
	min-width: min(100%, 620px);
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 18px;
	line-height: 1.75;
}

.smart-detected-table th,
.smart-detected-table td {
	padding: 4px 22px 4px 0;
	vertical-align: top;
	white-space: nowrap;
}

.smart-detected-table th {
	color: #334155;
	font-weight: 800;
	text-align: center;
}

.smart-detected-table th:first-child,
.smart-detected-table td:first-child {
	min-width: 180px;
	text-align: left;
}

.smart-detected-table th:not(:first-child),
.smart-detected-table td:not(:first-child) {
	min-width: 72px;
	text-align: center;
}

.smart-declension-table {
	min-width: min(100%, 720px);
	margin-left: 0;
	margin-right: auto;
}

.smart-declension-table th:first-child,
.smart-declension-table td:first-child {
	min-width: 54px;
	width: 54px;
	color: #475569;
	font-weight: 800;
}

.smart-declension-table th:nth-child(2),
.smart-declension-table td:nth-child(2) {
	min-width: 280px;
	text-align: left;
}

.smart-declension-table th:nth-child(3),
.smart-declension-table td:nth-child(3) {
	min-width: 220px;
	text-align: left;
}

.smart-declension-table th:nth-child(2),
.smart-declension-table th:nth-child(3) {
	text-align: left;
}

.smart-declension-table th,
.smart-declension-table td {
	text-align: left;
}

.smart-reader-content .smart-declension-table th:nth-child(2),
.smart-reader-content .smart-declension-table th:nth-child(3),
.smart-reader-content .smart-declension-table td:nth-child(2),
.smart-reader-content .smart-declension-table td:nth-child(3) {
	text-align: left !important;
}

.smart-reader-content .smart-declension-table td:nth-child(2),
.smart-reader-content .smart-declension-table td:nth-child(3) {
	word-spacing: 0.85em;
}

.smart-case-table {
	min-width: min(100%, 520px);
}

.smart-case-table th,
.smart-case-table td {
	text-align: left;
}

.smart-case-table th:first-child,
.smart-case-table td:first-child {
	min-width: 210px;
	color: #111827;
	font-weight: 800;
}

.smart-case-table th:not(:first-child),
.smart-case-table td:not(:first-child) {
	min-width: 110px;
	text-align: center;
}

.smart-vocab-table {
	min-width: min(100%, 720px);
}

.smart-vocab-table th,
.smart-vocab-table td {
	text-align: left;
}

.smart-vocab-table th:nth-child(1),
.smart-vocab-table td:nth-child(1),
.smart-vocab-table th:nth-child(3),
.smart-vocab-table td:nth-child(3) {
	min-width: 120px;
	color: #111827;
	font-weight: 800;
}

.smart-vocab-table th:nth-child(2),
.smart-vocab-table td:nth-child(2),
.smart-vocab-table th:nth-child(4),
.smart-vocab-table td:nth-child(4) {
	min-width: 160px;
	color: #334155;
	text-align: left;
}

.smart-glossary-table {
	min-width: min(100%, 720px);
	margin-left: 0;
	margin-right: auto;
}

.smart-glossary-table th,
.smart-glossary-table td {
	text-align: left;
}

.smart-glossary-table th {
	color: #334155;
	font-weight: 800;
}

.smart-glossary-table td strong {
	color: #111827;
	font-weight: 800;
}

.smart-glossary-table td {
	color: #334155;
}

.smart-two-column-table {
	min-width: min(100%, 650px);
	margin-left: 0;
	margin-right: auto;
}

.smart-two-column-table th,
.smart-two-column-table td {
	min-width: 280px;
	text-align: left;
}

.smart-two-column-table td {
	word-spacing: 0.55em;
}

.smart-reader-footer {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
	gap: 12px;
	align-items: center;
	padding: 18px 28px 24px;
	border-top: 1px solid #e0e7ff;
	background: #f8fbff;
	border-radius: 0 0 18px 18px;
}

.smart-footer-nav {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid #c7d2fe;
	border-radius: 12px;
	background: #eef2ff;
	color: #4338ca;
	font-weight: 800;
	padding: 0 18px;
}

.smart-footer-nav:hover {
	background: #e0e7ff;
	border-color: #818cf8;
}

.smart-footer-nav:disabled {
	color: #94a3b8;
	background: #f1f5f9;
	border-color: #e5e7eb;
	cursor: not-allowed;
}

.smart-footer-next {
	justify-self: stretch;
}

.smart-footer-nav {
	width: 100%;
}

.smart-footer-page {
	color: #334155;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

mark {
	background: #e0e7ff;
	color: inherit;
	padding: 0 2px;
	border-radius: 3px;
}

.smart-error,
.smart-empty,
.smart-empty-viewer {
	color: #6b7280;
	padding: 24px;
	text-align: center;
}

.smart-error {
	color: #b91c1c;
	background: #fef2f2;
	text-align: left;
}

.smart-toc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(15, 23, 42, 0.36);
}

.smart-toc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 70;
	display: flex;
	flex-direction: column;
	width: min(430px, calc(100vw - 18px));
	background: #fff;
	border-left: 1px solid #dbeafe;
	box-shadow: -20px 0 42px rgba(15, 23, 42, 0.18);
	transform: translateX(100%);
	transition: transform 0.2s ease;
}

.smart-toc-drawer.open {
	transform: translateX(0);
}

.smart-toc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 18px 14px;
	border-bottom: 1px solid #e5e7eb;
	background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.smart-toc-head p {
	color: #4f46e5;
	font-size: 12px;
	font-weight: 800;
}

.smart-toc-head h3 {
	color: #111827;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.smart-toc-head button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #475569;
}

.smart-toc-head button:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4338ca;
}

.smart-toc-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px;
	padding: 0 12px;
	min-height: 46px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
}

.smart-toc-search i {
	color: #4f46e5;
}

.smart-toc-search input {
	width: 100%;
	height: 44px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #111827;
	font-size: 15px;
}

.smart-toc-list {
	flex: 1 1 auto;
	overflow: auto;
	padding: 0 14px 18px;
}

.smart-toc-section {
	margin-bottom: 12px;
}

.smart-toc-section-title,
.smart-toc-item {
	width: 100%;
	text-align: left;
	border-radius: 8px;
	transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.smart-toc-section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid #c7d2fe;
	background: #eef2ff;
	color: #312e81;
	font-weight: 800;
}

.smart-toc-section-title small {
	flex: 0 0 auto;
	color: #4f46e5;
	font-size: 12px;
	font-weight: 800;
}

.smart-toc-item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
	margin-top: 6px;
	padding: 9px 10px;
	border: 1px solid transparent;
	background: #fff;
	color: #334155;
}

.smart-toc-page {
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
}

.smart-toc-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

.smart-toc-section-title:hover,
.smart-toc-item:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #111827;
}

.smart-toc-section-title.active,
.smart-toc-item.active {
	background: #e0e7ff;
	border-color: #818cf8;
	color: #312e81;
}

.smart-toc-state {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 24px 16px;
	color: #64748b;
	font-weight: 700;
}

.smart-toc-error {
	color: #b91c1c;
}

.smart-empty i,
.smart-empty-viewer i {
	display: block;
	color: #4f46e5;
	font-size: 28px;
	margin-bottom: 10px;
}

.smart-empty-viewer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.smart-image-modal {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.72);
}

.smart-image-dialog {
	width: min(860px, 96vw);
	max-height: 92vh;
	overflow: hidden;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.smart-image-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
}

.smart-image-dialog-head strong,
.smart-image-dialog-head span {
	display: block;
}

.smart-image-dialog-head strong {
	color: #111827;
	font-weight: 800;
}

.smart-image-dialog-head span {
	color: #6b7280;
	font-size: 13px;
}

.smart-image-dialog img {
	display: block;
	width: 100%;
	max-height: calc(92vh - 58px);
	object-fit: contain;
	background: #f3f4f6;
}

@media (max-width: 1100px) {
	.smart-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.smart-hero-stats {
		width: 100%;
		flex: 0 0 auto;
	}
}

@media (max-width: 1023px) {
	.smart-mobile-menu {
		display: inline-flex;
	}
}

@media (max-width: 900px) {
	.smart-reader-tools {
		grid-template-columns: 1fr;
	}

	.smart-page-nav {
		justify-content: space-between;
	}

	.smart-toc-trigger {
		width: 100%;
	}

	.smart-page-nav .smart-nav-button {
		min-width: 92px;
	}

	.smart-reader-head {
		flex-direction: column;
	}

	.smart-reader-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.smart-hero {
		margin: 12px 12px 0;
		padding: 18px;
		min-height: 430px;
		border-radius: 18px;
	}

	.smart-hero-content {
		gap: 10px;
	}

	.smart-hero h1 {
		font-size: 28px;
	}

	.smart-hero p {
		font-size: 15px;
		line-height: 1.65;
	}

	.smart-hero-stats {
		display: flex;
		gap: 8px;
	}

	.smart-hero-stats div {
		padding: 7px 10px;
		border-radius: 999px;
	}

	.smart-hero-stats strong {
		font-size: 12px;
	}

	.smart-hero-stats span {
		font-size: 11px;
		line-height: 1.35;
	}

	.smart-reader-shell {
		padding: 12px 12px 28px;
	}

	.smart-reader-tools {
		padding: 10px;
	}

	.smart-reader-head,
	.smart-reader-body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.smart-reader-body pre {
		font-size: 16px;
		line-height: 1.82;
	}

	.smart-page-nav {
		flex-wrap: wrap;
	}

	.smart-page-nav label {
		order: -1;
		flex: 1 0 100%;
		justify-content: center;
	}

	.smart-reader-footer {
		grid-template-columns: 1fr;
	}

	.smart-footer-next {
		justify-self: stretch;
	}

	.smart-footer-nav {
		width: 100%;
	}

	.smart-result-list {
		grid-template-columns: 1fr;
	}

	.smart-image-modal {
		padding: 10px;
	}
}

/* ===== "ต้องจัดใหม่" review flags (per-page, localStorage) ===== */
.smart-flag-toggle {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .42rem .7rem; border-radius: .6rem;
	border: 1px solid #e5e7eb; background: #fff; color: #6b7280;
	font-size: .85rem; font-weight: 600; cursor: pointer; line-height: 1;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.smart-flag-toggle:hover { border-color: #fecdd3; color: #e11d48; }
.smart-flag-toggle.is-flagged { background: #fff1f2; border-color: #fecdd3; color: #e11d48; }
.smart-flagged-bar {
	display: flex; align-items: center; flex-wrap: wrap; gap: .35rem;
	padding: .5rem .75rem; margin-bottom: .85rem;
	background: #fff1f2; border: 1px solid #fecdd3; border-radius: .6rem;
	font-size: .82rem;
}
.smart-flagged-label { color: #e11d48; font-weight: 700; margin-right: .25rem; }
.smart-flagged-chip {
	display: inline-flex; padding: .14rem .5rem; border-radius: .4rem;
	background: #fff; border: 1px solid #fecdd3; color: #be123c;
	font-weight: 600; cursor: pointer; font-size: .8rem;
}
.smart-flagged-chip:hover { background: #ffe4e6; }
.smart-flagged-chip.active { background: #e11d48; color: #fff; border-color: #e11d48; }
.smart-flagged-copy {
	margin-left: auto; display: inline-flex; align-items: center; gap: .3rem;
	padding: .2rem .55rem; border-radius: .4rem;
	background: #fff; border: 1px solid #fda4af; color: #be123c;
	font-weight: 600; cursor: pointer; font-size: .78rem;
}
.smart-flagged-copy:hover { background: #ffe4e6; }
.smart-flagged-clear {
	display: inline-flex; align-items: center; gap: .3rem;
	padding: .2rem .55rem; border-radius: .4rem;
	background: #fff; border: 1px solid #fda4af; color: #be123c;
	font-weight: 600; cursor: pointer; font-size: .78rem;
}
.smart-flagged-clear:hover { background: #e11d48; color: #fff; border-color: #e11d48; }

/* บรรทัดอธิบายในบล็อก "*X ธาตุ" — ย่อหน้าชิดซ้าย (ไม่จัดกึ่งกลาง) */
.smart-text-line.smart-text-indent {
	text-align: left;
	padding-left: 3rem;
}
