/* Protech Facility Services — Field App
   Palette sampled from the Protech logo: black wordmark, charcoal
   "FACILITY SERVICES" lettering and the cyan broom mark (#11bbd1). */

:root {
	--brand: #11bbd1;
	--brand-strong: #0a7d8c;
	--brand-deep: #075f6b;
	--brand-soft: #e2f6f9;
	--brand-glow: rgba(17, 187, 209, 0.28);

	--black: #000000;
	--ink: #0e1011;
	--ink-2: #2e2e2e;
	--muted: #5a6266;
	--faint: #8b9498;
	--paper: #f3f6f7;
	--surface: #ffffff;
	--line: #e1e7e9;
	--line-strong: #c9d3d6;

	--ok: #0f8a5c;
	--ok-soft: #e4f4ec;
	--warn: #b7791f;
	--warn-soft: #fbf1de;
	--orange: #d9731a;
	--orange-soft: #fcebdc;
	--danger: #c62828;
	--danger-soft: #fbe7e7;

	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(14, 16, 17, 0.06), 0 1px 3px rgba(14, 16, 17, 0.04);
	--shadow: 0 2px 6px rgba(14, 16, 17, 0.06), 0 10px 24px rgba(14, 16, 17, 0.08);
	--shadow-lg: 0 12px 40px rgba(14, 16, 17, 0.22);

	--font-body: 'Open Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-ui: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	--sidebar-width: 248px;
	--topbar-height: 58px;
	--tabbar-height: 64px;
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--safe-top: env(safe-area-inset-top, 0px);

	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	min-height: 100dvh;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-ui);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.35em;
	letter-spacing: -0.015em;
	color: var(--ink);
}

h1 {
	font-size: clamp(1.45rem, 4.4vw, 1.9rem);
}
h2 {
	font-size: clamp(1.15rem, 3.4vw, 1.35rem);
}
h3 {
	font-size: 1.02rem;
}

p {
	margin: 0 0 0.9em;
}

a {
	color: var(--brand-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

img {
	max-width: 100%;
}

[hidden] {
	display: none !important;
}

.eyebrow {
	font-family: var(--font-ui);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 6px;
}

.muted {
	color: var(--muted);
}
.faint {
	color: var(--faint);
}
.small {
	font-size: 0.86rem;
}
.nowrap {
	white-space: nowrap;
}
.pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.center {
	text-align: center;
}
.right {
	text-align: right;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.icon {
	width: 20px;
	height: 20px;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Sign in ----------------------------------------------------------- */

.auth-screen {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 24px 16px calc(24px + var(--safe-bottom));
	background:
		radial-gradient(900px 480px at 85% -10%, rgba(17, 187, 209, 0.32), transparent 60%),
		radial-gradient(700px 420px at -10% 110%, rgba(17, 187, 209, 0.18), transparent 60%),
		var(--black);
}

.auth-card {
	width: 100%;
	max-width: 420px;
	background: var(--surface);
	border-radius: 20px;
	box-shadow: var(--shadow-lg);
	padding: clamp(24px, 6vw, 36px);
}

.auth-card .logo {
	display: block;
	width: min(230px, 70%);
	height: auto;
	margin: 0 auto 6px;
}

.auth-card .app-name {
	text-align: center;
	margin: 0 0 24px;
}

.auth-card h1 {
	font-size: 1.3rem;
	margin-bottom: 4px;
}

.auth-foot {
	margin-top: 18px;
	text-align: center;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8rem;
}

/* --- App shell --------------------------------------------------------- */

.shell {
	min-height: 100vh;
	min-height: 100dvh;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	height: calc(var(--topbar-height) + var(--safe-top));
	padding: var(--safe-top) 12px 0 16px;
	background: var(--black);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 3px solid var(--brand);
}

.topbar .brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.topbar .brand img {
	height: 30px;
	width: auto;
	display: block;
}

.topbar .spacer {
	flex: 1;
}

.avatar-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border-radius: 999px;
	padding: 4px 10px 4px 4px;
	font: 600 0.85rem var(--font-ui);
	cursor: pointer;
	max-width: 60vw;
}

.avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--brand);
	color: var(--black);
	display: grid;
	place-items: center;
	font: 700 0.8rem var(--font-ui);
	flex: none;
	letter-spacing: 0.02em;
}

.avatar-btn .who {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar {
	display: none;
}

.main {
	padding: 18px 16px calc(var(--tabbar-height) + var(--safe-bottom) + 28px);
	max-width: 1180px;
	margin: 0 auto;
}

.tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	height: calc(var(--tabbar-height) + var(--safe-bottom));
	padding-bottom: var(--safe-bottom);
	background: var(--surface);
	border-top: 1px solid var(--line);
	box-shadow: 0 -4px 18px rgba(14, 16, 17, 0.06);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
}

.tabbar a,
.tabbar button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--muted);
	text-decoration: none;
	font: 600 0.68rem var(--font-ui);
	letter-spacing: 0.01em;
	border: none;
	background: none;
	cursor: pointer;
	position: relative;
	padding: 6px 2px 4px;
	min-width: 0;
}

.tabbar .icon {
	width: 23px;
	height: 23px;
}

.tabbar .active {
	color: var(--brand-strong);
}

.tabbar .active::before {
	content: '';
	position: absolute;
	top: 0;
	left: 22%;
	right: 22%;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--brand);
}

.tabbar .dot,
.nav-link .dot {
	position: absolute;
	top: 6px;
	left: calc(50% + 8px);
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--danger);
	color: #fff;
	font: 700 0.65rem/17px var(--font-ui);
	text-align: center;
}

@media (min-width: 1024px) {
	.topbar,
	.tabbar {
		display: none;
	}

	.sidebar {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0 auto 0 0;
		width: var(--sidebar-width);
		background: var(--black);
		color: #fff;
		padding: 22px 14px 18px;
		z-index: 40;
		border-right: 3px solid var(--brand);
	}

	.sidebar .brand img {
		width: 176px;
		height: auto;
		display: block;
		margin: 4px 8px 26px;
	}

	.sidebar nav {
		display: flex;
		flex-direction: column;
		gap: 2px;
		flex: 1;
		overflow-y: auto;
	}

	.sidebar .nav-group {
		margin: 18px 12px 6px;
		font: 700 0.64rem var(--font-ui);
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.42);
	}

	.nav-link {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 12px;
		border-radius: 10px;
		color: rgba(255, 255, 255, 0.78);
		text-decoration: none;
		font: 600 0.92rem var(--font-ui);
		position: relative;
	}

	.nav-link:hover {
		background: rgba(255, 255, 255, 0.07);
		color: #fff;
	}

	.nav-link.active {
		background: rgba(17, 187, 209, 0.16);
		color: #fff;
	}

	.nav-link.active .icon {
		color: var(--brand);
	}

	.nav-link .dot {
		position: static;
		margin-left: auto;
	}

	.sidebar .me {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px 8px 0;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		margin-top: 12px;
	}

	.sidebar .me .who {
		min-width: 0;
		flex: 1;
	}

	.sidebar .me strong {
		display: block;
		font: 700 0.88rem var(--font-ui);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.sidebar .me span {
		font-size: 0.76rem;
		color: rgba(255, 255, 255, 0.55);
	}

	.sidebar .me a {
		color: rgba(255, 255, 255, 0.7);
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		border-radius: 8px;
	}

	.sidebar .me a:hover {
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
	}

	.shell .main-wrap {
		margin-left: var(--sidebar-width);
	}

	.main {
		padding: 30px 36px 60px;
	}
}

