	.rv-root,
	.rv-bar,
	.rv-drawer,
	.rv-pop {
		--rv-ink: #10241c;
		--rv-line: #dfe5e1;
		--rv-muted: #6a7873;
		font-family:
			"Figtree Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
		box-sizing: border-box;
	}
	.rv-root *,
	.rv-bar *,
	.rv-drawer *,
	.rv-pop * {
		box-sizing: border-box;
	}

	/* Pin layer: fixed over the page, transparent to clicks except on pins. */
	.rv-root {
		position: fixed;
		inset: 0;
		z-index: 2147483000;
		pointer-events: none;
	}
	.rv-capture {
		position: absolute;
		inset: 0;
		pointer-events: auto;
		cursor: crosshair;
		background: rgba(16, 36, 28, 0.06);
	}

	.rv-pin {
		position: absolute;
		width: 28px;
		height: 28px;
		margin: -14px 0 0 -14px;
		border: 2px solid #fff;
		border-radius: 999px 999px 999px 2px;
		background: var(--rv-hue, #2f7d5d);
		color: #fff;
		font-size: 12px;
		font-weight: 700;
		line-height: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		pointer-events: auto;
		box-shadow: 0 2px 10px rgba(16, 36, 28, 0.35);
		transition: transform 0.12s ease;
	}
	.rv-pin:hover,
	.rv-pin.rv-active {
		transform: scale(1.18);
	}
	.rv-pin.rv-resolved {
		background: #fff;
		color: var(--rv-hue, #2f7d5d);
		border-color: var(--rv-hue, #2f7d5d);
		opacity: 0.55;
	}
	.rv-pin.rv-hidden {
		display: none;
	}

	/* Toolbar */
	.rv-bar {
		position: fixed;
		right: 16px;
		bottom: 16px;
		z-index: 2147483001;
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 6px;
		border: 1px solid var(--rv-line);
		border-radius: 999px;
		background: #fff;
		box-shadow: 0 8px 30px rgba(16, 36, 28, 0.18);
	}
	.rv-bar button {
		font: inherit;
		font-size: 13px;
		font-weight: 600;
		padding: 8px 14px;
		border: 0;
		border-radius: 999px;
		background: #eef2ef;
		color: var(--rv-ink);
		cursor: pointer;
		white-space: nowrap;
	}
	.rv-bar button:hover {
		background: #e2e8e4;
	}
	.rv-bar button.rv-primary {
		background: var(--rv-ink);
		color: #fff;
	}
	.rv-bar button.rv-primary[aria-pressed="true"] {
		background: #c6f24e;
		color: var(--rv-ink);
	}
	.rv-who {
		font-size: 12px;
		color: var(--rv-muted);
		padding: 0 8px 0 6px;
		cursor: pointer;
		max-width: 150px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	/* Drawer */
	.rv-drawer {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(380px, 100vw);
		z-index: 2147483001;
		display: flex;
		flex-direction: column;
		background: #fff;
		border-left: 1px solid var(--rv-line);
		box-shadow: -12px 0 40px rgba(16, 36, 28, 0.14);
		transform: translateX(100%);
		transition: transform 0.2s ease;
	}
	.rv-drawer.rv-open {
		transform: none;
	}
	.rv-drawer header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 14px 16px;
		border-bottom: 1px solid var(--rv-line);
	}
	.rv-drawer h2 {
		margin: 0;
		font: inherit;
		font-size: 14px;
		font-weight: 700;
		color: var(--rv-ink);
	}
	.rv-drawer .rv-list {
		flex: 1;
		overflow: auto;
		padding: 8px;
	}
	.rv-x {
		font: inherit;
		font-size: 18px;
		line-height: 1;
		border: 0;
		background: none;
		color: var(--rv-muted);
		cursor: pointer;
		padding: 4px 6px;
	}
	.rv-empty {
		padding: 24px 16px;
		font-size: 13px;
		color: var(--rv-muted);
		text-align: center;
	}
	.rv-foot {
		border-top: 1px solid var(--rv-line);
		padding: 10px 16px;
		font-size: 12px;
	}
	.rv-foot a {
		color: #2f7d5d;
	}

	/* A comment thread, used in the drawer and the popover */
	.rv-item {
		border: 1px solid var(--rv-line);
		border-radius: 12px;
		padding: 10px 12px;
		margin: 6px 0;
		background: #fff;
	}
	.rv-item.rv-done {
		opacity: 0.55;
	}
	.rv-item.rv-sel {
		border-color: var(--rv-ink);
		box-shadow: 0 0 0 2px rgba(16, 36, 28, 0.08);
	}
	.rv-meta {
		display: flex;
		align-items: center;
		gap: 6px;
		font-size: 12px;
		color: var(--rv-muted);
		margin-bottom: 4px;
	}
	.rv-dot {
		width: 18px;
		height: 18px;
		border-radius: 999px;
		background: var(--rv-hue, #2f7d5d);
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		display: flex;
		align-items: center;
		justify-content: center;
		flex: none;
	}
	.rv-name {
		font-weight: 600;
		color: var(--rv-ink);
	}
	.rv-text {
		font-size: 13.5px;
		line-height: 1.45;
		color: var(--rv-ink);
		white-space: pre-wrap;
		overflow-wrap: anywhere;
		margin: 0;
	}
	.rv-snip {
		font-size: 11.5px;
		color: var(--rv-muted);
		margin: 4px 0 0;
		padding-left: 8px;
		border-left: 2px solid var(--rv-line);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.rv-orphan {
		font-size: 11.5px;
		color: #8a5a00;
		background: #fdf3dc;
		border-radius: 8px;
		padding: 4px 8px;
		margin: 6px 0 0;
	}
	.rv-reply {
		margin: 8px 0 0 14px;
		padding-left: 10px;
		border-left: 2px solid var(--rv-line);
	}
	.rv-acts {
		display: flex;
		gap: 10px;
		margin-top: 8px;
	}
	.rv-acts button {
		font: inherit;
		font-size: 12px;
		font-weight: 600;
		border: 0;
		background: none;
		padding: 0;
		color: var(--rv-muted);
		cursor: pointer;
	}
	.rv-acts button:hover {
		color: var(--rv-ink);
		text-decoration: underline;
	}
	.rv-acts button.rv-danger:hover {
		color: #b3261e;
	}

	/* Composer / thread popover */
	.rv-pop {
		position: fixed;
		z-index: 2147483002;
		width: min(320px, calc(100vw - 24px));
		max-height: min(70vh, 560px);
		overflow: auto;
		padding: 12px;
		border: 1px solid var(--rv-line);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 12px 40px rgba(16, 36, 28, 0.22);
	}
	.rv-pop textarea,
	.rv-pop input {
		font: inherit;
		font-size: 13.5px;
		width: 100%;
		padding: 8px 10px;
		border: 1px solid var(--rv-line);
		border-radius: 10px;
		color: var(--rv-ink);
		background: #fff;
		resize: vertical;
	}
	.rv-pop textarea {
		min-height: 84px;
	}
	.rv-pop input {
		margin-bottom: 6px;
	}
	.rv-pop textarea:focus,
	.rv-pop input:focus {
		outline: 2px solid #2f7d5d;
		outline-offset: 1px;
	}
	.rv-row {
		display: flex;
		gap: 8px;
		justify-content: flex-end;
		margin-top: 8px;
	}
	.rv-row button {
		font: inherit;
		font-size: 13px;
		font-weight: 600;
		padding: 7px 14px;
		border: 0;
		border-radius: 999px;
		cursor: pointer;
		background: #eef2ef;
		color: var(--rv-ink);
	}
	.rv-row button.rv-primary {
		background: var(--rv-ink);
		color: #fff;
	}
	.rv-hint {
		font-size: 11.5px;
		color: var(--rv-muted);
		margin: 0 0 6px;
	}

	@media print {
		.rv-root,
		.rv-bar,
		.rv-drawer,
		.rv-pop {
			display: none !important;
		}
	}
