:root {
	--hw-bg: #f7f5ef;
	--hw-surface: #ffffff;
	--hw-surface-soft: #fbfaf6;
	--hw-ink: #17231e;
	--hw-muted: #66736d;
	--hw-green-950: #0b2f2a;
	--hw-green-900: #123d35;
	--hw-green-800: #174f43;
	--hw-teal-700: #0b6f86;
	--hw-teal-600: #0f86a3;
	--hw-teal-soft: #e8f4f3;
	--hw-gold-soft: #f3ead8;
	--hw-border: #dedbd2;
	--hw-shadow-card: 0 10px 26px rgba(11, 47, 42, .08);
}

.hwcpb-shell {
	width: min(1120px, calc(100% - 32px));
	margin: 48px auto;
	color: var(--hw-ink);
}

.hwcpb-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr);
	gap: 22px;
	align-items: start;
}

.hwcpb-card {
	border: 1px solid var(--hw-border);
	border-radius: 16px;
	background: var(--hw-surface);
	box-shadow: var(--hw-shadow-card);
	padding: clamp(22px, 3vw, 36px);
}

.hwcpb-card h1,
.hwcpb-card h2 {
	margin-top: 0;
	letter-spacing: 0;
	line-height: 1.1;
}

.hwcpb-kicker,
.hwcpb-label {
	margin: 0 0 8px;
	color: var(--hw-muted);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.hwcpb-lead,
.hwcpb-note,
.hwcpb-rodo,
.hwcpb-under,
.hwcpb-muted {
	color: #5f6b7a;
}

.hwcpb-muted {
	font-size: .9em;
	font-weight: 600;
}

.hwcpb-form {
	display: grid;
	gap: 16px;
}

.hwcpb-form--narrow {
	max-width: 560px;
	margin: 0 auto;
}

.hwcpb-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.hwcpb-fieldset {
	display: grid;
	gap: 14px;
	margin: 4px 0;
	padding: 18px;
	border: 1px solid rgba(15, 94, 115, .16);
	border-radius: 8px;
	background: #f8fafc;
}

.hwcpb-fieldset legend {
	padding: 0 8px;
	color: #0f5e73;
	font-weight: 850;
}

.hwcpb-form label {
	display: grid;
	gap: 7px;
	font-weight: 760;
}

.hwcpb-form input,
.hwcpb-form select,
.hwcpb-form textarea {
	width: 100%;
	min-height: 46px;
	border: 1px solid rgba(17, 24, 39, .18);
	border-radius: 8px;
	background: #fff;
	color: #111827;
	padding: 10px 12px;
	font: inherit;
}

.hwcpb-form textarea {
	min-height: 118px;
	resize: vertical;
}

.hwcpb-form input:focus,
.hwcpb-form select:focus,
.hwcpb-form textarea:focus {
	outline: 3px solid rgba(15, 94, 115, .22);
	border-color: #0f5e73;
}

.hwcpb-check {
	display: flex !important;
	grid-template-columns: none !important;
	flex-direction: row;
	gap: 10px !important;
	align-items: flex-start;
	font-weight: 650 !important;
}

.hwcpb-check input {
	width: 18px;
	min-height: 18px;
	margin-top: 3px;
}

.hwcpb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--hw-green-900);
	color: #fff !important;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.hwcpb-btn--green {
	background: var(--hw-green-900);
}

.hwcpb-btn--small {
	width: fit-content;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 12px;
	font-size: 14px;
}

.hwcpb-alert {
	margin-bottom: 18px;
	border-radius: 8px;
	padding: 14px 16px;
	font-weight: 700;
}

.hwcpb-alert--success {
	border: 1px solid rgba(46, 105, 72, .25);
	background: #e7f1eb;
	color: #155f3f;
}

.hwcpb-alert--error {
	border: 1px solid rgba(229, 57, 53, .22);
	background: #fff0ef;
	color: #9f1f1c;
}

.hwcpb-honeypot {
	position: absolute !important;
	left: -9999px;
	opacity: 0;
}