/* Shown while an admin previews the app as another role. */
.preview-bar {
	position: sticky;
	top: calc(var(--topbar-height) + var(--safe-top));
	z-index: 45;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: var(--warn-soft);
	color: #6b4510;
	border-bottom: 1px solid #efd9ad;
	font-size: 0.88rem;
	line-height: 1.4;
}

.preview-bar > span {
	flex: 1;
	min-width: 0;
}

.preview-bar .btn {
	flex: none;
	background: #6b4510;
	color: #fff;
}

@media (min-width: 1024px) {
	.preview-bar {
		top: 0;
		padding: 12px 36px;
	}
}

/* Help button in the phone top bar. */
.help-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	flex: none;
}

.help-btn.active,
.help-btn:hover {
	color: var(--brand);
	border-color: var(--brand);
}

.help-btn .icon {
	width: 22px;
	height: 22px;
}

/* --- Page chrome ------------------------------------------------------- */

.page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.page-head h1 {
	margin: 0;
}

.page-head .actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font: 600 0.88rem var(--font-ui);
	color: var(--muted);
	text-decoration: none;
	margin-bottom: 8px;
	padding: 4px 0;
}

.back-link:hover {
	color: var(--ink);
}

.back-link .icon {
	width: 18px;
	height: 18px;
}

/* --- Cards & layout ---------------------------------------------------- */

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: clamp(16px, 3.6vw, 24px);
	margin-bottom: 16px;
}

.card > :last-child {
	margin-bottom: 0;
}

.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.card-head h2,
.card-head h3 {
	margin: 0;
}

.card.flush {
	padding: 0;
	overflow: hidden;
}

.card.accent {
	border-top: 4px solid var(--brand);
}

.stack > * + * {
	margin-top: 14px;
}

.grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.grid-2 {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 860px) {
	.grid-2 {
		grid-template-columns: 1fr 1fr;
	}
	.grid-2.wide-left {
		grid-template-columns: 3fr 2fr;
	}
}

.row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.row > * {
	flex: 1 1 200px;
	min-width: 0;
}

/* --- Stats ------------------------------------------------------------- */

.stats {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 16px;
}

