/**
 * Shared interface styles for the SEO tools (extractor, generator).
 * Loaded only on views that render a tool.
 */

.tool [hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Input row
   -------------------------------------------------------------------------- */

.url-field {
	display: flex;
	gap: .55rem;
	align-items: stretch;
}

.url-field__input {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}

.url-field__input > svg {
	position: absolute;
	left: .75rem;
	width: 18px; height: 18px;
	color: var(--faint);
	pointer-events: none;
}

.url-field input {
	padding: .72rem .8rem .72rem 2.4rem;
	font-size: 1rem;
}

.url-field__clear {
	position: absolute;
	right: .45rem;
	display: grid;
	place-items: center;
	width: 26px; height: 26px;
	background: none;
	border: 0;
	border-radius: var(--r-xs);
	color: var(--faint);
	cursor: pointer;
}
.url-field__clear:hover { background: var(--surface-3); color: var(--body); }
.url-field__clear svg { width: 14px; height: 14px; }

.url-field .btn { padding-inline: 1.35rem; }

@media (max-width: 560px) {
	.url-field { flex-direction: column; }
	.url-field .btn { width: 100%; }
}

.examples {
	margin-top: .55rem;
	color: var(--muted);
	font-size: .86rem;
}
.examples button {
	padding: 0;
	background: none;
	border: 0;
	border-bottom: 1px dashed var(--border-2);
	color: var(--brand);
	font: inherit;
	font-size: .86rem;
	cursor: pointer;
}
.examples button:hover { border-bottom-style: solid; }
.examples span[aria-hidden] { margin-inline: .4rem; color: var(--faint); }

/* --------------------------------------------------------------------------
   Options
   -------------------------------------------------------------------------- */

.opts {
	margin-top: 1.5rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--border);
	display: grid;
	gap: 1.25rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	align-items: start;
}

.opt__label {
	display: block;
	margin-bottom: .5rem;
	color: var(--ink);
	font-size: .86rem;
	font-weight: 600;
}

/* Segmented control */
.segmented {
	display: inline-flex;
	border: 1px solid var(--border-2);
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--surface);
}

.segmented__opt { position: relative; display: flex; }
.segmented__opt + .segmented__opt { border-left: 1px solid var(--border-2); }
.segmented input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.segmented__face {
	padding: .5rem .95rem;
	color: var(--body);
	font-size: .89rem;
	font-weight: 550;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.segmented input:checked + .segmented__face { background: var(--brand-tint); color: var(--brand); font-weight: 650; }
.segmented input:focus-visible + .segmented__face { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Example strip under the mode control */
.mapping {
	margin-top: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
	padding: .7rem .9rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	font-family: var(--font-mono);
	font-size: .82rem;
	color: var(--muted);
	overflow-x: auto;
}
.mapping__arrow { color: var(--faint); }
.mapping__out { color: var(--ink); font-weight: 600; }

/* Advanced disclosure */
.advanced { margin-top: 1.25rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.advanced > summary {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .7rem 1rem;
	color: var(--ink);
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before {
	content: "";
	width: 8px; height: 8px;
	border-right: 1.8px solid var(--faint);
	border-bottom: 1.8px solid var(--faint);
	transform: rotate(-45deg);
	transition: transform .15s ease;
}
.advanced[open] > summary::before { transform: rotate(45deg); }
.advanced__body { padding: 0 1rem 1.1rem; display: grid; gap: 1.1rem; }
.advanced__body .field-grid { align-items: start; }
.check-list { display: grid; gap: .6rem; }

/* --------------------------------------------------------------------------
   Progress
   -------------------------------------------------------------------------- */

.progress { margin-top: 1.35rem; }

.progress__track {
	position: relative;
	height: 6px;
	background: var(--surface-3);
	border-radius: 3px;
	overflow: hidden;
}

.progress__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--brand);
	border-radius: inherit;
	transition: width .3s ease;
}

.progress__track.is-indeterminate .progress__fill {
	width: 30%;
	animation: indeterminate 1.1s ease-in-out infinite;
}

@keyframes indeterminate {
	0% { transform: translateX(-110%); }
	100% { transform: translateX(370%); }
}

.progress__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-top: .6rem;
	color: var(--muted);
	font-size: .85rem;
}
.progress__meta button {
	padding: 0;
	background: none;
	border: 0;
	color: var(--bad);
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
}
.progress__meta button:hover { text-decoration: underline; }

.tool .notice { margin-top: 1.25rem; }

/* Loading placeholder */
.skeleton { margin-top: 1.5rem; display: grid; gap: .5rem; }
.skeleton span {
	height: 36px;
	border-radius: var(--r-sm);
	background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%);
	background-size: 300% 100%;
	animation: shimmer 1.3s linear infinite;
}
.skeleton span:nth-child(2) { opacity: .75; }
.skeleton span:nth-child(3) { opacity: .5; }
.skeleton span:nth-child(4) { opacity: .3; }

