/* Law Consultation Manager: client sign-in / registration card */
.lcm-auth {
	--lcm-ink: #14303a;
	--lcm-muted: #5b6b72;
	--lcm-line: #d9dfe0;
	--lcm-surface: #ffffff;
	--lcm-soft: #f1f5f5;
	--lcm-brand: #17454f;
	--lcm-brand-dark: #0f3039;
	--lcm-gold: #c79d52;
	--lcm-gold-dark: #a9823b;
	--lcm-danger: #b3261e;
	--lcm-ok-bg: #eaf4f1;
	--lcm-ok-line: #17454f;
	display: flex;
	justify-content: center;
	padding: 8px 0 32px;
	color: var(--lcm-ink);
}

.lcm-auth *,
.lcm-auth *::before,
.lcm-auth *::after {
	box-sizing: border-box;
}

.lcm-auth-card {
	width: min(100%, 460px);
	padding: 32px 28px 28px;
	border: 1px solid var(--lcm-line);
	border-radius: 18px;
	background: var(--lcm-surface);
	box-shadow: 0 18px 48px rgb(15 48 57 / 10%);
}

.lcm-auth-head {
	margin-bottom: 20px;
	text-align: center;
}

.lcm-auth-head h2 {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.4;
}

.lcm-auth-head p {
	margin: 0;
	color: var(--lcm-muted);
	font-size: 0.95rem;
	line-height: 1.8;
}

.lcm-auth .lcm-notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-inline-start: 4px solid var(--lcm-ok-line);
	border-radius: 8px;
	background: var(--lcm-ok-bg);
	font-size: 0.92rem;
	line-height: 1.8;
}

/* Tabs */
.lcm-auth-tabs {
	display: none;
}

.lcm-auth.lcm-js .lcm-auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 20px;
	padding: 4px;
	border-radius: 12px;
	background: var(--lcm-soft);
}

.lcm-auth .lcm-auth-tabs .lcm-auth-tab {
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--lcm-muted);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lcm-auth .lcm-auth-tabs .lcm-auth-tab:hover {
	background: rgb(255 255 255 / 60%);
	color: var(--lcm-brand);
}

.lcm-auth .lcm-auth-tabs .lcm-auth-tab[aria-selected="true"] {
	background: #fff;
	color: var(--lcm-brand);
	box-shadow: 0 1px 4px rgb(15 48 57 / 14%);
}

.lcm-auth-panel[hidden] {
	display: none;
}

.lcm-auth:not(.lcm-js) .lcm-auth-panel + .lcm-auth-panel {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--lcm-line);
}

.lcm-auth-panel-title {
	margin: 0 0 6px;
	font-size: 1.05rem;
}

.lcm-auth.lcm-js .lcm-auth-panel-title {
	display: none;
}

.lcm-auth-hint {
	margin: 0 0 16px;
	color: var(--lcm-muted);
	font-size: 0.9rem;
	line-height: 1.8;
}

/* Fields */
.lcm-field {
	margin: 0 0 16px;
}

.lcm-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.92rem;
}