@media (min-width: 760px) {
	.stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.stat {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
	display: block;
	box-shadow: var(--shadow-sm);
}

a.stat:hover {
	border-color: var(--brand);
}

.stat .value {
	font: 700 1.6rem/1.1 var(--font-ui);
	letter-spacing: -0.02em;
	margin-top: 2px;
}

.stat .label {
	font: 700 0.66rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.stat .sub {
	font-size: 0.8rem;
	color: var(--faint);
}

/* --- Quick actions ----------------------------------------------------- */

.quick {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 16px;
}

@media (min-width: 760px) {
	.quick {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.quick a {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
	text-decoration: none;
	color: var(--ink);
	font: 700 0.95rem var(--font-ui);
	box-shadow: var(--shadow-sm);
	transition: transform 0.12s ease, border-color 0.12s ease;
}

.quick a:hover {
	border-color: var(--brand);
}

.quick a:active {
	transform: scale(0.98);
}

.quick .q-icon {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	background: var(--brand-soft);
	color: var(--brand-deep);
}

.quick .q-icon.dark {
	background: var(--black);
	color: var(--brand);
}

.quick .q-icon.red {
	background: var(--danger-soft);
	color: var(--danger);
}

.quick small {
	display: block;
	font: 400 0.78rem var(--font-body);
	color: var(--muted);
	margin-top: -6px;
}

/* --- Clock ------------------------------------------------------------- */

.clock-card {
	background: var(--black);
	color: #fff;
	border-radius: 20px;
	padding: clamp(20px, 5vw, 30px);
	margin-bottom: 16px;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.clock-card::after {
	content: '';
	position: absolute;
	right: -90px;
	top: -90px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(17, 187, 209, 0.38), transparent 65%);
	pointer-events: none;
}

.clock-card > * {
	position: relative;
	z-index: 1;
}

.clock-card .eyebrow {
	color: rgba(255, 255, 255, 0.6);
}

.clock-card .status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 700 0.8rem var(--font-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.clock-card .status .pulse {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #6b7478;
}

.clock-card.on .status {
	color: var(--brand);
}

.clock-card.on .status .pulse {
	background: var(--brand);
	box-shadow: 0 0 0 0 var(--brand-glow);
	animation: pulse 1.8s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(17, 187, 209, 0.6);
	}
	70% {
		box-shadow: 0 0 0 12px rgba(17, 187, 209, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(17, 187, 209, 0);
	}
}

.clock-card .timer {
	font: 700 clamp(2.6rem, 12vw, 3.6rem) / 1 var(--font-ui);
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	margin: 12px 0 6px;
}

.clock-card .where {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	margin-bottom: 18px;
}

.clock-card .field > span {
	color: rgba(255, 255, 255, 0.85);
}

.clock-card .field select,
.clock-card .field input {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.clock-card select option {
	color: var(--ink);
}

.clock-card input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.clock-card .geo-line {
	margin-top: 10px;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.55);
	display: flex;
	align-items: center;
	gap: 6px;
}

.clock-card .geo-line .icon {
	width: 15px;
	height: 15px;
}

/* --- Forms ------------------------------------------------------------- */

.field {
	display: block;
	margin-bottom: 14px;
}

.field > span,
label.label {
	display: block;
	font: 600 0.86rem var(--font-ui);
	color: var(--ink-2);
	margin-bottom: 6px;
}

.field .hint {
	display: block;
	font-size: 0.8rem;
	color: var(--muted);
	margin-top: 5px;
}

.req {
	color: var(--danger);
	margin-left: 2px;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='number'],
input[type='search'],
input[type='date'],
input[type='datetime-local'],
input[type='time'],
select,
textarea {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	border-radius: 10px;
	padding: 11px 13px;
	min-height: 46px;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
	-webkit-appearance: none;
	appearance: none;
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a6266' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 38px;
}

textarea {
	min-height: 96px;
	resize: vertical;
	line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-glow);
}

/* Password with a show/hide toggle inside the field. */
.password-wrap {
	position: relative;
	display: block;
}

.password-wrap input {
	padding-right: 50px;
}

.password-wrap .reveal {
	position: absolute;
	right: 3px;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 8px;
	background: none;
	color: var(--muted);
	display: grid;
	place-items: center;
	cursor: pointer;
}

.password-wrap .reveal:hover {
	color: var(--ink);
	background: var(--paper);
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid var(--line-strong);
	border-radius: 10px;
	cursor: pointer;
	background: var(--surface);
	margin-bottom: 10px;
	font-weight: 600;
	font-family: var(--font-ui);
}

.check input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--brand-strong);
	flex: none;
}

.check .hint {
	display: block;
	font: 400 0.8rem var(--font-body);
	color: var(--muted);
	margin-top: 4px;
}

.check input:disabled + span {
	color: var(--muted);
}

.check:has(input:checked) {
	border-color: var(--brand);
	background: var(--brand-soft);
}

.form-section {
	border-top: 1px solid var(--line);
	padding-top: 18px;
	margin-top: 6px;
}

.form-section:first-child {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.form-section > h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.form-section > h3 .num {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--black);
	color: var(--brand);
	font-size: 0.78rem;
	display: grid;
	place-items: center;
}

/* Segmented choice (severity, status, scores) */
.segmented {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.segmented button {
	flex: 1 1 0;
	min-width: 64px;
	min-height: 44px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1.5px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-2);
	font: 700 0.9rem var(--font-ui);
	cursor: pointer;
	transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.segmented button:hover {
	border-color: var(--brand);
}

.segmented button.on {
	background: var(--black);
	border-color: var(--black);
	color: #fff;
}

.segmented button.on[data-tone='Low'] {
	background: var(--ok);
	border-color: var(--ok);
}
.segmented button.on[data-tone='Medium'] {
	background: var(--warn);
	border-color: var(--warn);
}
.segmented button.on[data-tone='High'] {
	background: var(--orange);
	border-color: var(--orange);
}
.segmented button.on[data-tone='Critical'] {
	background: var(--danger);
	border-color: var(--danger);
}

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

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 13px;
	min-height: 38px;
	border-radius: 999px;
	border: 1.5px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-2);
	font: 600 0.86rem var(--font-ui);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.chip:hover {
	border-color: var(--brand);
}

.chip.on {
	background: var(--brand-soft);
	border-color: var(--brand);
	color: var(--brand-deep);
}

.chip .icon {
	width: 16px;
	height: 16px;
}

.chip .count {
	background: var(--line);
	border-radius: 999px;
	padding: 0 7px;
	font-size: 0.75rem;
}

.chip.on .count {
	background: #fff;
}

/* --- Buttons ----------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 18px;
	border-radius: 11px;
	border: 1.5px solid transparent;
	font: 700 0.95rem var(--font-ui);
	letter-spacing: 0.005em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease, opacity 0.12s ease;
	white-space: nowrap;
	-webkit-user-select: none;
	user-select: none;
}

.btn:active:not(:disabled) {
	transform: scale(0.98);
}

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

.btn .icon {
	width: 19px;
	height: 19px;
}

.btn-primary {
	background: var(--black);
	color: #fff;
}

.btn-primary:hover:not(:disabled) {
	background: #1d2224;
}

.btn-brand {
	background: var(--brand);
	color: var(--black);
}

.btn-brand:hover:not(:disabled) {
	background: #0fa9bd;
}

.btn-secondary {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--line-strong);
}

.btn-secondary:hover:not(:disabled) {
	border-color: var(--ink-2);
}

.btn-ghost {
	background: transparent;
	color: var(--brand-strong);
	padding-left: 10px;
	padding-right: 10px;
}

.btn-ghost:hover:not(:disabled) {
	background: var(--brand-soft);
}

.btn-danger {
	background: var(--danger);
	color: #fff;
}

.btn-danger-outline {
	background: var(--surface);
	color: var(--danger);
	border-color: #eab4b4;
}

.btn-ok {
	background: var(--ok);
	color: #fff;
}

.btn-block {
	width: 100%;
}

.btn-lg {
	min-height: 58px;
	font-size: 1.08rem;
	border-radius: 14px;
	padding: 14px 22px;
}

.btn-sm {
	min-height: 36px;
	padding: 6px 12px;
	font-size: 0.85rem;
	border-radius: 9px;
}

.btn-icon {
	min-height: 40px;
	width: 40px;
	padding: 0;
	border-radius: 10px;
}

.clock-card .btn-secondary {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

.btn-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.btn-row > .btn {
	flex: 1 1 auto;
}

.spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2.5px solid currentColor;
	border-right-color: transparent;
	animation: spin 0.7s linear infinite;
	display: inline-block;
	flex: none;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* --- Lists ------------------------------------------------------------- */

.list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.list-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	color: inherit;
	background: var(--surface);
}

.list-item:last-child {
	border-bottom: none;
}

a.list-item:hover,
button.list-item:hover {
	background: #f8fbfb;
}

button.list-item {
	width: 100%;
	border-left: none;
	border-right: none;
	border-top: none;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.list-item .body {
	flex: 1;
	min-width: 0;
}

.list-item .title {
	font: 700 0.95rem var(--font-ui);
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.list-item .meta {
	font-size: 0.82rem;
	color: var(--muted);
	margin-top: 2px;
	overflow-wrap: anywhere;
}

.list-item .aside {
	text-align: right;
	flex: none;
	font-size: 0.82rem;
	color: var(--muted);
}

.list-item .chev {
	color: var(--faint);
	flex: none;
}

.lead-icon {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	flex: none;
	background: var(--brand-soft);
	color: var(--brand-deep);
}

.lead-icon.dark {
	background: var(--black);
	color: var(--brand);
}

.empty {
	text-align: center;
	padding: 34px 20px;
	color: var(--muted);
}

.empty .icon {
	width: 38px;
	height: 38px;
	color: var(--line-strong);
	margin-bottom: 8px;
}

.empty h3 {
	color: var(--ink-2);
	margin-bottom: 4px;
}

/* --- Badges ------------------------------------------------------------ */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: 999px;
	font: 700 0.7rem/1.6 var(--font-ui);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--line);
	color: var(--ink-2);
	white-space: nowrap;
}

.badge.brand {
	background: var(--brand-soft);
	color: var(--brand-deep);
}
.badge.dark {
	background: var(--black);
	color: #fff;
}
.badge.ok,
.badge.Low,
.badge.excellent {
	background: var(--ok-soft);
	color: var(--ok);
}
.badge.good {
	background: var(--brand-soft);
	color: var(--brand-deep);
}
.badge.warn,
.badge.Medium,
.badge.fair {
	background: var(--warn-soft);
	color: var(--warn);
}
.badge.High,
.badge.poor {
	background: var(--orange-soft);
	color: var(--orange);
}
.badge.danger,
.badge.Critical,
.badge.bad {
	background: var(--danger-soft);
	color: var(--danger);
}

.score-pill {
	display: inline-grid;
	place-items: center;
	min-width: 58px;
	padding: 6px 10px;
	border-radius: 10px;
	font: 700 0.95rem var(--font-ui);
	font-variant-numeric: tabular-nums;
}

.tone-excellent {
	color: var(--ok);
	background: var(--ok-soft);
}
.tone-good {
	color: var(--brand-deep);
	background: var(--brand-soft);
}
.tone-fair {
	color: var(--warn);
	background: var(--warn-soft);
}
.tone-poor {
	color: var(--orange);
	background: var(--orange-soft);
}
.tone-bad {
	color: var(--danger);
	background: var(--danger-soft);
}
.tone-none {
	color: var(--faint);
	background: var(--paper);
}

/* --- Definition grid (detail pages) ------------------------------------ */

.facts {
	display: grid;
	gap: 14px 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	margin: 0;
}

.facts div {
	min-width: 0;
}

.facts dt {
	font: 700 0.66rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 3px;
}

.facts dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.text-block {
	margin-top: 16px;
}

.text-block h4 {
	font: 700 0.66rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}

.text-block p {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	margin: 0;
}

/* --- Tables ------------------------------------------------------------ */

.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table.data {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

table.data th {
	text-align: left;
	font: 700 0.66rem var(--font-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 10px 12px;
	border-bottom: 1.5px solid var(--line-strong);
	white-space: nowrap;
	background: #fafcfc;
}

table.data td {
	padding: 11px 12px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

table.data tr:last-child td {
	border-bottom: none;
}

table.data .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* --- Permissions grid ------------------------------------------------- */

.perm-table td,
.perm-table th {
	vertical-align: middle;
}

.perm-table .role-col {
	text-align: center;
	width: 1%;
	min-width: 84px;
	white-space: nowrap;
}

.perm-table .role-name {
	font: 700 0.9rem var(--font-ui);
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
}

.perm-table .role-count {
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--faint);
	margin-top: 2px;
}

.perm-label {
	font: 700 0.95rem var(--font-ui);
	margin-bottom: 2px;
}

.perm-check {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	cursor: pointer;
}

.perm-check input {
	width: 22px;
	height: 22px;
	accent-color: var(--brand-strong);
	cursor: pointer;
}

.perm-check input:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.preview-row td {
	background: #fafcfc;
}

.preview-row .btn {
	padding: 6px 10px;
}

/* Phones: each permission becomes a card with its three role checkboxes
   labelled underneath, instead of a grid wider than the screen. */
@media (max-width: 600px) {
	.perm-table thead {
		display: none;
	}
	.perm-table tbody tr {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		border-bottom: 1px solid var(--line);
		padding: 12px 10px 6px;
	}
	.perm-table tbody td {
		border: none;
		padding: 0;
	}
	.perm-table tbody td:first-child {
		grid-column: 1 / -1;
		padding: 0 4px 6px;
	}
	.perm-table .role-col {
		width: auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0;
	}
	.perm-table .role-col::before {
		content: attr(data-label);
		font: 700 0.72rem var(--font-ui);
		color: var(--muted);
		margin-top: 2px;
	}
	.preview-row .role-col::before {
		margin-bottom: 4px;
	}
	.preview-row .btn {
		width: calc(100% - 8px);
		font-size: 0.8rem;
	}
}

/* --- Photos ------------------------------------------------------------ */

.photos {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.photo {
	position: relative;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
}

.photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
}

.photo .remove {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.66);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.photo .remove .icon {
	width: 15px;
	height: 15px;
}

.photo .state {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.72);
	color: var(--brand-strong);
	font: 700 0.75rem var(--font-ui);
}

.photo .state.error {
	color: var(--danger);
	text-align: center;
	padding: 6px;
}

.photo .caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 14px 6px 4px;
	font-size: 0.68rem;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.add-photo {
	aspect-ratio: 1;
	border-radius: 10px;
	border: 2px dashed var(--line-strong);
	background: var(--surface);
	color: var(--brand-strong);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font: 700 0.76rem var(--font-ui);
	cursor: pointer;
	position: relative;
}

.add-photo:hover {
	border-color: var(--brand);
	background: var(--brand-soft);
}

.add-photo input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.92);
	display: grid;
	place-items: center;
	padding: 16px;
}

