/* ============================================================
   Layout5 — indigo / sand / gold shell
   Nav: compact fixed cluster over left of banner (not a full-width bar).
   Menu sheet: top band overlay (not L6 left rail, not L7 drawer).
   ============================================================ */

html.layout5 { height: 100%; }

html.layout5,
.layout5-body {
	--l5-ink: #070b18;
	--l5-sky: #0b1430;
	--l5-horizon: #1a2748;
	--l5-lift: #243556;
	--l5-sand: #c4a574;
	--l5-dune: #e8d4b0;
	--l5-gold: #d4a84b;
	--l5-gold-bright: #f0c75e;
	--l5-mute: #8b9bb8;
	--l5-panel: #eef1f8;
	--l5-line: rgba(212, 168, 75, 0.35);
	--l5-glass: rgba(232, 212, 176, 0.08);
	--l5-nav-h: 48px;
	--l5-chrome-inset: 12px;
	--l5-band-max: 85vh;
	--l5-font: "IBM Plex Sans", "Segoe UI", Tahoma, Geneva, sans-serif;
	--l5-display: "Oxanium", "IBM Plex Sans", sans-serif;
	--l5-mono: "IBM Plex Mono", "Consolas", monospace;
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: var(--l5-font);
	color: var(--l5-dune);
	background:
		radial-gradient(1000px 520px at 85% -5%, rgba(212, 168, 75, 0.14), transparent 55%),
		radial-gradient(800px 480px at 0% 100%, rgba(26, 39, 72, 0.9), transparent 50%),
		linear-gradient(180deg, var(--l5-ink) 0%, var(--l5-sky) 45%, var(--l5-horizon) 100%);
	background-attachment: fixed;
}

.layout5-mono { font-family: var(--l5-mono); letter-spacing: 0.08em; }

.layout5-body > form#form1 {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.layout5-shell {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ----- Banner header (DB SetAs imagery) ----- */
.layout5-header {
	position: relative;
	flex-shrink: 0;
	background: var(--l5-sky);
	border-bottom: 1px solid var(--l5-line);
	overflow: hidden;
}
.layout5-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--l5-gold) 0%, transparent 70%);
	pointer-events: none;
}
/* Header image always visible — same on public home and authenticated */
img.layout5-home-link,
img#cHomeLink {
	display: none !important;
}

.layout5-header-html { width: 100%; }
.layout5-header-html table { width: 100% !important; }
.layout5-header-html img {
	display: block;
	max-width: 100%;
	height: auto;
}

.layout5-body-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.layout5-toolbar-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100% !important;
	min-height: 0;
}

/* ----- Chrome cluster: left of banner (no full-width bar — page space wins) ----- */
#cTDMasterToolbarDIV.layout5-nav,
.layout5-nav {
	display: block !important;
	visibility: visible !important;
	position: fixed;
	top: var(--l5-chrome-inset);
	left: var(--l5-chrome-inset);
	right: auto;
	width: auto;
	max-width: calc(100vw - (var(--l5-chrome-inset) * 2));
	z-index: 320;
	flex-shrink: 0;
	background: rgba(7, 11, 24, 0.82);
	backdrop-filter: blur(12px);
	border: 1px solid var(--l5-line);
	border-radius: 4px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.layout5-nav-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	min-height: var(--l5-nav-h);
	width: auto;
	margin: 0;
	padding: 4px 8px;
	gap: 6px;
	box-sizing: border-box;
}

/* Menu — always labeled Menu; same control on every page */
.layout5-menu-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--l5-gold);
	border-radius: 2px;
	background: var(--l5-gold);
	cursor: pointer;
	flex-shrink: 0;
	color: var(--l5-ink);
	transition: background 140ms ease, color 140ms ease;
}
.layout5-menu-btn-bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 16px;
}
.layout5-menu-btn-bars span {
	display: block;
	height: 2px;
	background: var(--l5-ink);
	border-radius: 1px;
}
.layout5-menu-btn-label {
	font-family: var(--l5-font);
	font-size: 14px;
	font-weight: 700;
	color: var(--l5-ink);
}
.layout5-menu-btn:hover,
.layout5-menu-btn:focus {
	background: var(--l5-gold-bright);
	outline: none;
}
html.layout5-band-open .layout5-menu-btn {
	background: transparent;
	color: var(--l5-gold);
}
html.layout5-band-open .layout5-menu-btn-label { color: var(--l5-gold); }
html.layout5-band-open .layout5-menu-btn-bars span { background: var(--l5-gold); }