@keyframes shimmer {
	from { background-position: 150% 0; }
	to { background-position: -50% 0; }
}

/* --------------------------------------------------------------------------
   Results
   -------------------------------------------------------------------------- */

.results { margin-top: 1.5rem; }

.results__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(50%, 150px), 1fr));
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg) var(--r-lg) 0 0;
	border-bottom: 0;
	overflow: hidden;
}

.results__stat { padding: 1rem 1.25rem; border-right: 1px solid var(--border); }
.results__stat:last-child { border-right: 0; }
.results__stat b {
	display: block;
	color: var(--ink);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}
.results__stat span { color: var(--muted); font-size: .82rem; }

@media (max-width: 620px) {
	.results__stat { border-bottom: 1px solid var(--border); }
	.results__stat:nth-child(2n) { border-right: 0; }
}

.results__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
	padding: .8rem 1rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
}
.results__stats + .results__bar { border-top: 1px solid var(--border); }

.results__search { position: relative; flex: 1 1 220px; display: flex; align-items: center; }
.results__search svg { position: absolute; left: .65rem; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.results__search input { padding-left: 2.15rem; font-size: .9rem; }

.results__actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-left: auto; }

/* Data table */
.dtable-wrap {
	max-height: 620px;
	overflow: auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 0;
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	overscroll-behavior: contain;
}

.dtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }

.dtable thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: .65rem 1rem;
	background: var(--surface-2);
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	text-align: left;
	font-size: .78rem;
	font-weight: 650;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.dtable tbody td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover td { background: var(--surface-2); }

.dtable__num {
	width: 1%;
	color: var(--faint);
	font-family: var(--font-mono);
	font-size: .8rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.dtable__main { color: var(--ink); font-weight: 550; }
.dtable__url {
	width: 45%;
	max-width: 0;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: .8rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dtable__url a { color: inherit; }
.dtable__act { width: 1%; text-align: right; }

.row-copy {
	display: grid;
	place-items: center;
	width: 26px; height: 26px;
	background: none;
	border: 1px solid transparent;
	border-radius: var(--r-xs);
	color: var(--faint);
	cursor: pointer;
	opacity: 0;
}
.row-copy svg { width: 14px; height: 14px; }
.dtable tbody tr:hover .row-copy,
.row-copy:focus-visible { opacity: 1; }
.row-copy:hover { border-color: var(--border); color: var(--ink); background: var(--surface); }

.dtable__empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
	.dtable__url, .dtable thead th.dtable__url { display: none; }
}

.loadmore { display: flex; justify-content: center; padding: .8rem; border-top: 1px solid var(--border); }

.results__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem;
	margin-top: .7rem;
	color: var(--faint);
	font-size: .82rem;
}
.results__foot span:last-child { font-family: var(--font-mono); }
.results__foot .marks-legend { font-family: var(--font); }

/* --------------------------------------------------------------------------
   Generator output
   -------------------------------------------------------------------------- */

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .15rem;
	padding: 0 1rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-top: 0;
}

.tab {
	padding: .65rem .85rem;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font: inherit;
	font-size: .89rem;
	font-weight: 600;
	cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

.output {
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 0;
	border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.output__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	padding: .7rem 1rem;
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	font-size: .85rem;
}
.output__bar .btn-row { margin-left: auto; }

.output__file {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-family: var(--font-mono);
	color: var(--ink);
	font-size: .85rem;
}
.output__file svg { width: 15px; height: 15px; color: var(--faint); }

.output__code {
	margin: 0;
	padding: 1rem 1.2rem;
	max-height: 460px;
	overflow: auto;
	background: var(--surface);
	border: 0;
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	color: var(--body);
	font-size: .82rem;
	line-height: 1.6;
	white-space: pre;
	tab-size: 2;
}

.output__files { display: grid; gap: .5rem; padding: 1rem 1.2rem; }
.output__files a {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .65rem .85rem;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: .85rem;
}
.output__files a:hover { border-color: var(--brand-line); background: var(--brand-tint); text-decoration: none; }
.output__files svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.output__files em { margin-left: auto; color: var(--muted); font-family: var(--font); font-size: .82rem; font-style: normal; }

/* Manual URL list mode */
.mode-switch { display: flex; gap: .15rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.mode-switch button {
	padding: .6rem .9rem;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font: inherit;
	font-size: .93rem;
	font-weight: 600;
	cursor: pointer;
}
.mode-switch button:hover { color: var(--ink); }
.mode-switch button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

/* --------------------------------------------------------------------------
   Density checker
   -------------------------------------------------------------------------- */

.dtable__figure {
	width: 1%;
	white-space: nowrap;
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.dtable thead th.dtable__figure { text-align: right; }

.density-bar {
	display: block;
	width: 64px;
	margin-left: auto;
	height: 3px;
	margin-top: 5px;
	border-radius: 2px;
	background: var(--surface-3);
	overflow: hidden;
}
.density-bar::after {
	content: "";
	display: block;
	height: 100%;
	width: var(--fill, 0%);
	background: var(--brand);
	border-radius: inherit;
}

.dtable__marks { width: 1%; white-space: nowrap; }

.mark {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 4px;
	border-radius: 50%;
	border: 1px solid var(--border-2);
	background: var(--surface);
	vertical-align: middle;
}
.mark.is-on { background: var(--brand); border-color: var(--brand); }
.mark:last-child { margin-right: 0; }

.marks-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 .2rem; }
.marks-legend .mark { margin-right: 2px; }

@media (max-width: 860px) {
	.dtable__marks, .dtable thead th.dtable__marks { display: none; }
	.marks-legend { display: none; }
}

/* Focus keyword verdict */

.focus-panel {
	margin: 0 0 -1px;
	padding: 1.15rem 1.25rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 0;
}

.focus-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .5rem;
	margin-bottom: .4rem;
}
.focus-panel__label {
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--muted);
}
.focus-panel__head strong { color: var(--ink); font-size: 1.02rem; }