.lightbox img {
	max-width: 100%;
	max-height: 86vh;
	border-radius: 8px;
}

.lightbox .cap {
	color: #fff;
	text-align: center;
	margin-top: 10px;
	font-size: 0.9rem;
}

.lightbox .close {
	position: absolute;
	top: calc(12px + var(--safe-top));
	right: 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
}

/* --- Health check wizard ----------------------------------------------- */

.hc-head {
	background: var(--black);
	color: #fff;
	border-radius: 18px;
	padding: 18px;
	margin-bottom: 14px;
	position: relative;
	overflow: hidden;
}

.hc-head::after {
	content: '';
	position: absolute;
	right: -70px;
	bottom: -110px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(17, 187, 209, 0.32), transparent 65%);
	pointer-events: none;
}

.hc-head h1 {
	color: #fff;
	font-size: 1.3rem;
	margin: 2px 0 2px;
}

.hc-head .eyebrow {
	color: var(--brand);
}

.hc-head .sub {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
}

.hc-head .top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
	position: relative;
	z-index: 1;
}

.hc-head .live-score {
	text-align: right;
	flex: none;
}

.hc-head .live-score .value {
	font: 700 1.6rem/1 var(--font-ui);
	font-variant-numeric: tabular-nums;
	color: var(--brand);
}

.hc-head .live-score .label {
	font: 700 0.62rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.progress {
	height: 8px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
	margin-top: 14px;
	position: relative;
	z-index: 1;
}

.progress > span {
	display: block;
	height: 100%;
	background: var(--brand);
	border-radius: 99px;
	transition: width 0.25s ease;
}

.progress.light {
	background: var(--line);
}

.hc-head .progress-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 6px;
	position: relative;
	z-index: 1;
}

.save-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.save-state .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--brand);
}

.save-state.saving .dot {
	background: var(--warn);
}

