/* ============================================================
   Layout6 — dark cinematic public shell
   Amber brass + steel accents; LeftPane6 desktop rail;
   mobile panel slides from the RIGHT
   ============================================================ */

html.layout6 { height: 100%; }

html.layout6,
.layout6-body {
	--l6-ink: #0e1218;
	--l6-void: #151b24;
	--l6-panel: #1c2430;
	--l6-lift: #243041;
	--l6-line: #2e3a4a;
	--l6-mute: #8a97a8;
	--l6-snow: #e8edf4;
	--l6-paper: #f4f6f9;
	--l6-amber: #e4a44a;
	--l6-amber-deep: #c4842a;
	--l6-steel: #6eb4c6;
	--l6-rail: 272px;
	--l6-nav-h: 48px;
	--l6-font: "Sora", "Segoe UI", Tahoma, Geneva, sans-serif;
	--l6-display: "Big Shoulders Display", "Sora", sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: var(--l6-font);
	color: var(--l6-snow);
	background:
		radial-gradient(1200px 600px at 100% -10%, rgba(228, 164, 74, 0.12), transparent 55%),
		radial-gradient(900px 500px at -10% 100%, rgba(110, 180, 198, 0.10), transparent 50%),
		linear-gradient(180deg, var(--l6-ink) 0%, var(--l6-void) 100%);
	background-attachment: fixed;
}

.layout6-body > form#form1 {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.layout6-shell {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ----- Banner header ----- */
.layout6-header {
	position: relative;
	flex-shrink: 0;
	background: var(--l6-void);
	border-bottom: 1px solid var(--l6-line);
	overflow: hidden;
}
.layout6-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--l6-amber) 0%, var(--l6-steel) 45%, transparent 100%);
	pointer-events: none;
}

img.layout6-home-link,
img#cHomeLink {
	display: none !important;
}

.layout6-header-html { width: 100%; }
.layout6-header-html table { width: 100% !important; }
.layout6-header-html img {
	display: block;
	max-width: 100%;
	height: auto;
}

.layout6-body-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.layout6-toolbar-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100% !important;
	min-height: 0;
}

/* ----- Sticky top bar ----- */
#cTDMasterToolbarDIV.layout6-nav,
.layout6-nav {
	display: block !important;
	visibility: visible !important;
	position: sticky;
	top: 0;
	z-index: 200;
	flex-shrink: 0;
	background: rgba(14, 18, 24, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--l6-line);
}

.layout6-nav-inner {
	display: flex;
	align-items: center;
	min-height: var(--l6-nav-h);
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0 10px 0 6px;
	gap: 6px;
	box-sizing: border-box;
}

.layout6-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 38px;
	padding: 0 12px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--l6-snow) !important;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.layout6-nav-btn:hover,
.layout6-nav-btn:focus {
	background: var(--l6-lift) !important;
	outline: none;
}

.layout6-nav-menu { display: none; }

@media (max-width: 900px) {
	.layout6-nav-menu {
		display: inline-flex !important;
		min-width: 48px;
		height: 40px;
		border: 1px solid var(--l6-line);
		background: var(--l6-panel) !important;
		margin-left: 4px;
	}
	.layout6-nav-menu:hover,
	.layout6-nav-menu:focus {
		border-color: var(--l6-amber);
		background: var(--l6-lift) !important;
	}
}

.layout6-burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 20px;
}
.layout6-burger span {
	display: block;
	height: 2px;
	background: var(--l6-amber);
	border-radius: 1px;
}

.layout6-nav-spacer { flex: 1; min-width: 0; }

.layout6-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;
}

.layout6-nav-share { display: none; }

.layout6-nav-signin {
	border: 1px solid var(--l6-line);
	background: var(--l6-panel) !important;
	color: var(--l6-amber) !important;
}
.layout6-nav-signin:hover {
	border-color: var(--l6-amber);
	color: var(--l6-snow) !important;
}

#janrainEngageShare,
#janrainEngageSignIn {
	color: var(--l6-amber) !important;
	font-weight: 700;
	font-size: 13px;
	font-family: var(--l6-font);
}

.layout6-nav-collapse {
	opacity: 0.5;
	min-width: 40px;
}
.layout6-nav-collapse img { filter: invert(1) opacity(0.75); }

