/* Rapid anchor-store linker (#/link-rapid) */

.rapidContainer .topbar {
	flex-wrap: wrap;
	gap: 8px;
}

.rapidRecover {
	border: 1px solid var(--accent);
	color: var(--text);
}

.rapidGrid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 641px) {
	.rapidGrid {
		grid-template-columns: 1fr 1.2fr;
		align-items: start;
	}
	.rapidCol:first-child {
		position: sticky;
		top: 12px;
	}
}

.rapidColLabel {
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rapidCard {
	display: flex;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--panel);
	margin-bottom: 8px;
	cursor: pointer;
	position: relative;
}

.rapidCard.rapidAnchor {
	cursor: default;
	border-color: var(--accent);
}

.rapidCard.rapidHi {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent) inset;
}

.rapidNum {
	position: absolute;
	top: -8px;
	left: -8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--accent);
	color: #06121b;
	font-weight: 700;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rapidCard .thumbBox {
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
}

.rapidCard .thumbBox.thumbInternalLink {
	cursor: pointer;
}

.rapidBody {
	min-width: 0;
	flex: 1;
}

.rapidName {
	font-weight: 600;
	line-height: 1.25;
	margin-bottom: 4px;
}

.rapidLine {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.rapidScore {
	margin-left: auto;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	font-size: 12px;
}

.rapidMeta {
	margin-top: 6px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.rapidChip {
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(125, 211, 252, 0.14);
	color: var(--accent);
	border: 1px solid rgba(125, 211, 252, 0.35);
}

.rapidFlag {
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--muted);
}

.rapidFlagSame {
	color: #f5b971;
	border-color: rgba(245, 185, 113, 0.4);
}

.rapidDone {
	padding: 24px 12px;
	color: var(--muted);
	font-size: 18px;
}

.rapidHelp {
	margin-top: 10px;
	color: var(--muted);
}

.rapidSectionLabel {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin: 4px 2px 8px;
}

.rapidStrongLabel {
	color: #5fbf6e;
	font-weight: 700;
}
html[data-theme="light"] .rapidStrongLabel { color: #2d8a3e; }

.rapidWeak {
	color: var(--muted);
	font-style: italic;
}

.rapidStrongGroup {
	min-height: 80px;
}

.rapidStrongGroup .rapidCard {
	border-color: rgba(95, 191, 110, 0.45);
	background: linear-gradient(180deg, rgba(95, 191, 110, 0.06), transparent 60%), var(--panel);
}
html[data-theme="light"] .rapidStrongGroup .rapidCard {
	border-color: rgba(45, 138, 62, 0.55);
	background: linear-gradient(180deg, rgba(45, 138, 62, 0.07), transparent 60%), var(--panel);
}

.rapidStrongEmpty {
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: var(--muted);
	border: 1px dashed var(--border);
	border-radius: 10px;
	font-size: 13px;
	text-align: center;
}

.rapidSplit {
	height: 1px;
	background: var(--border);
	margin: 24px 0;
	position: relative;
}

.rapidOtherLabel {
	color: var(--muted);
}

.rapidOtherGroup .rapidCard {
	opacity: 0.85;
}

.rapidCard.rapidAccepted {
	border-color: #5fbf6e;
	box-shadow: 0 0 0 2px rgba(95, 191, 110, 0.35) inset;
	background: linear-gradient(180deg, rgba(95, 191, 110, 0.18), transparent 70%), var(--panel);
}
.rapidCard.rapidAccepted.rapidHi {
	box-shadow: 0 0 0 2px var(--accent) inset, 0 0 0 4px rgba(95, 191, 110, 0.35);
}

.rapidCard.rapidIgnored {
	border-color: #f47171;
	box-shadow: 0 0 0 2px rgba(244, 113, 113, 0.35) inset;
	background: linear-gradient(180deg, rgba(244, 113, 113, 0.16), transparent 70%), var(--panel);
	opacity: 0.85;
}
.rapidCard.rapidIgnored .rapidName {
	text-decoration: line-through;
	text-decoration-color: rgba(244, 113, 113, 0.6);
}
.rapidCard.rapidIgnored.rapidHi {
	opacity: 1;
	box-shadow: 0 0 0 2px var(--accent) inset, 0 0 0 4px rgba(244, 113, 113, 0.35);
}
.rapidCard.rapidIgnored .rapidAcc {
	color: #f47171;
}

.rapidIgnoreBtn {
	margin-left: auto;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 999px;
	background: transparent;
	border: 1px solid var(--border);
	color: var(--muted);
	cursor: pointer;
}
.rapidIgnoreBtn:hover {
	color: #f47171;
	border-color: rgba(244, 113, 113, 0.55);
	background: rgba(244, 113, 113, 0.08);
}
.rapidIgnoreBtn.rapidIgnoreBtnActive {
	color: #f47171;
	border-color: rgba(244, 113, 113, 0.7);
	background: rgba(244, 113, 113, 0.14);
}
