.prh-app {
	--prh-primary: #0f5c56;
	--prh-primary-dark: #0a3f3b;
	--prh-surface: #fafaf9;
	--prh-card: #f4f4f2;
	--prh-border: #e4e4e1;
	--prh-muted: #6b6b68;
	--prh-radius: 14px;
	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1c1c1a;
	line-height: 1.5;
}

.prh-app * {
	box-sizing: border-box;
}

.prh-loading {
	padding: 40px 16px;
	text-align: center;
	color: var(--prh-muted);
}

.prh-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.prh-logo {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--prh-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
	flex-shrink: 0;
}

.prh-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}

.prh-subtitle {
	color: var(--prh-muted);
	font-size: 14px;
	margin: 4px 0 0;
}

.prh-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: var(--prh-primary);
	font-weight: 600;
	font-size: 14px;
	padding: 8px 0;
	margin-bottom: 8px;
	cursor: pointer;
}

.prh-card {
	background: var(--prh-card);
	border: 1px solid var(--prh-border);
	border-radius: var(--prh-radius);
	padding: 16px;
	margin-bottom: 12px;
}

.prh-card.is-clickable {
	cursor: pointer;
	background: #fff;
	transition: border-color .15s ease;
}
.prh-card.is-clickable:hover {
	border-color: var(--prh-primary);
}

.prh-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.prh-row-title {
	font-weight: 600;
	font-size: 15px;
	margin: 0;
}

.prh-row-sub {
	font-size: 12px;
	color: var(--prh-muted);
	margin: 4px 0 0;
}

.prh-badge {
	background: var(--prh-border);
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.prh-badge.is-done {
	background: var(--prh-primary);
	color: #fff;
}

.prh-chevron {
	color: var(--prh-muted);
	flex-shrink: 0;
}

.prh-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--prh-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
}

.prh-scale {
	display: flex;
	gap: 4px;
	margin-top: 10px;
}

.prh-scale button {
	flex: 1;
	height: 44px;
	border-radius: 8px;
	border: 1px solid var(--prh-border);
	background: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background .1s ease, color .1s ease, border-color .1s ease;
}

.prh-scale button.is-selected {
	background: var(--prh-primary);
	border-color: var(--prh-primary);
	color: #fff;
}

.prh-scale-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--prh-muted);
	margin-top: 4px;
}

.prh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background: var(--prh-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px 16px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}

.prh-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.prh-btn.is-outline {
	background: #fff;
	color: var(--prh-primary);
	border: 1px solid var(--prh-border);
	width: auto;
	padding: 10px 16px;
}

.prh-signature-pad {
	background: #fff;
	border: 1px solid var(--prh-border);
	border-radius: 10px;
	height: 160px;
	position: relative;
	touch-action: none;
}

.prh-signature-pad canvas {
	width: 100%;
	height: 100%;
	display: block;
	cursor: crosshair;
}

.prh-signature-hint {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
	pointer-events: none;
	font-size: 14px;
}

.prh-field label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
}

.prh-field textarea,
.prh-field input {
	width: 100%;
	border: 1px solid var(--prh-border);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
}

.prh-field {
	margin-bottom: 14px;
}

.prh-category {
	font-weight: 700;
	color: var(--prh-primary);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 18px 0 8px;
}

.prh-error {
	text-align: center;
	padding: 30px 16px;
	color: var(--prh-muted);
}

.prh-error .prh-btn {
	width: auto;
	margin-top: 12px;
	padding: 10px 20px;
}

.prh-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	background: #1c1c1a;
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 9999;
	max-width: 90vw;
}

.prh-progress {
	height: 6px;
	border-radius: 4px;
	background: var(--prh-border);
	overflow: hidden;
	flex: 1;
}

.prh-progress > span {
	display: block;
	height: 100%;
	background: var(--prh-primary);
}

.prh-progress-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 12px;
	color: var(--prh-muted);
}

.prh-progress-row .prh-progress-label {
	width: 130px;
	flex-shrink: 0;
}

.prh-progress-row .prh-progress-value {
	width: 44px;
	flex-shrink: 0;
	text-align: right;
	font-weight: 600;
	color: #1c1c1a;
}

@media (max-width: 480px) {
	.prh-app { padding: 0 4px; }
}