/* ----- Workspace ----- */
.layout6-workspace {
	flex: 1;
	display: flex;
	align-items: stretch;
	min-height: 0;
	max-width: none;
	width: 100%;
	margin: 0;
	position: relative;
}

/* Dark rail */
.layout6-panel {
	flex: 0 0 var(--l6-rail);
	width: var(--l6-rail);
	background: linear-gradient(180deg, var(--l6-panel) 0%, var(--l6-void) 100%);
	border-right: 1px solid var(--l6-line);
	display: flex;
	flex-direction: column;
	min-height: 280px;
	z-index: 220;
	box-shadow: inset -1px 0 0 rgba(228, 164, 74, 0.08);
}

.layout6-panel-head {
	display: none;
	align-items: center;
	justify-content: flex-end;
	padding: 16px 18px 12px;
	border-bottom: 1px solid var(--l6-line);
	background: var(--l6-ink);
}

.layout6-panel-title {
	font-family: var(--l6-display);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--l6-amber);
}

.layout6-panel-close {
	width: 36px;
	height: 36px;
	border: 1px solid var(--l6-line);
	border-radius: 4px;
	background: var(--l6-panel);
	color: var(--l6-snow);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.layout6-panel-close:hover {
	border-color: var(--l6-amber);
	color: var(--l6-amber);
}

.layout6-panel-backdrop {
	display: none;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(8, 10, 14, 0.62);
}

/* Pane */
.layout6-pane {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.layout6-pane-brand {
	padding: 22px 20px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.layout6-pane-brand-kicker {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--l6-steel);
}
.layout6-pane-brand-text {
	font-family: var(--l6-display);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--l6-snow);
}

.layout6-pane-scroll {
	flex: 1;
	overflow: auto;
	padding: 4px 12px 24px;
	-webkit-overflow-scrolling: touch;
}

.layout6-pane-featured { margin: 0 0 14px; }
.layout6-pane-featured-item {
	padding: 11px 12px;
	margin-bottom: 6px;
	border-radius: 4px;
	border: 1px solid rgba(228, 164, 74, 0.35);
	background: linear-gradient(135deg, rgba(228, 164, 74, 0.16), rgba(110, 180, 198, 0.08));
	color: var(--l6-amber);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.layout6-pane-featured-item:hover {
	border-color: var(--l6-amber);
	transform: translateX(2px);
	background: linear-gradient(135deg, rgba(228, 164, 74, 0.24), rgba(110, 180, 198, 0.12));
}

.layout6-pane-section { margin: 0 0 16px; }

.layout6-pane-section-head,
.MenuItemHeader.layout6-pane-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 10px;
	margin: 0;
	border: 0 !important;
	border-radius: 4px;
	background: transparent !important;
	cursor: pointer;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--l6-steel) !important;
}
.layout6-pane-section-head::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--l6-amber);
	border-bottom: 2px solid var(--l6-amber);
	transform: rotate(45deg);
	margin-left: 8px;
	flex-shrink: 0;
	opacity: 0.85;
}
.layout6-pane-section-head:hover { background: var(--l6-lift) !important; }
.layout6-pane-section-head label,
.layout6-pane-section-head span {
	color: inherit !important;
	cursor: pointer;
	font-weight: 700;
}

.layout6-pane-section-body,
.LeftPanelWebPagesItems.layout6-pane-section-body {
	padding: 2px 0 0 2px;
	border-left: 2px solid var(--l6-line);
	margin: 2px 0 0 10px;
}

.layout6-pane-link,
.MenuItem.layout6-pane-link {
	padding: 9px 12px;
	margin: 2px 0;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--l6-snow) !important;
	line-height: 1.35;
	transition: background 120ms ease, color 120ms ease, padding-left 120ms ease;
}
.layout6-pane-link:hover,
.MenuItem.layout6-pane-link:hover {
	background: var(--l6-lift);
	color: var(--l6-amber) !important;
	padding-left: 16px;
}

.layout6-pane-link-nested {
	padding-left: 18px !important;
	font-weight: 500;
	color: var(--l6-mute) !important;
	font-size: 13.5px;
}
.layout6-pane-link-nested:hover {
	color: var(--l6-steel) !important;
}