.save-state.error .dot {
	background: var(--danger);
}

.section-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 10px;
	margin: 0 -16px 6px;
	padding-left: 16px;
	padding-right: 16px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.section-tabs::-webkit-scrollbar {
	display: none;
}

@media (min-width: 1024px) {
	.section-tabs {
		margin: 0 0 6px;
		padding-left: 2px;
		padding-right: 2px;
		flex-wrap: wrap;
	}
}

.section-tab {
	scroll-snap-align: start;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: none;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1.5px solid var(--line-strong);
	background: var(--surface);
	font: 600 0.84rem var(--font-ui);
	color: var(--ink-2);
	cursor: pointer;
}

.section-tab .n {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--line);
	display: grid;
	place-items: center;
	font-size: 0.7rem;
	font-weight: 700;
}

.section-tab.done .n {
	background: var(--ok);
	color: #fff;
}

.section-tab.current {
	background: var(--black);
	border-color: var(--black);
	color: #fff;
}

.section-tab.current .n {
	background: var(--brand);
	color: var(--black);
}

.item-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px;
	margin-bottom: 10px;
	box-shadow: var(--shadow-sm);
	transition: border-color 0.15s ease;
}

.item-card.answered {
	border-left: 4px solid var(--brand);
}

.item-card .item-text {
	font: 600 0.98rem/1.4 var(--font-ui);
	margin-bottom: 4px;
}

.item-card .guidance {
	font-size: 0.8rem;
	color: var(--muted);
	margin-bottom: 8px;
}

.score-row {
	display: flex;
	gap: 6px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.score-btn {
	flex: 1 1 0;
	min-width: 44px;
	min-height: 48px;
	border-radius: 10px;
	border: 1.5px solid var(--line-strong);
	background: var(--surface);
	font: 700 1rem var(--font-ui);
	color: var(--ink-2);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
	padding: 4px 2px;
	transition: background 0.1s ease, border-color 0.1s ease;
}

.score-btn small {
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--muted);
	margin-top: 2px;
	white-space: nowrap;
}

.score-btn:hover {
	border-color: var(--brand);
}

.score-btn.na {
	flex: 0 0 56px;
	font-size: 0.82rem;
}

.score-btn.on {
	color: #fff;
	border-color: transparent;
}

.score-btn.on small {
	color: rgba(255, 255, 255, 0.85);
}

.score-btn.on.tone-excellent {
	background: var(--ok);
}
.score-btn.on.tone-good {
	background: var(--brand-strong);
}
.score-btn.on.tone-fair {
	background: var(--warn);
}
.score-btn.on.tone-poor {
	background: var(--orange);
}
.score-btn.on.tone-bad {
	background: var(--danger);
}
.score-btn.on.tone-none {
	background: var(--muted);
}

/* The question each section of Protech's form asks. */
.question {
	font: 600 1rem/1.45 var(--font-ui);
	color: var(--ink-2);
	border-left: 3px solid var(--brand);
	padding: 2px 0 2px 12px;
	margin: 4px 0 14px;
}

.subhead {
	font: 700 0.74rem var(--font-ui);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brand-deep);
	margin: 20px 0 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.subhead::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--line);
}

td.subhead-row {
	font: 700 0.68rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand-deep);
	background: #f8fbfb;
	padding-top: 14px;
}

.score-btn.on.tone-dark {
	background: var(--black);
}

/* Priority and impact on a recommended improvement. */
.opp-extra {
	margin-top: 12px;
	padding: 12px;
	border-radius: 10px;
	background: var(--warn-soft);
}

.opp-extra .label {
	display: block;
	font: 700 0.66rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #7a4f10;
	margin: 0 0 6px;
}

.opp-extra .segmented {
	margin-bottom: 12px;
}

.opp-extra .segmented button {
	min-height: 40px;
	min-width: 0;
	padding: 8px 4px;
	font-size: 0.86rem;
}

@media (max-width: 440px) {
	.opp-extra .segmented button {
		flex: 1 1 calc(50% - 3px);
	}
}

.segmented button.on[data-ptone='good'] {
	background: var(--brand-strong);
	border-color: var(--brand-strong);
}
.segmented button.on[data-ptone='fair'] {
	background: var(--warn);
	border-color: var(--warn);
}
.segmented button.on[data-ptone='poor'] {
	background: var(--orange);
	border-color: var(--orange);
}
.segmented button.on[data-ptone='bad'] {
	background: var(--danger);
	border-color: var(--danger);
}

.opp-extra .chip {
	min-height: 34px;
	padding: 6px 11px;
	font-size: 0.8rem;
}

/* Phones show a legend above the items instead of a caption per button. */
.scale-legend {
	display: none;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 0.78rem;
	color: var(--muted);
	margin: 0 0 10px;
}

.scale-legend b {
	color: var(--ink);
	font-family: var(--font-ui);
}

@media (max-width: 640px) {
	.score-btn small {
		display: none;
	}
	.scale-legend {
		display: flex;
	}
}

.note-toggle {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 600 0.82rem var(--font-ui);
	color: var(--brand-strong);
	background: none;
	border: none;
	padding: 6px 0;
	cursor: pointer;
}

.note-toggle .icon {
	width: 16px;
	height: 16px;
}

.item-card textarea {
	margin-top: 8px;
	min-height: 70px;
}

.wizard-bar {
	position: sticky;
	bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 8px);
	z-index: 30;
	display: flex;
	gap: 10px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
	margin-top: 16px;
}

.wizard-bar .btn {
	flex: 1;
}

@media (min-width: 1024px) {
	.wizard-bar {
		bottom: 16px;
	}
}

.section-score-list .list-item .score-pill {
	min-width: 64px;
}

.bar {
	height: 7px;
	border-radius: 99px;
	background: var(--line);
	overflow: hidden;
	margin-top: 6px;
}

.bar > span {
	display: block;
	height: 100%;
	border-radius: 99px;
}

.bar .tone-excellent {
	background: var(--ok);
}
.bar .tone-good {
	background: var(--brand-strong);
}
.bar .tone-fair {
	background: var(--warn);
}
.bar .tone-poor {
	background: var(--orange);
}
.bar .tone-bad {
	background: var(--danger);
}

.score-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.score-ring {
	--pct: 0;
	--tone: var(--brand);
	width: 116px;
	height: 116px;
	border-radius: 50%;
	background: conic-gradient(var(--tone) calc(var(--pct) * 1%), var(--line) 0);
	display: grid;
	place-items: center;
	flex: none;
}

.score-ring > div {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--surface);
	display: grid;
	place-items: center;
	text-align: center;
	font: 700 1.45rem/1 var(--font-ui);
	font-variant-numeric: tabular-nums;
}