.lcm-field input[type="text"],
.lcm-field input[type="tel"],
.lcm-field input[type="email"] {
	width: 100%;
	min-height: 50px;
	padding: 0 14px;
	border: 1.5px solid var(--lcm-line);
	border-radius: 12px;
	background: #fff;
	color: var(--lcm-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lcm-field input[dir="ltr"] {
	text-align: left;
}

.lcm-field input:focus,
.lcm-otp-box:focus {
	border-color: var(--lcm-brand);
	box-shadow: 0 0 0 4px rgb(23 69 79 / 14%);
	outline: none;
}

.lcm-field input[aria-invalid="true"] {
	border-color: var(--lcm-danger);
}

.lcm-field-error {
	margin: 6px 0 0;
	color: var(--lcm-danger);
	font-size: 0.85rem;
}

.lcm-field-error:empty {
	margin: 0;
}

.lcm-field-note {
	margin: 6px 0 0;
	color: var(--lcm-muted);
	font-size: 0.85rem;
	line-height: 1.7;
}

.lcm-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* Buttons */
.lcm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: var(--lcm-brand);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.lcm-btn:hover {
	background: var(--lcm-brand-dark);
}

.lcm-btn:active {
	transform: translateY(1px);
}

.lcm-btn:focus-visible,
.lcm-auth-tab:focus-visible,
.lcm-link-btn:focus-visible {
	outline: 3px solid var(--lcm-gold);
	outline-offset: 2px;
}

.lcm-btn[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.lcm-btn-gold {
	background: var(--lcm-gold);
	color: #1b2a2f;
}

.lcm-btn-gold:hover {
	background: var(--lcm-gold-dark);
	color: #fff;
}

.lcm-link-btn {
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--lcm-brand);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* OTP */
.lcm-otp-boxes {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 6px 0 14px;
	direction: ltr;
}

.lcm-otp-box {
	width: 100%;
	max-width: 52px;
	height: 60px;
	padding: 0;
	border: 1.5px solid var(--lcm-line);
	border-radius: 12px;
	background: #fff;
	color: var(--lcm-ink);
	font: inherit;
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lcm-otp-box[aria-invalid="true"] {
	border-color: var(--lcm-danger);
}

.lcm-remember {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 0.92rem;
}

.lcm-remember input {
	width: 18px;
	height: 18px;
	accent-color: var(--lcm-brand);
}

.lcm-retry {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--lcm-line);
	text-align: center;
}

.lcm-retry-status {
	margin: 0 0 4px;
	color: var(--lcm-muted);
	font-size: 0.88rem;
}

.lcm-auth-secure {
	margin: 22px 0 0;
	color: var(--lcm-muted);
	font-size: 0.82rem;
	line-height: 1.8;
	text-align: center;
}

@media (max-width: 480px) {
	.lcm-auth-card {
		padding: 26px 18px 22px;
		border-radius: 14px;
	}

	.lcm-field-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.lcm-otp-boxes {
		gap: 6px;
	}

	.lcm-otp-box {
		height: 54px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lcm-auth * {
		transition: none !important;
	}
}

/* ---------- Sign-in prompt for guests (request and panel pages) ---------- */
.lcm-login-prompt {
	--lcm-brand: #17454f;
	--lcm-gold: #c79d52;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 1px solid #d9dfe0;
	border-inline-start: 4px solid var(--lcm-gold);
	border-radius: 14px;
	background:
		linear-gradient(to left, rgb(23 69 79 / 13%), rgb(23 69 79 / 0%) 82%),
		#fff;
	color: #14303a;
}

html:not([dir="rtl"]) .lcm-login-prompt {
	background:
		linear-gradient(to right, rgb(23 69 79 / 13%), rgb(23 69 79 / 0%) 82%),
		#fff;
}

.lcm-login-prompt-icon {
	display: grid;
	flex: 0 0 52px;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--lcm-brand);
	color: #fff;
}

.lcm-login-prompt-text {
	flex: 1 1 auto;
	min-width: 0;
}

.lcm-login-prompt-title {
	margin: 0 0 2px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.6;
}

.lcm-login-prompt-note {
	margin: 0;
	color: #5b6b72;
	font-size: 0.9rem;
	line-height: 1.7;
}

.lcm-login-prompt-button {
	flex: 0 0 auto;
	padding: 11px 20px;
	border-radius: 10px;
	background: var(--lcm-gold);
	color: #1b2a2f;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.lcm-login-prompt-button:hover {
	background: #a9823b;
	color: #fff;
}

.lcm-login-prompt-button:focus-visible {
	outline: 3px solid var(--lcm-brand);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.lcm-login-prompt {
		flex-wrap: wrap;
		padding: 16px;
	}

	.lcm-login-prompt-text {
		flex: 1 1 calc(100% - 70px);
	}

	.lcm-login-prompt-button {
		flex: 1 1 100%;
		text-align: center;
	}
}

/* Calmer page title on client pages */
.lcm-has-account-ui .wp-block-post-title,
.lcm-has-account-ui .entry-title {
	margin-bottom: 20px;
	font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.2rem);
	line-height: 1.35;
}

/* Title accent on client pages */
.lcm-has-account-ui .wp-block-post-title::after,
.lcm-has-account-ui .entry-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 12px;
	border-radius: 2px;
	background: #c79d52;
}

/* Guests on the sign-in page: the card is the focus.
   The page title stays in the page for screen readers and search engines. */
.lcm-guest-auth .wp-block-post-title,
.lcm-guest-auth .entry-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.lcm-guest-auth .lcm-auth {
	padding-top: 28px;
}

/* ---------- Appointment picker (calendar + time chips) ---------- */
.lcm-slot-field {
	margin: 0 0 1.25em;
}

.lcm-slot-ui {
	--lcm-brand: #17454f;
	--lcm-gold: #c79d52;
	--lcm-line: #d9dfe0;
	--lcm-muted: #5b6b72;
	max-width: 420px;
	margin-top: 8px;
	color: #14303a;
}

.lcm-slot-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding: 12px 14px;
	border-inline-start: 4px solid var(--lcm-gold);
	border-radius: 10px;
	background: #eaf4f1;
	font-weight: 700;
	line-height: 1.7;
}