.layout6-pane-subject-head {
	padding: 7px 8px;
	margin-top: 2px;
	border-radius: 4px;
	cursor: pointer;
}
.layout6-pane-subject-head:hover { background: var(--l6-lift); }

.layout6-pane-subject-table {
	width: 100%;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--l6-snow);
}
.layout6-pane-subject-table td {
	color: var(--l6-snow) !important;
	border: 0 !important;
}

.layout6-pane-subject-table img {
	opacity: 0.45;
	width: 6px !important;
	height: 6px !important;
	filter: invert(1);
}

.layout6-pane-custom {
	padding: 12px 16px 18px;
	border-top: 1px solid var(--l6-line);
	font-size: 12px;
	color: var(--l6-mute);
}

/* Main — fills workspace beside the rail (no narrow reading-slab trap) */
.layout6-main {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	padding: 16px 18px 28px;
	box-sizing: border-box;
}

.layout6-main-inner {
	max-width: none;
	width: 100%;
	margin: 0;
	background: var(--l6-paper);
	color: #1a222c;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 12px 28px rgba(0, 0, 0, 0.22);
	padding: 16px 18px 22px;
	min-height: 200px;
	position: relative;
	box-sizing: border-box;
	overflow-x: auto;
}
.layout6-main-inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 6px 6px 0 0;
	background: linear-gradient(90deg, var(--l6-amber), var(--l6-steel));
	pointer-events: none;
}