.score-ring small {
	display: block;
	font: 700 0.6rem var(--font-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 4px;
}

/* Signature pad */
.sig-wrap {
	position: relative;
	border: 1.5px dashed var(--line-strong);
	border-radius: 12px;
	background: #fcfdfd;
	touch-action: none;
}

.sig-wrap canvas {
	display: block;
	width: 100%;
	height: 170px;
	border-radius: 12px;
	cursor: crosshair;
}

.sig-wrap .sig-line {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 36px;
	border-bottom: 1px solid var(--line-strong);
	pointer-events: none;
}

.sig-wrap .sig-hint {
	position: absolute;
	left: 18px;
	bottom: 12px;
	font: 700 0.62rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint);
	pointer-events: none;
}

.sig-saved {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px;
	background: #fcfdfd;
}

.sig-saved img {
	max-height: 120px;
	display: block;
}

/* --- Template editor --------------------------------------------------- */

.editor-section {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	margin-bottom: 14px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.editor-section > header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #f8fbfb;
	border-bottom: 1px solid var(--line);
}

.editor-section > header .num {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--black);
	color: var(--brand);
	display: grid;
	place-items: center;
	font: 700 0.78rem var(--font-ui);
	flex: none;
}

.editor-section > header input {
	font-weight: 700;
	font-family: var(--font-ui);
}

.editor-section .editor-body {
	padding: 12px;
}

.editor-group {
	border: 1px dashed var(--line-strong);
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 10px;
	background: #fcfdfd;
}

.editor-group-head {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.editor-group-head input {
	flex: 2 1 200px;
	min-width: 0;
	font-weight: 700;
	font-family: var(--font-ui);
}

.editor-group-head select {
	flex: 1 1 170px;
	min-width: 0;
}

.editor-group-head .btn-icon {
	min-height: 40px;
	width: 36px;
	flex: none;
}

.editor-item {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-bottom: 8px;
}

.editor-item input {
	flex: 1;
	min-width: 0;
}

.editor-item .btn-icon,
.editor-section header .btn-icon {
	min-height: 40px;
	width: 36px;
	flex: none;
}

/* --- Dialogs, sheets and toasts ---------------------------------------- */

.dialog-backdrop {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgba(8, 10, 11, 0.55);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	animation: fade 0.15s ease;
}

@media (min-width: 640px) {
	.dialog-backdrop {
		align-items: center;
		padding: 20px;
	}
}

@keyframes fade {
	from {
		opacity: 0;
	}
}

@keyframes rise {
	from {
		transform: translateY(24px);
		opacity: 0.6;
	}
}

.dialog {
	width: 100%;
	max-width: 520px;
	max-height: 92vh;
	max-height: 92dvh;
	overflow-y: auto;
	background: var(--surface);
	border-radius: 20px 20px 0 0;
	padding: 22px 18px calc(18px + var(--safe-bottom));
	box-shadow: var(--shadow-lg);
	animation: rise 0.18s ease;
}

.dialog.wide {
	max-width: 680px;
}

@media (min-width: 640px) {
	.dialog {
		border-radius: 20px;
		padding: 26px 24px 22px;
	}
}

.dialog h2 {
	margin-bottom: 8px;
}

.dialog .dialog-body {
	color: var(--muted);
	white-space: pre-line;
}

.dialog-icon {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	background: var(--brand-soft);
	color: var(--brand-deep);
}

.dialog-icon[data-tone='danger'] {
	background: var(--danger-soft);
	color: var(--danger);
}

.dialog-icon[data-tone='ok'] {
	background: var(--ok-soft);
	color: var(--ok);
}

.dialog-icon[data-tone='warn'] {
	background: var(--warn-soft);
	color: var(--warn);
}

.dialog-actions {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	flex-direction: column-reverse;
}

@media (min-width: 640px) {
	.dialog-actions {
		flex-direction: row;
		justify-content: flex-end;
	}
}

.temp-password {
	font: 700 1.9rem ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	letter-spacing: 0.12em;
	text-align: center;
	padding: 16px;
	background: var(--black);
	color: var(--brand);
	border-radius: 14px;
	margin: 12px 0;
	user-select: all;
	overflow-wrap: anywhere;
}

.sheet-menu .list-item {
	border-radius: 12px;
	border: none;
	padding: 13px 10px;
}

.sheet-menu .list-item .icon {
	color: var(--brand-strong);
}

.toasts {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 16px);
	z-index: 300;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(92vw, 420px);
	pointer-events: none;
}

@media (min-width: 1024px) {
	.toasts {
		bottom: 24px;
		left: calc(50% + var(--sidebar-width) / 2);
	}
}

.toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--black);
	color: #fff;
	font: 600 0.9rem var(--font-ui);
	box-shadow: var(--shadow-lg);
	animation: rise 0.2s ease;
	pointer-events: auto;
}

.toast .icon {
	color: var(--brand);
}

.toast.error .icon {
	color: #ff8a80;
}

.alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand-deep);
	font-size: 0.9rem;
	margin-bottom: 14px;
}

.alert .icon {
	margin-top: 1px;
}

.alert.warn {
	background: var(--warn-soft);
	color: #7a4f10;
}

.alert.danger {
	background: var(--danger-soft);
	color: var(--danger);
}

.alert.ok {
	background: var(--ok-soft);
	color: var(--ok);
}

.form-error {
	color: var(--danger);
	font-weight: 600;
	font-size: 0.88rem;
	margin: 4px 0 10px;
}

.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 60px 20px;
	color: var(--muted);
	font: 600 0.92rem var(--font-ui);
}

.loading .spinner {
	color: var(--brand);
	width: 22px;
	height: 22px;
}

.boot {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	background: var(--black);
}

.boot img {
	width: 72px;
	height: 72px;
	animation: breathe 1.6s ease-in-out infinite;
}

@keyframes breathe {
	50% {
		opacity: 0.45;
		transform: scale(0.94);
	}
}

.divider {
	height: 1px;
	background: var(--line);
	margin: 18px 0;
	border: none;
}

.kv {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 0.9rem;
}

.kv:last-child {
	border-bottom: none;
}

.kv span:first-child {
	color: var(--muted);
}

.day-group {
	font: 700 0.7rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 12px 16px 6px;
	background: #fafcfc;
	border-bottom: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
}

.filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: flex-end;
	margin-bottom: 14px;
}

.filters .field {
	margin: 0;
	flex: 1 1 160px;
	min-width: 0;
}

.map-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.85rem;
	font-weight: 600;
}

.map-link .icon {
	width: 15px;
	height: 15px;
}

/* --- Help & user guide ------------------------------------------------ */

.guide-search {
	position: relative;
	margin-bottom: 18px;
}

