.hpfsp-panel,
.hpfsp-login,
.hpfsp-notice {
	box-sizing: border-box;
	width: min(100%, 1120px);
	margin: 0 auto;
	font-family: inherit;
	color: #1f2933;
}

.hpfsp-panel *,
.hpfsp-login *,
.hpfsp-notice * {
	box-sizing: border-box;
}

.hpfsp-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.hpfsp-toolbar h2,
.hpfsp-login h2 {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.2;
	letter-spacing: 0;
	color: #102a43;
}

.hpfsp-counter {
	margin: 8px 0 0;
	font-size: 0.98rem;
	color: #52606d;
}

.hpfsp-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid #b8c6c2;
	border-radius: 8px;
	background: #ffffff;
	color: #155e63;
	font-size: 1.35rem;
	font-weight: 700;
	cursor: pointer;
}

.hpfsp-filters {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	padding: 18px;
	margin-bottom: 28px;
	border: 1px solid #d7dee2;
	border-radius: 8px;
	background: #fbfdfd;
}

.hpfsp-filters label,
.hpfsp-state,
.hpfsp-notes__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	font-size: 0.86rem;
	font-weight: 700;
	color: #334e68;
}

.hpfsp-filters input,
.hpfsp-filters select,
.hpfsp-state select,
.hpfsp-notes textarea,
.hpfsp-login input[type="text"],
.hpfsp-login input[type="password"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid #b8c6c2;
	border-radius: 6px;
	background: #ffffff;
	color: #1f2933;
	font: inherit;
	padding: 9px 10px;
}

.hpfsp-state select {
	min-height: 44px;
}

.hpfsp-panel .hpfsp-state select,
.hpfsp-panel .hpfsp-notes textarea {
	appearance: none;
	border: 1px solid #c5d1d8;
	border-radius: 8px;
	background-color: #ffffff;
	box-shadow: none;
	outline: 0;
}

.hpfsp-panel .hpfsp-state select:focus,
.hpfsp-panel .hpfsp-notes textarea:focus {
	border-color: #155e63;
	box-shadow: 0 0 0 3px rgba(21, 94, 99, 0.14);
}

.hpfsp-panel .hpfsp-state select {
	background-image: linear-gradient(45deg, transparent 50%, #627d98 50%), linear-gradient(135deg, #627d98 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 34px;
}

.hpfsp-panel .hpfsp-notes textarea {
	display: block;
	min-height: 104px;
	line-height: 1.5;
	resize: vertical;
	padding: 12px 14px;
}

.hpfsp-panel .hpfsp-notes textarea:disabled {
	background: #eef2f4;
	color: #52606d;
}

.hpfsp-filter-actions {
	display: flex;
	align-items: end;
	gap: 10px;
}

.hpfsp-filter-actions button,
.hpfsp-secondary,
.hpfsp-login input[type="submit"] {
	min-height: 48px;
	border: 1px solid #155e63;
	border-radius: 6px;
	background: #155e63;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	padding: 9px 14px;
	cursor: pointer;
}

.hpfsp-secondary {
	background: #ffffff;
	color: #155e63;
}

.hpfsp-status-line {
	min-height: 24px;
	margin: 10px 0 14px;
	color: #155e63;
	font-weight: 700;
}

.hpfsp-status-line--error {
	color: #b42318;
}

.hpfsp-list {
	display: grid;
	gap: 12px;
	min-height: 90px;
	border: 0;
	background: transparent;
	overflow: visible;
	box-shadow: none;
}

.hpfsp-list--loading {
	opacity: 0.64;
}

.hpfsp-mail {
	border: 1px solid #d7dee2;
	border-left: 6px solid transparent;
	border-radius: 8px;
	background: #f8fafc;
	box-shadow: 0 2px 8px rgba(16, 42, 67, 0.08);
	overflow: hidden;
}

.hpfsp-mail:last-child {
	border-bottom: 1px solid #d7dee2;
}

.hpfsp-mail--unread {
	border-left-color: #d97706;
	background: #fff6df;
}

.hpfsp-mail--read {
	border-left-color: #94a3b8;
	background: #edf4f6;
}

.hpfsp-mail--open {
	background: #ffffff;
}

.hpfsp-mail--open.hpfsp-mail--unread {
	background: #fffaf0;
}

.hpfsp-mail--open.hpfsp-mail--read {
	background: #ffffff;
}

.hpfsp-mail__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 78px;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	padding: 18px 20px;
	cursor: pointer;
}