.layout5-brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-decoration: none !important;
	min-width: 0;
	padding: 4px 0;
}
.layout5-brand-name {
	font-family: var(--l5-display);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: 0.12em;
	line-height: 1;
	color: var(--l5-dune) !important;
	text-transform: uppercase;
	padding: 0 4px;
}
.layout5-nav-spacer { display: none !important; }

.layout5-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 38px;
	padding: 0 12px;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: var(--l5-dune) !important;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.layout5-nav-btn:hover,
.layout5-nav-btn:focus {
	background: var(--l5-lift) !important;
	outline: none;
}

.layout5-nav-quick {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}
.layout5-nav-share { display: none; }

.layout5-nav-signin {
	border: 1px solid var(--l5-line);
	background: rgba(212, 168, 75, 0.08) !important;
	color: var(--l5-gold) !important;
	border-radius: 2px;
}
.layout5-nav-signin:hover {
	border-color: var(--l5-gold);
	color: var(--l5-dune) !important;
}
#janrainEngageShare,
#janrainEngageSignIn {
	color: var(--l5-gold) !important;
	font-weight: 700;
	font-size: 13px;
	font-family: var(--l5-font);
}
.layout5-nav-collapse { opacity: 0.55; min-width: 40px; }
.layout5-nav-collapse img { filter: invert(1) opacity(0.8); }
html.layout5-is-mobile .layout5-nav-collapse {
	display: none !important;
}

/* ----- Menu sheet: covers the page list; dismisses after you pick a page ----- */
.layout5-band-slot {
	position: relative;
	z-index: 290;
	flex-shrink: 0;
	height: 0;
}

.layout5-band {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--l5-nav-h);
	background: #0b1430;
	border-bottom: 1px solid var(--l5-line);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: max-height 260ms ease, opacity 160ms ease, transform 200ms ease;
	z-index: 295;
}

html.layout5-band-open .layout5-band,
.layout5-band.is-open {
	max-height: calc(100vh - var(--l5-band-top, var(--l5-nav-h)));
	opacity: 1;
	pointer-events: auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateY(0);
}

.layout5-band-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 14px 16px;
	border-bottom: 1px solid var(--l5-line);
	background: #070b18;
}
.layout5-band-title {
	font-family: var(--l5-font);
	font-size: 16px;
	font-weight: 700;
	color: var(--l5-dune);
}
.layout5-band-close {
	border: 1px solid var(--l5-line);
	background: transparent;
	color: var(--l5-gold);
	min-height: 40px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border-radius: 2px;
	font-family: var(--l5-font);
}
.layout5-band-close:hover { background: var(--l5-lift); }

.layout5-band-backdrop {
	display: block;
	position: fixed;
	inset: 0;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(7, 11, 24, 0.62);
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
	z-index: 280;
}
html.layout5-band-open .layout5-band-backdrop {
	opacity: 1;
	pointer-events: auto;
}