.guide-search .icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	width: 22px;
	height: 22px;
	pointer-events: none;
}

.guide-search input {
	min-height: 56px;
	padding-left: 50px;
	border-radius: 14px;
	font-size: 1.05rem;
	box-shadow: var(--shadow-sm);
}

.guide-start {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	border-top: 4px solid var(--brand);
}

.guide-start:hover {
	border-color: var(--brand);
}

.guide-start h2 {
	margin: 0 0 2px;
}

.guide-start p {
	margin: 0;
}

.guide-start > div:nth-child(2) {
	flex: 1;
	min-width: 0;
}

h2.guide-cat {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 22px 0 8px;
}

.guide-result .meta {
	margin-top: 4px;
	line-height: 1.5;
}

.guide-result .badge {
	margin-right: 4px;
}

mark {
	background: #ffe98a;
	color: inherit;
	border-radius: 3px;
	padding: 0 2px;
}

.guide-layout {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.guide-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}
	.guide-layout > aside {
		position: sticky;
		top: 24px;
	}
}

.guide-article h1 {
	margin-bottom: 14px;
}

.guide-body {
	font-size: 1rem;
	line-height: 1.65;
}

.guide-body h3 {
	margin: 22px 0 8px;
	font-size: 1.08rem;
}

.guide-body ul {
	padding-left: 20px;
	margin: 0 0 14px;
}

.guide-body li {
	margin-bottom: 6px;
}

.guide-body ol.steps {
	list-style: none;
	counter-reset: step;
	padding: 0;
	margin: 0 0 16px;
}

.guide-body ol.steps > li {
	counter-increment: step;
	position: relative;
	padding: 2px 0 12px 42px;
	margin: 0;
}

.guide-body ol.steps > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--black);
	color: var(--brand);
	font: 700 0.82rem/28px var(--font-ui);
	text-align: center;
}

.guide-body ol.steps > li:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 13.5px;
	top: 32px;
	bottom: 2px;
	width: 1px;
	background: var(--line-strong);
}

.guide-body .ui {
	display: inline-block;
	font: 700 0.88em var(--font-ui);
	background: var(--paper);
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	padding: 0 6px;
	white-space: nowrap;
}

.guide-body .go {
	margin-top: 8px;
}

.guide-body .tip,
.guide-body .warn {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand-deep);
	font-size: 0.95rem;
}

.guide-body .warn {
	background: var(--danger-soft);
	color: var(--danger);
}

.guide-body table.data {
	margin: 4px 0 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}

.guide-body code {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	background: var(--black);
	color: var(--brand);
	padding: 1px 7px;
	border-radius: 6px;
}

.guide-pager {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--line);
	margin-top: 22px;
	padding-top: 16px;
}

.guide-pager a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font: 700 0.92rem var(--font-ui);
	color: var(--ink);
	max-width: 48%;
}

.guide-pager a.next {
	text-align: right;
	margin-left: auto;
}

.guide-pager small {
	display: block;
	font: 700 0.66rem var(--font-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.guide-related .list-item {
	padding: 10px 0;
	background: none;
}

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

.guide-cover {
	text-align: center;
	padding: 24px 0 8px;
}

.guide-cover img {
	width: min(300px, 70%);
}

.guide-cover h1 {
	margin: 18px 0 4px;
	font-size: 2rem;
}

.guide-cover .guide-sub {
	font: 700 0.9rem var(--font-ui);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brand-strong);
}

.guide-cover h3 {
	margin-top: 28px;
}

.guide-toc {
	text-align: left;
	max-width: 520px;
	margin: 0 auto;
	padding-left: 22px;
}

.guide-toc ul {
	padding-left: 18px;
	margin: 2px 0 10px;
	color: var(--muted);
}

.guide-print .guide-article {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: clamp(16px, 3.6vw, 28px);
	margin-bottom: 16px;
}

.guide-print .guide-article h2 {
	font-size: 1.35rem;
	margin-bottom: 10px;
}

@media print {
	.sidebar,
	.topbar,
	.tabbar,
	.wizard-bar,
	.page-head .actions,
	.no-print {
		display: none !important;
	}
	.shell .main-wrap {
		margin: 0;
	}
	.main {
		padding: 0;
	}
	.card {
		box-shadow: none;
		break-inside: avoid;
	}
	.preview-bar,
	.guide-toolbar {
		display: none !important;
	}
	body {
		background: #fff;
	}
	.guide-cover {
		break-after: page;
		padding-top: 0;
	}
	.guide-cover img {
		width: 220px;
	}
	.guide-cover h1 {
		margin-top: 10px;
	}
	.guide-cover h3 {
		margin-top: 18px;
	}
	/* Two columns keep the contents on the cover page. */
	.guide-toc {
		max-width: none;
		columns: 2;
		column-gap: 32px;
		font-size: 0.9rem;
	}
	.guide-toc > li {
		break-inside: avoid;
	}
	.guide-print-cat {
		break-before: page;
	}
	.guide-print .guide-article {
		border: none;
		padding: 0;
		margin-bottom: 26px;
	}
	.guide-print .guide-article h2 {
		break-after: avoid;
	}
	.guide-body ol.steps > li,
	.guide-body table,
	.guide-body .tip,
	.guide-body .warn {
		break-inside: avoid;
	}
	.guide-body .go {
		display: none;
	}
	mark {
		background: none;
	}
}

/* --- Typing on phones ---------------------------------------------------- */
/* iPhones keep fixed and sticky bars pinned to the page while the keyboard is
   open, which can leave the Back / Next bar floating mid-screen. On touch
   screens the bar is solid (no blur, which Safari also mis-paints), and while
   a field has focus the bottom bars stop floating altogether. core.js sets
   body.typing. */
@media (pointer: coarse) {
	.wizard-bar {
		background: var(--surface);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
	body.typing .tabbar {
		display: none;
	}
	body.typing .wizard-bar {
		position: static;
		box-shadow: none;
	}
}

/* --- Summary photos -------------------------------------------------------- */
.photos-card {
	border-top: 4px solid var(--brand);
}
.photos-card h3 {
	display: flex;
	align-items: center;
	gap: 8px;
}
.photos-card h3 .icon {
	width: 20px;
	height: 20px;
	color: var(--brand-strong);
}

/* --- Customer page --------------------------------------------------------- */
.tab-strip {
	margin-bottom: 14px;
}
.section-tab .count {
	font: 700 0.72rem var(--font-ui);
	background: var(--line);
	color: var(--ink-2);
	border-radius: 999px;
	padding: 0 7px;
}
.section-tab.current .count {
	background: var(--brand);
	color: var(--black);
}
button.stat {
	width: 100%;
	text-align: left;
	font: inherit;
	cursor: pointer;
}
button.stat:hover {
	border-color: var(--brand);
}
.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 6px;
	font-size: 0.86rem;
}
.contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--brand-strong);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.contact-links .icon {
	width: 15px;
	height: 15px;
	flex: none;
}
.contact-row,
.note-row {
	align-items: flex-start;
}
.note-row .title {
	font-size: 0.88rem;
}
.list-item .aside.btn-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
button.list-item:disabled {
	cursor: default;
	color: inherit;
	opacity: 1;
}

