:root {
	--abba-portal-bg: #f4f7f2;
	--abba-portal-card: #ffffff;
	--abba-portal-card-strong: #ffffff;
	--abba-portal-text: #0b1b12;
	--abba-portal-muted: #506457;
	--abba-portal-accent: #e8b220;
	--abba-portal-accent-soft: rgba(232, 178, 32, 0.16);
	--abba-portal-accent-deep: #06572c;
	--abba-portal-success: #128c45;
	--abba-portal-warning: #b66a00;
	--abba-portal-danger: #9a3030;
	--abba-portal-border: rgba(6, 87, 44, 0.14);
	--abba-portal-shadow: 0 24px 60px rgba(6, 87, 44, 0.12);
}

.abba-customer-portal-shell {
	position: relative;
	padding: 1.5rem;
	color: var(--abba-portal-text);
	background:
		radial-gradient(circle at top left, rgba(148, 190, 61, 0.20), transparent 28%),
		radial-gradient(circle at top right, rgba(18, 140, 69, 0.12), transparent 24%),
		linear-gradient(180deg, #f8fbf7 0%, #edf4e9 100%);
	font-family: inherit;
}

.abba-customer-portal-shell::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
	background-size: 28px 28px;
	opacity: 0.2;
	pointer-events: none;
}

.abba-customer-portal-dashboard,
.abba-customer-portal-card {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.5rem;
	border: 1px solid var(--abba-portal-border);
	border-radius: 28px;
	background: rgba(255, 253, 249, 0.94);
	box-shadow: var(--abba-portal-shadow);
	backdrop-filter: blur(12px);
}

.abba-customer-portal-card {
	max-width: 760px;
}

.abba-customer-portal-badge,
.abba-customer-portal-section-kicker,
.abba-customer-portal-summary-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--abba-portal-accent-soft);
	color: var(--abba-portal-accent);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.abba-customer-portal-section-head h3 {
	margin-bottom: 0;
}

.abba-customer-portal-section-head > div {
	min-width: 0;
}

.abba-customer-portal-section-head .abba-customer-portal-muted {
	padding-top: 0.15rem;
	text-align: right;
}

.abba-customer-portal-hero {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0 1.25rem;
	border-bottom: 1px solid var(--abba-portal-border);
}

.abba-customer-portal-hero h2,
.abba-customer-portal-section h3,
.abba-customer-portal-card h2,
.abba-customer-portal-card h3,
.abba-customer-portal-card h4 {
	margin: 0.55rem 0 0.4rem;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.abba-customer-portal-hero p,
.abba-customer-portal-card p,
.abba-customer-portal-card li,
.abba-customer-portal-card th,
.abba-customer-portal-card td {
	font-family: inherit;
	line-height: 1.55;
}

.abba-customer-portal-hero-actions {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-left: auto;
}

.abba-customer-portal-summary-grid,
.abba-customer-portal-layout,
.abba-customer-portal-grid {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.abba-customer-portal-summary-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.abba-customer-portal-layout {
	grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
	align-items: start;
}

.abba-customer-portal-layout > *,
.abba-customer-portal-detail-grid > * {
	min-width: 0;
}

.abba-customer-portal-appointment-id {
	overflow-wrap: anywhere;
}

.abba-customer-portal-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.abba-customer-portal-summary-card,
.abba-customer-portal-section,
.abba-customer-portal-empty-state,
.abba-customer-portal-empty-inline,
.abba-customer-portal-status-card,
.abba-customer-portal-mini-stat,
.abba-customer-portal-appointment-card {
	border: 1px solid var(--abba-portal-border);
	border-radius: 22px;
	background: var(--abba-portal-card-strong);
	box-shadow: 0 10px 24px rgba(31, 26, 22, 0.04);
}

.abba-customer-portal-empty-state,
.abba-customer-portal-empty-inline {
	padding: 1rem;
}

.abba-customer-portal-empty-state h4,
.abba-customer-portal-empty-inline p {
	margin: 0;
}

.abba-customer-portal-empty-state p,
.abba-customer-portal-empty-inline p {
	color: var(--abba-portal-muted);
	line-height: 1.6;
}

.abba-customer-portal-summary-card {
	padding: 1rem 1.05rem;
}

.abba-customer-portal-summary-card strong {
	display: block;
	margin-top: 0.7rem;
	font-size: 1.8rem;
	line-height: 1;
}

.abba-customer-portal-summary-card a {
	color: inherit;
	text-decoration: none;
}

.abba-customer-portal-summary-card p,
.abba-customer-portal-mini-stat span,
.abba-customer-portal-status-card span,
.abba-customer-portal-muted {
	margin: 0.35rem 0 0;
	color: var(--abba-portal-muted);
	font-size: 0.95rem;
}

.abba-customer-portal-section {
	padding: 1.1rem;
	margin-top: 1rem;
}

.abba-customer-portal-section-wide {
	min-height: 100%;
}

.abba-customer-portal-section-grid {
	padding-bottom: 1.1rem;
}

.abba-customer-portal-section-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.abba-customer-portal-mini-stat {
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
}

.abba-customer-portal-mini-stat strong {
	display: block;
	font-size: 1.6rem;
	line-height: 1;
}

.abba-customer-portal-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.abba-customer-portal-property-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.9rem;
}

.abba-customer-portal-property-card {
	padding: 1rem;
	border: 1px solid rgba(45, 85, 70, 0.12);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.92));
	box-shadow: 0 10px 24px rgba(31, 26, 22, 0.04);
}