.hwcpb-side {
	background: linear-gradient(135deg, var(--hw-surface-soft), var(--hw-teal-soft));
}

.hwcpb-side ul {
	display: grid;
	gap: 12px;
	padding-left: 20px;
}

.hwcpb-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.hwcpb-dashboard-grid section {
	border: 1px solid rgba(17, 24, 39, .10);
	border-radius: 8px;
	padding: 18px;
	background: #f8fafc;
}

.hwcpb-status {
	display: inline-flex;
	border-radius: 999px;
	padding: 8px 14px;
	background: #fff8e8;
	color: #795200;
	font-weight: 800;
}

.hwcpb-client-portal {
	width: min(1320px, calc(100% - 32px));
}

.hwcpb-top-welcome {
	margin-bottom: 24px;
	padding: clamp(24px, 4vw, 34px);
	border: 1px solid var(--hw-border);
	border-radius: 32px;
	background: #fff;
}

.hwcpb-top-welcome h1 {
	margin: 14px 0 10px;
	color: var(--hw-ink);
	font-size: clamp(34px, 4vw, 68px);
	line-height: 1.02;
}

.hwcpb-top-welcome p {
	margin: 0;
	color: #5c6f8b;
	font-size: clamp(20px, 2vw, 40px);
}

.hwcpb-top-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.hwcpb-btn--light {
	background: #fff;
	color: var(--hw-ink) !important;
	border-color: var(--hw-border);
}

.hwcpb-action-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 22px;
}

.hwcpb-action-card {
	display: grid;
	gap: 10px;
	padding: 30px 32px;
	border: 1px solid var(--hw-border);
	border-radius: 34px;
	background: #fff;
	text-decoration: none;
	color: var(--hw-ink);
}

.hwcpb-action-card strong {
	font-size: clamp(32px, 2.6vw, 50px);
	line-height: 1.06;
}

.hwcpb-action-card span {
	color: #5c6f8b;
	font-size: clamp(20px, 1.4vw, 30px);
}

.hwcpb-action-card.is-primary {
	background: #24784f;
	color: #fff;
}

.hwcpb-action-card.is-primary span {
	color: #d5e8de;
}

.hwcpb-portal-hero {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: center;
	margin-bottom: 22px;
	padding: clamp(24px, 4vw, 38px);
	border-radius: 24px;
	background: linear-gradient(135deg, var(--hw-green-950), var(--hw-green-800));
	color: #fff;
	box-shadow: var(--hw-shadow-card);
	border-bottom: 4px solid var(--hw-teal-600);
}

.hwcpb-portal-hero .hwcpb-kicker,
.hwcpb-portal-hero p {
	color: #d9e8e3;
}

.hwcpb-portal-hero h1 {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(30px, 4vw, 48px);
}

.hwcpb-client-pill {
	display: grid;
	place-items: center;
	flex: 0 0 76px;
	width: 76px;
	height: 76px;
	border-radius: 20px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.22);
	font-size: 24px;
	font-weight: 900;
}

.hwcpb-status-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.hwcpb-status-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 13px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.24);
	background: rgba(255,255,255,.1);
	color: #e8f3ef;
	font-size: 13px;
	font-weight: 800;
}

.hwcpb-quick-actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 20px;
}

.hwcpb-quick-card {
	display: grid;
	gap: 7px;
	padding: 16px;
	border: 1px solid var(--hw-border);
	border-radius: 14px;
	background: var(--hw-surface);
	color: var(--hw-ink);
	text-decoration: none;
}

.hwcpb-quick-card strong {
	font-size: 17px;
	line-height: 1.2;
}

.hwcpb-quick-card span {
	color: var(--hw-muted);
	font-size: 13px;
}

.hwcpb-client-nav {
	display: grid;
	gap: 6px;
	margin: 0 0 18px;
}

.hwcpb-client-nav a {
	display: block;
	padding: 9px 12px;
	border-radius: 12px;
	color: var(--hw-ink);
	font-weight: 760;
	text-decoration: none;
}