.layout6-main-inner a { color: #1f6f82; }
.layout6-main-inner a:hover { color: var(--l6-amber-deep); }
.layout6-main-inner h1,
.layout6-main-inner h2,
.layout6-main-inner h3 {
	font-family: var(--l6-display);
	color: #121820;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 700;
}
/* height:auto on ALL imgs overrides HTML height="70px" attrs → gear/money explode to natural 200px */
.layout6-main-inner img { max-width: 100%; }
.layout6-main-inner img:not([height]) { height: auto; }
.layout6-main-inner table { max-width: none; }
.layout6-main-inner font { line-height: 1.55; }

/* ============================================================
   Authenticated RailStay — permanent left rail stays;
   only widen/soften the stage beside it (no overlay workbench)
   ============================================================ */
html.layout6-app .layout6-main,
.layout6-body.layout6-app .layout6-main {
	padding: 10px 12px 18px;
}
html.layout6-app .layout6-main-inner,
.layout6-body.layout6-app .layout6-main-inner {
	border-radius: 4px;
	padding: 8px 10px 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	min-height: calc(100vh - 160px);
	/* visible so Authenticated balloon/modals are not clipped */
	overflow: visible;
	color: #1a222c;
}
html.layout6-app .layout6-shell,
html.layout6-app .layout6-body-wrap,
html.layout6-app .layout6-toolbar-panel,
html.layout6-app .layout6-workspace,
.layout6-body.layout6-app .layout6-shell,
.layout6-body.layout6-app .layout6-body-wrap,
.layout6-body.layout6-app .layout6-toolbar-panel,
.layout6-body.layout6-app .layout6-workspace {
	overflow: visible;
}
/* Content tips only — exclude #balloonLogin (has its own card styles) */
html.layout6 .balloonstyle:not(#balloonLogin),
html.layout6-app .balloonstyle:not(#balloonLogin),
.layout6-body .balloonstyle:not(#balloonLogin) {
	z-index: 10050 !important;
	position: absolute !important;
	/* tips may be moved to body; do not inherit shell snow text */
	color: #1a222c !important;
	background-color: #f4f6f9 !important;
	background: #f4f6f9 !important;
}
html.layout6 .balloonstyle:not(#balloonLogin) *,
html.layout6-app .balloonstyle:not(#balloonLogin) *,
.layout6-body .balloonstyle:not(#balloonLogin) * {
	color: #1a222c !important;
}
html.layout6 #balloonLogin,
html.layout6-app #balloonLogin,
.layout6-body #balloonLogin {
	z-index: 10050 !important;
	position: absolute !important;
}
html.layout6-app .layout6-main-inner::before,
.layout6-body.layout6-app .layout6-main-inner::before {
	height: 2px;
}
html.layout6-app .layout6-main-inner h1,
html.layout6-app .layout6-main-inner h2,
html.layout6-app .layout6-main-inner h3,
.layout6-body.layout6-app .layout6-main-inner h1,
.layout6-body.layout6-app .layout6-main-inner h2,
.layout6-body.layout6-app .layout6-main-inner h3 {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

/*
  Dark shell body color is light (#e8edf4). Tables often take body text color
  (quirks / legacy table inheritance) instead of .layout6-main-inner — which
  makes Animal Management tabs/rows invisible on cream/gray cells.
*/
html.layout6-app .layout6-main-inner,
html.layout6-app .layout6-main-inner table,
html.layout6-app .layout6-main-inner tbody,
html.layout6-app .layout6-main-inner tr,
html.layout6-app .layout6-main-inner td,
html.layout6-app .layout6-main-inner th,
html.layout6-app .layout6-main-inner font,
html.layout6-app .layout6-main-inner span,
html.layout6-app .layout6-main-inner label,
html.layout6-app .layout6-main-inner div,
html.layout6-app .layout6-main-inner p {
	color: #1a222c !important;
}
html.layout6-app .layout6-main-inner a {
	color: #1f6f82 !important;
}
/* Land of Oz dark chrome expects light text (Layout6 forced body color above) */
html.layout6-app .layout6-main-inner .oz-video-toggle,
html.layout6-app .layout6-main-inner .oz-video-toggle *,
html.layout6-app .layout6-main-inner .oz-table-cell,
html.layout6-app .layout6-main-inner .oz-table-cell *,
html.layout6-app .layout6-main-inner .oz-explore-btn,
html.layout6-app .layout6-main-inner .oz-explore-btn *,
html.layout6-app .layout6-main-inner .oz-column-explore,
html.layout6-app .layout6-main-inner .oz-column-explore *,
html.layout6-app .layout6-main-inner .oz-ops-card,
html.layout6-app .layout6-main-inner .oz-ops-card * {
	color: #ffffff !important;
}
/*
  Active blue tab: white label only when the live style background is blue.
  Do NOT key off bgcolor="" — Authenticated.js leaves stale bgcolor="#0099FF"
  on inactive tabs (My Animal Management starts with that attribute in markup).
*/
html.layout6-app .layout6-main-inner td[style*="background-color:#0099FF"],
html.layout6-app .layout6-main-inner td[style*="background-color: #0099FF"],
html.layout6-app .layout6-main-inner td[style*="background-color:#0099ff"],
html.layout6-app .layout6-main-inner td[style*="background-color: #0099ff"],
html.layout6-app .layout6-main-inner td[style*="background-color:rgb(0, 153, 255)"],
html.layout6-app .layout6-main-inner td[style*="background-color: rgb(0, 153, 255)"] {
	color: #ffffff !important;
}

/*
  Pedigree sex fills — proc <style> uses background-color:ffcccc / ccccff WITHOUT '#'.
  That is valid only in quirks mode (prod Main.master). Layout6 is standards mode,
  so those colors are dropped unless we redefine with proper hex.
*/
html.layout6-app .femalePedigree,
html.layout6-app .femalePedigreeBack,
.layout6-body .femalePedigree,
.layout6-body .femalePedigreeBack {
	background-color: #ffcccc !important;
}
html.layout6-app .malePedigree,
html.layout6-app .malePedigreeBack,
.layout6-body .malePedigree,
.layout6-body .malePedigreeBack {
	background-color: #ccccff !important;
}

/* Unlock Authenticated fixed widths inside the column beside the rail */
html.layout6-app #Table0,
.layout6-body.layout6-app #Table0 {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	text-align: left !important;
	box-sizing: border-box;
}
html.layout6-app #cAuthDiv0,
html.layout6-app #cTDAuthenticatedNow,
html.layout6-app #cAuthenticatedNow,
html.layout6-app #cDiv1,
html.layout6-app #cDiv2,
html.layout6-app #cDiv3,
html.layout6-app #cAccount,
html.layout6-app #cDiv5,
html.layout6-app #cDiv6,
html.layout6-app #cDiv7,
html.layout6-app #cDiv8,
html.layout6-app #cDiv9,
html.layout6-app #cDiv10 {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}

/* Footer */
.layout6-footer {
	flex-shrink: 0;
	background: rgba(14, 18, 24, 0.96);
	border-top: 1px solid var(--l6-line);
	color: var(--l6-mute);
}
.layout6-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;
}
.layout6-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 13px;
	font-weight: 600;
}
.layout6-footer-link,
.layout6-footer-links span { color: var(--l6-mute) !important; }
.layout6-footer-link:hover,
.layout6-footer-links span:hover { color: var(--l6-amber) !important; }
.layout6-footer-tools { display: flex; align-items: center; gap: 10px; }
.layout6-login-status,
.layout6-footer label,
.layout6-footer small { color: var(--l6-mute) !important; }
.layout6-footer-icon { filter: drop-shadow(0 0 0 transparent); }

@media (min-width: 901px) {
	#cToggleMobileStandardMenu0 { display: none !important; }
}

/* Login */
#balloonLogin.layout6-login {
	width: 400px !important;
	background: transparent !important;
	padding: 0 !important;
	border: 0 !important;
}
.layout6-login-card {
	background: var(--l6-panel);
	border: 1px solid var(--l6-line);
	border-radius: 6px;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(228, 164, 74, 0.15);
	overflow: hidden;
	color: var(--l6-snow);
}
.layout6-login-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--l6-ink);
	border-bottom: 1px solid var(--l6-line);
	color: var(--l6-amber);
}
.layout6-login-title {
	font-family: var(--l6-display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.layout6-login-close {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
}
.layout6-login-close img { filter: invert(1); }
.layout6-login-social { padding: 16px; text-align: center; }
.layout6-login-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 18px 10px;
	color: var(--l6-mute);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.layout6-login-divider::before,
.layout6-login-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--l6-line);
}
.layout6-login-form {
	padding: 4px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.layout6-login-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--l6-steel);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 6px;
}
.layout6-login-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--l6-line);
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: var(--l6-font);
	background: var(--l6-void);
	color: var(--l6-snow);
}
.layout6-login-input:focus {
	outline: none;
	border-color: var(--l6-amber);
	box-shadow: 0 0 0 3px rgba(228, 164, 74, 0.18);
}
.layout6-login-actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.layout6-btn {
	flex: 1;
	min-width: 120px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 4px;
	padding: 10px 14px;
	font-family: var(--l6-font);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid transparent;
}
.layout6-btn-ghost {
	background: transparent;
	border-color: var(--l6-line);
	color: var(--l6-snow);
}
.layout6-btn-ghost:hover { border-color: var(--l6-steel); color: var(--l6-steel); }
.layout6-btn-primary {
	background: var(--l6-amber);
	color: #1a1408;
	border-color: var(--l6-amber);
}
.layout6-btn-primary:hover { background: #f0b45c; }
.layout6-login-error {
	color: #ff8a80;
	font-weight: 700;
	min-height: 1.2em;
	margin-top: 8px;
	font-size: 13px;
}

/* ----- Mobile: panel from the RIGHT (opposite of Layout7) ----- */
@media (max-width: 900px) {
	.layout6-nav-menu { display: inline-flex; }
	.layout6-workspace { display: block; max-width: none; }

	.layout6-panel {
		position: fixed;
		top: 0;
		right: 0;
		left: auto;
		bottom: 0;
		width: min(88vw, 300px);
		max-width: min(88vw, 300px);
		flex: none;
		transform: translateX(105%);
		transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
		box-shadow: -10px 0 36px rgba(0, 0, 0, 0.45);
		z-index: 700;
		border-right: 0;
		border-left: 1px solid var(--l6-line);
	}
	.layout6-panel.is-open,
	.layout6-panel-open .layout6-panel { transform: translateX(0); }
	.layout6-panel-head { display: flex; }

	.layout6-panel-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		opacity: 0;
		pointer-events: none;
		transition: opacity 200ms ease;
		z-index: 650;
	}
	.layout6-panel-backdrop.is-open,
	.layout6-panel-open .layout6-panel-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.layout6-main { padding: 12px 10px 72px; }
	.layout6-main-inner { max-width: none; width: 100%; padding: 14px 12px 20px; }
	html.layout6-app .layout6-main,
	.layout6-body.layout6-app .layout6-main { padding: 10px 10px 72px; }
	html.layout6-app .layout6-main-inner,
	.layout6-body.layout6-app .layout6-main-inner { padding: 8px 10px 12px; }

	.layout6-header { max-height: 96px; }
	.layout6-header-html img {
		max-height: 96px;
		width: 100%;
		object-fit: cover;
	}

	.layout6-footer {
		position: sticky;
		bottom: 0;
		z-index: 400;
		background: rgba(14, 18, 24, 0.96);
		backdrop-filter: blur(10px);
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	#balloonLogin.layout6-login {
		width: min(400px, 94vw) !important;
		left: 50% !important;
		transform: translateX(-50%);
		z-index: 10060 !important;
	}
}