.abba-customer-portal-property-card h4 {
	margin: 0.75rem 0 0.6rem;
	font-size: 1.08rem;
}

.abba-customer-portal-estimate-list {
	display: grid;
	gap: 0.9rem;
}

.abba-customer-portal-estimate-card {
	padding: 1rem;
	border: 1px solid rgba(138, 90, 35, 0.14);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.92));
	box-shadow: 0 10px 24px rgba(31, 26, 22, 0.04);
}

.abba-customer-portal-estimate-card h4 {
	margin: 0.75rem 0 0.6rem;
	font-size: 1.08rem;
}

.abba-customer-portal-estimate-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.8rem;
	margin-top: 1rem;
}

.abba-customer-portal-estimate-grid span {
	display: block;
	color: var(--abba-portal-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.abba-customer-portal-estimate-grid strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 1rem;
	line-height: 1.35;
}

.abba-customer-portal-estimate-actions {
	margin-top: 1rem;
}

.abba-customer-portal-document-list {
	display: grid;
	gap: 0.9rem;
}

.abba-customer-portal-document-card {
	padding: 1rem;
	border: 1px solid rgba(45, 85, 70, 0.14);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.92));
	box-shadow: 0 10px 24px rgba(31, 26, 22, 0.04);
}

.abba-customer-portal-document-card h4 {
	margin: 0.75rem 0 0.6rem;
	font-size: 1.08rem;
}

.abba-customer-portal-document-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.8rem;
	margin-top: 1rem;
}

.abba-customer-portal-document-grid span {
	display: block;
	color: var(--abba-portal-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.abba-customer-portal-document-grid strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 1rem;
	line-height: 1.35;
}

.abba-customer-portal-document-actions {
	margin-top: 1rem;
}

.abba-customer-portal-disabled-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.abba-customer-portal-notification-list {
	display: grid;
	gap: 0.9rem;
}

.abba-customer-portal-notification-card {
	padding: 1rem;
	border: 1px solid rgba(45, 85, 70, 0.14);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.92));
	box-shadow: 0 10px 24px rgba(31, 26, 22, 0.04);
}

.abba-customer-portal-notification-card h4 {
	margin: 0.75rem 0 0.5rem;
	font-size: 1.08rem;
}

.abba-customer-portal-notification-card p {
	margin: 0;
	color: var(--abba-portal-muted);
	line-height: 1.6;
}

.abba-customer-portal-notification-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.8rem;
	margin-top: 1rem;
}

.abba-customer-portal-notification-grid span {
	display: block;
	color: var(--abba-portal-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.abba-customer-portal-notification-grid strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 1rem;
	line-height: 1.35;
}

.abba-customer-portal-notification-actions {
	margin-top: 1rem;
}

.abba-customer-portal-message-thread-list,
.abba-customer-portal-message-list {
	display: grid;
	gap: 0.9rem;
}

.abba-customer-portal-message-thread-card,
.abba-customer-portal-message-item {
	padding: 1rem 1.1rem;
	border-radius: 18px;
	border: 1px solid rgba(31, 26, 22, 0.1);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 24px rgba(48, 35, 25, 0.06);
}

.abba-customer-portal-message-thread-card h4,
.abba-customer-portal-message-item h4 {
	margin: 0.8rem 0 0.55rem;
}

.abba-customer-portal-message-thread-meta,
.abba-customer-portal-message-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.5rem 0.9rem;
	margin-top: 0.8rem;
	color: var(--abba-portal-muted);
	font-size: 0.92rem;
}