.hpfsp-mail__summary:hover,
.hpfsp-mail__summary:focus {
	background: rgba(21, 94, 99, 0.06);
	outline: 2px solid transparent;
	box-shadow: inset 0 0 0 2px rgba(21, 94, 99, 0.16);
}

.hpfsp-mail__left {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
	flex-wrap: wrap;
}

.hpfsp-mail__dot {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: #94a3b8;
	flex: 0 0 12px;
}

.hpfsp-mail--unread .hpfsp-mail__dot {
	background: #d97706;
	box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16);
}

.hpfsp-mail--read .hpfsp-mail__dot {
	background: #94a3b8;
}

.hpfsp-mail__content {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
}

.hpfsp-mail__sender-line {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex-wrap: wrap;
}

.hpfsp-mail__sender {
	min-width: 0;
	color: #102a43;
	font-size: 1.05rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
	white-space: nowrap;
}

.hpfsp-mail--unread .hpfsp-mail__sender {
	color: #0f172a;
	font-weight: 900;
}

.hpfsp-mail--read .hpfsp-mail__sender {
	color: #334155;
	font-weight: 700;
}

.hpfsp-read-label {
	flex: 0 0 auto;
	border-radius: 999px;
	background: #d9e5ea;
	color: #2f4f5f;
	font-size: 0.76rem;
	font-weight: 800;
	padding: 4px 8px;
}

.hpfsp-mail--unread .hpfsp-read-label {
	background: #f97316;
	border: 1px solid #ea580c;
	color: #ffffff;
}

.hpfsp-mail--read .hpfsp-read-label {
	background: #d9e5ea;
	border: 1px solid #c1d1d8;
	color: #2f4f5f;
	font-weight: 700;
	opacity: 0.9;
}

.hpfsp-mail--unread .hpfsp-badge {
	box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.13);
}

.hpfsp-mail--read .hpfsp-badge {
	opacity: 0.78;
}

.hpfsp-mail--read .hpfsp-date {
	color: #78909c;
}

.hpfsp-mail--unread .hpfsp-date {
	color: #7c2d12;
	font-weight: 800;
}

.hpfsp-mail__meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-width: 0;
	flex: 0 0 auto;
}

.hpfsp-badge {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff3c4;
	color: #7c2d12;
	font-size: 0.8rem;
	font-weight: 800;
}

.hpfsp-badge--contacted {
	background: #dbeafe;
	color: #1d4ed8;
}

.hpfsp-badge--closed {
	background: #dcfce7;
	color: #166534;
}

.hpfsp-badge--recent {
	background: #fff3c4;
	color: #7c2d12;
}

.hpfsp-mail--read .hpfsp-badge--recent {
	opacity: 1;
}

.hpfsp-date {
	color: #627d98;
	font-size: 0.88rem;
	text-align: left;
	white-space: nowrap;
}

.hpfsp-mail--read .hpfsp-date {
	color: #78909c;
}

.hpfsp-mail--unread .hpfsp-date {
	color: #7c2d12;
	font-weight: 800;
}

.hpfsp-mail__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 78px;
	min-height: 44px;
	border: 1px solid #b8c6c2;
	border-radius: 999px;
	background: #ffffff;
	color: #155e63;
	font-size: 0.86rem;
	font-weight: 900;
	text-transform: uppercase;
	flex: 0 0 auto;
	margin-left: auto;
}

.hpfsp-mail__details {
	display: grid;
	gap: 18px;
	padding: 20px 24px 24px 48px;
	border-top: 1px solid #edf2f7;
	background: #ffffff;
}

.hpfsp-mail__details[hidden] {
	display: none !important;
}

.hpfsp-contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	color: #334e68;
}

.hpfsp-detail-line,
.hpfsp-message-wrap {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.hpfsp-detail-label {
	color: #627d98;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.hpfsp-detail-value {
	overflow-wrap: anywhere;
}

.hpfsp-message {
	min-height: 112px;
	margin: 0;
	border: 1px solid #d7dee2;
	border-radius: 8px;
	background: #f8fafc;
	color: #1f2933;
	line-height: 1.6;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	padding: 16px;
}

.hpfsp-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.hpfsp-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border-radius: 6px;
	background: #155e63;
	color: #ffffff;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	padding: 10px 8px;
}

.hpfsp-action:hover,
.hpfsp-action:focus {
	color: #ffffff;
	background: #0f4f54;
}