/* One clear vertical list — easy to scan and tap */
.layout5-pane {
	padding: 8px 12px 28px;
	max-width: 640px;
	margin: 0 auto;
}
.layout5-pane-brand {
	padding: 8px 8px 12px;
	border-bottom: 1px solid var(--l5-line);
	margin-bottom: 8px;
}
.layout5-pane-brand-text {
	font-family: var(--l5-font);
	font-weight: 600;
	font-size: 13px;
	color: var(--l5-mute);
}
.layout5-pane-scroll { display: block; }
.layout5-pane-section { margin: 0 0 10px; }
.layout5-pane-featured {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 14px;
}
.layout5-pane-featured-item {
	padding: 14px 12px;
	min-height: 48px;
	border: 1px solid var(--l5-line);
	border-radius: 2px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: var(--l5-dune);
	background: rgba(232, 212, 176, 0.06);
	display: flex;
	align-items: center;
	box-sizing: border-box;
}
.layout5-pane-featured-item:hover,
.layout5-pane-featured-item:active {
	border-color: var(--l5-gold);
	background: rgba(212, 168, 75, 0.14);
}
.layout5-pane-section-head,
.MenuItemHeader.layout5-pane-section-head {
	font-family: var(--l5-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--l5-sand) !important;
	padding: 14px 12px 6px;
	cursor: pointer;
	background: transparent !important;
	border: 0 !important;
}
.layout5-pane-section-head label,
.layout5-pane-section-head span {
	color: var(--l5-sand) !important;
	font-weight: 700;
}
.layout5-pane-link,
.MenuItem.layout5-pane-link {
	padding: 14px 12px;
	min-height: 48px;
	margin: 0;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	color: var(--l5-dune) !important;
	border-bottom: 1px solid rgba(212, 168, 75, 0.15);
	display: flex;
	align-items: center;
	box-sizing: border-box;
	transition: background 120ms ease, color 120ms ease;
}
.layout5-pane-link:hover,
.MenuItem.layout5-pane-link:hover,
.layout5-pane-link:active,
.MenuItem.layout5-pane-link:active {
	background: rgba(212, 168, 75, 0.12);
	color: var(--l5-gold-bright) !important;
}
/* Level 3 — pages under a subject (secondary; keep quieter) */
.layout5-pane-link-nested {
	padding-left: 36px;
	font-size: 15px;
	font-weight: 500;
	color: var(--l5-mute) !important;
}
/* Level 2 — Subjects / groups: same type as Level 1 page links; arrow is the differentiator */
.layout5-pane-subject-head {
	padding: 14px 12px;
	min-height: 48px;
	cursor: pointer;
	border-bottom: 1px solid rgba(212, 168, 75, 0.15);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	transition: background 120ms ease;
}
.layout5-pane-subject-head:hover {
	background: rgba(212, 168, 75, 0.12);
}
.layout5-pane-subject-table {
	width: 100%;
	border-collapse: collapse;
	color: var(--l5-dune) !important;
	font-family: var(--l5-font);
	font-size: 16px;
	font-weight: 500;
}
.layout5-pane-subject-table td {
	color: var(--l5-dune) !important;
	font-family: var(--l5-font) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	vertical-align: middle;
	padding: 0;
	border: 0;
}
.layout5-pane-subject-table td.LeftMenuContent {
	white-space: nowrap;
	padding-left: 10px;
}
.layout5-pane-subject-head:hover .layout5-pane-subject-table td {
	color: var(--l5-gold-bright) !important;
}
/* Prominent expand/collapse pointer — significant Level-2 identifier */
.layout5-pane-subject-table td:first-child {
	width: 28px;
	min-width: 28px;
	text-align: center;
}
.layout5-pane-subject-table img {
	width: 14px !important;
	height: 14px !important;
	display: inline-block;
	vertical-align: middle;
	/* Gold chevron from the tiny gif glyphs */
	filter: invert(72%) sepia(48%) saturate(650%) hue-rotate(5deg) brightness(1.05);
	transform: scale(1.35);
	transform-origin: center;
}
.layout5-pane-custom { margin-top: 12px; padding: 0 12px; color: var(--l5-mute); font-size: 13px; }

/* ----- Buttons ----- */
.layout5-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 2px;
	font-family: var(--l5-font);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.layout5-btn-primary {
	background: var(--l5-gold);
	color: var(--l5-ink) !important;
	border-color: var(--l5-gold-bright);
	box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
	position: relative;
}
.layout5-btn-primary::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 6px;
	height: 1px;
	background: var(--l5-ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 220ms ease;
}
.layout5-btn-primary:hover::after { transform: scaleX(1); }
.layout5-btn-ghost {
	background: transparent;
	color: var(--l5-dune) !important;
	border-color: var(--l5-line);
}
.layout5-btn-ghost:hover {
	border-color: var(--l5-gold);
	color: var(--l5-gold-bright) !important;
}