.abba-customer-portal-message-thread-actions {
	margin-top: 1rem;
}

.abba-customer-portal-reply-placeholder {
	display: grid;
	gap: 0.75rem;
}

.abba-customer-portal-reply-placeholder textarea {
	width: 100%;
	min-height: 9rem;
	padding: 0.95rem 1rem;
	border: 1px solid rgba(31, 26, 22, 0.14);
	border-radius: 16px;
	background: rgba(249, 246, 242, 0.95);
	font: inherit;
	resize: vertical;
	color: var(--abba-portal-text);
}

.abba-customer-portal-reply-placeholder textarea:disabled {
	opacity: 1;
	cursor: not-allowed;
}

.abba-customer-portal-inline-link {
	color: var(--abba-portal-accent-deep);
	font-weight: 700;
	text-decoration: none;
}

.abba-customer-portal-inline-link:hover {
	text-decoration: underline;
}

.abba-customer-portal-message {
	margin-top: 1rem;
	padding: 0.95rem 1rem;
	border-radius: 16px;
	border: 1px solid rgba(31, 26, 22, 0.1);
	background: rgba(255, 255, 255, 0.96);
	color: var(--abba-portal-text);
}

.abba-customer-portal-message.is-success {
	border-color: rgba(45, 106, 79, 0.22);
	background: rgba(237, 246, 241, 0.96);
}

.abba-customer-portal-message.is-error {
	border-color: rgba(140, 59, 59, 0.22);
	background: rgba(250, 238, 238, 0.96);
}

.abba-customer-portal-form {
	display: grid;
	gap: 0.9rem;
}

.abba-customer-portal-form label {
	display: grid;
	gap: 0.4rem;
	font-weight: 700;
}

.abba-customer-portal-form span {
	font-size: 0.9rem;
	color: var(--abba-portal-muted);
}

.abba-customer-portal-form input {
	width: 100%;
	padding: 0.85rem 0.95rem;
	border: 1px solid rgba(6, 87, 44, 0.22);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.98);
	font: inherit;
	color: var(--abba-portal-text);
}

.abba-customer-portal-form input:focus {
	outline: 2px solid rgba(18, 140, 69, 0.28);
	outline-offset: 2px;
}

.abba-customer-portal-form .abba-customer-portal-remember label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.abba-customer-portal-form .abba-customer-portal-remember input[type='checkbox'] {
	width: 1rem;
	min-width: 1rem;
	height: 1rem;
	min-height: 1rem;
	margin: 0;
	padding: 0;
	accent-color: var(--abba-green, #128c45);
}

.abba-customer-portal-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.9rem;
}

.abba-customer-portal-toggle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.abba-customer-portal-toggle-item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid rgba(31, 26, 22, 0.12);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.95);
	font-weight: 600;
}

.abba-customer-portal-toggle-item input {
	width: 1rem;
	height: 1rem;
	margin: 0;
}

.abba-customer-portal-property-meta {
	display: grid;
	gap: 0.45rem;
	color: var(--abba-portal-muted);
	font-size: 0.94rem;
	line-height: 1.45;
}

.abba-customer-portal-detail-view {
	max-width: 1240px;
}

.abba-customer-portal-detail-grid {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.abba-customer-portal-detail-card-grid,
.abba-customer-portal-future-grid {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.abba-customer-portal-detail-view .abba-customer-portal-section-wide {
	grid-column: 1 / -1;
}

.abba-customer-portal-detail-card,
.abba-customer-portal-future-card,
.abba-customer-portal-timeline-card {
	padding: 1rem;
	border: 1px solid var(--abba-portal-border);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.92));
	box-shadow: 0 10px 24px rgba(31, 26, 22, 0.04);
}