/* Authenticated mobile popup sheet — shell chrome, not host-zoom content */
html.layout6-auth-mobile #balloonMobileNav,
html.layout6-is-mobile #balloonMobileNav,
html.layout6-auth-mobile #balloonTasks,
html.layout6-is-mobile #balloonTasks,
html.layout6 #balloonMobileNav.layout-popup-sheet,
html.layout6 #balloonTasks.layout-popup-sheet {
	max-width: min(100vw - 24px, 420px) !important;
	width: min(100vw - 24px, 420px) !important;
	max-height: min(85vh, 720px) !important;
	box-sizing: border-box !important;
	color: #1a222c !important;
	background: #f4f6f9 !important;
	background-color: #f4f6f9 !important;
	border: 1px solid #c5ccd6 !important;
	border-radius: 10px !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
	padding: 10px !important;
	z-index: 10060 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
}
html.layout6-auth-mobile #balloonMobileNav *,
html.layout6-is-mobile #balloonMobileNav *,
html.layout6-auth-mobile #balloonTasks *,
html.layout6-is-mobile #balloonTasks *,
html.layout6 #balloonMobileNav.layout-popup-sheet *,
html.layout6 #balloonTasks.layout-popup-sheet * {
	color: #1a222c !important;
}
html.layout6-auth-mobile #cDiv8,
html.layout6-is-mobile #cDiv8,
html.layout6-auth-mobile #cDiv10,
html.layout6-is-mobile #cDiv10 {
	max-height: calc(100vh - 140px) !important;
	overflow: auto !important;
}
html.layout6-auth-mobile #cDiv8 iframe,
html.layout6-is-mobile #cDiv8 iframe,
html.layout6-auth-mobile #cDiv10 iframe,
html.layout6-is-mobile #cDiv10 iframe {
	max-height: calc(100vh - 160px) !important;
}