/* ----- Main stage ----- */
.layout5-main {
	flex: 1;
	min-width: 0;
	padding: 16px 18px 28px;
	box-sizing: border-box;
}
.layout5-main-inner {
	background: rgba(238, 241, 248, 0.96);
	color: #1a222c;
	border: 1px solid rgba(212, 168, 75, 0.2);
	border-radius: 2px;
	padding: 16px 18px 20px;
	min-height: 240px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
	position: relative;
	overflow: visible;
}
.layout5-main-inner::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--l5-gold), transparent 60%);
	pointer-events: none;
}
.layout5-main-inner table { max-width: 100%; }
.layout5-main-inner img { max-width: 100%; }

/* Authenticated stage */
html.layout5-app .layout5-main,
.layout5-body.layout5-app .layout5-main {
	padding: 10px 12px 18px;
}
html.layout5-app .layout5-main-inner,
.layout5-body.layout5-app .layout5-main-inner {
	border-radius: 2px;
	padding: 8px 10px 12px;
	min-height: calc(100vh - 200px);
	overflow: visible;
	color: #1a222c;
}
html.layout5-app .layout5-shell,
html.layout5-app .layout5-body-wrap,
html.layout5-app .layout5-toolbar-panel,
.layout5-body.layout5-app .layout5-shell,
.layout5-body.layout5-app .layout5-body-wrap,
.layout5-body.layout5-app .layout5-toolbar-panel {
	overflow: visible;
}

/* Tip popups only (liberated to body) — do not bleach in-page pedigree nodes */
body > .balloonstyle:not(#balloonLogin) {
	z-index: 10050 !important;
	position: absolute !important;
	color: #1a222c !important;
	background-color: #eef1f8 !important;
	background: #eef1f8 !important;
}
body > .balloonstyle:not(#balloonLogin) * {
	color: #1a222c !important;
}
html.layout5 #balloonLogin,
html.layout5-app #balloonLogin,
.layout5-body #balloonLogin {
	z-index: 10050 !important;
	position: absolute !important;
}

html.layout5-app .layout5-main-inner,
html.layout5-app .layout5-main-inner table,
html.layout5-app .layout5-main-inner tbody,
html.layout5-app .layout5-main-inner tr,
html.layout5-app .layout5-main-inner td,
html.layout5-app .layout5-main-inner th,
html.layout5-app .layout5-main-inner font,
html.layout5-app .layout5-main-inner span,
html.layout5-app .layout5-main-inner label,
html.layout5-app .layout5-main-inner div,
html.layout5-app .layout5-main-inner p {
	color: #1a222c !important;
}
html.layout5-app .layout5-main-inner a {
	color: #2a4a6e !important;
}
/* Land of Oz — do not bleach dark chrome */
html.layout5-app .layout5-main-inner .oz-video-toggle,
html.layout5-app .layout5-main-inner .oz-video-toggle *,
html.layout5-app .layout5-main-inner .oz-table-cell,
html.layout5-app .layout5-main-inner .oz-table-cell *,
html.layout5-app .layout5-main-inner .oz-explore-btn,
html.layout5-app .layout5-main-inner .oz-explore-btn *,
html.layout5-app .layout5-main-inner .oz-column-explore,
html.layout5-app .layout5-main-inner .oz-column-explore *,
html.layout5-app .layout5-main-inner .oz-ops-card,
html.layout5-app .layout5-main-inner .oz-ops-card * {
	color: #ffffff !important;
}

html.layout5-app .layout5-main-inner td[style*="background-color:#0099FF"],
html.layout5-app .layout5-main-inner td[style*="background-color: #0099FF"],
html.layout5-app .layout5-main-inner td[style*="background-color:#0099ff"],
html.layout5-app .layout5-main-inner td[style*="background-color: #0099ff"],
html.layout5-app .layout5-main-inner td[style*="background-color:rgb(0, 153, 255)"],
html.layout5-app .layout5-main-inner td[style*="background-color: rgb(0, 153, 255)"] {
	color: #ffffff !important;
}

/*
  Pedigree sex fills — proc emits background-color:ffcccc / ccccff without '#'.
  Standards mode drops those unless redefined with proper hex.
*/
html.layout5-app .femalePedigree,
html.layout5-app .femalePedigreeBack,
.layout5-body .femalePedigree,
.layout5-body .femalePedigreeBack {
	background-color: #ffcccc !important;
}
html.layout5-app .malePedigree,
html.layout5-app .malePedigreeBack,
.layout5-body .malePedigree,
.layout5-body .malePedigreeBack {
	background-color: #ccccff !important;
}