.focus-panel__verdict { margin: 0 0 .9rem; font-size: .95rem; }
.focus-panel.is-good .focus-panel__verdict { color: var(--ok); }
.focus-panel.is-warn .focus-panel__verdict { color: var(--warn); }
.focus-panel.is-bad .focus-panel__verdict { color: var(--bad); }

.focus-checks {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.focus-checks li {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .89rem;
	color: var(--muted);
}
.focus-checks svg { width: 14px; height: 14px; flex: none; }
.focus-checks .is-ok, .focus-checks li.is-ok { color: var(--ok); }
.focus-checks li.is-missing { color: var(--faint); }

/* --------------------------------------------------------------------------
   Companion plugin
   -------------------------------------------------------------------------- */

.plugin-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.25rem;
	padding: 1.35rem 1.5rem;
	background: var(--brand-tint);
	border: 1px solid var(--brand-line);
	border-radius: var(--r-lg);
}

.plugin-card__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	background: var(--surface);
	border: 1px solid var(--brand-line);
	border-radius: var(--r);
	color: var(--brand);
}
.plugin-card__icon svg { width: 24px; height: 24px; }

.plugin-card h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.plugin-card p { margin: 0; color: #35507f; font-size: .93rem; max-width: 62ch; }

@media (max-width: 760px) {
	.plugin-card { grid-template-columns: auto 1fr; }
	.plugin-card .btn { grid-column: 1 / -1; justify-content: center; }
}

.plugin-steps {
	display: grid;
	gap: .5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: pstep;
}
.plugin-steps li {
	display: flex;
	gap: .6rem;
	font-size: .93rem;
	color: var(--muted);
}
.plugin-steps li::before {
	counter-increment: pstep;
	content: counter(pstep);
	flex: none;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: .15rem;
	background: var(--surface-3);
	border-radius: 50%;
	color: var(--ink);
	font-size: .74rem;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Blog title analyzer
   -------------------------------------------------------------------------- */

.hl-textarea {
	font-family: var(--font);
	font-size: 1.05rem;
	line-height: 1.5;
	min-height: 96px;
}

/* Ranking table */

.hl-rank {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg) var(--r-lg) 0 0;
	border-bottom: 0;
	overflow: hidden;
}

.hl-rank__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--border);
}
.hl-rank__head h3 { margin: 0; font-size: 1rem; }
.hl-rank__head span { color: var(--muted); font-size: .85rem; }

.hl-rank tbody tr { cursor: pointer; }
.hl-rank tbody tr.is-selected td { background: var(--brand-tint); }
.hl-rank tbody tr.is-selected .dtable__main { color: var(--brand); font-weight: 650; }