.abba-customer-portal-detail-card span,
.abba-customer-portal-future-label {
	display: inline-flex;
	margin-bottom: 0.45rem;
	color: var(--abba-portal-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.abba-customer-portal-detail-card strong {
	display: block;
	line-height: 1.45;
}

.abba-customer-portal-detail-card.is-map-card {
	display: grid;
	gap: 0.45rem;
}

.abba-customer-portal-map-placeholder {
	display: grid;
	place-items: center;
	min-height: 140px;
	border: 1px dashed rgba(45, 85, 70, 0.24);
	border-radius: 18px;
	background: rgba(45, 85, 70, 0.06);
	color: var(--abba-portal-accent-deep);
	font-weight: 700;
	text-align: center;
}

.abba-customer-portal-timeline-list {
	display: grid;
	gap: 0.85rem;
}

.abba-customer-portal-timeline-card h4 {
	margin-top: 0.5rem;
	font-size: 1rem;
}

.abba-customer-portal-timeline-card p,
.abba-customer-portal-timeline-card small {
	display: block;
	color: var(--abba-portal-muted);
	margin-top: 0.45rem;
}

.abba-customer-portal-future-card {
	opacity: 0.82;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 239, 228, 0.92));
}

.abba-customer-portal-future-card h4 {
	margin-bottom: 0.35rem;
	font-size: 1.02rem;
}

.abba-customer-portal-chip {
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	background: rgba(45, 85, 70, 0.08);
	color: var(--abba-portal-accent-deep);
	font-size: 0.88rem;
	font-weight: 700;
}

.abba-customer-portal-appointment-card,
.abba-customer-portal-estimate-card,
.abba-customer-portal-empty-state,
.abba-customer-portal-empty-inline {
	padding: 1rem;
}

.abba-customer-portal-profile-grid,
.abba-customer-portal-toggle-grid {
	margin-top: 0.25rem;
}

.abba-customer-portal-empty-state.is-auth {
	padding: 1.1rem;
}

.abba-customer-portal-detail-view .abba-customer-portal-hero-actions {
	flex-wrap: wrap;
}

.abba-customer-portal-appointment-card + .abba-customer-portal-appointment-card {
	margin-top: 0.9rem;
}

.abba-customer-portal-appointment-featured {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 234, 0.94));
}

.abba-customer-portal-appointment-topline {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	align-items: center;
}

.abba-customer-portal-appointment-id {
	color: var(--abba-portal-muted);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.abba-customer-portal-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.abba-customer-portal-status-badge.is-scheduled {
	background: rgba(45, 106, 79, 0.12);
	color: var(--abba-portal-success);
}

.abba-customer-portal-status-badge.is-completed {
	background: rgba(45, 85, 70, 0.12);
	color: var(--abba-portal-accent-deep);
}

.abba-customer-portal-status-badge.is-cancelled {
	background: rgba(140, 59, 59, 0.12);
	color: var(--abba-portal-danger);
}

.abba-customer-portal-status-badge.is-pending {
	background: rgba(154, 106, 24, 0.14);
	color: var(--abba-portal-warning);
}

.abba-customer-portal-appointment-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.8rem;
	margin-top: 1rem;
}