.hpfsp-action--disabled {
	pointer-events: none;
	opacity: 0.45;
}

.hpfsp-management {
	display: grid;
	grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
	gap: 14px 20px;
	align-items: stretch;
	padding: 18px;
	border: 1px solid #dbe4ea;
	border-radius: 8px;
	background: #f8fbfc;
}

.hpfsp-management__title {
	grid-column: 1 / -1;
	color: #102a43;
	font-size: 0.86rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hpfsp-management .hpfsp-state {
	max-width: none;
	padding-top: 1px;
}

.hpfsp-notes {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.hpfsp-notes__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
}

.hpfsp-notes__hint {
	min-height: 20px;
	color: #627d98;
	font-size: 0.82rem;
}

.hpfsp-notes--dirty .hpfsp-notes__hint {
	color: #7c2d12;
	font-weight: 700;
}

.hpfsp-notes__save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	min-height: 42px;
	border: 1px solid #155e63;
	border-radius: 6px;
	background: #155e63;
	color: #ffffff;
	font: inherit;
	font-weight: 800;
	padding: 8px 16px;
	cursor: pointer;
}

.hpfsp-notes__save:disabled {
	border-color: #d7dee2;
	background: #edf2f7;
	color: #7b8794;
	cursor: not-allowed;
	opacity: 1;
}

.hpfsp-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 28px;
}

.hpfsp-pagination button:disabled {
	cursor: not-allowed;
	opacity: 0.52;
}

.hpfsp-empty,
.hpfsp-notice {
	padding: 18px;
	border: 1px solid #d7dee2;
	border-radius: 8px;
	background: #ffffff;
	color: #334e68;
}

.hpfsp-notice--error {
	border-color: #f5b7b1;
	color: #9f1d12;
}

.hpfsp-notice--warning {
	border-color: #f5d08a;
	color: #7c2d12;
}

.hpfsp-login {
	max-width: 420px;
	padding: 18px;
	border: 1px solid #d7dee2;
	border-radius: 8px;
	background: #ffffff;
}

.hpfsp-login label {
	display: block;
	margin: 12px 0 6px;
	font-weight: 700;
	color: #334e68;
}

.hpfsp-login .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 900px) {
	.hpfsp-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hpfsp-mail__summary {
		flex-wrap: nowrap;
		min-height: 88px;
	}

	.hpfsp-mail__left {
		gap: 10px;
	}

	.hpfsp-mail__meta {
		justify-content: start;
		min-width: 0;
	}

	.hpfsp-mail__chevron {
		margin-left: auto;
	}

	.hpfsp-mail__details {
		padding: 20px 18px 22px 38px;
	}

	.hpfsp-management {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px;
	}

	.hpfsp-management .hpfsp-state {
		max-width: 360px;
	}

	.hpfsp-contact {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.hpfsp-panel {
		padding: 0 2px;
	}

	.hpfsp-toolbar {
		align-items: flex-start;
	}

	.hpfsp-filters {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 14px;
	}

	.hpfsp-filter-actions,
	.hpfsp-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.hpfsp-mail__summary {
		flex-wrap: nowrap;
		min-height: 94px;
		padding: 16px 12px;
		gap: 12px;
	}

	.hpfsp-mail__details {
		padding: 16px 10px 18px 18px;
	}

	.hpfsp-management {
		gap: 14px;
		padding: 14px;
	}

	.hpfsp-management .hpfsp-state {
		max-width: none;
	}

	.hpfsp-panel .hpfsp-notes textarea {
		min-height: 132px;
	}

	.hpfsp-notes__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.hpfsp-notes__save {
		width: 100%;
	}

	.hpfsp-badge {
		min-height: 30px;
		padding: 4px 10px;
	}

	.hpfsp-date {
		font-size: 0.82rem;
	}

	.hpfsp-mail__chevron {
		min-width: 66px;
		min-height: 44px;
	}

}

/* Peñafresh: readable private workspace on the site's black background. */
.hpfsp-panel,.hpfsp-login,.hpfsp-notice{background:#fff;padding:24px;border-radius:12px;margin:32px auto}
.hpfsp-form-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.hpfsp-form-tabs a{padding:10px 20px;background:#eee;color:#111;border-radius:6px;font-weight:700}
.hpfsp-form-tabs a[aria-current=page]{background:#eaea3d;color:#000}
@media(max-width:600px){.hpfsp-panel,.hpfsp-login{padding:16px}}