.hwcpb-client-nav a:hover,
.hwcpb-client-nav a:focus-visible {
	background: rgba(255,255,255,.55);
}

.hwcpb-portal-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.hwcpb-portal-layout--compact {
	grid-template-columns: 340px minmax(0, 1fr);
}

.hwcpb-portal-side {
	padding: 20px;
	border: 1px solid var(--hw-border);
	border-radius: 20px;
	box-shadow: var(--hw-shadow-card);
}

.hwcpb-small {
	color: var(--hw-muted);
	font-size: 14px;
	line-height: 1.45;
}

.hwcpb-matter-card {
	display: grid;
	gap: 6px;
	margin: 10px 0;
	padding: 14px;
	border: 1px solid var(--hw-border);
	border-radius: 16px;
	background: #fff;
}

.hwcpb-matter-card.is-active {
	color: #fff;
	background: var(--hw-green-900);
	border-color: var(--hw-green-900);
}

.hwcpb-matter-card span {
	color: inherit;
	opacity: .78;
}

.hwcpb-portal-main {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.hwcpb-portal-main--stack {
	grid-template-columns: 1fr;
}

.hwcpb-case-list h2 {
	margin-top: 0;
}

.hwcpb-case-row {
	display: grid;
	gap: 10px;
	padding: 24px 28px;
	margin-top: 14px;
	border-radius: 28px;
	border: 1px solid var(--hw-border);
	background: #fff;
}

.hwcpb-case-row.is-active {
	background: #dcefe6;
	border-color: #24784f;
}

.hwcpb-case-row strong {
	font-size: 40px;
	line-height: 1.08;
}

.hwcpb-case-row span {
	color: #5d7290;
	font-size: 22px;
}

.hwcpb-case-progress {
	height: 16px;
	border-radius: 999px;
	background: #e6e6e6;
	overflow: hidden;
}

.hwcpb-case-progress i {
	display: block;
	height: 100%;
	width: 72%;
	background: #24784f;
}

.hwcpb-action-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.hwcpb-consents {
	display: grid;
	gap: 14px;
}

.hwcpb-consent-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 24px;
	border-radius: 24px;
	background: #f6f1e9;
}

.hwcpb-consent-row strong {
	font-size: 22px;
}

.hwcpb-consent-row span {
	padding: 10px 18px;
	border-radius: 999px;
	background: #e2f6ee;
	border: 1px solid #7ddfb8;
	color: #066243;
	font-weight: 800;
}

.hwcpb-matter-hero {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: flex-start;
}

.hwcpb-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hwcpb-tabs button {
	border: 1px solid var(--hw-border);
	border-radius: 999px;
	background: #fff;
	color: var(--hw-muted);
	padding: 10px 14px;
	font-weight: 800;
	cursor: pointer;
}

.hwcpb-tabs button.is-active {
	background: var(--hw-green-900);
	border-color: var(--hw-green-900);
	color: #fff;
}

.hwcpb-tab-panel {
	display: none;
	padding: clamp(22px, 3vw, 34px) !important;
}

.hwcpb-tab-panel.is-active {
	display: block;
}