html.layout5-app #Table0,
.layout5-body.layout5-app #Table0 {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	text-align: left !important;
	box-sizing: border-box;
}
html.layout5-app #cAuthDiv0,
html.layout5-app #cTDAuthenticatedNow,
html.layout5-app #cAuthenticatedNow,
html.layout5-app #cDiv1,
html.layout5-app #cDiv2,
html.layout5-app #cDiv3,
html.layout5-app #cAccount,
html.layout5-app #cDiv5,
html.layout5-app #cDiv6,
html.layout5-app #cDiv7,
html.layout5-app #cDiv8,
html.layout5-app #cDiv9,
html.layout5-app #cDiv10 {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}

/* ----- Footer ----- */
.layout5-footer {
	flex-shrink: 0;
	background: rgba(7, 11, 24, 0.96);
	border-top: 1px solid var(--l5-line);
	color: var(--l5-mute);
}
.layout5-footer-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.layout5-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 13px;
	font-weight: 600;
}
.layout5-footer-link,
.layout5-footer-links span { color: var(--l5-mute) !important; }
.layout5-footer-link:hover,
.layout5-footer-links span:hover { color: var(--l5-gold) !important; }
.layout5-footer-tools { display: flex; align-items: center; gap: 10px; }
.layout5-login-status,
.layout5-footer label,
.layout5-footer small { color: var(--l5-mute) !important; }
.layout5-footer-auth {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 4px 10px;
	border: 1px solid var(--l5-line);
	border-radius: 2px;
	background: rgba(212, 168, 75, 0.08);
	color: var(--l5-gold);
	font-family: var(--l5-font);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.layout5-footer-auth:hover {
	border-color: var(--l5-gold);
	color: var(--l5-dune);
}
.layout5-footer-auth-label { white-space: nowrap; }
.layout5-footer-auth .layout5-footer-icon {
	height: 28px;
	width: 28px;
	display: block;
}
.layout5-footer-menu {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 4px 10px;
	border: 1px solid var(--l5-line);
	border-radius: 2px;
	background: rgba(212, 168, 75, 0.1);
	color: var(--l5-gold);
	font-family: var(--l5-font);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.layout5-footer-menu:hover {
	border-color: var(--l5-gold);
	color: var(--l5-dune);
}
.layout5-footer-menu-label { white-space: nowrap; }
.layout5-footer-menu .layout5-footer-icon {
	height: 28px;
	width: 28px;
	display: block;
}

@media (min-width: 901px) {
	#cToggleMobileStandardMenu0 { display: none !important; }
}

/* ----- Login balloon ----- */
#balloonLogin.layout5-login {
	width: 400px !important;
	background: transparent !important;
	padding: 0 !important;
	border: 0 !important;
}
.layout5-login-card {
	background: var(--l5-horizon);
	border: 1px solid var(--l5-line);
	border-radius: 2px;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 168, 75, 0.2);
	overflow: hidden;
	color: var(--l5-dune);
}
.layout5-login-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--l5-ink);
	border-bottom: 1px solid var(--l5-line);
}
.layout5-login-title {
	font-family: var(--l5-display);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.06em;
	color: var(--l5-gold);
}
.layout5-login-close {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 4px;
}
.layout5-login-close img { width: 16px; height: 16px; filter: invert(1); }
.layout5-login-social { padding: 12px 16px 0; }
.layout5-login-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	font-family: var(--l5-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--l5-mute);
}
.layout5-login-divider::before,
.layout5-login-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--l5-line);
}
.layout5-login-form { padding: 0 16px 16px; }
.layout5-login-label {
	display: block;
	font-family: var(--l5-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--l5-sand);
	margin: 8px 0 4px;
}
.layout5-login-input {
	width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid var(--l5-line);
	border-radius: 2px;
	background: var(--l5-ink);
	color: var(--l5-dune);
	font-family: var(--l5-font);
}
.layout5-login-input:focus {
	outline: none;
	border-color: var(--l5-gold);
}
.layout5-login-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.layout5-login-error {
	margin-top: 10px;
	color: #ff8a8a !important;
	font-size: 13px;
	min-height: 1.2em;
}