.abba-customer-portal-appointment-grid.is-history {
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.abba-customer-portal-appointment-grid span {
	display: block;
	color: var(--abba-portal-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.abba-customer-portal-appointment-grid strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 1rem;
	line-height: 1.35;
}

.abba-customer-portal-appointment-actions {
	margin-top: 1rem;
}

.abba-customer-portal-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.8rem 1.2rem;
	border: 1px solid var(--abba-portal-accent);
	border-radius: 999px;
	background: var(--abba-portal-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.abba-customer-portal-button:focus-visible,
.abba-customer-portal-inline-link:focus-visible {
	outline: 2px solid rgba(45, 85, 70, 0.38);
	outline-offset: 2px;
}

.abba-customer-portal-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(138, 90, 35, 0.18);
}

.abba-customer-portal-button.is-secondary {
	background: transparent;
	color: var(--abba-portal-accent-deep);
	border-color: rgba(45, 85, 70, 0.24);
}

.abba-customer-portal-button.is-disabled {
	opacity: 0.55;
	pointer-events: none;
	box-shadow: none;
}

.abba-customer-portal-button.is-disabled::after {
	content: 'Coming Soon';
	margin-left: 0.4rem;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.abba-customer-portal-button.is-secondary.is-disabled::after {
	content: 'Available later';
}

.abba-customer-portal-disabled-actions .abba-customer-portal-button {
	min-width: 10rem;
	justify-content: center;
}

.abba-customer-portal-empty-state {
	display: grid;
	gap: 0.65rem;
	justify-items: start;
	text-align: left;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 228, 0.9));
}

.abba-customer-portal-empty-state h4,
.abba-customer-portal-empty-inline p {
	margin: 0;
}

.abba-customer-portal-empty-state.is-auth {
	margin-top: 1rem;
}

.abba-customer-portal-status-stack {
	display: grid;
	gap: 0.75rem;
}

.abba-customer-portal-status-card {
	padding: 1rem;
}

.abba-customer-portal-status-card strong {
	display: block;
	font-size: 1.05rem;
	margin-bottom: 0.25rem;
}

.abba-customer-portal-note {
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	border-left: 4px solid var(--abba-portal-accent);
	background: rgba(138, 90, 35, 0.07);
	color: var(--abba-portal-muted);
}

.abba-customer-portal-note.is-success {
	border-left-color: var(--abba-portal-success);
	background: rgba(45, 106, 79, 0.08);
}

.abba-customer-portal-note.is-error {
	border-left-color: var(--abba-portal-danger);
	background: rgba(140, 59, 59, 0.08);
}

.abba-customer-portal-note.is-info {
	border-left-color: var(--abba-portal-warning);
	background: rgba(154, 106, 24, 0.08);
}

.abba-customer-portal-form button {
	justify-self: start;
	font: inherit;
}

.abba-customer-portal-form .abba-customer-portal-button,
.abba-customer-portal-form button {
	min-width: 11rem;
}

.abba-customer-portal-toggle-item span {
	min-width: 0;
	line-height: 1.45;
}

.abba-customer-portal-status-list {
	margin: 1rem 0 0;
	padding-left: 1.2rem;
}

.abba-customer-portal-status-list li {
	margin-bottom: 0.45rem;
}

.abba-customer-portal-admin-wrap .widefat {
	margin-top: 1rem;
	background: #fff;
}

.abba-customer-portal-admin-dashboard {
	max-width: 1320px;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: 0;
}

.abba-customer-portal-admin-hero,
.abba-customer-portal-admin-section {
	margin-bottom: 1.1rem;
	padding: 1.2rem;
	border: 1px solid rgba(31, 26, 22, 0.1);
	border-radius: 24px;
	background: rgba(255, 253, 249, 0.95);
	box-shadow: 0 12px 30px rgba(31, 26, 22, 0.05);
}

.abba-customer-portal-admin-hero {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
	background:
		radial-gradient(circle at top right, rgba(45, 85, 70, 0.1), transparent 24%),
		rgba(255, 253, 249, 0.96);
}

.abba-customer-portal-admin-hero-copy {
	max-width: 36rem;
}

.abba-customer-portal-admin-eyebrow {
	display: inline-flex;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--abba-portal-accent-soft);
	color: var(--abba-portal-accent-deep);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abba-customer-portal-admin-hero h1 {
	margin: 0.7rem 0 0.35rem;
	font-size: 2rem;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.abba-customer-portal-admin-hero p,
.abba-customer-portal-admin-section-head p,
.abba-customer-portal-admin-info-body p {
	margin: 0;
	color: var(--abba-portal-muted);
	line-height: 1.6;
}

.abba-customer-portal-admin-hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: flex-end;
}

.abba-customer-portal-admin-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	border: 1px solid transparent;
}

.abba-customer-portal-admin-badge.is-positive {
	background: rgba(45, 106, 79, 0.1);
	border-color: rgba(45, 106, 79, 0.22);
	color: var(--abba-portal-success);
}

.abba-customer-portal-admin-badge.is-neutral {
	background: rgba(31, 26, 22, 0.06);
	border-color: rgba(31, 26, 22, 0.12);
	color: var(--abba-portal-text);
}

.abba-customer-portal-admin-badge.is-warn {
	background: rgba(154, 106, 24, 0.12);
	border-color: rgba(154, 106, 24, 0.24);
	color: var(--abba-portal-warning);
}