.hl-score-pill {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	padding: .1rem .4rem;
	border-radius: var(--r-xs);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.hl-score-pill.is-good { background: var(--ok-bg); color: var(--ok); }
.hl-score-pill.is-warn { background: var(--warn-bg); color: var(--warn); }
.hl-score-pill.is-bad { background: var(--bad-bg); color: var(--bad); }

.hl-type-col { color: var(--muted); font-size: .88rem; white-space: nowrap; }

@media (max-width: 720px) {
	.hl-type-col, .dtable thead th.hl-type-col { display: none; }
}

/* Report shell */

.hl-report {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.hl-rank:not([hidden]) + .hl-report { border-radius: 0 0 var(--r-lg) var(--r-lg); }

.hl-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-bottom: 1px solid var(--border);
}

.hl-ring { position: relative; width: 104px; height: 104px; flex: none; }
.hl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hl-ring circle { fill: none; stroke-width: 9; }
.hl-ring__track { stroke: var(--surface-3); }
.hl-ring__value {
	stroke: var(--brand);
	stroke-linecap: round;
	transition: stroke-dashoffset .45s ease, stroke .2s ease;
}
.hl-ring.is-good .hl-ring__value { stroke: var(--ok); }
.hl-ring.is-warn .hl-ring__value { stroke: var(--warn); }
.hl-ring.is-bad .hl-ring__value { stroke: var(--bad); }

.hl-ring__number {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--ink);
	font-size: 1.9rem;
	font-weight: 700;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.hl-hero__body { flex: 1 1 260px; min-width: 0; }

.hl-hero__label {
	margin: 0 0 .3rem;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.hl-hero__label.is-good { color: var(--ok); }
.hl-hero__label.is-warn { color: var(--warn); }
.hl-hero__label.is-bad { color: var(--bad); }

.hl-hero__title {
	margin: 0 0 .5rem;
	color: var(--ink);
	font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.hl-hero__note { margin: 0; color: var(--muted); font-size: .93rem; }

.hl-stats { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }

/* Panels */

.hl-panel { padding: clamp(1.15rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--border); }
.hl-panel__title { margin: 0 0 .35rem; font-size: 1rem; }
.hl-panel__intro { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }

/* Google preview */

.serp {
	max-width: 620px;
	padding: 1rem 1.15rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r);
}
.serp__crumb { color: var(--ink); font-size: .82rem; margin-bottom: .2rem; }
.serp__title {
	color: #1a0dab;
	font-family: Arial, sans-serif;
	font-size: 20px;
	line-height: 1.3;
	margin-bottom: .2rem;
}
.serp__desc { color: #4d5156; font-size: .87rem; line-height: 1.45; }

/* Itemised checks */

.hl-checks { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }

.hl-check {
	padding: .8rem 1rem;
	border: 1px solid var(--border);
	border-left-width: 3px;
	border-radius: var(--r-sm);
	background: var(--surface-2);
}
.hl-check.is-good { border-left-color: var(--ok); }
.hl-check.is-warn { border-left-color: var(--warn); }
.hl-check.is-bad { border-left-color: var(--bad); }

.hl-check__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .2rem;
}
.hl-check__head strong { color: var(--ink); font-size: .95rem; }

.hl-check__points {
	color: var(--muted);
	font-size: .82rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.hl-check.is-good .hl-check__points { color: var(--ok); }
.hl-check.is-bad .hl-check__points { color: var(--bad); }

.hl-check p { margin: 0; color: var(--muted); font-size: .89rem; }
.hl-check__hint { margin-top: .35rem !important; color: var(--ink) !important; }

/* Word balance */

.hl-bar {
	display: flex;
	height: 10px;
	margin-bottom: .7rem;
	border-radius: 5px;
	overflow: hidden;
	background: var(--surface-3);
}
.hl-bar__seg { display: block; height: 100%; }
.hl-bar__seg.is-power { background: var(--brand); }
.hl-bar__seg.is-emotional { background: #d97706; }
.hl-bar__seg.is-uncommon { background: var(--ok); }
.hl-bar__seg.is-common { background: var(--border-2); }

.hl-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.hl-legend__item {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	color: var(--muted);
	font-size: .84rem;
}
.hl-legend__item::before {
	content: "";
	width: 9px; height: 9px;
	border-radius: 2px;
}
.hl-legend__item.is-power::before { background: var(--brand); }
.hl-legend__item.is-emotional::before { background: #d97706; }
.hl-legend__item.is-uncommon::before { background: var(--ok); }
.hl-legend__item.is-common::before { background: var(--border-2); }

.hl-words { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }

.hl-word {
	padding: .15rem .5rem;
	border: 1px solid transparent;
	border-radius: var(--r-xs);
	font-size: .85rem;
}
.hl-word.is-power { background: var(--brand-tint); border-color: var(--brand-line); color: var(--brand); font-weight: 600; }
.hl-word.is-emotional { background: #fef3c7; border-color: #fde68a; color: #92400e; font-weight: 600; }
.hl-word.is-uncommon { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.hl-word.is-common { background: var(--surface-3); color: var(--muted); }

/* Tips */

.hl-tips { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.hl-tips li {
	padding-left: 1.1rem;
	position: relative;
	color: var(--body);
	font-size: .93rem;
}
.hl-tips li::before {
	content: "";
	position: absolute;
	left: 0; top: .55rem;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--brand);
}
.hl-tips strong { color: var(--ink); }

.hl-caveat { margin: 0; border: 0; border-radius: 0; }