/*
   Class-driven mobile flyout (same rules as max-width:900px).
   Needed when Authenticated uses prod scale 0.45 and layout width exceeds 900px.
*/
html.layout6-is-mobile .layout6-nav-menu {
	display: inline-flex !important;
	min-width: 48px;
	height: 40px;
	border: 1px solid var(--l6-line);
	background: var(--l6-panel) !important;
	margin-left: 4px;
}
html.layout6-is-mobile .layout6-workspace { display: block; max-width: none; }
html.layout6-is-mobile .layout6-panel {
	position: fixed;
	top: 0;
	right: 0;
	left: auto;
	bottom: 0;
	width: min(88vw, 300px);
	max-width: min(88vw, 300px);
	flex: none;
	transform: translateX(105%);
	transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: -10px 0 36px rgba(0, 0, 0, 0.45);
	z-index: 700;
	border-right: 0;
	border-left: 1px solid var(--l6-line);
}
html.layout6-is-mobile .layout6-panel.is-open,
html.layout6-is-mobile.layout6-panel-open .layout6-panel { transform: translateX(0); }
html.layout6-is-mobile .layout6-panel-head { display: flex; }
html.layout6-is-mobile .layout6-panel-backdrop {
	display: block;
	position: fixed;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease;
	z-index: 650;
}
html.layout6-is-mobile .layout6-panel-backdrop.is-open,
html.layout6-is-mobile.layout6-panel-open .layout6-panel-backdrop {
	opacity: 1;
	pointer-events: auto;
}
html.layout6-is-mobile .layout6-main { padding: 12px 10px 72px; }
html.layout6-is-mobile.layout6-app .layout6-main { padding: 10px 10px 72px; }