.abba-customer-portal-admin-section-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.abba-customer-portal-admin-kicker {
	display: inline-flex;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(138, 90, 35, 0.12);
	color: var(--abba-portal-accent);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abba-customer-portal-admin-section h2 {
	margin: 0.55rem 0 0;
	font-size: 1.35rem;
	line-height: 1.15;
}

.abba-customer-portal-admin-card-grid,
.abba-customer-portal-admin-metric-grid,
.abba-customer-portal-admin-panel-grid,
.abba-customer-portal-admin-link-grid,
.abba-customer-portal-admin-info-grid {
	display: grid;
	gap: 0.9rem;
}

.abba-customer-portal-admin-card-grid {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.abba-customer-portal-admin-metric-grid,
.abba-customer-portal-admin-panel-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.abba-customer-portal-admin-link-grid {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.abba-customer-portal-admin-info-grid {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.abba-customer-portal-admin-card,
.abba-customer-portal-admin-metric-card,
.abba-customer-portal-admin-field-card,
.abba-customer-portal-admin-info-card,
.abba-customer-portal-admin-panel {
	border: 1px solid rgba(31, 26, 22, 0.1);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 10px 24px rgba(31, 26, 22, 0.05);
}

.abba-customer-portal-admin-card,
.abba-customer-portal-admin-metric-card,
.abba-customer-portal-admin-field-card,
.abba-customer-portal-admin-panel {
	padding: 1rem;
}

.abba-customer-portal-admin-card-topline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.abba-customer-portal-admin-card .dashicons {
	width: 1.2rem;
	height: 1.2rem;
	font-size: 1.2rem;
	color: var(--abba-portal-accent-deep);
}

.abba-customer-portal-admin-status-dot {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 999px;
	background: var(--abba-portal-success);
	box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
}

.abba-customer-portal-admin-status-dot.is-warn {
	background: var(--abba-portal-warning);
	box-shadow: 0 0 0 4px rgba(154, 106, 24, 0.12);
}

.abba-customer-portal-admin-card h3 {
	margin: 0.9rem 0 0.35rem;
	font-size: 1rem;
	line-height: 1.3;
}

.abba-customer-portal-admin-card-status {
	margin: 0;
	font-weight: 700;
	color: var(--abba-portal-text);
}

.abba-customer-portal-admin-card-storage,
.abba-customer-portal-admin-metric-card small,
.abba-customer-portal-admin-field-card span {
	color: var(--abba-portal-muted);
	font-size: 0.92rem;
}

.abba-customer-portal-admin-metric-card span,
.abba-customer-portal-admin-field-card span {
	display: block;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.abba-customer-portal-admin-metric-card strong,
.abba-customer-portal-admin-field-card strong {
	display: block;
	margin-top: 0.65rem;
	font-size: 1.6rem;
	line-height: 1.05;
}

.abba-customer-portal-admin-metric-card small {
	display: block;
	margin-top: 0.35rem;
}

.abba-customer-portal-admin-details {
	padding: 0.95rem 1rem;
	border: 1px solid rgba(31, 26, 22, 0.1);
	border-radius: 18px;
	background: rgba(248, 243, 234, 0.7);
}

.abba-customer-portal-admin-details summary,
.abba-customer-portal-admin-info-card summary {
	cursor: pointer;
	font-weight: 800;
	list-style: none;
}

.abba-customer-portal-admin-details summary::-webkit-details-marker,
.abba-customer-portal-admin-info-card summary::-webkit-details-marker {
	display: none;
}

.abba-customer-portal-admin-flow {
	display: grid;
	gap: 0.6rem;
	margin-top: 1rem;
}

.abba-customer-portal-admin-flow-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 0.6rem 0.8rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.9);
}

.abba-customer-portal-admin-flow-item span {
	font-weight: 700;
}

.abba-customer-portal-admin-flow-item strong {
	color: var(--abba-portal-accent-deep);
	font-size: 1.15rem;
}

.abba-customer-portal-admin-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(31, 26, 22, 0.1);
	background: rgba(255, 255, 255, 0.98);
	color: var(--abba-portal-text);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(31, 26, 22, 0.05);
}

.abba-customer-portal-admin-link-button:hover {
	color: var(--abba-portal-accent-deep);
	border-color: rgba(45, 85, 70, 0.24);
	transform: translateY(-1px);
}

.abba-customer-portal-admin-info-card {
	overflow: hidden;
}

.abba-customer-portal-admin-info-card summary {
	display: grid;
	gap: 0.35rem;
	padding: 0.95rem 1rem;
	background: rgba(248, 243, 234, 0.72);
}

.abba-customer-portal-admin-info-card summary span {
	font-size: 1rem;
}

.abba-customer-portal-admin-info-card summary small {
	color: var(--abba-portal-muted);
	font-weight: 500;
}

.abba-customer-portal-admin-info-body {
	padding: 0.95rem 1rem 1rem;
	display: grid;
	gap: 0.65rem;
}

.abba-customer-portal-admin-info-body p + p {
	margin-top: 0;
}

/* ============================================================
   Admin UX-2: Health grid, Action cards, Dev details, Architecture
   ============================================================ */

.abba-customer-portal-admin-health-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.abba-customer-portal-admin-health-item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--abba-portal-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.96);
}