.lcm-slot-hint {
	margin: 0 0 10px;
	color: var(--lcm-muted);
	font-size: 0.88rem;
	line-height: 1.7;
}

.lcm-cal {
	padding: 14px;
	border: 1px solid var(--lcm-line);
	border-radius: 14px;
	background: #fff;
}

.lcm-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.lcm-cal-title {
	font-size: 1rem;
}

.lcm-slot-ui button.lcm-cal-nav {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--lcm-line);
	border-radius: 10px;
	background: #fff;
	color: var(--lcm-brand);
	cursor: pointer;
}

.lcm-slot-ui button.lcm-cal-nav:hover:not(:disabled) {
	background: #eef3f3;
}

.lcm-slot-ui button.lcm-cal-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.lcm-cal-weekdays,
.lcm-cal-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	text-align: center;
}

.lcm-cal-weekdays {
	margin-bottom: 4px;
	color: var(--lcm-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.lcm-slot-ui button.lcm-day {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	height: 42px;
	padding: 0;
	border: 1.5px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: #a9b3b6;
	font: inherit;
	font-size: 0.95rem;
	cursor: default;
}

.lcm-slot-ui button.lcm-day.is-available {
	background: #f1f5f5;
	color: #14303a;
	font-weight: 700;
	cursor: pointer;
}

.lcm-slot-ui button.lcm-day.is-available::after {
	content: "";
	position: absolute;
	bottom: 5px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--lcm-gold);
}

.lcm-slot-ui button.lcm-day.is-available:hover {
	border-color: var(--lcm-brand);
}

.lcm-slot-ui button.lcm-day.is-today {
	border-color: var(--lcm-line);
}

.lcm-slot-ui button.lcm-day.is-selected {
	background: var(--lcm-brand);
	border-color: var(--lcm-brand);
	color: #fff;
}

.lcm-slot-ui button.lcm-day.is-selected::after {
	background: #fff;
}

.lcm-slot-ui button.lcm-day:focus-visible,
.lcm-slot-ui button.lcm-cal-nav:focus-visible,
.lcm-slot-ui button.lcm-chip:focus-visible {
	outline: 3px solid var(--lcm-gold);
	outline-offset: 2px;
}

.lcm-slot-times {
	margin-top: 14px;
}

.lcm-slot-times-title {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 0.95rem;
}

.lcm-slot-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lcm-slot-ui button.lcm-chip {
	min-height: 44px;
	padding: 0 16px;
	border: 1.5px solid var(--lcm-line);
	border-radius: 10px;
	background: #fff;
	color: #14303a;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lcm-slot-ui button.lcm-chip:hover {
	border-color: var(--lcm-brand);
}

.lcm-slot-ui button.lcm-chip.is-selected {
	background: var(--lcm-brand);
	border-color: var(--lcm-brand);
	color: #fff;
}

.lcm-slot-ui .lcm-field-error {
	margin: 8px 0 0;
	color: #b3261e;
	font-size: 0.88rem;
}

.lcm-slot-ui .lcm-field-error:empty {
	margin: 0;
}

.lcm-slot-ui .lcm-link-btn {
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--lcm-brand);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 480px) {
	.lcm-cal {
		padding: 10px;
	}

	.lcm-slot-ui button.lcm-day {
		height: 40px;
	}
}