/* Authenticated mobile host-fit */
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab9,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab7,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab8,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab1,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab6 {
	display: none !important;
}
html.layout5-app.layout5-auth-mobile #Table0 {
	width: 900px !important;
	max-width: none !important;
	zoom: 0.45;
	transform-origin: top left;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
	table-layout: auto;
}
html.layout5-app.layout5-auth-mobile #cAuthenticatedNow,
html.layout5-app.layout5-auth-mobile #cTDAuthenticatedNow,
html.layout5-app.layout5-auth-mobile #cAuthDiv0 {
	width: 100% !important;
	max-width: none !important;
	zoom: 1;
}
html.layout5-app.layout5-auth-mobile .layout5-main-inner #Table0,
html.layout5-app.layout5-auth-mobile .layout5-main-inner #Table0 table,
html.layout5-app.layout5-auth-mobile .layout5-main-inner #cAuthenticatedNow,
html.layout5-app.layout5-auth-mobile .layout5-main-inner #cAuthenticatedNow table {
	max-width: none !important;
}
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab0,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab2,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab3,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab4,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTab5 {
	font-size: 15px !important;
	height: 35px !important;
	min-height: 35px !important;
	line-height: 33px !important;
	padding: 0 6px !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
	overflow: visible !important;
	border: 1px solid #ACA899 !important;
	box-sizing: border-box;
}
html.layout5-app.layout5-auth-mobile #cAuthenticatedTabDescriptiveTABLE,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTabAccountTABLE {
	white-space: nowrap !important;
	vertical-align: middle !important;
	padding: 0 !important;
}
html.layout5-app.layout5-auth-mobile #cAuthenticatedTabDescriptiveTABLE > table,
html.layout5-app.layout5-auth-mobile #cAuthenticatedTabAccountTABLE > table {
	white-space: nowrap !important;
	border: none !important;
	border-collapse: collapse !important;
	background: transparent !important;
	width: 100% !important;
}
html.layout5-app.layout5-auth-mobile #c_Header_QUADRANT1,
html.layout5-app.layout5-auth-mobile #c_Header_QUADRANT1 table {
	white-space: nowrap !important;
}
/* Do NOT blanket height:auto on img[height] — explodes toolbar icons */
html.layout5-app.layout5-auth-mobile #cAuthenticatedNow img,
html.layout5-app.layout5-auth-mobile #Table0 img {
	max-width: none !important;
	max-height: none !important;
}
html.layout5-app.layout5-auth-mobile #c_Header_QUADRANT1 td:has(#cClientHistorySearch),
html.layout5-app.layout5-auth-mobile #c_Header_QUADRANT1 td.auth-search-cell {
	white-space: normal !important;
	text-align: right !important;
	vertical-align: top !important;
	overflow: hidden !important;
	max-width: 220px;
}
html.layout5-app.layout5-auth-mobile #cClientHistorySearch,
html.layout5-app.layout5-auth-mobile #c_Header_QUADRANT1 input[type="text"] {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 36px !important;
	max-height: 36px !important;
	min-height: 0 !important;
	padding: 2px 6px !important;
	font-size: 16px !important;
	line-height: 20px !important;
	box-sizing: border-box !important;
	margin: 2px 0 0 0 !important;
	float: none !important;
}
html.layout5-app.layout5-auth-mobile #c_Header_QUADRANT1 td {
	vertical-align: middle !important;
}
html.layout5-app.layout5-auth-mobile #c_Header_QUADRANT1 td:has(#cClientHistorySearch),
html.layout5-app.layout5-auth-mobile #c_Header_QUADRANT1 td.auth-search-cell {
	vertical-align: top !important;
}
html.layout5-app.layout5-auth-mobile .layout5-main {
	padding-left: 4px;
	padding-right: 4px;
}
html.layout5-app.layout5-auth-mobile .layout5-main-inner {
	overflow-x: hidden;
	overflow-y: auto;
	padding: 4px !important;
	-webkit-overflow-scrolling: touch;
}
@media (prefers-reduced-motion: reduce) {
	.layout5-band,
	.layout5-band-backdrop,
	.layout5-btn-primary::after { animation: none !important; transition: none !important; }
}