.abba-customer-portal-admin-health-item > div {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.abba-customer-portal-admin-health-item strong {
	font-size: 0.97rem;
	line-height: 1.3;
	color: var(--abba-portal-text);
}

.abba-customer-portal-admin-health-item span {
	color: var(--abba-portal-muted);
	font-size: 0.87rem;
}

.abba-customer-portal-admin-status-dot.is-neutral {
	background: var(--abba-portal-muted);
	box-shadow: 0 0 0 4px rgba(109, 98, 87, 0.10);
}

/* Action cards */

.abba-customer-portal-admin-actions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0.75rem;
}

.abba-customer-portal-admin-action-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	padding: 1.05rem 1.1rem;
	border: 1px solid rgba(45, 85, 70, 0.18);
	border-radius: 18px;
	background: rgba(45, 85, 70, 0.06);
	color: var(--abba-portal-accent-deep);
	font-weight: 700;
	font-size: 0.97rem;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.abba-customer-portal-admin-action-card:hover {
	background: rgba(45, 85, 70, 0.12);
	border-color: rgba(45, 85, 70, 0.28);
	color: var(--abba-portal-accent-deep);
	text-decoration: none;
}

.abba-customer-portal-admin-action-card.is-disabled {
	border-color: var(--abba-portal-border);
	background: rgba(31, 26, 22, 0.03);
	color: var(--abba-portal-muted);
	cursor: default;
}

.abba-customer-portal-admin-action-card small {
	font-size: 0.77rem;
	font-weight: 500;
	color: var(--abba-portal-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Disabled quick-link buttons */

.abba-customer-portal-admin-link-button.is-disabled {
	border-color: var(--abba-portal-border);
	background: rgba(31, 26, 22, 0.03);
	color: var(--abba-portal-muted);
	cursor: default;
	pointer-events: none;
}

/* Developer / System Details */

.abba-customer-portal-admin-dev-details {
	border: 1px solid var(--abba-portal-border) !important;
	border-radius: 22px;
	background: rgba(248, 243, 234, 0.5);
}

.abba-customer-portal-admin-dev-details > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
	padding: 1.1rem 1.4rem;
}

.abba-customer-portal-admin-dev-details > summary::-webkit-details-marker {
	display: none;
}

.abba-customer-portal-admin-dev-details[open] > summary {
	border-bottom: 1px solid var(--abba-portal-border);
}

.abba-customer-portal-admin-dev-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.abba-customer-portal-admin-dev-summary strong {
	font-size: 1.1rem;
	color: var(--abba-portal-text);
}

.abba-customer-portal-admin-dev-summary small {
	color: var(--abba-portal-muted);
	font-size: 0.85rem;
	font-weight: 500;
}

.abba-customer-portal-admin-dev-body {
	padding: 1.25rem 1.4rem 1.5rem;
}

.abba-customer-portal-admin-dev-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.65rem;
	margin-bottom: 1.35rem;
}

.abba-customer-portal-admin-dev-meta > div {
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--abba-portal-border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.7);
}

.abba-customer-portal-admin-dev-meta strong {
	display: block;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--abba-portal-muted);
	margin-bottom: 0.3rem;
}

.abba-customer-portal-admin-dev-meta span {
	font-size: 0.94rem;
	color: var(--abba-portal-text);
}

.abba-customer-portal-admin-dev-body h3 {
	margin: 1.15rem 0 0.7rem;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--abba-portal-muted);
}