/* Same rules via :has(), so they work even if the page is not detected in PHP. */
body:has(.lcm-auth) .wp-block-post-title,
body:has(.lcm-login-prompt) .wp-block-post-title,
body:has(.lcm-slot-ui) .wp-block-post-title {
	font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.2rem);
	line-height: 1.35;
}

body:not(.logged-in):has(.lcm-auth) .wp-block-post-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Multi-file upload ---------- */
.lcm-documents-field {
	margin: 0 0 1.25em;
}

.lcm-files-ui {
	--lcm-brand: #17454f;
	--lcm-line: #d9dfe0;
	--lcm-muted: #5b6b72;
	margin: 8px 0 6px;
	padding: 14px;
	border: 1.5px dashed var(--lcm-line);
	border-radius: 12px;
	background: #fafbfb;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.lcm-files-ui.is-dragging {
	border-color: var(--lcm-brand);
	background: #eef5f5;
}

.lcm-files-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.lcm-files-ui button.lcm-files-button {
	min-height: 42px;
	padding: 0 18px;
	border: 1.5px solid var(--lcm-brand);
	border-radius: 10px;
	background: #fff;
	color: var(--lcm-brand);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.lcm-files-ui button.lcm-files-button:hover:not(:disabled) {
	background: var(--lcm-brand);
	color: #fff;
}

.lcm-files-ui button.lcm-files-button:disabled {
	opacity: 0.45;
	cursor: default;
}

.lcm-files-ui button:focus-visible {
	outline: 3px solid #c79d52;
	outline-offset: 2px;
}

.lcm-files-count {
	color: var(--lcm-muted);
	font-size: 0.9rem;
}

.lcm-files-list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.lcm-file-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	padding: 8px 12px;
	border: 1px solid var(--lcm-line);
	border-radius: 10px;
	background: #fff;
}

.lcm-file-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	direction: ltr;
	text-align: start;
}

.lcm-file-size {
	flex: 0 0 auto;
	color: var(--lcm-muted);
	font-size: 0.82rem;
}

.lcm-files-ui button.lcm-file-remove {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f5;
	color: #b3261e;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.lcm-files-ui button.lcm-file-remove:hover {
	background: #fbe9e7;
}

.lcm-files-ui .lcm-field-error {
	margin: 8px 0 0;
	color: #b3261e;
	font-size: 0.88rem;
}

.lcm-files-ui .lcm-field-error:empty {
	margin: 0;
}

/* ---------- Appointment picker: stages and selected-time card ---------- */
.lcm-slot-ui .lcm-stage {
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.lcm-slot-ui .lcm-stage[hidden] {
	display: none;
}

.lcm-slot-ui .lcm-stage.is-leaving,
.lcm-slot-ui .lcm-stage.is-entering {
	opacity: 0;
	transform: translateY(6px);
}

.lcm-slot-ui .lcm-slot-hint:focus,
.lcm-slot-ui .lcm-slot-times-title:focus,
.lcm-slot-ui .lcm-slot-summary-card:focus {
	outline: none;
}

.lcm-slot-ui .lcm-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 10px;
	text-decoration: none;
}

.lcm-slot-ui .lcm-back:hover {
	text-decoration: underline;
}

.lcm-slot-ui .lcm-slot-summary-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid #cfe0dc;
	border-inline-start: 5px solid var(--lcm-gold);
	border-radius: 14px;
	background: linear-gradient(to left, #eaf4f1, #fff 85%);
}

html:not([dir="rtl"]) .lcm-slot-ui .lcm-slot-summary-card {
	background: linear-gradient(to right, #eaf4f1, #fff 85%);
}

.lcm-slot-ui .lcm-slot-summary-icon {
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--lcm-brand);
	color: #fff;
}

.lcm-slot-ui .lcm-slot-summary-body {
	flex: 1 1 auto;
	min-width: 0;
}

.lcm-slot-ui .lcm-slot-summary-body p {
	margin: 0;
}

.lcm-slot-ui .lcm-slot-summary-label {
	color: var(--lcm-muted);
	font-size: 0.82rem;
}

.lcm-slot-ui .lcm-slot-summary-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	line-height: 1.7;
}

.lcm-slot-ui .lcm-slot-summary-date {
	font-size: 1.05rem;
	font-weight: 700;
}

.lcm-slot-ui .lcm-slot-summary-sep {
	color: #b6c2c5;
}