.hwcpb-client-portal .hwcpb-tab-panel > h2,
.hwcpb-client-portal .hwcpb-matter-hero h2,
.hwcpb-client-portal .hwcpb-portal-side h2 {
	margin: 0 0 18px !important;
	color: var(--hw-ink) !important;
	font-family: inherit !important;
	font-size: clamp(28px, 3vw, 44px) !important;
	font-weight: 900 !important;
	line-height: 1.08 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.hwcpb-client-portal .hwcpb-matter-hero h2 {
	font-size: clamp(24px, 2.2vw, 34px) !important;
}

.hwcpb-mini-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.hwcpb-mini-grid div,
.hwcpb-list-row,
.hwcpb-timeline-item {
	padding: 14px;
	border: 1px solid var(--hw-border);
	border-radius: 16px;
	background: var(--hw-surface-soft);
}

.hwcpb-mini-grid strong,
.hwcpb-mini-grid span,
.hwcpb-list-row strong,
.hwcpb-list-row span,
.hwcpb-timeline-item strong,
.hwcpb-timeline-item p,
.hwcpb-timeline-item time {
	display: block;
}

.hwcpb-timeline-item,
.hwcpb-list-row {
	margin-top: 10px;
}

.hwcpb-timeline-item time,
.hwcpb-mini-grid span,
.hwcpb-list-row span {
	color: var(--hw-muted);
}

.hwcpb-portal-list,
.hwcpb-data-list {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.hwcpb-portal-list li,
.hwcpb-data-card {
	display: grid;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--hw-border);
	border-radius: 16px;
	background: var(--hw-surface-soft);
}

.hwcpb-portal-list strong,
.hwcpb-portal-list span,
.hwcpb-portal-list small,
.hwcpb-data-card strong,
.hwcpb-data-card time {
	display: block;
}

.hwcpb-portal-list strong,
.hwcpb-data-card strong {
	color: var(--hw-ink);
	font-size: clamp(17px, 1.4vw, 22px);
	line-height: 1.25;
}

.hwcpb-portal-list span,
.hwcpb-portal-list small,
.hwcpb-data-card time {
	color: var(--hw-muted);
	font-size: 14px;
	line-height: 1.45;
}

.hwcpb-data-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 0;
}

.hwcpb-data-fields div {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(222, 219, 210, .8);
	border-radius: 12px;
	background: #fff;
}

.hwcpb-data-fields dt {
	margin: 0 0 4px;
	color: var(--hw-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.hwcpb-data-fields dd {
	margin: 0;
	color: var(--hw-ink);
	font-size: 15px;
	font-weight: 800;
}

.hwcpb-data-list--timeline {
	position: relative;
	padding-left: 28px;
}

.hwcpb-data-list--timeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 8px;
	width: 2px;
	background: var(--hw-border);
}

.hwcpb-data-list--timeline .hwcpb-data-card {
	position: relative;
}

.hwcpb-data-list--timeline .hwcpb-data-card::before {
	content: "";
	position: absolute;
	left: -26px;
	top: 22px;
	width: 14px;
	height: 14px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--hw-green-900);
	box-shadow: 0 0 0 2px var(--hw-green-900);
}

.hwcpb-inline-form {
	display: grid;
	gap: 12px;
	margin-bottom: 16px;
}

.hwcpb-inline-form label {
	display: grid;
	gap: 7px;
	font-weight: 760;
}

.hwcpb-inline-form input,
.hwcpb-inline-form textarea {
	width: 100%;
	border: 1px solid var(--hw-border);
	border-radius: 16px;
	padding: 12px;
	font: inherit;
}

.hwcpb-inline-form textarea {
	min-height: 120px;
	resize: vertical;
}

.hwcpb-status--sent {
	background: #e7f1eb;
	color: #155f3f;
}

.hwcpb-status--failed {
	background: #fff0ef;
	color: #9f1f1c;
}

@media (max-width: 760px) {
	.hwcpb-grid,
	.hwcpb-row,
	.hwcpb-dashboard-grid,
	.hwcpb-portal-layout,
	.hwcpb-mini-grid {
		grid-template-columns: 1fr;
	}

	.hwcpb-portal-hero,
	.hwcpb-matter-hero {
		display: grid;
	}

	.hwcpb-quick-actions {
		grid-template-columns: 1fr;
	}

	.hwcpb-action-grid {
		grid-template-columns: 1fr;
	}

	.hwcpb-action-row {
		grid-template-columns: 1fr;
	}

	.hwcpb-case-row strong {
		font-size: 28px;
	}

	.hwcpb-shell {
		width: min(100% - 20px, 1120px);
		margin: 24px auto;
	}

	.hwcpb-btn {
		width: 100%;
	}
}