/* Score trend: one series, hairline grid, 2px line, ringed markers. */
.trend {
	position: relative;
}
.trend svg {
	display: block;
	overflow: visible;
	touch-action: pan-y;
}
.trend .grid {
	stroke: var(--line);
	stroke-width: 1;
}
.trend .cross {
	stroke: var(--line-strong);
	stroke-width: 1;
}
.trend .tick {
	font: 500 11px var(--font-ui);
	fill: var(--faint);
}
.trend .end-label {
	font: 700 12px var(--font-ui);
	fill: var(--ink);
}
.trend .hit {
	cursor: pointer;
	outline: none;
}
.trend .hit:focus-visible {
	stroke: var(--brand-strong);
	stroke-width: 2;
}
.trend-tip {
	position: absolute;
	z-index: 2;
	min-width: 140px;
	max-width: 210px;
	padding: 8px 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: var(--shadow);
	font-size: 0.8rem;
	color: var(--muted);
	pointer-events: none;
}
.trend-tip strong {
	display: block;
	font: 700 0.95rem var(--font-ui);
	color: var(--ink);
}

/* --- Permissions grid ---------------------------------------------------- */
.perm-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.perm-grid td {
	vertical-align: middle;
}
.perm-grid .perm-area {
	min-width: 220px;
}
.perm-grid tr.off .perm-label {
	color: var(--muted);
}
.perm-grid .perm-act,
.perm-grid th.center {
	text-align: center;
	width: 1%;
}
.perm-check-label {
	display: none;
}
.segmented.compact {
	flex-wrap: nowrap;
	gap: 4px;
}
.segmented.compact button {
	flex: 0 0 auto;
	min-width: 0;
	min-height: 34px;
	padding: 5px 10px;
	font-size: 0.8rem;
}
.segmented button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

/* Phones: each area becomes a card: name, what they see, then three toggles. */
@media (max-width: 640px) {
	.perm-grid thead {
		display: none;
	}
	.perm-grid tbody tr {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px 4px;
		padding: 12px;
		border-bottom: 1px solid var(--line);
	}
	.perm-grid tbody td {
		border: none;
		padding: 0;
	}
	.perm-grid .perm-area,
	.perm-grid .perm-view {
		grid-column: 1 / -1;
		min-width: 0;
	}
	.perm-grid .perm-view .segmented.compact button {
		flex: 1 1 0;
	}
	.perm-grid .perm-act {
		width: auto;
		text-align: left;
	}
	.perm-grid .perm-act .perm-check {
		width: auto;
		height: 36px;
		display: inline-flex;
		gap: 6px;
	}
	.perm-check-label {
		display: inline;
		font: 600 0.82rem var(--font-ui);
	}
	.perm-grid .perm-act:not(:has(label))::before {
		content: attr(data-label) ' —';
		font: 600 0.82rem var(--font-ui);
		color: var(--faint);
	}
	.perm-grid .perm-act:not(:has(label)) > span {
		display: none;
	}
}

@media (min-width: 760px) {
	.stats.stats-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* --- Website: blog editor and enquiries ------------------------------------ */

.is-hidden {
	display: none !important;
}

/* .field > span styles a field's label, so this needs the extra weight. */
.field > span.slug-field {
	display: flex;
	align-items: stretch;
	margin-bottom: 0;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font: inherit;
	overflow: hidden;
}

.field > span.slug-field:focus-within {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-glow);
}

.slug-field .slug-base {
	display: flex;
	align-items: center;
	padding: 0 10px;
	background: var(--paper);
	color: var(--muted);
	font-size: 0.86rem;
	white-space: nowrap;
	border-right: 1px solid var(--line);
	max-width: 50%;
	overflow: hidden;
}

.slug-field input,
.slug-field input:focus {
	flex: 1;
	min-width: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
}

.post-photo img {
	display: block;
	width: 100%;
	max-width: 520px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--paper);
}

.post-photo-empty {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 520px;
	padding: 18px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 0.9rem;
}

.post-photo-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 12px 0 14px;
}

.editor-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px;
	border: 1px solid var(--line-strong);
	border-bottom: 0;
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--paper);
}

.editor-tools .tool {
	min-height: 36px;
	padding: 7px 11px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: var(--surface);
	color: var(--ink-2);
	font: 600 0.82rem var(--font-ui);
	cursor: pointer;
}

.editor-tools .tool:hover {
	border-color: var(--brand-strong);
	color: var(--brand-deep);
}

.editor-tools .tool.is-bold {
	font-weight: 800;
	min-width: 36px;
}

.editor-tools .tool.is-italic {
	font-style: italic;
	font-family: Georgia, 'Times New Roman', serif;
	min-width: 36px;
}

.editor {
	min-height: 320px;
	padding: 16px 18px;
	border: 1px solid var(--line-strong);
	border-radius: 0 0 var(--radius) var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: 400 1rem/1.7 var(--font-body);
	outline: none;
	overflow-wrap: anywhere;
}

.editor:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-glow);
}

.editor:empty::before {
	content: attr(data-placeholder);
	color: var(--faint);
}

.editor > :first-child {
	margin-top: 0;
}

.editor h2 {
	font: 700 1.35rem/1.25 var(--font-ui);
	margin: 1.4em 0 0.5em;
}

.editor h3 {
	font: 700 1.1rem/1.3 var(--font-ui);
	margin: 1.2em 0 0.4em;
}

.editor p,
.editor ul,
.editor ol,
.editor blockquote {
	margin: 0 0 0.9em;
}

.editor ul,
.editor ol {
	padding-left: 1.4em;
}

.editor blockquote {
	padding: 10px 14px;
	border-left: 4px solid var(--brand);
	border-radius: 0 8px 8px 0;
	background: var(--brand-soft);
}

.editor a {
	color: var(--brand-strong);
}

.editor td {
	border: 1px solid var(--line);
	padding: 6px 8px;
}

.post-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
}

.post-actions [data-delete] {
	margin-left: auto;
}

.enquiry-message {
	white-space: pre-wrap;
	margin: 14px 0 8px;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	background: var(--paper);
	font-size: 0.95rem;
	line-height: 1.55;
}