.lcm-slot-ui .lcm-slot-summary-time {
	color: #3d555e;
	font-size: 0.92rem;
	font-weight: 600;
}

.lcm-slot-ui button.lcm-slot-change {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0 14px;
	border: 1.5px solid var(--lcm-brand);
	border-radius: 10px;
	background: #fff;
	color: var(--lcm-brand);
	font: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
}

.lcm-slot-ui button.lcm-slot-change:hover {
	background: var(--lcm-brand);
	color: #fff;
}

@media (max-width: 480px) {
	.lcm-slot-ui .lcm-slot-summary-card {
		gap: 10px;
		padding: 12px 14px;
	}

	.lcm-slot-ui .lcm-slot-summary-icon {
		display: none;
	}

	.lcm-slot-ui .lcm-slot-summary-sep {
		display: none;
	}

	.lcm-slot-ui .lcm-slot-summary-date {
		font-size: 0.95rem;
	}

	.lcm-slot-ui .lcm-slot-summary-time {
		flex-basis: 100%;
		font-size: 0.85rem;
	}

	.lcm-slot-ui button.lcm-slot-change {
		min-height: 36px;
		padding: 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lcm-slot-ui .lcm-stage {
		transition: none;
	}
}

/* ---------- Client dashboard ---------- */
.lcm-dash {
	--d-brand: #17454f;
	--d-brand-dark: #0f3039;
	--d-gold: #c79d52;
	--d-ink: #14303a;
	--d-muted: #5b6b72;
	--d-line: #e3e8ea;
	--d-soft: #f4f7f7;
	max-width: 980px;
	margin: 0 auto 32px;
	color: var(--d-ink);
}

.lcm-dash *,
.lcm-dash *::before,
.lcm-dash *::after {
	box-sizing: border-box;
}

.lcm-dash-head {
	margin: 0 0 18px;
	padding: 22px 26px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--d-brand-dark), #1b5a66);
	color: #fff;
	box-shadow: 0 14px 34px rgb(15 48 57 / 18%);
}

.lcm-dash-titlebar {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lcm-dash-badge {
	display: grid;
	flex: 0 0 34px;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--d-gold);
	color: #fff;
}

.lcm-dash-head h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	line-height: 1.4;
}

.lcm-dash-sub {
	margin: 10px 0 0;
	color: rgb(255 255 255 / 82%);
	font-size: 0.92rem;
	line-height: 1.8;
}

.lcm-dash-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: 14px;
}

.lcm-dash-chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin: 0;
	padding: 0 14px;
	border-radius: 99px;
	background: rgb(255 255 255 / 12%);
	font-size: 0.82rem;
}

.lcm-dash a.lcm-dash-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 18px;
	border-radius: 99px;
	background: var(--d-gold);
	color: #1b2a2f;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease;
}

.lcm-dash a.lcm-dash-cta:hover {
	background: #e0b66a;
}

.lcm-dash-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.lcm-dash-stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px;
	border: 1px solid var(--d-line);
	border-radius: 14px;
	background: #fff;
}

.lcm-dash-stats strong {
	color: var(--d-brand);
	font-size: 1.7rem;
	line-height: 1.3;
}

.lcm-dash-stats span {
	color: var(--d-muted);
	font-size: 0.85rem;
}