.abba-customer-portal-admin-dev-notes {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

.abba-customer-portal-admin-dev-notes li {
	margin-bottom: 0.45rem;
	color: var(--abba-portal-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.abba-customer-portal-admin-card.is-dev-card {
	padding: 0.8rem 0.9rem;
}

.abba-customer-portal-admin-card.is-dev-card h4 {
	margin: 0 0 0.3rem;
	font-size: 0.91rem;
	font-weight: 700;
	color: var(--abba-portal-text);
}

.abba-customer-portal-admin-card.is-dev-card span {
	color: var(--abba-portal-muted);
	font-size: 0.81rem;
}

/* Compact architecture flow */

.abba-customer-portal-admin-arch-compact {
	padding: 1.1rem 1.25rem;
	border-radius: 18px;
	background: rgba(248, 243, 234, 0.7);
	border: 1px solid var(--abba-portal-border);
}

.abba-customer-portal-admin-arch-chain {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.55rem;
}

.abba-customer-portal-admin-arch-chain > span {
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: rgba(45, 85, 70, 0.1);
	border: 1px solid rgba(45, 85, 70, 0.2);
	color: var(--abba-portal-accent-deep);
	font-size: 0.9rem;
	font-weight: 700;
}

.abba-customer-portal-admin-arch-arrow {
	color: var(--abba-portal-muted) !important;
	font-size: 1.1rem;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}

.abba-customer-portal-admin-arch-modules {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.55rem;
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--abba-portal-border);
}

.abba-customer-portal-admin-arch-modules > span {
	font-size: 0.87rem;
	color: var(--abba-portal-muted);
}

.abba-customer-portal-admin-arch-dot {
	color: var(--abba-portal-muted) !important;
	font-size: 1.1rem !important;
}

@media (max-width: 860px) {
	.abba-customer-portal-shell {
		padding: 1rem;
	}

	.abba-customer-portal-dashboard,
	.abba-customer-portal-card {
		padding: 1.1rem;
		border-radius: 22px;
	}

	.abba-customer-portal-layout {
		grid-template-columns: 1fr;
	}

	.abba-customer-portal-hero {
		flex-direction: column;
	}

	.abba-customer-portal-hero-actions {
		margin-left: 0;
	}

	.abba-customer-portal-section-head {
		flex-direction: column;
	}

	.abba-customer-portal-detail-card-grid,
	.abba-customer-portal-future-grid {
		grid-template-columns: 1fr;
	}

	.abba-customer-portal-admin-hero,
	.abba-customer-portal-admin-section,
	.abba-customer-portal-admin-details,
	.abba-customer-portal-admin-info-card {
		padding: 1rem;
	}

	.abba-customer-portal-admin-section-head,
	.abba-customer-portal-admin-hero {
		flex-direction: column;
	}

	.abba-customer-portal-admin-hero-badges {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.abba-customer-portal-shell {
		padding: 0.85rem;
	}

	.abba-customer-portal-dashboard,
	.abba-customer-portal-card {
		padding: 1rem;
		border-radius: 20px;
	}

	.abba-customer-portal-summary-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.abba-customer-portal-summary-card,
	.abba-customer-portal-summary-card strong,
	.abba-customer-portal-summary-card p {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.abba-customer-portal-layout,
	.abba-customer-portal-detail-grid {
		gap: 0.85rem;
	}

	.abba-customer-portal-section,
	.abba-customer-portal-summary-card,
	.abba-customer-portal-empty-state,
	.abba-customer-portal-empty-inline,
	.abba-customer-portal-message-thread-card,
	.abba-customer-portal-message-item,
	.abba-customer-portal-document-card,
	.abba-customer-portal-notification-card,
	.abba-customer-portal-property-card,
	.abba-customer-portal-estimate-card,
	.abba-customer-portal-appointment-card,
	.abba-customer-portal-detail-card,
	.abba-customer-portal-timeline-card,
	.abba-customer-portal-future-card {
		padding: 0.9rem;
	}

	.abba-customer-portal-hero h2 {
		font-size: 1.65rem;
	}

	.abba-customer-portal-button,
	.abba-customer-portal-form button {
		width: 100%;
	}

	.abba-customer-portal-hero-actions,
	.abba-customer-portal-disabled-actions {
		width: 100%;
		flex-direction: column;
	}

	.abba-customer-portal-admin-metric-grid,
	.abba-customer-portal-admin-card-grid,
	.abba-customer-portal-admin-link-grid,
	.abba-customer-portal-admin-info-grid {
		grid-template-columns: 1fr;
	}

	.abba-customer-portal-admin-hero h1 {
		font-size: 1.65rem;
	}

	.abba-customer-portal-hero-actions .abba-customer-portal-button {
		width: 100%;
	}

	.abba-customer-portal-appointment-topline {
		align-items: flex-start;
		flex-direction: column;
	}

	.abba-customer-portal-message-thread-meta,
	.abba-customer-portal-message-meta,
	.abba-customer-portal-appointment-grid,
	.abba-customer-portal-estimate-grid,
	.abba-customer-portal-document-grid,
	.abba-customer-portal-notification-grid {
		grid-template-columns: 1fr;
	}
}
.abba-customer-portal-shell:has(> .abba-customer-portal-dashboard):has(+ .abba-customer-portal-shell > .abba-customer-portal-dashboard) {
	display: none;
}
