/* Watchdog UI (v2.0)
 * Card-based layout: navy header, white cards with an orange top edge, pill badges.
 * Mobile first where it matters: tables stack into cards and the menu collapses below 760px.
 */

:root {
	--wd-navy: #1d3a63;
	--wd-navy-dark: #142b4a;
	--wd-blue: #1f5fa8;
	--wd-orange: #ef7d22;
	--wd-red: #c4381f;
	--wd-green: #2e7d4f;
	--wd-ink: #1f2933;
	--wd-muted: #5b6675;
	--wd-line: #e3e7ee;
	--wd-pill: #e9eef6;
	--wd-bg: #eef1f5;
	--wd-card: #ffffff;
	--wd-radius: 10px;
	--wd-shadow: 0 1px 2px rgba(20, 43, 74, .06), 0 4px 14px rgba(20, 43, 74, .06);
	--wd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--wd-bg);
	color: var(--wd-ink);
	font: 15px/1.55 var(--wd-font);
}

a { color: var(--wd-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img.icon { width: 16px; height: 16px; vertical-align: -3px; }

.hidden { display: none !important; }
.clear { clear: both; }
.wd-visually-hidden {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.wd-header {
	background: linear-gradient(180deg, var(--wd-navy) 0%, var(--wd-navy-dark) 100%);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.wd-header__bar {
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.wd-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	margin-right: auto;
	min-width: 0;
}
.wd-brand:hover { text-decoration: none; }
.wd-brand__logo { height: 30px; width: auto; display: block; }
.wd-brand__name {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .2px;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, .3);
}

.wd-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wd-pill);
	color: var(--wd-navy);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}
.wd-pill--light { background: rgba(255, 255, 255, .16); color: #fff; }

.wd-account {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
}
.wd-account__name { font-weight: 600; }
.wd-account a { color: #cfe0f5; }
.wd-account a:hover { color: #fff; }

.wd-menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	padding: 0;
}
.wd-menu-toggle__bars,
.wd-menu-toggle__bars::before,
.wd-menu-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	border-radius: 2px;
	position: relative;
	transition: transform .2s, background-color .2s;
}
.wd-menu-toggle__bars::before,
.wd-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.wd-menu-toggle__bars::before { top: -6px; }
.wd-menu-toggle__bars::after { top: 6px; }
.wd-nav-open .wd-menu-toggle__bars { background: transparent; }
.wd-nav-open .wd-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.wd-nav-open .wd-menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Navigation ---------- */

.wd-nav { background: rgba(0, 0, 0, .12); }

.wd-nav__list {
	list-style: none;
	margin: 0 auto;
	padding: 0 16px;
	max-width: 1180px;
	display: flex;
	gap: 4px;
}

.wd-nav__item { position: relative; }

.wd-nav__item > a,
.wd-nav__group-label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 14px;
	color: #dbe6f4;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border-bottom: 3px solid transparent;
}
.wd-nav__item > a:hover,
.wd-nav__item:hover > .wd-nav__group-label,
.wd-nav__item:focus-within > .wd-nav__group-label { color: #fff; text-decoration: none; }
.wd-nav__item.is-current > a,
.wd-nav__item.is-current > .wd-nav__group-label { color: #fff; border-bottom-color: var(--wd-orange); }

.wd-nav__caret {
	width: 0; height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: .8;
}

.wd-nav__sub {
	list-style: none;
	margin: 0;
	padding: 6px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(20, 43, 74, .18);
	visibility: hidden;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .12s, transform .12s, visibility .12s;
	z-index: 10;
}
.wd-nav__item--group:hover > .wd-nav__sub,
.wd-nav__item--group:focus-within > .wd-nav__sub { visibility: visible; opacity: 1; transform: none; }
.wd-nav__sub a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	color: var(--wd-navy);
	font-size: 14px;
}
.wd-nav__sub a:hover { background: var(--wd-pill); text-decoration: none; }
.wd-nav__sub a.is-current { font-weight: 700; background: var(--wd-pill); }

.wd-nav__account { display: none; }

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

.wd-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 24px 8px;
}

.wd-card {
	background: var(--wd-card);
	border-top: 4px solid var(--wd-orange);
	border-radius: var(--wd-radius);
	box-shadow: var(--wd-shadow);
	padding: 24px 28px 28px;
}

.wd-page-title {
	margin: 0 0 18px;
	color: var(--wd-navy);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.wd-card h2 { color: var(--wd-navy); font-size: 19px; margin: 28px 0 10px; }
.wd-card h3 { color: var(--wd-navy); font-size: 17px; margin: 0; }
.wd-card p { margin: 0 0 14px; }

.wd-footer {
	text-align: center;
	color: var(--wd-muted);
	font-size: 13px;
	padding: 20px 16px 28px;
}



/* ---------- Messages ---------- */

.message, .error-msg, .success-msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	margin: 0 0 18px;
	border-radius: 8px;
	border: 1px solid;
	font-size: 14px;
	cursor: pointer;
}
.message::before, .error-msg::before, .success-msg::before {
	content: "i";
	flex: 0 0 auto;
	width: 18px; height: 18px;
	margin-top: 1px;
	border: 2px solid currentColor;
	border-radius: 50%;
	font: 700 11px/14px var(--wd-font);
	text-align: center;
}
.message { background: #eef4fc; border-color: #c9dcf3; color: var(--wd-navy); }
.error-msg, .message.error { background: #fdf1ec; border-color: #f4cbb9; color: #a2361c; }
.error-msg::before, .message.error::before { content: "!"; }
.success-msg, .message.success { background: #edf7f0; border-color: #bfe0ca; color: var(--wd-green); }
.success-msg::before, .message.success::before { content: "\2713"; font-size: 10px; }

/* ---------- Buttons and links ---------- */

.button, button.button, input.button, input[type="submit"], input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 18px;
	margin: 0 8px 8px 0;
	border-radius: 8px;
	border: 1px solid var(--wd-navy);
	background: #fff;
	color: var(--wd-navy);
	font: 600 14px/1.2 var(--wd-font);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.button:hover, input[type="button"]:hover { background: var(--wd-pill); text-decoration: none; }
input[type="submit"], button[type="submit"].button { background: var(--wd-navy); color: #fff; }
input[type="submit"]:hover, button[type="submit"].button:hover { background: var(--wd-navy-dark); }
.button[disabled], input[disabled][type="submit"] { opacity: .45; cursor: not-allowed; }

a.iconLink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	margin: 2px 0;
	border-radius: 999px;
	background: var(--wd-pill);
	color: var(--wd-navy);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
a.iconLink:hover { background: #d9e2f0; text-decoration: none; }
a.iconLink img.icon { vertical-align: 0; }
a.iconLink:has(img[src*="delete"]) { background: #fbeae4; color: var(--wd-red); }
a.iconLink:has(img[src*="delete"]):hover { background: #f6d6ca; }

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

.wd-card input[type="text"],
.wd-card input[type="password"],
.wd-card input[type="email"],
.wd-card input[type="tel"],
.wd-card input[type="number"],
.wd-card select,
.wd-card textarea {
	width: 100%;
	max-width: 420px;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #c8d0dc;
	border-radius: 8px;
	background: #fff;
	color: var(--wd-ink);
	font: 15px/1.4 var(--wd-font);
}
.wd-card textarea { max-width: 100%; min-height: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.wd-card select[multiple] { min-height: 180px; }
.wd-card input:focus, .wd-card select:focus, .wd-card textarea:focus {
	outline: none;
	border-color: var(--wd-blue);
	box-shadow: 0 0 0 3px rgba(31, 95, 168, .18);
}
.wd-card input[type="checkbox"] { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }

/* ---------- Detail / form tables ---------- */

table.adminDetails { width: 100%; border-collapse: collapse; }
table.adminDetails > tbody > tr > th,
table.adminDetails > tbody > tr > td,
table.adminDetails > tr > th,
table.adminDetails > tr > td {
	padding: 10px 12px 10px 0;
	vertical-align: top;
	text-align: left;
}
table.adminDetails th {
	width: 210px;
	color: var(--wd-muted);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .6px;
	padding-top: 19px !important;
}
table.adminDetails td.buttons { padding-top: 6px; }
table.adminDetails td.buttons br { display: none; }
table.adminDetails h3 { padding-bottom: 10px; border-bottom: 1px solid var(--wd-line); }

/* ---------- List tables ---------- */

table.adminList { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
table.adminList th {
	padding: 10px 12px;
	text-align: left;
	color: var(--wd-navy);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 2px solid var(--wd-line);
	white-space: nowrap;
}
table.adminList th a { color: var(--wd-navy); }
table.adminList td {
	padding: 12px;
	border-bottom: 1px solid var(--wd-line);
	vertical-align: middle;
}
table.adminList tr:hover > td { background: #f7f9fc; }
table.adminList td:first-child { font-weight: 600; color: var(--wd-ink); }
table.adminList .wd-muted, table.adminList td.wd-muted { color: var(--wd-muted); font-weight: 400; }
table.adminList td.tright { text-align: right; }
table.adminList td.tright a.iconLink { margin-left: 4px; }

/* Nested list tables inside a form (task steps / permissions) */
table.adminDetails table.adminList { margin: 4px 0 0; }
table.adminDetails table.adminList td { padding: 10px; }
table.adminDetails table.adminList td:first-child { white-space: nowrap; }

/* Drag-to-reorder steps */
tbody.sortable tr { cursor: move; }
tr.ui-state-highlight td { height: 44px; background: #fff7ef !important; border: 1px dashed var(--wd-orange); }
tr.save_highlight td { background: #fff7ef; }

.tright { text-align: right; }
.tleft { text-align: left; }
.tcenter { text-align: center; }

/* ---------- Pagination ---------- */

.paginator { margin: 8px 0 0; }
.paginator table, .paginator tbody, .paginator tr { display: block; width: 100%; }
.paginator tr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.paginator td { display: block; width: auto !important; padding: 0; }
.paginator li { display: inline-block; list-style: none; }
.paginator a, .paginator li.active a, .paginator li.disabled a {
	display: inline-block;
	min-width: 36px;
	padding: 7px 10px;
	border-radius: 8px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
}
.paginator a:hover { background: var(--wd-pill); text-decoration: none; }
.paginator li.active a { background: var(--wd-navy); color: #fff; }
.paginator li.disabled a { color: #b3bcc8; pointer-events: none; }

/* ---------- Confirmation dialog (wdConfirm() in the layout) ---------- */

.wd-dialog {
	width: 440px;
	max-width: calc(100vw - 32px);
	padding: 0;
	border: 0;
	border-top: 4px solid var(--wd-orange);
	border-radius: var(--wd-radius);
	background: var(--wd-card);
	color: var(--wd-ink);
	box-shadow: 0 12px 40px rgba(20, 43, 74, .3);
}
.wd-dialog::backdrop { background: rgba(20, 43, 74, .45); }
.wd-dialog[open] { animation: wd-dialog-in .14s ease-out; }
@keyframes wd-dialog-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .wd-dialog[open] { animation: none; } }
.wd-dialog form { padding: 22px 24px 18px; }
.wd-dialog__title { margin: 0 0 8px; color: var(--wd-navy); font-size: 19px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.wd-dialog__message { margin: 0 0 20px; color: var(--wd-muted); overflow-wrap: anywhere; }
.wd-dialog__message:empty { display: none; }
.wd-dialog__buttons { display: flex; justify-content: flex-end; gap: 10px; }
.wd-dialog__buttons .button { margin: 0; }
.wd-dialog button.wd-dialog__cancel { background: #fff; color: var(--wd-navy); }
.wd-dialog button.wd-dialog__cancel:hover { background: var(--wd-pill); }
.wd-dialog button.wd-dialog__ok.is-danger { background: var(--wd-red); border-color: var(--wd-red); }
.wd-dialog button.wd-dialog__ok.is-danger:hover { background: #a52e18; }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
	body { font-size: 16px; }

	.wd-dialog__buttons { flex-direction: column-reverse; }
	.wd-dialog__buttons .button { width: 100%; min-height: 46px; font-size: 15px; }

	.wd-header__bar { padding: 10px 14px; gap: 10px; }
	.wd-brand { gap: 10px; }
	.wd-brand__logo { height: 24px; }
	.wd-brand__name { font-size: 17px; padding-left: 10px; }
	.wd-account { display: none; }
	.wd-menu-toggle { display: inline-block; flex: 0 0 auto; }

	/* Collapsible menu */
	.wd-nav { display: none; max-height: calc(100vh - 62px); overflow-y: auto; }
	.wd-nav-open .wd-nav { display: block; }
	.wd-nav__list { flex-direction: column; gap: 0; padding: 4px 14px 12px; }
	.wd-nav__item > a,
	.wd-nav__group-label { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.wd-nav__item.is-current > a,
	.wd-nav__item.is-current > .wd-nav__group-label { border-bottom-color: rgba(255, 255, 255, .1); }
	.wd-nav__group-label { color: #9fb6d3; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; cursor: default; }
	.wd-nav__caret { display: none; }
	.wd-nav__sub {
		position: static; visibility: visible; opacity: 1; transform: none;
		background: transparent; box-shadow: none; padding: 0 0 6px; min-width: 0;
	}
	.wd-nav__sub a { color: #fff; padding: 11px 12px; font-size: 16px; }
	.wd-nav__sub a:hover, .wd-nav__sub a.is-current { background: rgba(255, 255, 255, .1); }
	.wd-nav__account { display: flex; gap: 18px; padding-top: 10px; }
	.wd-nav__account a { padding: 10px 4px; color: #cfe0f5; font-weight: 600; }

	.wd-main { padding: 14px 10px 4px; }
	.wd-card { padding: 18px 16px 20px; border-radius: 8px; }
	.wd-page-title { font-size: 21px; margin-bottom: 14px; }

	/* Inputs: full width, 16px text so iOS doesn't zoom on focus */
	.wd-card input[type="text"],
	.wd-card input[type="password"],
	.wd-card input[type="email"],
	.wd-card input[type="tel"],
	.wd-card input[type="number"],
	.wd-card select,
	.wd-card textarea { max-width: 100%; font-size: 16px; }

	/* Detail tables: label above value */
	table.adminDetails, table.adminDetails > tbody, table.adminDetails > tbody > tr,
	table.adminDetails > tbody > tr > th, table.adminDetails > tbody > tr > td,
	table.adminDetails > tr, table.adminDetails > tr > th, table.adminDetails > tr > td { display: block; width: 100%; }
	table.adminDetails > tbody > tr > th, table.adminDetails > tr > th { padding: 12px 0 4px !important; }
	table.adminDetails > tbody > tr > td, table.adminDetails > tr > td { padding: 0 0 6px; }
	table.adminDetails > tbody > tr > th:empty, table.adminDetails > tbody > tr > td:empty { display: none; }
	table.adminDetails td.buttons { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
	table.adminDetails td.buttons .button,
	table.adminDetails td.buttons input { flex: 1 1 140px; margin: 0; }

	/* List tables: each row becomes a card */
	table.adminList, table.adminList > tbody, table.adminList tr, table.adminList td { display: block; width: 100% !important; }
	table.adminList tr:has(> th) { display: none; }
	table.adminList tr {
		border: 1px solid var(--wd-line);
		border-radius: 10px;
		padding: 12px 14px;
		margin-bottom: 10px;
		background: #fff;
	}
	table.adminList tr:hover > td { background: transparent; }
	table.adminList td { border: 0; padding: 2px 0; text-align: left !important; }
	table.adminList td:first-child { font-size: 16px; }
	table.adminList td[data-label]:not(:first-child)::before {
		content: attr(data-label) ": ";
		color: var(--wd-muted);
		font-size: 13px;
		font-weight: 600;
	}
	table.adminList td.tright,
	table.adminList td:last-child:has(a.iconLink) { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
	table.adminList td.tright a.iconLink { margin: 0; }
	table.adminList td:empty { display: none; }

	/* Nested lists inside forms keep a lighter style */
	table.adminDetails table.adminList tr { padding: 10px 12px; }
	table.adminDetails table.adminList td:first-child { white-space: normal; }

	.paginator a { min-width: 40px; padding: 9px 10px; }
}

.wd-empty { color: var(--wd-muted); padding: 18px; text-align: center; background: #f7f9fc; border-radius: 8px; }

/* ---------- Refinements ---------- */

/* Action cells keep their buttons on one line on desktop */
table.adminList td:last-child:has(a.iconLink) { width: 1%; white-space: nowrap; }
table.adminList td[colspan]:has(a.iconLink) { width: auto; }
table.adminList td > img.icon:first-child { margin-right: 8px; }

a.test-connection {
	display: inline-flex;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--wd-pill);
	color: var(--wd-navy);
	font-size: 13px;
	font-weight: 600;
}
a.test-connection:hover { background: #d9e2f0; text-decoration: none; }
td.tright img { vertical-align: middle; margin-right: 4px; }

@media (max-width: 760px) {
	/* "Add new step" style rows aren't cards */
	table.adminList tr:has(> td[colspan]) { border: 0; padding: 4px 0 0; margin: 0; background: transparent; }
	.wd-nav__account a { border-bottom: 0 !important; }
	table.adminList td:last-child:has(a.iconLink) { width: 100% !important; white-space: normal; }
}

/* ---------- User access ---------- */
.wd-pill--danger { background: #fbeae4; color: var(--wd-red); }
.wd-pill--success { background: #e6f4ea; color: var(--wd-green); }
table.adminList tr.is-disabled > td:not(:last-child) { opacity: .55; }
table.adminList tr.is-disabled > td[data-label="Access"] { opacity: 1; }
a.iconLink:has(img[src*="noentry"]) { background: #fbeae4; color: var(--wd-red); }
a.iconLink:has(img[src*="noentry"]):hover { background: #f6d6ca; }

/* ---------- Signed out: sign-in and forgot password (a small centred card, no menu) ---------- */

.wd-auth { min-height: 100vh; }
.wd-auth__main {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px 8px;
}
.wd-auth__brand { text-align: center; margin-bottom: 22px; }
.wd-auth__logo { height: 40px; width: auto; display: inline-block; }
.wd-auth__app {
	margin-top: 10px;
	color: var(--wd-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.wd-auth__card {
	position: relative; /* for the loading overlay */
	width: 100%;
	max-width: 400px;
	border-radius: 12px;
	padding: 32px 32px 26px;
	box-shadow: 0 1px 2px rgba(20, 43, 74, .06), 0 10px 30px rgba(20, 43, 74, .10);
}
.wd-auth__card .wd-page-title { margin-bottom: 4px; }
.wd-auth__card .wd-auth__sub { color: var(--wd-muted); margin-bottom: 22px; }
.wd-auth__card input[type="text"],
.wd-auth__card input[type="tel"],
.wd-auth__card input[type="password"],
.wd-auth__card select { width: 100%; max-width: none; min-height: 44px; }
.wd-field { margin-bottom: 16px; }
.wd-field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.wd-field--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; font-size: 14px; }
.wd-field--check { display: inline-flex; align-items: center; }
.wd-field--check > label { margin: 0; font-size: 14px; font-weight: 400; }
.wd-card input.wd-button--block { display: flex; width: 100%; min-height: 46px; font-size: 15px; }
.wd-auth__secure, .wd-auth__back { margin: 18px 0 0 !important; text-align: center; color: var(--wd-muted); font-size: 12.5px; }
.wd-auth__back { font-size: 14px; }
.wd-auth__secure::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	vertical-align: -1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wd-auth .wd-footer { padding-top: 22px; }

/* The steps after the password (2FA code, 2FA set-up, new password): login.js shows one at a time */
.wd-auth__step { display: none; }
.wd-auth__step .wd-auth__sub label { font: inherit; margin: 0; }
.wd-auth__card input.wd-code {
	display: block;
	min-height: 58px;
	padding: 8px 0;
	font: 600 28px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .45em;
	text-indent: .45em; /* balances the space letter-spacing leaves after the last digit */
	text-align: center;
}
.wd-auth__card input.wd-code::placeholder { color: #cfd6e0; }
.wd-auth__hint { margin: 10px 0 0 !important; text-align: center; color: var(--wd-muted); font-size: 13px; }
.wd-auth__hint--left { text-align: left; }
.wd-auth__step .wd-auth__back { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid var(--wd-line); }
.wd-auth__back a::before { content: "\2190\00a0"; }

/* 2FA method choice: two big buttons */
.wd-option {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 14px 40px 14px 16px;
	border: 1px solid #c8d0dc;
	border-radius: 10px;
	background: #fff;
	color: var(--wd-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.wd-option:hover, .wd-option:focus-visible { outline: none; border-color: var(--wd-blue); box-shadow: 0 0 0 3px rgba(31, 95, 168, .18); }
.wd-option::after { content: "\203A"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--wd-muted); font-size: 24px; line-height: 1; }
.wd-option__title { display: block; font-weight: 600; margin-bottom: 3px; }
.wd-option__title .wd-pill { margin-left: 6px; vertical-align: 1px; }
.wd-option__text { display: block; color: var(--wd-muted); font-size: 13.5px; line-height: 1.45; }

/* Authenticator set-up: numbered instructions, the QR code, the key to type in by hand */
.wd-auth__num { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; font-size: 14px; font-weight: 600; }
.wd-auth__num label { display: flex; align-items: center; gap: 10px; margin: 0; font: inherit; }
.wd-auth__num span {
	flex: 0 0 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wd-navy);
	color: #fff;
	font-size: 12px;
	line-height: 24px;
	text-align: center;
}
.wd-qr { display: flex; justify-content: center; margin: 0 0 10px; }
.wd-qr img, .wd-qr canvas { padding: 10px; background: #fff; border: 1px solid var(--wd-line); border-radius: 10px; }
.wd-auth__key { margin: 0 0 20px; text-align: center; font-size: 13px; }
.wd-auth__key summary { color: var(--wd-blue); cursor: pointer; }
.wd-auth__key p { margin: 8px 0 0 !important; color: var(--wd-muted); }
.wd-auth__key code { display: block; margin-top: 6px; color: var(--wd-ink); font-size: 14px; letter-spacing: .05em; word-break: break-all; }

@media (max-width: 760px) {
	.wd-auth__main { justify-content: flex-start; padding-top: 40px; }
	.wd-auth__card { padding: 26px 20px 22px; }
}