.lcm-dash-next {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 22px;
	padding: 18px 22px;
	border: 1px solid #ecd9ae;
	border-inline-start: 5px solid var(--d-gold);
	border-radius: 14px;
	background: linear-gradient(to left, #fff6e2, #fff 80%);
}

html:not([dir="rtl"]) .lcm-dash-next {
	background: linear-gradient(to right, #fff6e2, #fff 80%);
}

.lcm-dash-next-icon {
	display: grid;
	flex: 0 0 50px;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #fff;
	color: #9a6f24;
	box-shadow: 0 2px 8px rgb(154 111 36 / 18%);
}

.lcm-dash-next p {
	margin: 0;
}

.lcm-dash-next-label {
	color: #8a672a;
	font-size: 0.82rem;
	font-weight: 700;
}

.lcm-dash-next-date {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.6;
}

.lcm-dash-next-ref {
	margin-inline-start: auto;
	padding: 4px 10px;
	border-radius: 8px;
	background: rgb(255 255 255 / 70%);
	color: #6d5320;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.lcm-dash-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 1.1rem;
}

.lcm-dash-section-title span,
.lcm-dash-archive summary span,
.lcm-dash-documents h4 span {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 99px;
	background: #e8f0f1;
	color: var(--d-brand);
	font-size: 0.8rem;
	font-weight: 700;
}

.lcm-dash-list {
	display: grid;
	gap: 16px;
	margin: 0 0 22px;
}

.lcm-dash-card {
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid var(--d-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 26px rgb(2 6 23 / 5%);
}

.lcm-dash-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 16px;
}

.lcm-dash-card-title h3 {
	margin: 0 0 6px;
	font-size: 1.15rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.lcm-dash-ref {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	color: var(--d-muted);
	font-size: 0.85rem;
}

.lcm-dash-ref bdi {
	color: var(--d-brand);
	font-weight: 700;
	letter-spacing: 0.03em;
}

.lcm-dash button.lcm-copy {
	padding: 2px 10px;
	border: 1px solid var(--d-line);
	border-radius: 99px;
	background: #fff;
	color: var(--d-brand);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
}

.lcm-dash button.lcm-copy:hover,
.lcm-dash button.lcm-copy.is-copied {
	background: var(--d-brand);
	color: #fff;
}

.lcm-dash .lcm-status-badge {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 6px 12px;
	border-radius: 99px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.lcm-dash .lcm-status-pending_review { background: #e0f2fe; color: #075985; }
.lcm-dash .lcm-status-approved_pending_payment { background: #ede9fe; color: #5b21b6; }
.lcm-dash .lcm-status-confirmed,
.lcm-dash .lcm-status-completed { background: #dcfce7; color: #166534; }
.lcm-dash .lcm-status-rejected,
.lcm-dash .lcm-status-cancelled,
.lcm-dash .lcm-status-payment_expired,
.lcm-dash .lcm-status-review_expired { background: #fee2e2; color: #991b1b; }

.lcm-dash-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 20px;
}

.lcm-dash-meta > div {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--d-soft);
}

.lcm-dash-meta dt {
	margin: 0 0 4px;
	color: var(--d-muted);
	font-size: 0.78rem;
}

.lcm-dash-meta dd {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: 0.9rem;
}

.lcm-dash-meta dd strong {
	font-size: 0.95rem;
	line-height: 1.6;
}

.lcm-dash-meta dd span {
	color: var(--d-muted);
}

/* Timeline */
.lcm-dash .lcm-status-timeline {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.lcm-dash .lcm-status-timeline li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0 6px;
	color: #7b8990;
	text-align: center;
	font-size: 0.85rem;
	line-height: 1.5;
}

.lcm-dash .lcm-status-timeline li:not(:last-child)::after {
	position: absolute;
	z-index: 0;
	top: 17px;
	inset-inline-start: 50%;
	width: 100%;
	height: 3px;
	border-radius: 2px;
	background: #dfe6e8;
	content: "";
}

.lcm-dash .lcm-status-timeline li.is-complete:not(:last-child)::after {
	background: #4b8b7d;
}

.lcm-dash .lcm-timeline-dot {
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 2px solid #d5dfe2;
	border-radius: 50%;
	background: #fff;
	color: #718087;
	font-size: 0.9rem;
	font-weight: 700;
}

.lcm-dash .lcm-status-timeline .is-complete,
.lcm-dash .lcm-status-timeline .is-current {
	color: #244c55;
	font-weight: 600;
}

.lcm-dash .is-complete .lcm-timeline-dot {
	border-color: #4b8b7d;
	background: #4b8b7d;
	color: #fff;
}

.lcm-dash .is-current .lcm-timeline-dot {
	border-color: var(--d-gold);
	box-shadow: 0 0 0 5px rgb(199 157 82 / 22%);
	color: #805719;
}

.lcm-dash .is-terminal-step .lcm-timeline-dot {
	border-color: #b45353;
	background: #b45353;
	color: #fff;
}

.lcm-dash .lcm-status-timeline small {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 99px;
	background: #fdf3dc;
	color: #805719;
	font-size: 0.74rem;
	font-weight: 700;
}

.lcm-dash .is-terminal-step small {
	background: #fee2e2;
	color: #991b1b;
}

.lcm-dash .lcm-hold-notice {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid #ead5a8;
	border-radius: 12px;
	background: #fff9eb;
	color: #77571e;
	font-size: 0.9rem;
}

.lcm-dash .lcm-request-rejection {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff1f1;
	color: #8b3434;
}

.lcm-dash-description {
	margin: 0 0 16px;
}

.lcm-dash-description summary,
.lcm-dash-archive summary {
	cursor: pointer;
	color: var(--d-brand);
	font-weight: 700;
}

.lcm-dash-description p {
	margin: 10px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--d-soft);
	line-height: 1.9;
	overflow-wrap: anywhere;
}

.lcm-dash-documents,
.lcm-dash-payment {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--d-line);
}

.lcm-dash-documents h4,
.lcm-dash-payment h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 0.95rem;
}

.lcm-dash .lcm-doc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lcm-dash a.lcm-doc {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--d-line);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lcm-dash a.lcm-doc:hover {
	border-color: var(--d-brand);
	box-shadow: 0 4px 14px rgb(15 48 57 / 10%);
}

.lcm-dash .lcm-doc-badge {
	display: grid;
	flex: 0 0 44px;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.lcm-dash .lcm-doc-pdf .lcm-doc-badge { background: #fee2e2; color: #991b1b; }
.lcm-dash .lcm-doc-image .lcm-doc-badge { background: #dbeafe; color: #1e40af; }

.lcm-dash .lcm-doc-info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.lcm-dash .lcm-doc-name {
	overflow: hidden;
	text-align: start;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.9rem;
	font-weight: 600;
}

.lcm-dash .lcm-doc-info small {
	color: var(--d-muted);
	font-size: 0.78rem;
}

.lcm-dash .lcm-doc-action {
	flex: 0 0 auto;
	color: var(--d-brand);
	font-size: 0.8rem;
	font-weight: 700;
}

.lcm-dash-payment-body {
	color: #334b54;
	line-height: 1.8;
}

.lcm-dash-payment-body form input {
	max-width: 100%;
}

.lcm-dash-archive {
	margin: 0 0 22px;
	padding: 14px 18px;
	border: 1px solid var(--d-line);
	border-radius: 14px;
	background: #fff;
}

.lcm-dash-archive summary {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lcm-dash-archive .lcm-dash-list {
	margin: 16px 0 0;
}

.lcm-dash-empty {
	padding: 32px 24px;
	border: 1px dashed #c9d5d8;
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

.lcm-dash-empty h3 {
	margin: 0 0 6px;
}

.lcm-dash-empty p {
	margin: 0 0 18px;
	color: var(--d-muted);
}

.lcm-dash-empty a.lcm-dash-cta {
	display: inline-block;
}

@media (max-width: 760px) {
	.lcm-dash-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lcm-dash-meta {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.lcm-dash-head {
		padding: 18px;
	}

	.lcm-dash-next {
		flex-wrap: wrap;
	}

	.lcm-dash-next-ref {
		margin-inline-start: 0;
	}

	.lcm-dash-card-head {
		flex-direction: column;
	}

	.lcm-dash .lcm-status-timeline {
		grid-template-columns: minmax(0, 1fr);
		margin-inline-start: 4px;
	}

	.lcm-dash .lcm-status-timeline li {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 4px 12px;
		min-height: 48px;
		padding: 0 0 14px;
		text-align: start;
	}

	.lcm-dash .lcm-status-timeline li:last-child {
		padding-bottom: 0;
	}

	.lcm-dash .lcm-status-timeline li:not(:last-child)::after {
		top: 36px;
		inset-inline-start: 16px;
		width: 3px;
		height: calc(100% - 22px);
	}

	.lcm-dash .lcm-doc-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Dashboard: collapsed items, history, page title ---------- */
.lcm-dash-item {
	border: 1px solid var(--d-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 18px rgb(2 6 23 / 4%);
}

.lcm-dash-item > summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	padding: 14px 18px;
	list-style: none;
	cursor: pointer;
}

.lcm-dash-item > summary::-webkit-details-marker,
.lcm-dash-history > summary::-webkit-details-marker {
	display: none;
}

.lcm-dash-item > summary::after {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-inline-start: auto;
	border-inline-end: 2px solid var(--d-muted);
	border-bottom: 2px solid var(--d-muted);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	content: "";
}

.lcm-dash-item[open] > summary::after {
	transform: rotate(-135deg);
}

.lcm-dash-item-title {
	flex: 1 1 200px;
	min-width: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.lcm-dash-item-date {
	color: var(--d-muted);
	font-size: 0.85rem;
}

.lcm-dash-item-body {
	padding: 18px clamp(14px, 3vw, 22px) 20px;
	border-top: 1px solid var(--d-line);
}

.lcm-dash-history {
	margin: 0 0 22px;
}

.lcm-dash-history > summary {
	list-style: none;
	cursor: pointer;
}

.lcm-history-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lcm-history-row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border: 1px solid var(--d-line);
	border-radius: 12px;
	background: #fff;
	font-size: 0.88rem;
}

.lcm-history-title {
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lcm-history-cell small {
	display: block;
	color: var(--d-muted);
	font-size: 0.72rem;
}

.lcm-history-row .lcm-status-badge {
	padding: 4px 10px;
	font-size: 0.74rem;
}

@media (max-width: 760px) {
	.lcm-history-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.lcm-history-title {
		grid-column: 1 / -1;
		white-space: normal;
	}

	.lcm-history-row .lcm-status-badge {
		justify-self: start;
	}
}

/* The panel header already carries the title; keep the page title for screen readers only. */
.lcm-account-page .wp-block-post-title,
body:has(.lcm-dash) .wp-block-post-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Dashboard: never wider than the screen ---------- */
.lcm-dash {
	width: 100%;
	max-width: 100%;
	overflow-wrap: break-word;
}

.lcm-dash-head,
.lcm-dash-next,
.lcm-dash-card,
.lcm-dash-item,
.lcm-dash-item > summary,
.lcm-dash-card-title,
.lcm-dash-meta > div,
.lcm-dash-documents,
.lcm-dash-payment,
.lcm-doc-grid > li,
.lcm-history-row > *,
.lcm-request-rejection {
	min-width: 0;
	max-width: 100%;
}

.lcm-dash .lcm-doc-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.lcm-dash .lcm-doc-grid > li {
	min-width: 0;
}

.lcm-dash .lcm-timeline-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.lcm-dash .lcm-status-timeline small {
	max-width: 100%;
	white-space: normal;
	text-align: center;
	line-height: 1.5;
}

.lcm-dash .lcm-request-rejection {
	display: grid;
	gap: 10px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid #f3c9c9;
	border-radius: 12px;
	background: #fff1f1;
	color: #8b3434;
	overflow-wrap: anywhere;
}

.lcm-dash .lcm-request-rejection p {
	margin: 0;
	line-height: 1.8;
}

.lcm-dash .lcm-request-rejection .lcm-retry-hint {
	color: #6b2c2c;
	font-size: 0.9rem;
}

.lcm-dash a.lcm-retry-btn {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 18px;
	border-radius: 99px;
	background: var(--d-brand);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease;
}

.lcm-dash a.lcm-retry-btn:hover {
	background: var(--d-brand-dark);
}

@media (max-width: 640px) {
	.lcm-dash .lcm-status-timeline li {
		text-align: start;
	}

	.lcm-dash .lcm-timeline-text {
		align-items: flex-start;
		padding-top: 6px;
	}

	.lcm-dash .lcm-status-timeline small {
		text-align: start;
	}

	.lcm-dash .lcm-status-badge {
		max-width: 100%;
		white-space: normal;
		text-align: center;
		line-height: 1.5;
	}

	.lcm-dash-item > summary {
		gap: 6px 10px;
	}

	.lcm-dash a.lcm-doc {
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	.lcm-dash .lcm-doc-info {
		flex: 1 1 0;
	}

	.lcm-dash .lcm-doc-action {
		flex-basis: 100%;
		padding-inline-start: 56px;
	}

	.lcm-dash a.lcm-retry-btn {
		justify-self: stretch;
		justify-content: center;
	}
}

/* Header chips: client name and username */
.lcm-dash-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lcm-dash-chip {
	gap: 0.35em;
}