/*
  Authenticated mobile grid host (class-driven — not media-query).
  Proc HTML assumes prod's document scale 0.45; Layout6 keeps viewport at 1 for the
  flyout, so scale only #cAuthenticatedNow. Do not clamp proc img/font sizes.
*/
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab9,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab7,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab8,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab1,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab6 {
	display: none !important;
}
/*
  Scale #Table0 (tab row + grid host) together — same 900px design width as prod.
  Do NOT wrap tab labels; do NOT zoom only #cAuthenticatedNow (that made tabs huge
  and the toolbar denser).
*/
html.layout6-app.layout6-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; /* fixed squeezed tabs into two uneven boxes */
}
html.layout6-app.layout6-auth-mobile #cAuthenticatedNow,
html.layout6-app.layout6-auth-mobile #cTDAuthenticatedNow,
html.layout6-app.layout6-auth-mobile #cAuthDiv0 {
	width: 100% !important;
	max-width: none !important;
	zoom: 1; /* inherit Table0 zoom only */
}
/* Shell max-width:100% on tables wraps toolbar — undo for auth grid */
html.layout6-app.layout6-auth-mobile .layout6-main-inner #Table0,
html.layout6-app.layout6-auth-mobile .layout6-main-inner #Table0 table,
html.layout6-app.layout6-auth-mobile .layout6-main-inner #cAuthenticatedNow,
html.layout6-app.layout6-auth-mobile .layout6-main-inner #cAuthenticatedNow table {
	max-width: none !important;
}
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab0,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab2,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab3,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTab4,
html.layout6-app.layout6-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;
}
/* Two ASPX tab tables sit side-by-side — drop outer frames so they read as one strip */
html.layout6-app.layout6-auth-mobile #cAuthenticatedTabDescriptiveTABLE,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTabAccountTABLE {
	white-space: nowrap !important;
	vertical-align: middle !important;
	padding: 0 !important;
}
html.layout6-app.layout6-auth-mobile #cAuthenticatedTabDescriptiveTABLE > table,
html.layout6-app.layout6-auth-mobile #cAuthenticatedTabAccountTABLE > table {
	white-space: nowrap !important;
	border: none !important;
	border-collapse: collapse !important;
	background: transparent !important;
	width: 100% !important;
}
html.layout6-app.layout6-auth-mobile #c_Header_QUADRANT1,
html.layout6-app.layout6-auth-mobile #c_Header_QUADRANT1 table {
	white-space: nowrap !important;
}
/*
  Host zoom owns scale. Shell no longer applies height:auto to img[height], so
  proc height="50|70px" attrs size toolbar/action icons (not natural 200–512px).
*/
html.layout6-app.layout6-auth-mobile #cAuthenticatedNow img,
html.layout6-app.layout6-auth-mobile #Table0 img {
	max-width: none !important;
	max-height: none !important;
}
/*
  Prod stacks "search :" above the input (width:100% wraps in the TD).
  Our header nowrap kept them inline and the input overlapped People Search.
*/
html.layout6-app.layout6-auth-mobile #c_Header_QUADRANT1 td:has(#cClientHistorySearch),
html.layout6-app.layout6-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.layout6-app.layout6-auth-mobile #cClientHistorySearch,
html.layout6-app.layout6-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.layout6-app.layout6-auth-mobile #c_Header_QUADRANT1 td {
	vertical-align: middle !important;
}
html.layout6-app.layout6-auth-mobile #c_Header_QUADRANT1 td:has(#cClientHistorySearch),
html.layout6-app.layout6-auth-mobile #c_Header_QUADRANT1 td.auth-search-cell {
	vertical-align: top !important;
}
html.layout6-app.layout6-auth-mobile .layout6-main {
	padding-left: 4px;
	padding-right: 4px;
}
html.layout6-app.layout6-auth-mobile .layout6-main-inner {
	overflow-x: hidden;
	overflow-y: auto;
	padding: 4px !important;
	-webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
	.layout6-panel,
	.layout6-panel-backdrop,
	.layout6-pane-link,
	.layout6-pane-featured-item { transition: none !important; }
}
