﻿/*********************************************************************************************************************************\
The portal shell: page layout, header, tab menu, footer, notifications, popups, the Welcome tab, the tab's panes, the module
chrome and the shared utility classes.

Colours come from portal-theme.css only (var(--portal-*)): never write a literal colour here. The rules here use today's class
names and element IDs (PAS.Portal.Web Content\site.css), because portal.ts and the module stylesheets select on them, but only
the classes the ported views use are styled: the rest of site.css (grid, date picker and other module classes) is carried over
as each feature is ported.
\*********************************************************************************************************************************/

/*********************************************************************************************************************************\
Global: element styles
\*********************************************************************************************************************************/
html,
body {
	height: 100%;
	margin: 0;
	/* Completely hide overflow on the body.  The ContentWrap handles all overflow of actual content (portal.ts sizes it). */
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

/* A skin preview frame's document (the Module Skin Manager, skin-preview.ts buildPreviewDocument): its root takes its content's
   height and scrolls inside the frame, which is capped (SkinPreview.vue), so the lower part of a tall preview stays in reach. */
html.SkinPreviewDocument {
	height: auto;
	overflow: auto;
}

body {
	background-color: var(--portal-background);
	border: none;
	border-collapse: collapse;
	color: var(--portal-text);
	font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: normal;
	line-height: 1.4;
}

a {
	color: var(--portal-link);
	text-decoration: none;
}

a:hover {
	color: var(--portal-link-hover);
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--portal-focus);
	outline-offset: 1px;
}

/* On the purple bars (the tab menu's gradient with its tabs, More, the phone menu button and a tab's tool chips, the popup tool bar) the ring takes the on-accent focus colour:
   no one colour reaches 3:1 against both them and the light surfaces (ruling I-F7). Colour only. */
.NavigationMenuInner ul.static > li > a.static:focus-visible,
.NavigationMenuInner .TabMenuBarButton:focus-visible,
.NavigationMenuInner .TabMenuArrow:focus-visible,
.TabToolCluster .ImageButton:focus-visible,
.PopupContainer > .PopupDialog .PopupDialogToolbar a:focus-visible,
.PopupContainer > .PopupDialog .PopupDialogToolbar button:focus-visible {
	outline-color: var(--portal-focus-on-accent);
}

th {
	text-align: left;
}

img {
	border-style: none;
}

hr {
	border: none;
	border-top: 1px solid var(--portal-border);
}

select,
textarea,
input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=image]) {
	background-color: var(--portal-input-background);
	border: 1px solid var(--portal-input-border);
	border-radius: 4px;
	box-sizing: border-box;
	color: var(--portal-input-text);
	cursor: text;
	font: inherit;
	padding: 5px 8px;
}

select {
	cursor: pointer;
}

/* Chromium and Edge draw a drop-down's list no wider than 2048 device pixels: a wider select (a .Wide one in a wide pane on a
   large screen) shows its list cut short with the options drawn off to the side (Lee 2026-11-04, Remote Execution's impeller
   list at 2442px). 1600px stays under the cap at 125% display scaling. List boxes (multiple, size) draw no pop-up. */
select:not([multiple]):not([size]) {
	max-width: 1600px;
}

select:focus,
textarea:focus,
input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=image]):focus {
	border-color: var(--portal-focus);
	box-shadow: 0 0 0 3px var(--portal-focus-ring);
	outline: none;
}

input[type=checkbox],
input[type=radio] {
	accent-color: var(--portal-accent);
}

input[type=checkbox] + label,
input[type=radio] + label {
	padding: 0 5px 0 2px;
}

/*********************************************************************************************************************************\
Buttons
\*********************************************************************************************************************************/
.Button,
.Button:visited,
:where(input[type=submit], input[type=button], button) {
	background-color: var(--portal-button-background);
	border: 1px solid transparent;
	border-radius: 4px;
	color: var(--portal-button-text);
	cursor: pointer;
	display: inline-block;
	font: inherit;
	margin-bottom: 2px;
	margin-top: 2px;
	padding: 6px 12px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.Button:hover,
:where(input[type=submit], input[type=button], button):hover {
	background-color: var(--portal-button-hover-background);
	color: var(--portal-button-text);
	text-decoration: none;
}

.Button.Primary {
	background-color: var(--portal-accent);
	color: var(--portal-on-accent) !important;
}

.Button.Primary:hover {
	background-color: var(--portal-accent-hover);
}

.Button.ProfileButton {
	margin-left: 5px;
	margin-top: -10px;
}

.Button.ProfileButton.RightMarginButton {
	margin-right: 25px;
}

.SpecialContainerButton,
a.SpecialContainerButton {
	background-color: var(--portal-button-background);
	border: 1px solid transparent;
	border-radius: 4px;
	box-sizing: border-box;
	color: var(--portal-button-text);
	cursor: pointer;
	display: inline-block;
	font: inherit;
	margin: 3px 2px;
	padding: 7px 14px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.SpecialContainerButton:hover {
	background-color: var(--portal-button-hover-background);
	color: var(--portal-button-text);
	text-decoration: none;
}

.SpecialContainerButtonPrimary,
a.SpecialContainerButtonPrimary {
	background-color: var(--portal-accent);
	color: var(--portal-on-accent);
	font-weight: 600;
}

.SpecialContainerButtonPrimary:hover {
	background-color: var(--portal-accent-hover);
	color: var(--portal-on-accent);
}

.SpecialContainerButtonSecondary,
a.SpecialContainerButtonSecondary {
	background-color: var(--portal-highlight);
	color: var(--portal-on-highlight);
}

.SpecialContainerButtonSecondary:hover {
	background-color: var(--portal-link-hover);
	color: var(--portal-on-highlight);
}

.SpecialContainerButton[disabled],
input[type=submit][disabled] {
	cursor: default;
	opacity: 0.6;
}

/*********************************************************************************************************************************\
Content: the header, the content wrap (sized by portal.ts to the window less header and footer) and the footer
\*********************************************************************************************************************************/
.ContentHeader {
	/* Sizes itself to its (variable) content. */
	height: auto;
	position: relative;
	width: 100%;
}

.ContentWrap {
	position: relative;
	width: 100%;
	z-index: 1;
}

.ContentFooter {
	clear: both;
}

.PositionedContainer {
	position: absolute;
	right: 12px;
	top: 52px;
	z-index: 1000001;
}

.ScrollableContainer {
	overflow: auto;
}

/*********************************************************************************************************************************\
Control: PortalHeader - .PortalHeaderMenuContainer .MainMenuContainer { .MainMenuRight .MainMenuLogo .MainMenuDashboard }
\*********************************************************************************************************************************/
.PortalHeaderMenuContainer {
	background-color: var(--portal-header-background);
	color: var(--portal-header-text);
	padding: 0;
}

.MainMenuContainer {
	align-items: center;
	display: flex;
	gap: 4px;
	height: 44px;
	margin: 0;
	overflow: hidden;
	padding: 0 12px;
	width: auto;
}

.MainMenuContainer > * {
	overflow: hidden;
}

/* The empty last div cleared today's floats; the flex row needs nothing. */
.MainMenuContainer > div:empty {
	display: none;
}

.MainMenuLogo {
	flex: 0 0 auto;
	order: 1;
}

.MainMenuLogo a {
	align-items: center;
	display: flex;
}

.MainMenuLogo img {
	border: none;
	height: 26px;
	width: 26px;
}

.MainMenuDashboard {
	flex: 1 1 auto;
	min-width: 0;
	order: 2;
	padding: 0 8px;
}

.MainMenuDashboard label {
	color: var(--portal-header-text);
	display: block;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.MainMenuRight {
	flex: 0 0 auto;
	order: 3;
}

/* The welcome link and the tools sit at the right even when a dashboard's header hides the logo and the dashboard name. */
.MainMenuContainer > .MainMenuRight:not(:first-child) {
	margin-left: auto;
}

/* The tool icons come first in the markup (for today's float order) and sit at the far right. */
.MainMenuContainer > .MainMenuRight:first-child {
	order: 4;
}

.MainMenuInner,
ul.MainMenuInner.ListHorizontal {
	align-items: center;
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
}

ul.MainMenuInner.ListHorizontal > li {
	display: block;
	padding: 0;
}

.MainMenuInner li {
	list-style-type: none;
	margin: 0;
}

/* The tool links and the light and dark toggle (a button) share one box, hover and focus, and one icon size. */
.MainMenuInner a,
.MainMenuInner .ThemeToggleButton {
	align-items: center;
	border-radius: 6px;
	color: var(--portal-header-text);
	display: flex;
	font-weight: 600;
	height: 32px;
	justify-content: center;
	min-width: 32px;
	padding: 0 6px;
	text-decoration: none;
	white-space: nowrap;
}

.MainMenuInner a:hover,
.MainMenuInner .ThemeToggleButton:hover {
	background-color: var(--portal-header-hover-background);
	color: var(--portal-header-highlight);
	text-decoration: none;
}

/* The tool list clips its overflow: keep the focus outline inside the link or button. */
.MainMenuInner a:focus-visible,
.MainMenuInner .ThemeToggleButton:focus-visible {
	outline-offset: -2px;
}

.MainMenuInner .ThemeToggleButton svg {
	border: none;
	height: 18px;
	width: 18px;
}

/* The light and dark toggle (theme-toggle.ts): only takes away what the generic button rule adds, so it looks like the links.
   It shows the moon in the light theme (it switches to dark) and the sun in the dark theme, following the theme in effect,
   saved or from the browser. */
.MainMenuInner .ThemeToggleButton {
	background: transparent;
	border: none;
	cursor: pointer;
	font: inherit;
	margin: 0;
}

.MainMenuInner .ThemeToggleButton .ThemeToggleSun {
	display: none;
}

:root[data-theme="dark"] .MainMenuInner .ThemeToggleButton .ThemeToggleMoon {
	display: none;
}

:root[data-theme="dark"] .MainMenuInner .ThemeToggleButton .ThemeToggleSun {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .MainMenuInner .ThemeToggleButton .ThemeToggleMoon {
		display: none;
	}

	:root:not([data-theme="light"]) .MainMenuInner .ThemeToggleButton .ThemeToggleSun {
		display: block;
	}
}

/* The header's Tools button (Plan I Task 16, Scripts\shell-controls.ts): below 600px the tool icons do not fit the row, so they sit
   behind this 40px button, which opens them as a panel of 40px rows under the header's right end, each glyph with its name (its
   aria-label) beside it; the welcome link and the dashboard's name are cut short with an ellipsis. From 600px the button is not shown
   and the tools are the row's icons, as before. The panel's containing block is the header (positioned), so the row's clipping does
   not cut it. Colours only through tokens; nothing here depends on the theme. */
.HeaderToolsButton {
	display: none;
}

@media not all and (min-width: 600px) {
	.PortalHeaderMenuContainer {
		position: relative;
	}

	.MainMenuContainer > .MainMenuRight:not(:first-child) {
		flex: 0 1 auto;
		min-width: 0;
	}

	.MainMenuContainer > .MainMenuRight:not(:first-child) .MainMenuInner,
	.MainMenuContainer > .MainMenuRight:not(:first-child) .MainMenuInner li {
		min-width: 0;
	}

	.MainMenuContainer > .MainMenuRight:not(:first-child) .MainMenuInner a {
		display: block;
		line-height: 32px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.MainMenuRight .HeaderToolsButton {
		align-items: center;
		background: transparent;
		border: none;
		border-radius: 6px;
		color: var(--portal-header-text);
		cursor: pointer;
		display: flex;
		height: 40px;
		justify-content: center;
		margin: 0;
		padding: 0;
		width: 40px;
	}

	.MainMenuRight .HeaderToolsButton:hover,
	.MainMenuRight .HeaderToolsButton[aria-expanded="true"] {
		background-color: var(--portal-header-hover-background);
		color: var(--portal-header-highlight);
	}

	.MainMenuRight .HeaderToolsButton:focus-visible {
		outline-offset: -2px;
	}

	.HeaderTools {
		display: none;
	}

	.HeaderTools.Open {
		background-color: var(--portal-surface);
		border: 1px solid var(--portal-border);
		border-radius: 12px;
		box-shadow: 0 8px 24px var(--portal-shadow);
		box-sizing: border-box;
		display: block;
		max-height: calc(100vh - 56px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 6px;
		position: absolute;
		right: 8px;
		top: 100%;
		width: min(320px, calc(100vw - 16px));
		z-index: 1000001;
	}

	.HeaderTools ul.MainMenuInner.ListHorizontal {
		align-items: stretch;
		flex-direction: column;
	}

	.HeaderTools .MainMenuInner a,
	.HeaderTools .MainMenuInner .ThemeToggleButton {
		box-sizing: border-box;
		color: var(--portal-text);
		font-weight: 400;
		gap: 10px;
		height: auto;
		justify-content: flex-start;
		min-height: 40px;
		padding: 4px 10px;
		text-align: left;
		white-space: normal;
		width: 100%;
	}

	.HeaderTools .MainMenuInner a:hover,
	.HeaderTools .MainMenuInner .ThemeToggleButton:hover {
		background-color: var(--portal-accent-soft);
		color: var(--portal-text);
	}

	/* Each tool's short name beside its glyph (data-tool-name, a part of its accessible name; the tooltip keeps the long text);
	   a tool without one shows its accessible name. */
	.HeaderTools .MainMenuInner a::after,
	.HeaderTools .MainMenuInner .ThemeToggleButton::after {
		content: attr(aria-label);
	}

	.HeaderTools .MainMenuInner a[data-tool-name]::after,
	.HeaderTools .MainMenuInner .ThemeToggleButton[data-tool-name]::after {
		content: attr(data-tool-name);
	}

	/* The header's glyphs are drawn for the header's dark row: on the panel they take the text's colour (a fixed tint, the blog's,
	   keeps its own). */
	.HeaderTools .MainMenuInner .PortalIcon--header,
	.HeaderTools .MainMenuInner .ThemeToggleButton svg {
		color: inherit;
		flex: 0 0 auto;
	}

	/* The profile link's glyph is 16px (as in the row, G-F4): centred in the others' 18px place, so the names line up. */
	.HeaderTools .MainMenuInner a.ImageButton > .PortalIcon {
		margin: 0 1px;
	}
}

/* The header bell's count and the notification drawer (Lee 2026-11-20, UI sweep Task 14; PortalHeaderPartial.cshtml,
   Scripts\notification-drawer.ts). The count is a danger pill on the bell's top right corner (9+ past nine; not shown at none); in the
   phone Tools panel it sits at the end of the bell's row. The drawer slides in at the window's right under the header's row (the script
   sets its top), 360px wide (the whole width on a phone), over the page: it takes no room, so nothing moves. Hidden (and out of the tab
   order) until the script opens it; no slide when the user asks for reduced motion. Its rows: the kind's glyph, the title (a link
   covering the row) and a muted line. Colours only through tokens. */
.MainMenuInner a.NotificationBell {
	position: relative;
}

.NotificationBadge {
	background-color: var(--portal-danger);
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--portal-on-danger);
	font-size: 10px;
	font-weight: 700;
	height: 16px;
	line-height: 16px;
	min-width: 16px;
	padding: 0 4px;
	pointer-events: none;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
}

.NotificationBadge[hidden] {
	display: none;
}

@media not all and (min-width: 600px) {
	.HeaderTools .MainMenuInner a.NotificationBell > .NotificationBadge {
		margin-left: auto;
		order: 1;
		position: static;
	}
}

.NotificationDrawer {
	background-color: var(--portal-surface);
	border-left: 1px solid var(--portal-border);
	bottom: 0;
	box-shadow: -8px 0 24px var(--portal-shadow);
	box-sizing: border-box;
	color: var(--portal-text);
	display: flex;
	flex-direction: column;
	max-width: 100vw;
	position: fixed;
	right: 0;
	top: 44px;
	transform: translateX(100%);
	transition: transform 0.2s ease, visibility 0s linear 0.2s;
	visibility: hidden;
	width: 360px;
	z-index: 1000000;
}

.NotificationDrawer.Open {
	transform: none;
	transition: transform 0.2s ease;
	visibility: visible;
}

/* The dialog itself takes the focus as it opens (its controls show the ring). */
.NotificationDrawer:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.NotificationDrawer,
	.NotificationDrawer.Open {
		transition: none;
	}
}

@media not all and (min-width: 600px) {
	.NotificationDrawer {
		border-left: none;
		width: 100%;
	}
}

.NotificationDrawerHeader {
	align-items: center;
	border-bottom: 1px solid var(--portal-border);
	display: flex;
	flex: none;
	gap: 4px;
	padding: 8px 8px 8px 16px;
}

.NotificationDrawerHeading {
	flex: 1 1 auto;
	min-width: 0;
}

.NotificationDrawerHeading h2 {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}

.NotificationDrawerCount {
	color: var(--portal-muted);
	font-size: 12px;
}

.NotificationDrawerMarkAll {
	margin: 0;
}

.NotificationDrawerMarkAll[hidden] {
	display: none;
}

.NotificationDrawerAction {
	align-items: center;
	background: none;
	border: none;
	border-radius: 6px;
	color: var(--portal-muted);
	cursor: pointer;
	display: inline-flex;
	height: 32px;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 32px;
}

.NotificationDrawerAction:hover {
	background-color: var(--portal-accent-soft);
	color: var(--portal-text);
}

.NotificationDrawerAction:disabled {
	cursor: default;
	opacity: 0.5;
}

.NotificationDrawerStatus {
	color: var(--portal-muted);
	flex: none;
	margin: 0;
	padding: 12px 16px;
}

.NotificationDrawerStatus:empty {
	display: none;
}

.NotificationDrawerStatus.NotificationDrawerStatus--error {
	color: var(--portal-danger);
}

.NotificationDrawerList {
	flex: 1 1 auto;
	list-style: none;
	margin: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0;
}

.NotificationDrawerItem {
	align-items: flex-start;
	border-bottom: 1px solid var(--portal-border);
	display: flex;
	gap: 10px;
	padding: 10px 16px;
	position: relative;
}

.NotificationDrawerItem:hover {
	background-color: var(--portal-accent-soft);
}

.NotificationDrawerItem > svg.PortalIcon {
	flex: none;
	margin-top: 1px;
}

.NotificationDrawerItemText {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.NotificationDrawerItemTitle {
	overflow-wrap: anywhere;
}

/* The title's link covers its row: a click anywhere on the row opens the item. */
.NotificationDrawerItemTitle::after {
	content: "";
	inset: 0;
	position: absolute;
}

.NotificationDrawerItemMeta {
	color: var(--portal-muted);
	font-size: 12px;
	overflow-wrap: anywhere;
}

.NotificationDrawerFooter {
	border-top: 1px solid var(--portal-border);
	flex: none;
	padding: 10px 16px;
}

.NotificationDrawerFooter a {
	align-items: center;
	display: inline-flex;
	gap: 4px;
}
.PortalHeaderCustom {
	overflow: hidden;
}

.PortalHeaderContent {
	align-items: center;
	background-color: var(--portal-surface);
	border-bottom: 1px solid var(--portal-border);
	display: flex;
	gap: 12px;
	min-height: 64px;
	padding: 8px 16px;
}

.PortalHeaderContent img {
	max-height: 64px;
}

/*********************************************************************************************************************************\
Control: PortalNavigation - .NavigationMenuContainer .NavigationMenuOuter #navigationMenu.NavigationMenuInner ul.static > li.static > a.static
[ul.dynamic > li.dynamic > a.dynamic ...], and tab-menu.ts's .TabMenuPanel, More (.TabMenuMore), .TabMenuPhoneButton and .TabMenuDrawer
The server renders every tab as nested lists of links (PortalMenuPartial). Without script they are the menu: the bar wraps, and a
tab's children drop down on hover or focus in one list, every deeper level inline beneath its item. tab-menu.ts (.TabMenuEnhanced)
keeps the bar on one line (More holds the tabs that do not fit), opens one panel under a tab, and below 600px shows the phone menu
button and its drawer. Nothing flies out sideways: deeper levels open inline, indented 14px per level with a guide line, up to six
levels (deeper ones keep that indent).
\*********************************************************************************************************************************/
/* A full-width purple bar (the pasunity.com banner's gradient over its middle colour; in the dark theme every stop is the bar's
   one colour) with rounded light tabs; the current tab (or the one holding it, or More when it does) is a light pill. The panels
   are the surface, with the page's text. */
.NavigationMenuContainer {
	align-items: center;
	background-color: var(--portal-menu-background);
	background-image: linear-gradient(to right, var(--portal-menu-gradient-start), var(--portal-menu-gradient-middle), var(--portal-menu-gradient-end));
	display: flex;
	margin: 0;
	padding: 0;
	position: relative;
}

.NavigationMenuContainer * {
	list-style-type: none;
	margin: 0;
	padding: 0;
	text-decoration: none;
	white-space: nowrap;
}

/* The strip is a row: the menu takes the room a tab's tools leave (min-width 0 lets it shrink, so tab-menu.ts measures what is
   left). */
.NavigationMenuContainer .NavigationMenuOuter {
	flex: 1 1 auto;
	min-width: 0;
	overflow: visible;
	padding: 0;
	position: relative;
	text-align: center;
	width: 100%;
	z-index: 9999;
}

/* A tab's tools (Plan I Task 14, TabToolsPartial): Edit, Roles, Help and the designer toggle at the strip's right end, beside the
   bar or the phone menu button and never over them. Each is a light 28px chip (the surface, so the glyphs keep their tested
   colours on the purple strip), the soft accent under the pointer. On a touch screen each chip's target is 40px (an invisible
   ring around it) and the chips stand 12px apart, so no two targets overlap; the chip itself looks the same. */
.NavigationMenuContainer .TabToolCluster {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex: 0 0 auto;
	gap: 4px;
	padding: 0 12px 0 4px;
}

.NavigationMenuContainer .TabToolCluster .ImageButton {
	align-items: center;
	background-color: var(--portal-surface);
	border: none;
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--portal-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 28px;
	justify-content: center;
	position: relative;
	width: 28px;
}

.NavigationMenuContainer .TabToolCluster .ImageButton:hover {
	background-color: var(--portal-accent-soft);
	text-decoration: none;
}

/* The designer toggle while its request runs (designer.ts). */
.NavigationMenuContainer .TabToolCluster .ImageButton[disabled] {
	cursor: default;
	opacity: 0.5;
}

@media (pointer: coarse) {
	/* The first target's ring stays inside the cluster (the menu beside it is drawn above it). */
	.NavigationMenuContainer .TabToolCluster {
		gap: 12px;
		padding-left: 8px;
	}

	.NavigationMenuContainer .TabToolCluster .ImageButton::before {
		content: "";
		inset: -6px;
		position: absolute;
	}
}

/* Its own block formatting context (flow-root): the phone menu button's margins stay inside the 42px bar, in the strip's row. */
.NavigationMenuInner {
	color: var(--portal-menu-text);
	display: flow-root;
	float: none !important;
	font-size: 14px;
	margin: 0 auto;
	min-height: 42px;
	overflow: visible;
	position: relative;
	z-index: 100000;
}

.NavigationMenuInner ul.static {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 4px;
	justify-content: center;
	min-height: 42px;
	padding: 5px 12px;
}

/* With the script the bar keeps one line: More holds what does not fit. */
.NavigationMenuInner.TabMenuEnhanced ul.static {
	flex-wrap: nowrap;
}

.NavigationMenuInner ul.static > li {
	flex: 0 0 auto;
	position: relative;
}

/* A tab moved into More, or More while nothing overflows: hidden whatever lays the item out (one class more than any other top-tab
   item rule, such as the split pill's flex, so the order of the rules cannot undo it; TabMenuTests pins it). */
.NavigationMenuInner ul.static > li.static.TabMenuOverflowed,
.NavigationMenuInner ul.static > li.static.TabMenuMoreHidden {
	display: none;
}

.NavigationMenuInner ul.static > li > a.static,
.NavigationMenuInner .TabMenuBarButton {
	align-items: center;
	background-color: transparent;
	border: none;
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--portal-menu-text);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 500;
	gap: 4px;
	line-height: 20px;
	padding: 6px 12px;
	text-decoration: none;
}

.NavigationMenuInner ul.static > li > a.static:hover,
.NavigationMenuInner .TabMenuBarButton:hover {
	background-color: var(--portal-menu-hover-background);
	color: var(--portal-menu-hover-text);
	text-decoration: none;
}

/* A tab with a menu (NAV-F5): its name (the link) and its own arrow button make one pill, split by a faint line; the arrow is at
   least 24px wide (32px on a coarse pointer). Opening only recolours and turns the arrow: nothing moves. */
.NavigationMenuInner ul.static > li.TabMenuSplit {
	display: flex;
}

.NavigationMenuInner ul.static > li.TabMenuSplit > a.static {
	border-radius: 8px 0 0 8px;
	padding-right: 8px;
}

.NavigationMenuInner .TabMenuArrow {
	align-items: center;
	background-color: transparent;
	border: none;
	border-left: 1px solid var(--portal-menu-hover-background);
	border-radius: 0 8px 8px 0;
	box-sizing: border-box;
	color: var(--portal-menu-text);
	cursor: pointer;
	display: flex;
	font: inherit;
	justify-content: center;
	margin: 0;
	min-width: 24px;
	padding: 0 4px;
}

@media (pointer: coarse) {
	.NavigationMenuInner .TabMenuArrow {
		min-width: 32px;
	}
}

.NavigationMenuInner .TabMenuArrow:hover {
	background-color: var(--portal-menu-hover-background);
	color: var(--portal-menu-hover-text);
}

/* An open tab or More (not the current tab's pill, which stays). */
.NavigationMenuInner ul.static > li:not(.CurrentPath) > .TabMenuArrow[aria-expanded="true"],
.NavigationMenuInner .TabMenuMore[aria-expanded="true"]:not(.CurrentPath) {
	background-color: var(--portal-menu-hover-background);
	color: var(--portal-menu-hover-text);
}

.NavigationMenuInner ul.static > li > a.selected,
.NavigationMenuInner ul.static > li > a.selected:hover,
.NavigationMenuInner ul.static > li > a.CurrentPath,
.NavigationMenuInner ul.static > li > a.CurrentPath:hover,
.NavigationMenuInner ul.static > li.CurrentPath > .TabMenuArrow,
.NavigationMenuInner ul.static > li.CurrentPath > .TabMenuArrow:hover,
.NavigationMenuInner .TabMenuBarButton.CurrentPath,
.NavigationMenuInner .TabMenuBarButton.CurrentPath:hover {
	background-color: var(--portal-menu-selected-background);
	color: var(--portal-menu-selected-text);
	font-weight: 600;
}

/* On the current tab's light pill the split line is the page's border colour. */
.NavigationMenuInner ul.static > li.CurrentPath > .TabMenuArrow {
	border-left-color: var(--portal-border);
}

.NavigationMenuInner .TabMenuChevron {
	transition: transform 0.15s ease;
}

.NavigationMenuInner [aria-expanded="true"] > .TabMenuChevron {
	transform: rotate(180deg);
}

/* The phone menu button (below 600px, in place of the bar's tabs): the current tab's name, cut short when long. */
.NavigationMenuInner .TabMenuPhoneButton {
	display: none;
	margin: 1px 8px;
	max-width: calc(100% - 16px);
	min-height: 40px;
}

.NavigationMenuInner .TabMenuPhoneName {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The same query as tab-menu.ts (tabMenuNarrowQuery): the exact complement of 600px and wider, fractional widths included. */
@media not all and (min-width: 600px) {
	.NavigationMenuInner.TabMenuEnhanced > ul.static {
		display: none;
	}

	.NavigationMenuInner .TabMenuPhoneButton {
		display: flex;
	}
}

.NavigationMenuInner a > .icon {
	display: none;
}

/* Without the script: a tab's children drop down in one list under it on hover or focus; deeper levels are inline beneath their
   item (never beside it). */
.NavigationMenuInner ul.dynamic {
	background-color: var(--portal-menu-dropdown-background);
	border: 1px solid var(--portal-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px var(--portal-shadow);
	box-sizing: border-box;
	display: none;
	left: 0;
	line-height: 22px;
	max-height: 70vh;
	max-width: min(360px, calc(100vw - 32px));
	min-width: 200px;
	overflow-y: auto;
	padding: 6px;
	position: absolute;
	text-align: left;
	top: 100%;
	z-index: 11000;
}

.NavigationMenuInner:not(.TabMenuEnhanced) ul.static > li:hover > ul.dynamic,
.NavigationMenuInner:not(.TabMenuEnhanced) ul.static > li:focus-within > ul.dynamic {
	display: block;
}

.NavigationMenuInner ul.dynamic ul.dynamic {
	background-color: transparent;
	border: none;
	border-left: 1px solid var(--portal-border);
	border-radius: 0;
	box-shadow: none;
	display: block;
	margin-left: 7px;
	max-height: none;
	max-width: none;
	min-width: 0;
	overflow: visible;
	padding: 0 0 0 6px;
	position: static;
}

.NavigationMenuInner a.dynamic {
	border: none;
	border-radius: 6px;
	color: var(--portal-menu-dropdown-text);
	display: block;
	font-size: 13px;
	padding: 6px 10px;
	position: relative;
	text-align: left;
	white-space: normal;
}

.NavigationMenuInner a.dynamic img,
.NavigationMenuInner a.dynamic .PortalIcon {
	margin-right: 6px;
	vertical-align: text-bottom;
}

.NavigationMenuInner ul.dynamic li > a.dynamic.selected {
	color: var(--portal-menu-dropdown-selected-text);
	font-weight: 600;
}

/* The selected item too: its own rule is more specific than a:hover and would keep its purple text on the purple hover. */
.NavigationMenuInner ul.dynamic li > a:hover,
.NavigationMenuInner ul.dynamic li > a.dynamic.selected:hover {
	background-color: var(--portal-menu-dropdown-hover-background);
	color: var(--portal-menu-dropdown-hover-text);
	text-decoration: none;
}

/* A tab icon on the hovered item (the accent) takes the link's colour: a fixed tint (Blogs' blue) would not read on it. */
.NavigationMenuInner ul.dynamic li > a:hover > .PortalIcon {
	color: inherit;
}

.NavigationMenuInner .dynamic > .icon {
	height: 16px;
	padding-right: 5px;
	width: 16px;
}

/* A tab's panel (and More's): under its tab, placed and kept inside the window by tab-menu.ts, scrolling inside itself when the
   window is too short. */
.NavigationMenuInner .TabMenuPanel {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px var(--portal-shadow);
	box-sizing: border-box;
	color: var(--portal-text);
	font-size: 13px;
	left: 0;
	line-height: 20px;
	max-width: min(720px, calc(100vw - 32px));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px;
	position: absolute;
	text-align: left;
	top: 100%;
	width: max-content;
	z-index: 11000;
}

.NavigationMenuInner .TabMenuPanel[hidden] {
	display: none;
}

.NavigationMenuInner .TabMenuPanel,
.NavigationMenuInner .TabMenuPanel * {
	white-space: normal;
}

/* More's panel (NAV-F8): one list of the tabs that do not fit, in the bar's order, as the drawer lists them; as wide as its rows,
   from 260px up to min(420px, 100vw - 32px) (longer names wrap). */
.NavigationMenuInner .TabMenuPanel.TabMenuMorePanel {
	max-width: min(420px, calc(100vw - 32px));
	min-width: 260px;
}

/* A tab's own panel: its title, then its children as More shows them beneath that tab (one look, NAV-F6b), as wide as its
   longest row and never narrower than 180px. */
.NavigationMenuInner .TabMenuPanel > .TabMenuTree {
	min-width: 180px;
}

/* The nested disclosure lists (a tab's panel, More's, the drawer's). */
.TabMenuTree {
	list-style: none;
	margin: 0;
	padding: 0;
}

.TabMenuTree[hidden] {
	display: none;
}

.TabMenuTree.TabMenuIndent {
	border-left: 1px solid var(--portal-border);
	margin-left: 7px;
	padding-left: 6px;
}

.TabMenuRow {
	align-items: center;
	display: flex;
	gap: 2px;
}

.NavigationMenuInner .TabMenuLink,
.TabMenuDrawer .TabMenuLink {
	align-items: center;
	border-radius: 6px;
	box-sizing: border-box;
	color: var(--portal-text);
	display: flex;
	flex: 1 1 auto;
	gap: 6px;
	min-height: 28px;
	min-width: 0;
	padding: 4px 8px;
	text-align: left;
	text-decoration: none;
}

.NavigationMenuInner .TabMenuLink:hover,
.TabMenuDrawer .TabMenuLink:hover {
	background-color: var(--portal-accent-soft);
	color: var(--portal-text);
	text-decoration: none;
}

/* A top-level tab in More and the drawer (NAV-F7, tab-menu.ts TabMenuTopItem): its row strong, also under the pointer, and a
   hairline between one top tab and the next (below the first one's open children), so the levels read apart; the tabs beneath keep
   the plain row under the guide line. Every theme the same geometry (colours only differ). Before the current tab's rules, which
   have the same specificity, so its marks still win. */
.TabMenuTopItem + .TabMenuTopItem {
	border-top: 1px solid var(--portal-border);
}

.TabMenuTopItem > .TabMenuRow > .TabMenuLink {
	color: var(--portal-text-strong);
	font-weight: 600;
}

/* The current tab and its ancestors: accent text (and aria-current); the current tab on the soft accent. */
.NavigationMenuInner .TabMenuLink.TabMenuCurrentPath,
.NavigationMenuInner .TabMenuLink.TabMenuCurrentPath:hover,
.TabMenuDrawer .TabMenuLink.TabMenuCurrentPath,
.TabMenuDrawer .TabMenuLink.TabMenuCurrentPath:hover {
	color: var(--portal-accent-text);
	font-weight: 600;
}

.NavigationMenuInner .TabMenuLink.TabMenuCurrent,
.TabMenuDrawer .TabMenuLink.TabMenuCurrent {
	background-color: var(--portal-accent-soft);
}

.TabMenuName {
	overflow-wrap: anywhere;
}

/* A tab's icon, or the empty place kept for one so the names of a list line up (tab-menu.ts). */
.TabMenuLink > .PortalIcon,
.TabMenuLink > img,
.TabMenuLink > .TabMenuIconSlot {
	display: inline-block;
	flex: 0 0 16px;
	height: 16px;
	width: 16px;
}

/* A tab's own panel's title (the tab itself). */
.NavigationMenuInner .TabMenuPanelTitle {
	border-bottom: 1px solid var(--portal-border);
	border-radius: 6px 6px 0 0;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}

/* The chevron button beside a tab with children: shows or hides them (rotated while shown). */
.TabMenuToggle,
.TabMenuDrawerClose {
	align-items: center;
	background-color: transparent;
	border: none;
	border-radius: 6px;
	color: var(--portal-muted);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 28px;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 28px;
}

.TabMenuToggle:hover,
.TabMenuDrawerClose:hover {
	background-color: var(--portal-accent-soft);
	color: var(--portal-text);
}

.TabMenuToggle .PortalIcon {
	transition: transform 0.15s ease;
}

.TabMenuToggle[aria-expanded="true"] .PortalIcon {
	transform: rotate(90deg);
}

/* The phone drawer: from the left over the popups' overlay, every tab as the nested list at full width, 40px touch targets. */
.TabMenuDrawerOverlay {
	background-color: var(--portal-overlay);
	bottom: 0;
	left: 0;
	opacity: 0;
	position: fixed;
	right: 0;
	top: 0;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
	visibility: hidden;
	z-index: 1000002;
}

/* Visible at once when opening (the drawer's links can take focus straight away), hidden only once the slide has finished. */
.TabMenuDrawerOverlay.Open {
	opacity: 1;
	transition: opacity 0.2s ease, visibility 0s;
	visibility: visible;
}

.TabMenuDrawer {
	background-color: var(--portal-surface);
	bottom: 0;
	box-shadow: 0 8px 24px var(--portal-shadow);
	box-sizing: border-box;
	color: var(--portal-text);
	display: flex;
	flex-direction: column;
	font-size: 14px;
	left: 0;
	line-height: 20px;
	max-width: 85vw;
	position: fixed;
	top: 0;
	transform: translateX(-100%);
	transition: transform 0.2s ease, visibility 0s linear 0.2s;
	visibility: hidden;
	width: 320px;
	z-index: 1000002;
}

.TabMenuDrawer.Open {
	transform: none;
	transition: transform 0.2s ease, visibility 0s;
	visibility: visible;
}

.TabMenuDrawerHeader {
	align-items: center;
	border-bottom: 1px solid var(--portal-border);
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	min-height: 48px;
	padding: 4px 4px 4px 16px;
}

.TabMenuDrawerTitle {
	font-weight: 600;
}

.TabMenuDrawerClose {
	color: var(--portal-text);
	height: 40px;
	width: 40px;
}

.TabMenuDrawerBody {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px;
}

.TabMenuDrawer .TabMenuLink {
	min-height: 40px;
}

.TabMenuDrawer .TabMenuToggle {
	height: 40px;
	width: 40px;
}

@media (prefers-reduced-motion: reduce) {
	.NavigationMenuInner .TabMenuChevron,
	.TabMenuToggle .PortalIcon,
	.TabMenuDrawer,
	.TabMenuDrawerOverlay {
		transition: none;
	}
}
@media (max-width: 949px) {
	.Table,
	.TableAutoWidth {
		display: block;
		width: 100%;
	}

	.TableRow {
		display: block;
		width: 100%;
	}

	.TableCell {
		display: inline !important;
	}
}

/*********************************************************************************************************************************\
Control: notifications - .SystemNotificationContainer .SystemNotificationMessage; .UserNotificationContainer .UserNotificationMessage
\*********************************************************************************************************************************/
.SystemNotificationContainer {
	background-color: var(--portal-danger-background);
	border-bottom: 1px solid var(--portal-danger);
	padding: 8px 16px;
}

.SystemNotificationMessage {
	color: var(--portal-danger);
	font-weight: 600;
}

.SystemNotificationContainer h1 {
	font-size: 16px;
	margin: 4px 0;
}

.SystemNotificationContainer label {
	margin-right: 6px;
}

.UserNotificationContainer {
	background-color: var(--portal-warning-background);
	border-bottom: 1px solid var(--portal-border);
	padding: 8px 16px;
}

.UserNotificationMessage,
a.UserNotificationMessage {
	color: var(--portal-warning);
	font-weight: 600;
	margin-right: 8px;
}

a.UserNotificationMessage {
	text-decoration: underline;
}

/* The browser floor notice (Scripts\browser-floor.ts): the message, and its close button at the right (a 32px target, 40px on a
   touch screen). */
.BrowserFloorNotice {
	align-items: center;
	display: flex;
	gap: 8px;
}

.BrowserFloorNotice[hidden] {
	display: none;
}

.BrowserFloorNotice .UserNotificationMessage {
	flex: 1 1 auto;
	min-width: 0;
}

.BrowserFloorNoticeClose {
	align-items: center;
	background-color: transparent;
	border: none;
	border-radius: 6px;
	/* The message's colour on the notice (a tested pair). */
	color: var(--portal-warning);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 32px;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 32px;
}

/* Under the pointer: a ring in the message's colour (the glyph keeps its tested colour on the notice). */
.BrowserFloorNoticeClose:hover {
	background-color: transparent;
	box-shadow: inset 0 0 0 1px var(--portal-warning);
	color: var(--portal-warning);
}

@media (pointer: coarse) {
	.BrowserFloorNoticeClose {
		height: 40px;
		width: 40px;
	}
}

/*********************************************************************************************************************************\
Control: PortalFooter - .PortalFooterContainer .PortalFooterContent (absolute at the bottom; portal.ts counts its height)
\*********************************************************************************************************************************/
.PortalFooterContainer {
	font-size: 12px;
	vertical-align: bottom;
}

.PortalFooterContainer .PortalFooterContent {
	bottom: 0;
	position: absolute;
	text-align: center;
	white-space: nowrap;
	width: 100%;
}

.PortalFooterContainer .PortalFooterContent > div:not(.PortalFooterDefault) {
	color: var(--portal-muted);
	padding: 2px 0;
}

.PortalFooterDefault {
	background-color: var(--portal-footer-background);
	color: var(--portal-footer-text);
	padding: 6px 0;
}

.PortalFooterContainer a,
.PortalFooterDefault a {
	color: var(--portal-footer-text);
	text-decoration: none;
}

.PortalFooterContainer a:hover,
.PortalFooterDefault a:hover {
	color: var(--portal-header-highlight);
}

/*********************************************************************************************************************************\
Control: BreadCrumbs and the portal toolbars
\*********************************************************************************************************************************/
/* A nested tab's breadcrumbs (.BreadCrumbBar) have the tool bars' look; outside designer mode a tab renders no tool bar (Plan I
   Task 15). */
.PortalToolbarContainer,
.BreadCrumbBar {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 6px;
	color: var(--portal-text);
	margin: 8px 12px;
	padding: 6px 10px;
}

.PortalToolbarContainer .Rule {
	border-left: 1px solid var(--portal-border);
	height: 100%;
	margin: 0;
	padding: 0;
	width: 1px;
}

/* The designer panel (#tabEditorToolbar, only while the designer is on): the add module form, centred, wraps on narrow windows;
   on a phone each field takes the panel's width at most, so the page never scrolls sideways. */
.DesignerPanel {
	text-align: center;
}

.DesignerPanel #addModuleForm div.InlineBlock {
	/* Less its 6px side margins (below). */
	max-width: calc(100% - 12px);
	vertical-align: middle;
}

.DesignerPanel #addModuleForm select,
.DesignerPanel #addModuleForm input {
	max-width: 100%;
}

.PortalToolbarContainer #addModuleForm .InlineBlock {
	margin: 2px 6px;
}

.PortalToolbarContainer #addModuleForm label {
	margin-right: 4px;
}

/* The add-to-pane buttons: "+" and the pane's name (their title). */
.PaneButton {
	background-color: var(--portal-button-background);
	border: 1px solid var(--portal-border);
	border-radius: 4px;
	color: var(--portal-button-text);
	cursor: pointer;
	display: inline-block;
	font-weight: 700;
	margin: 2px;
	padding: 4px 8px;
	text-align: center;
	white-space: nowrap;
}

.PaneButton::after {
	content: " " attr(title);
	font-weight: 400;
}

.PaneButton:hover {
	background-color: var(--portal-button-hover-background);
}

#designerUndoButton[disabled] {
	cursor: default;
	opacity: 0.5;
}

/* A module just added flashes, as today. */
.PortalModule.NewModule {
	animation: FlashModule 500ms ease 3;
}

@keyframes FlashModule {
	50% {
		background-color: var(--portal-highlight);
		opacity: 0.7;
	}
}

.BreadCrumbs {
	text-align: left;
}

.BreadCrumbs a {
	color: var(--portal-link);
	font-weight: 600;
	padding: 0 4px;
	text-decoration: none;
	white-space: nowrap;
}

.BreadCrumbs a:hover {
	color: var(--portal-link-hover);
}

.BreadCrumbs span {
	color: var(--portal-muted);
}

/*********************************************************************************************************************************\
Tab panes: #paneContainer.PaneContainer > .PaneTable (Banner) + .PaneTable > .PaneTableRow > { .LeftPaneContainer | .ResizeHandle |
.FlexPaneContainer > { .DualPaneContainer | .PaneTableRow > { .ContentPaneContainer | .ResizeHandle | .RightPaneContainer } } }

Today's markup and class names (portal.ts resizes .LeftPaneContainer and .ContentPaneContainer through the .ResizeHandle beside
them), laid out with container queries on #paneContainer:
	* 1100px and wider: Banner / [Left | (Dual / (Content | Right))]. Widths dragged with the resize handles (portal.ts writes
	  them inline) apply here only: Left's width sizes its column, and Right's (portal.ts sets it to what Content leaves) sizes
	  the Content | Right split.
	* 700px to 1099px: Right stacks under Content; Left keeps a fixed share; no resize handles.
	* Narrower than 700px: one column - Banner, Dual, Content, Left, Right.
Empty panes are hidden, except in the designer.

From 700px the side-by-side rows are flex rows, as today's (site.less): a pane container's percentage width or max-width (a
customer's CSS in a skin or a header message, such as "div.LeftPaneContainer { max-width: 33% !important; }") is then a share of
the whole row, as today. In a grid row it was a share of the pane's own column, so the pane and its modules shrank inside it.
\*********************************************************************************************************************************/
.PaneContainer {
	box-sizing: border-box;
	container-name: panes;
	container-type: inline-size;
	padding: 12px 16px 16px;
	/* portal.ts measures the resize from the pane rows' offsetLeft. */
	position: relative;
	width: 100%;
}

.PaneTable {
	box-sizing: border-box;
	width: 100%;
}

.PaneTableCell {
	box-sizing: border-box;
	min-width: 0;
}

.PaneContainer .Pane {
	box-sizing: border-box;
	min-height: 32px;
	min-width: 0;
}

.PaneContainer:not(.PaneDesigner) .PaneTableCell.Empty {
	display: none;
}

.BannerPaneContainer {
	margin-bottom: 12px;
}

/* Narrower than 700px (and the base for the wider layouts): one column. The Flex container and the Content | Right row step
   aside (display: contents) so every pane joins the outer row's single column, in the order Dual, Content, Left, Right. */
.PaneTable > .PaneTableRow {
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr);
}

.FlexPaneContainer,
.FlexPaneContainer > .PaneTableRow {
	display: contents;
}

.DualPaneContainer {
	order: 1;
}

.ContentPaneContainer {
	order: 2;
}

.LeftPaneContainer {
	order: 3;
}

.RightPaneContainer {
	order: 4;
}

.PaneContainer .ResizeHandle {
	display: none;
}

/* Dragged widths (inline styles from portal.ts) apply in the widest layout only. */
@container panes (max-width: 1099.98px) {
	.PaneContainer .LeftPaneContainer,
	.PaneContainer .FlexPaneContainer,
	.PaneContainer .ContentPaneContainer,
	.PaneContainer .RightPaneContainer {
		width: auto !important;
	}
}

/* 700px and wider: Left | (Dual / ...) is a flex row (see the header): Left keeps its width, Flex takes the rest. portal.ts writes
   an inline flex-grow beside each width it writes (for today's flex rows); here the widths alone decide, so the pane rows' flex
   values are !important, as the widths overridden above are. */
@container panes (min-width: 700px) {
	.PaneTable > .PaneTableRow {
		display: flex;
		gap: 0;
	}

	.PaneTable > .PaneTableRow > .LeftPaneContainer {
		flex: 0 0 auto !important;
	}

	.PaneTable > .PaneTableRow > .FlexPaneContainer {
		flex: 1 1 0 !important;
	}

	.PaneContainer .ResizeHandle {
		flex: none;
	}
}

/* 700px to 1099px: Left | (Dual / Content / Right). */
@container panes (min-width: 700px) and (max-width: 1099.98px) {
	.PaneContainer .LeftPaneContainer {
		margin-right: 12px;
		width: clamp(200px, 30cqi, 300px) !important;
	}
}

/* 700px and wider: the Flex container is Dual over the Content | Right row again. */
@container panes (min-width: 700px) {
	.FlexPaneContainer {
		align-content: start;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.FlexPaneContainer > .DualPaneContainer {
		margin-bottom: 12px;
	}

	.FlexPaneContainer > .PaneTableRow {
		display: grid;
		gap: 12px;
		grid-template-columns: minmax(0, 1fr);
	}

	.DualPaneContainer,
	.ContentPaneContainer,
	.LeftPaneContainer,
	.RightPaneContainer {
		order: 0;
	}
}

/* 1100px and wider: Left | handle | (Dual / (Content | handle | Right)), with the dragged widths. The side panes' caps leave room
   for each other (Plan I Task 16), so the row never needs more than the container and no pane or module is narrower than 200px:
   Left's cap leaves Content's 200px, Right's 200px and the two 12px handles; Right shrinks to its 200px when its row is short, and
   its cap is a share of its own row (Content's 200px and the handle left). */
@container panes (min-width: 1100px) {
	.PaneContainer .LeftPaneContainer {
		max-width: calc(100cqi - 424px);
		width: clamp(200px, 22cqi, 340px);
	}

	/* Flex and Content fill what is left: Left's and Right's widths decide the split. */
	.PaneContainer .FlexPaneContainer,
	.PaneContainer .ContentPaneContainer {
		width: auto !important;
	}

	/* Content | handle | Right: a flex row too (see the header). */
	.FlexPaneContainer > .PaneTableRow {
		display: flex;
		gap: 0;
	}

	.FlexPaneContainer > .PaneTableRow > .ContentPaneContainer {
		flex: 1 1 0 !important;
		min-width: 200px;
	}

	.FlexPaneContainer > .PaneTableRow > .RightPaneContainer {
		flex: 0 1 auto !important;
		min-width: 200px;
	}

	.PaneContainer .RightPaneContainer {
		max-width: calc(100% - 212px);
		width: clamp(200px, 26cqi, 380px);
	}

	/* Right alone (no Content modules) fills the row, as today. */
	.PaneContainer:not(.PaneDesigner) .FlexPaneContainer > .PaneTableRow:has(> .ContentPaneContainer.Empty) > .RightPaneContainer {
		flex: 1 1 0 !important;
		max-width: none;
		width: auto !important;
	}

	.PaneContainer .ResizeHandle:not(.Hidden) {
		display: block;
	}

	/* The designer ignores dragged widths, as today. */
	.PaneContainer.PaneDesigner .LeftPaneContainer {
		width: clamp(200px, 22cqi, 340px) !important;
	}

	.PaneContainer.PaneDesigner .RightPaneContainer {
		width: clamp(200px, 26cqi, 380px) !important;
	}

	.PaneContainer.PaneDesigner .ResizeHandle:not(.Hidden) {
		display: none;
	}
}

/* Left alone (no Dual, Content or Right modules) fills the row, as today. */
@container panes (min-width: 700px) {
	.PaneContainer:not(.PaneDesigner) .PaneTable > .PaneTableRow:has(> .FlexPaneContainer.Empty) > .LeftPaneContainer {
		flex: 1 1 0 !important;
		margin-right: 0;
		max-width: none;
		width: auto !important;
	}
}

/* The resize handle: a 12px gutter with a thin rule that lights up while hovered or dragged. */
.ResizeHandle {
	align-self: stretch;
	cursor: col-resize;
	position: relative;
	user-select: none;
	width: 12px;
}

.ResizeHandle::before {
	background-color: var(--portal-border);
	border-radius: 2px;
	bottom: 0;
	content: "";
	left: 5px;
	position: absolute;
	top: 0;
	transition: background-color 120ms ease;
	width: 2px;
}

.ResizeHandle:hover::before,
.ResizeHandle.Resizing::before {
	background-color: var(--portal-accent);
}

.PaneTableCell.Resizing {
	opacity: 0.6;
	user-select: none;
}

/* The designer: every pane shows (empty ones too) as a labelled drop zone. */
.PaneContainer.PaneDesigner .Pane {
	background-color: var(--portal-accent-soft);
	border: 1px dashed var(--portal-border-strong);
	border-radius: 8px;
	min-height: 64px;
	padding: 8px;
}

.PaneContainer.PaneDesigner .Pane::before {
	color: var(--portal-muted);
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.PaneContainer.PaneDesigner .Pane.BannerPane::before {
	content: "Banner";
}

.PaneContainer.PaneDesigner .Pane.LeftPane::before {
	content: "Left";
}

.PaneContainer.PaneDesigner .Pane.DualPane::before {
	content: "Dual";
}

.PaneContainer.PaneDesigner .Pane.ContentPane::before {
	content: "Content";
}

.PaneContainer.PaneDesigner .Pane.RightPane::before {
	content: "Right";
}

/* The designer shows each module as its drag bar and header only (Lee 2026-10-22, as the old designer did), so modules are short and
   easy to drag between panes. The content is hidden, never removed: Vue islands stay mounted and keep their state. */
.PaneContainer.PaneDesigner .PortalModule .PortalModuleContent {
	display: none !important;
}

/* The designer's drag and drop (designer.ts): the drag bar above each module (its name, for skins that hide it), the module being
   dragged, the pane a drop would land in, and the drop indicator - a line floating over the panes where the module will land. */
.DesignerDragBar {
	align-items: center;
	background-color: var(--portal-accent-soft);
	border-bottom: 1px dashed var(--portal-border-strong);
	border-radius: 8px 8px 0 0;
	color: var(--portal-text);
	cursor: grab;
	display: flex;
	font-size: 12px;
	font-weight: 600;
	gap: 8px;
	padding: 4px 10px;
	user-select: none;
}

.DesignerDragBar:hover {
	background-color: var(--portal-accent);
	color: var(--portal-on-accent);
}

.DesignerDragBar:active {
	cursor: grabbing;
}

.DesignerDragBarGrip::before {
	content: "\2630";
	font-size: 14px;
	line-height: 1;
}

.DesignerDragBarName {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.PortalModuleContainer.DesignerDragging {
	opacity: 0.45;
}

.PaneContainer.PaneDesigner .Pane.DesignerDropTarget {
	border-color: var(--portal-accent);
	border-style: solid;
}

.DesignerDropIndicator {
	background-color: var(--portal-accent);
	border-radius: 2px;
	box-shadow: 0 0 0 2px var(--portal-accent-soft);
	display: none;
	height: 4px;
	margin-top: -2px;
	pointer-events: none;
	position: absolute;
	z-index: 10;
}

.DesignerDropIndicator.Visible {
	display: block;
}

/* A tab without modules: its child tabs as links in the banner pane. */
.SubTabNavigation li {
	padding-bottom: 3px;
}

.SubTabNavigation img,
.SubTabNavigation .PortalIcon {
	height: 16px;
	vertical-align: middle;
	width: 16px;
}

/*********************************************************************************************************************************\
Module chrome: .PortalModuleContainer.PortalModule > { .MissingMenuButtonContainer | skin HTML with .ModuleHeaderText and
.ModuleMenuButton | .ModuleName.Hidden | .PortalModuleContent > (the module or .NotPortedModule) }

A module skin is the customer's own HTML (with its own inline styles and colours) and renders as stored, inside the card. Skins
keep their borders, radius and layout. In dark mode their surfaces, shadows and text colours give way to the card, unless the skin
is theme-aware (it uses html[data-theme] and decides itself; the container carries data-skin-theme-aware): see "Module skins in
dark mode" below.
\*********************************************************************************************************************************/
.PortalModuleContainer {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	box-shadow: 0 1px 3px var(--portal-shadow);
	box-sizing: border-box;
	/* Contains the floated menu button of a skin without a menu token. */
	display: flow-root;
	margin: 0 0 12px;
	min-width: 0;
	position: relative;
}

.Pane > .PortalModuleContainer:last-child {
	margin-bottom: 0;
}

.ModuleHeader {
	align-items: center;
	background-color: var(--portal-module-header-background);
	border-bottom: 1px solid var(--portal-border);
	border-radius: 8px 8px 0 0;
	color: var(--portal-module-header-text);
	display: flex;
	gap: 8px;
	overflow-x: hidden;
	padding: 6px 10px;
}

/* The name keeps the skin's colour (skins colour their own header) in the light theme; in dark mode it takes the card's text,
	unless the skin is theme-aware ("Module skins in dark mode"). */
.ModuleHeaderText {
	font-size: 14px;
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ModuleHeader .ModuleHeaderText {
	flex: 1 1 auto;
	white-space: nowrap;
}

a.ModuleMenuButton {
	align-items: center;
	border-radius: 6px;
	display: inline-flex;
	justify-content: center;
	padding: 4px;
	position: relative;
	vertical-align: middle;
	z-index: 99;
}

a.ModuleMenuButton:hover {
	background-color: var(--portal-button-hover-background);
}

a.ModuleMenuButton > .PortalIcon {
	display: block;
	height: 16px;
	width: 16px;
}

/* portal.ts marks the button while its menu is open, above (MenuTop) or below (MenuBottom) it. */
.ModuleMenuButton.Active {
	background-color: var(--portal-header-background);
	box-shadow: 0 2px 6px var(--portal-shadow);
	z-index: 101;
}

/* On the open button's header background the icon's text tint would not read (light theme): it takes the header text colour.
   Not under the pointer, where the button keeps its light hover background (a.ModuleMenuButton:hover outranks .Active). */
a.ModuleMenuButton.Active:not(:hover) > .PortalIcon {
	color: var(--portal-header-text);
}

.ModuleMenuButton.Active.MenuTop {
	border-radius: 0 0 100px 100px;
}

.ModuleMenuButton.Active.MenuBottom {
	border-radius: 100px 100px 0 0;
}

/* The menu button of a skin with neither the name nor the menu token. */
.MissingMenuButtonContainer {
	float: right;
	margin: 6px 6px 0 6px;
	position: relative;
	z-index: 2;
}

/* The menu button's drop-down (ModuleMenuListDisplay.cshtml). portal.ts appends it to body > .PositionedContainer and sets its left
   and top (toggleModuleMenu, placeModuleMenu) so it opens at its button. */
.ModuleMenuContainer {
	position: absolute;
	white-space: nowrap;
	/* As today's site.css; the stacking layer that counts is .PositionedContainer's (1000001, below the popups' 1000002). */
	z-index: 1000003;
}

/* The menu of a module inside a popup (the Module Viewer of Peek): portal.ts appends it to that popup's container instead, where it is
   drawn over the popup's dialog (1000004), as today's menu was drawn over the popups (PEEK-SET-1). */
.PopupContainer > .ModuleMenuContainer {
	z-index: 1000005;
}

.ModuleMenuContainer ul.ModuleMenuList {
	background-color: var(--portal-menu-dropdown-background);
	border: 1px solid var(--portal-border);
	border-radius: 6px;
	box-shadow: 0 6px 18px var(--portal-shadow);
	font-size: 13px;
	line-height: 20px;
	min-width: 160px;
	padding: 4px 0;
	text-align: left;
}

.ModuleMenuContainer ul.ModuleMenuList a:not(.Hidden) {
	color: var(--portal-menu-dropdown-text);
	display: block;
	padding: 6px 14px;
	text-decoration: none;
}

.ModuleMenuContainer ul.ModuleMenuList a:hover {
	background-color: var(--portal-menu-dropdown-hover-background);
	color: var(--portal-menu-dropdown-hover-text);
}

.ModuleMenuContainer ul.ModuleMenuList .PortalIcon {
	height: 16px;
	margin-right: 8px;
	vertical-align: text-bottom;
	width: 16px;
}

/* On the hovered item's accent background the icons' tints would not read: the icon takes the link's (hover) colour. */
.ModuleMenuContainer ul.ModuleMenuList a:hover > .PortalIcon {
	color: inherit;
}

.ModuleMenuContainer ul.ModuleMenuList .RelativeRankContainer {
	color: var(--portal-menu-dropdown-text);
	padding: 6px 14px;
}

.ModuleMenuContainer ul.ModuleMenuList .RelativeRankContainer label {
	margin-left: 6px;
}

.PortalModuleContent {
	box-sizing: border-box;
	/* The theme's text in every theme, so a module never depends on the colour a skin sets around it. */
	color: var(--portal-text);
	margin: 0;
	overflow: auto;
	padding: 10px 12px;
}

/* The Not Ported placeholder in a module's content. */
.NotPortedModule {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 56px;
}

/* A module the tab page has not loaded yet (progressive loading: portal.ts fills it): the portal's spinner, centred in a modest default
   height, or in the module's own height when it has one (its content wrapper's inline min-height: the wrapper lays the placeholder
   out as a column that fills it; a browser without :has() shows the spinner at the top instead); if it fails, its message and a
   Retry button (a 16px glyph in a 24px box); a stale page's reload line. */
.ModuleLoading {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
	min-height: 200px;
	text-align: center;
}

.PortalModuleContent[style]:not(.Hidden):has(> .ModuleLoading) {
	display: flex;
	flex-direction: column;
}

.PortalModuleContent[style] > .ModuleLoading {
	flex: 1 0 auto;
	min-height: 0;
}

.ModuleLoading .LoadingText {
	white-space: normal;
}

.ModuleLoadingRetry {
	align-items: center;
	background-color: transparent;
	border: none;
	border-radius: 4px;
	box-sizing: border-box;
	color: var(--portal-accent-text);
	cursor: pointer;
	display: inline-flex;
	height: 24px;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 24px;
}

.ModuleLoadingRetry:hover {
	background-color: var(--portal-accent-soft);
}

/*********************************************************************************************************************************\
Module skins in dark mode: .PortalModuleContainer:not([data-skin-theme-aware]) > skin HTML

Stored skins were written for a light page (white cards, black text, light gradients). Skins keep their borders, radius and layout.
In dark mode their surfaces, shadows and text colours give way to the card, unless the skin is theme-aware (it uses
html[data-theme] and decides itself: the chrome marks its container data-skin-theme-aware). The override leaves alone the
module's content, the designer's drag bar, the menu button, the missing-menu container, the skin's <style>, and the widgets the
shell inserts in a module outside its content (portal.ts loadSpinner's .LoadingContainer, the live refresh bar, the designer's
drop indicator). !important is needed because a skin's <style> comes later in the page than this stylesheet, and skins may use
inline styles. The light theme has no override: skins render as stored.
\*********************************************************************************************************************************/
:root[data-theme="dark"] .PortalModuleContainer:not([data-skin-theme-aware]) :not(.PortalModuleContent, .PortalModuleContent *, .DesignerDragBar, .DesignerDragBar *, .ModuleMenuButton, .ModuleMenuButton *, .MissingMenuButtonContainer, style, .LoadingContainer, .LoadingContainer *, .PortalLiveRefreshBar, .PortalLiveRefreshBar *, .DesignerDropIndicator, .DesignerDropIndicator *) {
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: inherit !important;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .PortalModuleContainer:not([data-skin-theme-aware]) :not(.PortalModuleContent, .PortalModuleContent *, .DesignerDragBar, .DesignerDragBar *, .ModuleMenuButton, .ModuleMenuButton *, .MissingMenuButtonContainer, style, .LoadingContainer, .LoadingContainer *, .PortalLiveRefreshBar, .PortalLiveRefreshBar *, .DesignerDropIndicator, .DesignerDropIndicator *) {
		background-color: transparent !important;
		background-image: none !important;
		box-shadow: none !important;
		color: inherit !important;
	}
}

/*********************************************************************************************************************************\
Paper: .PortalPaper (HTML Tree item content, the Welcome custom content, module header and footer messages) and Jodit's editing
area (.jodit-wysiwyg)

Authored HTML was written for a light page: navy text, yellow highlights, grey boxes. portal-theme.css declares its light set (and
its light colour scheme) on paper too, so paper is the light theme in every theme (its text, links, .Info and anything else inside
take the light values). Paper is a rounded sheet with the same padding in every theme, so nothing moves when the theme changes
(Lee); the Welcome message box keeps its own padding and radius (its rule outranks this one). In dark mode the sheet is the light
surface on the card (Jodit's editing area gets its surface in "Jodit in dark mode"); the light theme paints no surface, so a skin
that colours behind its content (the Metro skins) still shows through. Module header and footer messages are paper too, and
their editors show them as they will look (Lee 2026-10-28). The dashboard's own header and footer keep their colours (D3).
\*********************************************************************************************************************************/
.PortalPaper,
.jodit-wysiwyg {
	color: var(--portal-text);
}

.PortalPaper {
	border-radius: 6px;
	padding: 8px;
}

:root[data-theme="dark"] .PortalPaper {
	background-color: var(--portal-surface);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .PortalPaper {
		background-color: var(--portal-surface);
	}
}

/*********************************************************************************************************************************\
Jodit in dark mode: .jodit_theme_dark (the editor, its pop-ups and context menu) and .jodit-dialog_theme_dark (its dialogs)

HtmlEditor.vue gives Jodit the page's theme, so these rules key on Jodit's own dark classes rather than on html[data-theme]. Each
of Jodit 4.17.4's dark variables, and its border colour, takes the portal token for its role in jodit.css; the editing area is
paper (above), with the paper's placeholder colour; and a hovered button's text and icon, which Jodit draws in its frame colour
on a light hover colour, take the button text on the portal's hover surface. Jodit's stylesheet loads after this one, with the
editor, so :root lifts each rule above Jodit's own. Jodit draws its dark inputs' and selects' text in its border colour; they
take the text (text inputs then take the portal's input colours from the form rules at the top of this file, which are more
specific than Jodit's).
\*********************************************************************************************************************************/
:root .jodit_theme_dark,
:root .jodit-dialog_theme_dark {
	/* The editor's frame, its pop-ups, dialogs, context menu and tab strip */
	--jd-dark-background-color: var(--portal-surface);
	/* A hovered button, and a prompt's input */
	--jd-dark-background-ligher: var(--portal-button-hover-background);
	/* A dialog's panel */
	--jd-dark-background-darknes: var(--portal-popup-panel-background);
	/* A dialog header's border, and a prompt input's border */
	--jd-dark-border-color: var(--portal-border);
	/* Text in pop-ups, dialogs, the status bar and forms */
	--jd-dark-text-color: var(--portal-text);
	/* The placeholder */
	--jd-dark-text-color-opacity80: var(--portal-placeholder-text);
	/* Fainter text (declared, unused by 4.17.4) */
	--jd-dark-text-color-opacity50: var(--portal-muted);
	/* Tool bar icons, the close icon, the image resizer's handles */
	--jd-dark-icon-color: var(--portal-text);
	/* The tool bar and the status bar */
	--jd-dark-toolbar-color: var(--portal-surface-raised);
	/* A form's text input */
	--jd-dark-toolbar-seperator-color1: var(--portal-input-background);
	/* A form input's border, and the add-new-line line */
	--jd-dark-toolbar-seperator-color2: var(--portal-input-border);
	/* A separator (declared, unused by 4.17.4) */
	--jd-dark-toolbar-seperator-color-opacity80: var(--portal-border-strong);
	/* A form's buttons, the upload button under the pointer, the add-new-line button, the resizer's handles */
	--jd-dark-toolbar-seperator-color3: var(--portal-button-background);
	/* A selected item's border (declared, unused by 4.17.4) */
	--jd-dark-color-border-selected: var(--portal-focus);
	/* Borders and the tool bar's separators */
	--jd-color-border: var(--portal-border);
}

:root .jodit_theme_dark .jodit-wysiwyg {
	background-color: var(--portal-surface);
	color: var(--portal-text);
}

:root .jodit_theme_dark .jodit-placeholder {
	color: var(--portal-placeholder-text);
}

:root .jodit-dialog_theme_dark .jodit-select,
:root .jodit_theme_dark .jodit-select,
:root .jodit-dialog_theme_dark .jodit-input,
:root .jodit_theme_dark .jodit-input {
	color: var(--portal-text);
}

:root :is(.jodit_theme_dark, .jodit-dialog_theme_dark) :is(.jodit-ui-button, .jodit-ui-button__text, .jodit-ui-button__button, .jodit-ui-button__trigger, .jodit-toolbar-select, .jodit-toolbar-select__text, .jodit-toolbar-select__button, .jodit-toolbar-select__trigger, .jodit-toolbar-button, .jodit-toolbar-button__text, .jodit-toolbar-button__button, .jodit-toolbar-button__trigger):hover:not([disabled]) {
	--jd-color-text: var(--portal-button-text);
	--jd-color-icon: var(--portal-button-text);
	color: var(--portal-button-text);
}

/* Jodit's Source view in the light theme (Lee 2026-11-19): jodit.css draws its text area dark (#323232, light text) in every theme;
   outside Jodit's dark theme it takes the portal's surface and text, so the code view follows the page. */
.jodit-container:not(.jodit_theme_dark) {
	--jd-color-source-area: var(--portal-surface);
}

.jodit-container:not(.jodit_theme_dark) .jodit-source__mirror {
	color: var(--portal-text);
}

/* The HTML editor that could not load Jodit (HtmlEditor.vue): the line above its plain textarea, with Try again, in the warning
   tint (div.Info's shape). */
.PortalEditorLoadFailed {
	background-color: var(--portal-warning-background);
	border-radius: 6px;
	color: var(--portal-warning);
	font-weight: 600;
	margin: 4px 0 8px;
	padding: 8px 12px;
}

/*********************************************************************************************************************************\
The HTML editor's low-contrast warning (HtmlEditor.vue, contrast-check.ts; ED-1, Lee 2026-10-28; ruling ED-F1): the item in
Jodit's tool bar, .jodit-toolbar-content > .PortalContrastWarningItem > button.PortalContrastWarningButton, and the outlines it
shows, .PortalContrastMarks > .PortalContrastMark, laid over the text in Jodit's workplace

The warning never moves the text (Lee: no UI that shifts). The item is always in the tool bar at a fixed size (76px wide, Jodit's
own 34px button height: a touch target over 32px that leaves the rows as they are; the count in tabular figures, up to 2,000+,
never widens it), and only its visibility changes (.PortalContrastWarningButton_none), so the tool bar never reflows and the
editing area stays where it is. It is the warning family in either theme (its glyph and border in the warning colour, on the
warning's soft background; the count in the page's text colour). The outlines are dashed boxes over the text, never in the
content; the layer covers the workplace (so a box's place is the workplace's coordinates) and never takes the pointer. They are
on paper's colours (portal-theme.css takes the layer into the light set), so they read on the paper beneath them in both themes.
Jodit's stylesheet loads after this one, so :root lifts each rule above Jodit's own. The same shape in every theme.
\*********************************************************************************************************************************/
:root .PortalContrastWarningItem .PortalContrastWarningButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	width: 76px;
	height: 34px;
	padding: 0 6px;
	border: 1px solid var(--portal-warning);
	border-radius: 4px;
	background-color: var(--portal-warning-background);
	color: var(--portal-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
}

:root .PortalContrastWarningItem .PortalContrastWarningButton.PortalContrastWarningButton_none {
	visibility: hidden;
}

:root .PortalContrastMarks {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

:root .PortalContrastMark {
	position: absolute;
	outline: 2px dashed var(--portal-warning);
	outline-offset: 2px;
	/* A thin ring of paper inside the dashes: it marks the text on an author's own dark background, where amber is faint. */
	box-shadow: 0 0 0 1px var(--portal-surface);
}

/*********************************************************************************************************************************\
Popup dialog and modal overlay: .PopupContainer > { .PopupModal | .PopupDialog > { .PopupDialogToolbar | .PopupDialogContent } }
\*********************************************************************************************************************************/
.Flex {
	display: flex;
}

.FlexColumn {
	flex-direction: column;
}

.FlexRow {
	flex-direction: row;
}

.AlignCenter {
	align-items: center;
	text-align: center;
}

.FlexGrow {
	flex-grow: 1;
}

.FlexShrink {
	flex-shrink: 1;
}

.FlexNoGrow {
	flex-grow: 0;
}

.FlexNoShrink {
	flex-shrink: 0;
}

.FlexFill {
	flex: 1;
}

.MarginLeftAuto {
	margin-left: auto;
}

.PopupContainer {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000002;
}

/* A Vue dialog's container (components\PortalDialog.vue, teleported to the end of body): one layer below portal.js's popups, so a
   confirmation opened while it is open is drawn over it; still over the page, the module menu (.PositionedContainer, earlier in body)
   and the header tools. */
.PortalDialogLayer > .PopupContainer {
	z-index: 1000001;
}

.PopupContainer.Hidden {
	display: none;
}

.PopupContainer > .PopupModal {
	background-color: var(--portal-overlay);
	height: 100%;
	position: absolute;
	width: 100%;
	z-index: 1000003;
}

.PopupContainer > .PopupDialog {
	background-color: var(--portal-popup-background);
	border: 1px solid var(--portal-border) !important;
	border-radius: 8px;
	box-shadow: 0 12px 40px var(--portal-shadow);
	color: var(--portal-text);
	max-height: 80vh;
	max-width: 80vw;
	min-width: 30vw;
	overflow: hidden;
	padding: 0;
	z-index: 1000004;
}

.PopupContainer > .PopupDialog .PopupDialogToolbar {
	background-color: var(--portal-popup-toolbar-background);
	color: var(--portal-popup-toolbar-text);
	padding: 8px 10px;
}

/* The tool bar's title and its buttons (help, close) never overlap, at any width (a phone's included): the buttons keep their room
   (they do not shrink, so none is pushed out over the title), and a long title (an email address in the profile editor's) wraps
   inside the room left, breaking a long word where it must. */
.PopupContainer > .PopupDialog .PopupDialogToolbar .PopupButtonContainer {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	gap: 6px;
	justify-content: flex-end;
	min-width: 50px;
}

.PopupContainer > .PopupDialog .PopupDialogToolbar .PopupTitle {
	color: var(--portal-popup-toolbar-text);
	font-size: 15px;
	font-weight: 600;
	margin-left: 50px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.PopupContainer > .PopupDialog .PopupDialogContent {
	background-color: var(--portal-popup-background);
	overflow: auto;
	padding: 12px 16px;
}

.PopupContainer > .PopupDialog.PopupDialogPanel .PopupDialogContent {
	background-color: var(--portal-popup-panel-background);
}

.PopupContainer > .PopupDialog.PopupDialogSecurity {
	min-width: 400px;
	text-align: center;
}

.PopupContainer > .PopupDialog.PopupDialogSecurity .validation-summary-errors {
	color: var(--portal-danger);
}

.PopupContainer > .PopupDialog.PopupDialogSecurity ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.PopupContainer > .PopupDialog.PopupDialogSecurity ul li {
	color: var(--portal-muted);
}

.PopupContainer > .PopupDialog.PopupDialogSecurity .validation-summary-errors ul li,
.PopupContainer > .PopupDialog.PopupDialogSecurity ul.CapsLockWarning li {
	color: var(--portal-danger);
}

.PopupContainer > .PopupDialog.PopupDialogSecurity table td {
	padding: 4px;
}

.PopupContainer > .PopupDialog.PopupDialogSecurity .SpecialTable {
	text-align: left;
}

.PopupContainer > .PopupDialog.PopupDialogSecurity .SpecialTable td {
	color: var(--portal-text);
	text-align: left;
}

.PopupContainer > .PopupDialog.PopupDialogSecurity .SpecialTable td:first-of-type,
.PopupContainer > .PopupDialog.PopupDialogSecurity .SpecialTable td.Label {
	padding-right: 4px;
	text-align: right;
}

.PopupContainer > .PopupDialog.PopupDialogSecurity .SpecialTable td:last-child,
.PopupContainer > .PopupDialog.PopupDialogSecurity .SpecialTable td.Content {
	padding-right: 10px;
}

.SpecialAccentText {
	color: var(--portal-accent-text);
}

.SpecialMutedText {
	color: var(--portal-muted);
}

.PopupContainer > .PopupDialog.PopupDialogStandard {
	color: var(--portal-text);
}

.PopupContainer > .PopupDialog.PopupDialogMessage,
.PopupContainer > .PopupDialog.PortalDialogConfirmation {
	max-width: 50vw;
}

.PopupContainer > .PopupDialog.Closing {
	z-index: 1000002;
}

/* A field editor's popup (the editor run, Lee 2026-11-20: the profile editor's pattern for the Feedback popup, the Active Directory
   Manager's group and user editors and the Change Password popup): a fixed width sized to its form (--field-editor-width, set by
   the editor's own rule; 560px when none is set), never wider than the window less a 16px gutter on each side, and not widened by
   the popup's 30vw minimum. Below 600px it takes the whole window, as every popup (below). Its form is profile-editor.css's
   two-column FieldGrid (one column on a phone), its button row profile-editor.css's SideNavEditorActions. */
@media (min-width: 600px) {
	.PopupContainer > .PopupDialog.FieldEditorPopup {
		max-width: calc(100vw - 32px);
		min-width: 0;
		width: var(--field-editor-width, 560px);
	}
}

/* The Feedback popup (Views\Shared\Feedback\FeedbackPartial.cshtml; the editor run): the box for the comments fills the form and is
   tall enough for a paragraph; it grows downwards only. */
.FeedbackEditor textarea.Wide {
	min-height: 160px;
	resize: vertical;
}

/* The Change Password popup (Views\Security\ChangePasswordPartial.cshtml; the editor run): 480px wide, its content read from the left
   (a security popup's is centred); the password check boxes in a row, each beside its label; each password box with its strength
   bar or its verify message beside it, wrapping under it in a narrow popup. */
.PopupContainer > .PopupDialog.ChangePasswordPopup {
	--field-editor-width: 480px;
}

.ChangePasswordEditor {
	text-align: left;
}

.ChangePasswordEditor .ChangePasswordChoices {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
}

.ChangePasswordEditor .ChangePasswordChoices > label {
	margin-right: 10px;
}

.ChangePasswordEditor .ChangePasswordBox {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	min-width: 0;
}

.ChangePasswordEditor .ChangePasswordBox > input {
	max-width: 100%;
}

/* A popup's action row (its buttons; the profile editor's first, PE-5; every popup's since POP-1, in both kinds: the server's popups
   and portal.ts's dialogs, and the Matrix dialogs): the one way a popup's buttons are pinned. A popup marks the row that ends its
   content PopupActionRow (a div, or the table row holding its buttons) and the row stays at the bottom of the popup's content while
   the content scrolls under it, on any width and at any popup size (a popup resized from its corner included). It sticks to the
   content's own scrolling box (.PopupDialogContent, which portal.ts adjustPopupDialogOverflow and the popup's height size), so no
   height is set here; -12px is that content's bottom padding (change them together), so the row reaches its bottom edge and nothing
   scrolls into view below it. It lies on the content's background (a Panel popup's own), above the content passing under it. */
.PopupContainer > .PopupDialog .PopupActionRow {
	background-color: var(--portal-popup-background);
	bottom: -12px;
	position: sticky;
	z-index: 2;
}

.PopupContainer > .PopupDialog.PopupDialogPanel .PopupActionRow {
	background-color: var(--portal-popup-panel-background);
}

/* A row that is a block of its own (a div) has a line above it and holds its floated buttons (wrapping onto more lines on a phone).
   The whole selector is in :where, so the rule weighs nothing and a popup's own layout of its row (the Matrix column group editor's
   flex row) wins wherever it is. */
:where(.PopupContainer > .PopupDialog div.PopupActionRow) {
	border-top: 1px solid var(--portal-border);
	display: flow-root;
	padding-bottom: 4px;
	padding-top: 4px;
}

/* A table row has the same line above it: drawn inside its cells' top edges (a shadow, which travels with the sticky row where a
   border of a collapsed table would not). */
.PopupContainer > .PopupDialog tr.PopupActionRow > td,
.PopupContainer > .PopupDialog tr.PopupActionRow > th {
	box-shadow: inset 0 1px 0 var(--portal-border);
}

/* The popup frame (POP-1, Scripts\popup-frame.ts, from 600px wide; it puts up nothing on a phone): a popup is moved by a drag on its
   tool bar (the move cursor; not on the bar's buttons, which keep theirs) and resized from the handle in its bottom-right corner, a
   grip of three lines in the muted text colour, 16px. The handle lies in a strip kept below the content (16px, 24px on a touch screen,
   on the content's background), so it never covers the content, its scroll bar or its action row's buttons; its target is the strip's
   height and 24px across (40px on a touch screen). The title (the bar's move handle) and the handle take the keyboard's focus (the
   arrow keys move and resize), the handle's ring inside its edge (the dialog clips what is outside). Colours are the theme's variables
   only, so nothing moves between the themes. */
.PopupContainer > .PopupDialog.PopupFramed {
	position: relative;
}

.PopupContainer > .PopupDialog.PopupDialogPanel.PopupFramed {
	background-color: var(--portal-popup-panel-background);
}

.PopupContainer > .PopupDialog.PopupFramed > .PopupDialogContent {
	margin-bottom: 16px;
}

.PopupContainer > .PopupDialog.PopupFramed > .PopupDialogToolbar {
	cursor: move;
	touch-action: none;
	user-select: none;
}

.PopupContainer > .PopupDialog.PopupFramed > .PopupDialogToolbar:focus-visible,
.PopupContainer > .PopupDialog.PopupFramed > .PopupDialogToolbar .PopupTitle:focus-visible {
	outline: 2px solid var(--portal-focus-on-accent);
	outline-offset: 2px;
}

.PopupContainer > .PopupDialog > .PopupResizeHandle {
	bottom: 0;
	cursor: nwse-resize;
	height: 16px;
	position: absolute;
	right: 0;
	touch-action: none;
	width: 24px;
	z-index: 3;
}

.PopupContainer > .PopupDialog > .PopupResizeHandle::after {
	background-image: linear-gradient(135deg, transparent 0 52%, var(--portal-muted) 52% 58%, transparent 58% 70%, var(--portal-muted) 70% 76%, transparent 76% 88%, var(--portal-muted) 88% 94%, transparent 94%);
	bottom: 0;
	content: "";
	height: 16px;
	position: absolute;
	right: 0;
	width: 16px;
}

.PopupContainer > .PopupDialog > .PopupResizeHandle:focus-visible {
	outline: 2px solid var(--portal-focus);
	outline-offset: -2px;
}

@media (pointer: coarse) {
	.PopupContainer > .PopupDialog.PopupFramed > .PopupDialogContent {
		margin-bottom: 24px;
	}

	.PopupContainer > .PopupDialog > .PopupResizeHandle {
		height: 24px;
		width: 40px;
	}

	.PopupContainer > .PopupDialog > .PopupResizeHandle::after {
		bottom: 4px;
		right: 4px;
	}
}

/* Below 600px (a phone, the shell phone pass: ruling I-M1, Task 5 C4): every popup takes the whole window, the module settings
   editor's included, its content scrolling inside it (portal.ts adjustPopupDialogOverflow sizes it to the room under the tool bar);
   the tool bar's buttons are 40px touch targets, and the title starts at the left (the settings editor's pages: below its tab strip). */
@media not all and (min-width: 600px) {
	.PopupContainer > .PopupDialog,
	.PopupContainer > .PopupDialog.PopupDialogSecurity,
	.PopupContainer > .PopupDialog.PopupDialogMessage,
	.PopupContainer > .PopupDialog.PopupDialogConfirmation,
	.PopupContainer > .PopupDialog.PortalDialogConfirmation {
		border-radius: 0;
		box-sizing: border-box;
		height: 100%;
		max-height: 100%;
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	.PopupContainer > .PopupDialog .PopupDialogToolbar .PopupTitle {
		margin-left: 6px;
	}

	.PopupContainer > .PopupDialog .PopupDialogToolbar .PopupButtonContainer > a {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		min-height: 40px;
		min-width: 40px;
	}

	/* The action row's buttons (a glyph link or a button, wrapping onto more lines) are 40px touch targets too; a glyph keeps its
	   size, centred in its target. */
	.PopupContainer > .PopupDialog .PopupActionRow a.ImageButton,
	.PopupContainer > .PopupDialog .PopupActionRow button,
	.PopupContainer > .PopupDialog .PopupActionRow input[type="submit"],
	.PopupContainer > .PopupDialog .PopupActionRow input[type="button"],
	.PopupContainer > .PopupDialog .PopupActionRow a.SpecialContainerButton {
		box-sizing: border-box;
		min-height: 40px;
		min-width: 40px;
	}

	/* A 40px target adds its full height to its line (the shared 24px rule's margins take back a 24px button's only). */
	.PopupContainer > .PopupDialog .PopupActionRow a.ImageButton,
	.PopupContainer > .PopupDialog .PopupActionRow button.ImageButton {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		margin-block: 0;
		vertical-align: middle;
	}
}
.close-button svg.close-button-circle {
	cursor: pointer;
	display: block;
	height: 18px;
	width: 18px;
}

.close-button svg.close-button-circle > circle {
	fill: var(--portal-popup-toolbar-background);
	stroke: var(--portal-popup-toolbar-text);
}

.close-button svg.close-button-circle > path {
	stroke: var(--portal-popup-toolbar-text);
}

.close-button:hover svg.close-button-circle > circle {
	fill: var(--portal-popup-toolbar-text);
}

.close-button:hover svg.close-button-circle > path,
.close-button:active svg.close-button-circle > path {
	stroke: var(--portal-popup-toolbar-background);
}

/* The tab editor (Plan H4 Task 3, TabEditor.cshtml): on a touch screen (the phone rule, ruling I-M1) its glyph buttons (Edit Tab
   Security, Save, Add New Tab, Clone This Tab, Delete This Tab) are 32px touch targets, as the profile editor's; the glyphs keep
   their size. The tab security popup's (Task 4: Edit, Add, Revoke) likewise. */
@media (pointer: coarse) {
	.TabEditorContainer a.ImageButton,
	.TabSecurityContainer a.ImageButton {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		min-height: 32px;
		min-width: 32px;
	}
}

/* The tab security popup on a phone (below 600px, ruling I-M1): the grant row wraps (the role picker on a line of its own, then the
   rights, Add and Show Advanced Options) and the current roles are one per line, so nothing is cut off at the popup's edge. */
@media not all and (min-width: 600px) {
	.TabSecurityContainer table.Nowrap tr {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.TabSecurityContainer table.Nowrap td.Wide {
		flex-basis: 100%;
	}

	.TabSecurityContainer ul.ListColumnView > li {
		width: 100%;
	}
}

/* The role membership popup (Plan RM, Views\Role\RoleMembershipPartial.cshtml): on a phone a long name or email breaks inside its
   entry (on a desktop the entry stays on one line, ul.ListColumnView); below 600px the members are one per line, so the list does
   not scroll sideways; on a touch screen its glyph buttons (Add, Delete, Edit the profile) are 32px targets, as the tab security
   popup's (ruling I-M1). */
[id^=roleMembershipAccessRightsFormContainer_] ul.ListColumnView > li {
	overflow-wrap: anywhere;
}

@media not all and (min-width: 600px) {
	[id^=roleMembershipAccessRightsFormContainer_] ul.ListColumnView > li {
		width: 100%;
	}
}

@media (pointer: coarse) {
	[id^=roleMembershipAccessRightsFormContainer_] a.ImageButton {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		min-height: 32px;
		min-width: 32px;
	}
}

/*********************************************************************************************************************************\
Module settings tab strip: .TabContainer > { .TabHeading > input[type=button] | .TabPages > form > .TabPage }
The module settings editor (ModuleEditor.cshtml), from today's site.css L921-990. The tabs sit on a sunken strip; the active tab
is the accent and its page the only one shown (the view's script moves .Active). The tabs are square and flush as today, not the
portal's rounded buttons, and at least 32px high for touch; on a narrow popup they wrap inside the strip. The strip is darker
than the tabs, so they read as tabs (1.3:1, as today's #e6e6e6 on #cccccc). The focus ring sits inside the tab, because the strip
clips its overflow; on the active tab it takes the on-accent focus colour. Today's input:before and :after shadows drew nothing
(an input has no pseudo-elements) and are not carried over.
\*********************************************************************************************************************************/
.TabContainer .TabHeading {
	background-color: var(--portal-tab-strip-background);
	border: 1px solid var(--portal-border-strong);
	overflow: hidden;
}

.TabContainer .TabHeading input {
	background-color: var(--portal-button-background);
	border: none;
	border-radius: 0;
	color: var(--portal-button-text);
	cursor: pointer;
	margin: 0;
	min-height: 32px;
	padding: 5px 10px;
}

.TabContainer .TabHeading input:hover {
	background-color: var(--portal-button-hover-background);
}

/* After :hover, at the same specificity: the active tab stays the accent under the pointer. */
.TabContainer .TabHeading input.Active {
	background-color: var(--portal-accent);
	color: var(--portal-on-accent);
}

.TabContainer .TabHeading input:focus-visible {
	outline: 2px solid var(--portal-focus);
	outline-offset: -2px;
}

.TabContainer .TabHeading input.Active:focus-visible {
	outline-color: var(--portal-focus-on-accent);
}

.TabContainer .TabPages {
	border: solid var(--portal-accent);
	border-width: 0 1px 1px 1px;
}

/* Today's 50vw widens the popup to it, as today. It always fits: the popup may be 80vw wide (min(50vw, 100%) would not widen
   the popup at all, because the popup takes its width from its content). */
.TabContainer .TabPages .TabPage {
	display: none;
	margin: 5px;
	min-height: 25vh;
	min-width: 50vw;
}

.TabContainer .TabPages .TabPage.Active {
	display: inline-block;
}

.TabContainer table.EditTable {
	width: 100%;
}

.TabContainer table.EditTable tr td {
	width: 100% !important;
}

.TabContainer table.EditTable tr td:first-child {
	white-space: nowrap;
	width: auto !important;
}

/*********************************************************************************************************************************\
Module settings editor on a phone: below 600px the popup takes the whole window (see the popup's rules), so today's 50vw page is a
desktop share; on a phone a page takes the popup's width. After the tab strip's rules, which it overrides at the same specificity.
\*********************************************************************************************************************************/
@media not all and (min-width: 600px) {
	.TabContainer .TabPages .TabPage {
		box-sizing: border-box;
		min-width: 0;
	}
}

/*********************************************************************************************************************************\
Welcome tab: .WelcomeContainer > { .WelcomeBanner | .WelcomeMessage | .WelcomeColumn > { .ColumnImage | .ColumnLabel | .ColumnContent } }
Tab summary: .SummaryContainer > { .SummaryMessage | .SummaryColumn > { .ColumnImage | .ColumnLabel | .ColumnContent } }
Empty tab: .EmptyTabMessage
\*********************************************************************************************************************************/
.WelcomeContainer,
.SummaryContainer {
	padding: 16px 12px 24px;
	text-align: center;
}

.WelcomeContainer .WelcomeBanner {
	color: var(--portal-text);
	font-size: 26px;
	font-weight: 300;
	margin: 16px auto 20px;
}

.WelcomeContainer .WelcomeBanner > span {
	color: var(--portal-highlight);
	font-size: 34px;
	font-weight: 700;
}

.WelcomeContainer .WelcomeBanner > span > span {
	color: var(--portal-accent-text);
}

.WelcomeContainer .WelcomeLogo {
	animation: WelcomeLogo 20s linear 0s infinite;
	height: 48px;
	margin-right: 8px;
	vertical-align: middle;
	width: 48px;
}

.WelcomeContainer div.WelcomeMessage,
.SummaryContainer div.SummaryMessage {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	box-sizing: border-box;
	margin: 0 auto 16px;
	max-width: 800px;
	padding: 12px 16px;
}

.SummaryContainer div.SummaryMessage {
	color: var(--portal-accent-text);
	font-size: 15px;
	font-weight: 600;
}

.WelcomeContainer div.WelcomeColumn,
.SummaryContainer div.SummaryColumn {
	background-color: var(--portal-tile-background);
	border: 1px solid var(--portal-border);
	border-radius: 10px;
	box-shadow: 0 1px 3px var(--portal-shadow);
	display: inline-block;
	margin: 8px;
	/* A common height for a tidy row; a tile with more text grows rather than clipping it. */
	min-height: 440px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	vertical-align: top;
	width: 180px;
}

.WelcomeContainer div.WelcomeColumn:hover,
.SummaryContainer div.SummaryColumn:hover {
	box-shadow: 0 8px 24px var(--portal-shadow);
	transform: translateY(-2px);
}

.WelcomeContainer div.WelcomeColumn div.ColumnImage,
.SummaryContainer div.SummaryColumn div.ColumnImage {
	background-color: var(--portal-tile-image-background);
	padding: 28px 3px;
}

.WelcomeContainer div.WelcomeColumn div.ColumnImage img,
.WelcomeContainer div.WelcomeColumn div.ColumnImage input,
.WelcomeContainer div.WelcomeColumn div.ColumnImage .PortalIcon,
.SummaryContainer div.SummaryColumn div.ColumnImage img,
.SummaryContainer div.SummaryColumn div.ColumnImage input,
.SummaryContainer div.SummaryColumn div.ColumnImage .PortalIcon {
	height: 64px;
	width: 64px;
}

/* The tile's glyph sits on the baseline, as today's image did (not the portal icons' middle), so the image band keeps its height. */
.WelcomeContainer div.WelcomeColumn div.ColumnImage .PortalIcon,
.SummaryContainer div.SummaryColumn div.ColumnImage .PortalIcon {
	vertical-align: baseline;
}

.WelcomeContainer div.WelcomeColumn div.ColumnLabel,
.SummaryContainer div.SummaryColumn div.ColumnLabel {
	align-items: center;
	color: var(--portal-tile-label);
	display: flex;
	font-size: 14px;
	font-weight: 700;
	height: 48px;
	justify-content: center;
	letter-spacing: 0.8px;
}

.WelcomeContainer div.WelcomeColumn div.ColumnLabel a,
.SummaryContainer div.SummaryColumn div.ColumnLabel a {
	color: inherit;
	text-decoration: none;
}

.WelcomeContainer div.WelcomeColumn div.ColumnContent,
.SummaryContainer div.SummaryColumn div.ColumnContent {
	color: var(--portal-muted);
	line-height: 1.7;
	padding: 0 14px 14px;
}

/* An empty tab's message (Views\Tab\Index.cshtml, Lee 2026-11-19: no modules and no child tabs, outside the designer): one quiet
   centred line where the modules would be. */
.EmptyTabMessage {
	color: var(--portal-muted);
	font-size: 15px;
	padding: 48px 12px;
	text-align: center;
}

.WelcomeContainer .WelcomeShake {
	animation: WelcomeShake 2s linear 0s infinite;
}

@keyframes WelcomeLogo {
	from {
		transform: rotate(0);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes WelcomeShake {
	0% {
		transform: rotate(0);
	}

	4% {
		transform: rotate(-10deg);
	}

	6% {
		transform: rotate(0);
	}

	8% {
		transform: rotate(10deg);
	}

	10% {
		transform: rotate(0);
	}

	100% {
		transform: rotate(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.WelcomeContainer .WelcomeLogo,
	.WelcomeContainer .WelcomeShake {
		animation: none;
	}

	.WelcomeContainer div.WelcomeColumn,
	.SummaryContainer div.SummaryColumn {
		transition: none;
	}
}

/*********************************************************************************************************************************\
Show Dashboards (the dashboard switch, Lee 2026-11-20 option A): the dashboards as cards grouped by host, the request's own host first.
Each card is one link (an initial tile, the name, and the "Current" pill on the active dashboard, which is outlined in the accent);
the grid fills ~220px columns, one column on a phone with 16px gutters; every card is at least 56px tall (touch targets >= 44px).
A host with none of the user's dashboards keeps its header (and another host's link), with a muted note and no cards.
Theme tokens only, so light and dark follow the theme.
\*********************************************************************************************************************************/
.DashboardSwitch h1.StandardHeading {
	font-size: 20px;
	line-height: 1.3;
	margin: 0;
}

.DashboardSwitch .DashboardSwitchIntro {
	color: var(--portal-muted);
	font-size: 14px;
	margin: 4px 0 0;
}

.DashboardSwitch .DashboardSwitchHost {
	margin-top: 24px;
}

.DashboardSwitch .DashboardSwitchHostName {
	align-items: center;
	color: var(--portal-text);
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	font-weight: 600;
	gap: 8px;
	line-height: 1.4;
	margin: 0 0 8px;
	overflow-wrap: anywhere;
}

.DashboardSwitch .DashboardSwitchThisSite {
	background-color: var(--portal-surface-sunken);
	border-radius: 999px;
	color: var(--portal-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 4px 8px;
}

/* A host with none of the user's dashboards: its header (and another host's link) as today, this note in place of cards. */
.DashboardSwitch .DashboardSwitchEmpty {
	color: var(--portal-muted);
	font-size: 13px;
	margin: 0;
}

.DashboardSwitch .DashboardSwitchGrid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.DashboardSwitch .DashboardSwitchCard {
	align-items: center;
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--portal-text);
	display: flex;
	gap: 12px;
	height: 100%;
	min-height: 56px;
	padding: 10px 12px;
	text-decoration: none;
}

.DashboardSwitch .DashboardSwitchCard:hover {
	background-color: var(--portal-surface-raised);
	border-color: var(--portal-border-strong);
	color: var(--portal-text);
	text-decoration: none;
}

.DashboardSwitch .DashboardSwitchCard:focus-visible {
	outline: 2px solid var(--portal-focus);
	outline-offset: 2px;
}

/* The current dashboard: a 2px accent outline (the border plus an inset ring, so the card does not move). */
.DashboardSwitch .DashboardSwitchCard.DashboardSwitchCardCurrent,
.DashboardSwitch .DashboardSwitchCard.DashboardSwitchCardCurrent:hover {
	border-color: var(--portal-accent);
	box-shadow: inset 0 0 0 1px var(--portal-accent);
}

.DashboardSwitch .DashboardSwitchInitial {
	align-items: center;
	background-color: var(--portal-accent-soft);
	border-radius: 8px;
	color: var(--portal-accent-text);
	display: inline-flex;
	flex: none;
	font-size: 16px;
	font-weight: 600;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.DashboardSwitch .DashboardSwitchName {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 600;
	min-width: 0;
	overflow-wrap: anywhere;
}

.DashboardSwitch .DashboardSwitchCurrent {
	background-color: var(--portal-accent);
	border-radius: 999px;
	color: var(--portal-on-accent);
	flex: none;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 4px 8px;
}

@media not all and (min-width: 600px) {
	.DashboardSwitch.SingleCenteredModule {
		margin: 16px;
		padding: 16px;
		width: auto;
	}

	.DashboardSwitch .DashboardSwitchGrid {
		grid-template-columns: 1fr;
	}
}

/*********************************************************************************************************************************\
Headings, rules and containers
\*********************************************************************************************************************************/
.StandardHeading {
	color: var(--portal-accent-text);
	font-size: 16px;
	font-weight: 600;
}

.ModuleSubHeader {
	color: var(--portal-accent-text);
	font-size: 12px;
	font-weight: 600;
}

.SingleCenteredModule {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	box-sizing: border-box;
	margin: 16px auto;
	padding: 20px 24px;
	width: 90%;
}

.PaddedContainer {
	padding: 5px;
}

hr.RuleHorizontal,
.RuleHorizontal {
	border: none;
	border-top: 1px solid var(--portal-border);
	display: block;
	margin-bottom: 0.6em;
	margin-top: 0.6em;
	overflow: hidden;
	text-align: center;
}

td.RuleHorizontal {
	border-top: 1px solid var(--portal-border);
	display: block;
	height: 1px;
	margin-bottom: 0.5em;
	margin-top: 0.5em;
	overflow: hidden;
	width: 100%;
}

.RuleVertical {
	border: none;
	border-left: 1px solid var(--portal-border);
	height: 100%;
	margin: 0;
	padding: 0;
	width: 1px;
}

.BrowserNotSupported {
	color: var(--portal-danger);
	font-size: 1.4em;
	font-weight: bold;
	height: 100%;
	margin-top: calc((100vh - 150px) / 2);
	text-align: center;
	width: 100%;
}

/*********************************************************************************************************************************\
Validation (ASP.NET MVC's classes) and message text
\*********************************************************************************************************************************/
.validation-summary-errors,
.field-validation-error {
	color: var(--portal-danger);
}

.validation-summary-errors ul {
	margin: 4px 0;
}

.validation-summary-valid,
.field-validation-valid {
	display: none;
}

.input-validation-error {
	border-color: var(--portal-danger) !important;
}

.Alert {
	color: var(--portal-danger);
	font-weight: 600;
}

.Info {
	color: var(--portal-info);
}

div.Info {
	background-color: var(--portal-info-background);
	border-radius: 6px;
	margin: 4px 0 8px;
	padding: 8px 12px;
}

.Success {
	color: var(--portal-success);
}

.Highlight {
	color: var(--portal-accent-text);
}

/* Read by assistive technology, never seen and taking no room (the HTML editor's low-contrast live region, ED-F1). */
.PortalVisuallyHidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.Highlight:hover,
.HighlightRollover,
a.HighlightLink:hover {
	color: var(--portal-link-hover);
}

.Alternating,
.AlternatingTable tbody > tr:nth-child(odd) {
	background-color: var(--portal-surface-raised);
}

/*********************************************************************************************************************************\
Password strength and comparison
\*********************************************************************************************************************************/
.PasswordStrengthBar {
	border: none;
	border-radius: 3px;
	display: inline-block;
	height: 5px;
	margin-left: 10px;
	max-width: 200px;
	min-width: 10px;
	padding: 1px;
	vertical-align: bottom;
}

.PasswordStrengthWeak {
	background-color: var(--portal-danger);
	color: var(--portal-danger);
}

.PasswordStrengthAverage {
	background-color: var(--portal-strength-average);
	color: var(--portal-strength-average);
}

.PasswordStrengthGood {
	background-color: transparent;
	border: none;
	color: var(--portal-success);
	height: 20px !important;
	margin-top: 2px;
}

/* The strong password tick: an icon in the bar (ChangePasswordPartial.cshtml), shown only on a strong password. */
.PasswordStrengthBar > .PasswordStrengthGoodIcon {
	display: none;
}

.PasswordStrengthGood > .PasswordStrengthGoodIcon {
	display: inline-block;
}

.VerifyPasswordMessage {
	display: inline-block;
	margin-left: 10px;
}

.PasswordComparer {
	display: inline-block;
	height: 20px;
}

#passwordRequirementsContainer ul li .PortalIcon {
	height: 14px;
	vertical-align: middle;
	width: 14px;
}

/*********************************************************************************************************************************\
Image buttons and lists
\*********************************************************************************************************************************/
a.ImageButton {
	text-decoration: none;
}

a.ImageButton:hover {
	cursor: pointer;
}

/* Icon buttons in a module's or a popup's content (Lee's UI standard, 2026-11-16): a 24px box around a 16px glyph, 4px between the
   buttons of a run. The box takes back from its line what it adds to it (the body's line height, 13px / 1.4, where the browser has
   no lh unit), so a top-aligned button is level with the first line of the text beside it, whatever wraps. :where() keeps the box,
   glyph and spacing rules at the specificity of a.ImageButton (0,1,1): a module's own button rule still wins until that module's
   task removes it. A button holding a label as well keeps it 8px after its glyph. The image buttons (img, input), the shell's own
   buttons (header, menus, tab tools, pins, popup title bars) and the Unity Matrix are not in it. */
:where(.PortalModuleContent, .PopupDialogContent) :is(a, button).ImageButton {
	align-items: center;
	box-sizing: border-box;
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	margin-block: calc((1.4em - 24px) / 2);
	margin-block: calc((1lh - 24px) / 2);
	min-height: 24px;
	min-width: 24px;
	padding: 0;
	vertical-align: top;
}

:where(:where(.PortalModuleContent, .PopupDialogContent) :is(a, button).ImageButton) > :is(svg.PortalIcon, img) {
	flex: none;
	height: 16px;
	width: 16px;
}

:where(:where(.PortalModuleContent, .PopupDialogContent) :is(a, button).ImageButton) + :is(a, button).ImageButton {
	margin-left: 4px;
}

/* A button element that is an icon button draws only its glyph: no background, border or font of its own (one rule for every module). */
:where(.PortalModuleContent, .PopupDialogContent) button.ImageButton {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
}

/* A hidden icon button stays hidden: the box rule above (0,1,1) outweighs .Hidden (0,1,0), so it is hidden again here (0,2,1). A
   module's own button rule of equal or more weight that sets display still needs its own .Hidden rule, as before the shared rule. */
:where(.PortalModuleContent, .PopupDialogContent) :is(a, button).ImageButton.Hidden {
	display: none;
}

/* Used by portal.ts to submit the parent form - or the form named by the data-form-id attribute. */
a.ImageButton img,
img.ImageButton {
	height: 16px;
	width: 16px;
}

ul.ListHorizontal {
	display: table;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

ul.ListHorizontal > li {
	display: table-cell;
	padding: 0 4px 0 0;
	vertical-align: top;
}

ul.ListNoType {
	list-style-type: none;
}

ul.ListNoType,
ul.ListNoType > li {
	margin: 0;
	padding: 0;
}

/* Today's TABLE.PaddedTable (site.less): a left-justified table whose first column (the labels) is right-justified. */
table.PaddedTable {
	border-collapse: separate;
	border-spacing: 10px 0;
	text-align: left;
}

table.PaddedTable td {
	text-align: left;
}

table.PaddedTable td:first-of-type,
table.PaddedTable td.Label {
	padding-right: 2px;
	text-align: right;
	white-space: nowrap;
}

table.PaddedTable td:last-child,
table.PaddedTable td.Content {
	padding-right: 10px;
	text-align: left;
}

/* Today's .ButtonVertical (site.less): the narrow cell that holds a row's button. */
.ButtonVertical {
	display: table-cell;
	padding: 2px;
	width: 20px;
}

/*********************************************************************************************************************************\
The Account Manager (frontend\src\modules\account-manager\AccountManagerModule.vue, Plan H Task 9): the search form and the accounts'
portal grid, whose first column holds each row's buttons (Edit, Impersonate: a posted form whose button draws only its glyph, as the
links beside it do; Delete). The buttons are the portal's (Image buttons, above: 24px, 4px apart; Lee's UI standard, 2026-11-16). The
selects and the text box keep inside the module at any width. On a touch screen every glyph button, the select and the text box is a
40px target (the Tab Manager's precedent); the glyphs keep their size.
Layout only: no colour (the module takes the app's colours), so the themes change nothing in it.
\*********************************************************************************************************************************/
.AccountManagerModule table.PaddedTable {
	box-sizing: border-box;
}

.AccountManagerModule table.PaddedTable select,
.AccountManagerModule table.PaddedTable input[type=text] {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}

.AccountManagerModule .AccountManagerList {
	margin-top: 8px;
}

/* A row's buttons 4px apart (Lee's UI standard, 2026-11-16): Impersonate's form stands between Edit and Delete, so the 4px is the
   row's gap, not the buttons' own margin (portal.css, Image buttons), which would add to it where Edit and Delete meet. */
.AccountManagerModule .AccountManagerRowButtons {
	align-items: center;
	display: flex;
	gap: 4px;
}

.AccountManagerModule .AccountManagerRowButtons > .ImageButton {
	margin-left: 0;
}

.AccountManagerModule form.AccountManagerImpersonate {
	display: inline-flex;
	margin: 0;
}

@media (pointer: coarse) {
	.AccountManagerModule a.ImageButton,
	.AccountManagerModule button.ImageButton {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		min-height: 40px;
		min-width: 40px;
	}

	.AccountManagerModule table.PaddedTable select,
	.AccountManagerModule table.PaddedTable input[type=text] {
		min-height: 40px;
	}
}

/*********************************************************************************************************************************\
The Dashboard Manager (frontend\src\modules\dashboard-manager, Plan H Task 11): today's table (its header's sort buttons look like
the header text, the active column marked by an arrow) and the inline editors (DashboardEditor.vue: the buttons beside the fields,
then Plan I's settings tab strip). .ButtonVerticalOffset is today's (site.less L1283). The list is a size container: on a narrow
module (a phone) the names and texts wrap, the editor's buttons sit in a row above its fields and each label above its field, so
nothing scrolls sideways; a wide table still scrolls inside its own box. The tab pages take the editor's width (the settings popup's
50vw is a popup's). On a touch screen every glyph button, sort button and field is a 32px target (ruling I-M1).
Layout only: no colour (the module takes the app's colours), so the themes change nothing in it.
\*********************************************************************************************************************************/
.ButtonVerticalOffset {
	padding-left: 5px;
}

.DashboardManagerModule .DashboardManagerList {
	container-name: dashboard-manager;
	container-type: inline-size;
	max-width: 100%;
	overflow-x: auto;
}

.DashboardManagerModule button.DashboardManagerSort {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	margin: 0;
	padding: 0;
	text-align: left;
}

.DashboardManagerModule th[aria-sort="ascending"] > button.DashboardManagerSort::after {
	content: " \25B2";
	font-size: 0.75em;
}

.DashboardManagerModule th[aria-sort="descending"] > button.DashboardManagerSort::after {
	content: " \25BC";
	font-size: 0.75em;
}

.DashboardManagerModule .DashboardManagerRowButtons {
	white-space: nowrap;
}

/* The header's "+" stands at the right of its column, 8px before the column's title (Lee's ruling 2026-11-18 2). */
.DashboardManagerModule th.DashboardManagerButtonsHeader {
	padding-right: 4px;
	text-align: right;
}

.DashboardManagerModule tr.EditItem > td {
	white-space: normal;
}

.DashboardManagerModule .DashboardEditorLayout {
	align-items: flex-start;
	display: flex;
	gap: 6px;
}

.DashboardManagerModule .DashboardEditorFields {
	flex: 1 1 auto;
	min-width: 0;
}

.DashboardManagerModule .DashboardEditorTabs {
	margin-top: 4px;
}

/* The page fills the editor (the strip's 5px margins aside) without setting display: only the strip's two rules show or hide a page. */
.DashboardManagerModule .TabContainer .TabPages .TabPage {
	box-sizing: border-box;
	min-width: 0;
	vertical-align: top;
	width: calc(100% - 10px);
}

.DashboardManagerModule .DashboardEditorOptions .TableCell {
	padding: 2px 8px 2px 0;
	vertical-align: middle;
}

.DashboardManagerModule .DashboardCustomerCodeAdd {
	align-items: center;
	display: flex;
	gap: 4px;
}

@container dashboard-manager (max-width: 479.98px) {
	/* The names take half the width (a word breaks only when it cannot fit its line). */
	.DashboardManagerModule table.DataTable > thead > tr > th.Left:not(.Wide) {
		width: 50%;
	}

	.DashboardManagerModule table.DataTable > tbody > tr > td.ButtonVerticalOffset {
		overflow-wrap: anywhere;
		white-space: normal;
	}

	.DashboardManagerModule .DashboardEditorLayout {
		flex-direction: column;
	}

	.DashboardManagerModule .EditItem ul.DashboardEditorButtons {
		display: flex;
		gap: 8px;
	}

	.DashboardManagerModule .EditItem table.EditTable,
	.DashboardManagerModule .EditItem table.EditTable > tbody,
	.DashboardManagerModule .EditItem table.EditTable > tbody > tr,
	.DashboardManagerModule .EditItem table.EditTable > tbody > tr > td,
	.DashboardManagerModule .EditItem .DashboardEditorOptions,
	.DashboardManagerModule .EditItem .DashboardEditorOptions .TableRow,
	.DashboardManagerModule .EditItem .DashboardEditorOptions .TableCell {
		display: block;
		width: auto !important;
	}

	.DashboardManagerModule .EditItem table.EditTable > tbody > tr > td {
		padding-top: 2px;
		text-align: left;
		white-space: normal;
	}
}

@media (pointer: coarse) {
	.DashboardManagerModule .ImageButton {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		min-height: 32px;
		min-width: 32px;
	}

	.DashboardManagerModule button.DashboardManagerSort,
	.DashboardManagerModule .EditItem input[type=text],
	.DashboardManagerModule .EditItem input[type=number],
	.DashboardManagerModule .EditItem input[type=date],
	.DashboardManagerModule .EditItem select {
		min-height: 32px;
	}

	/* A checkbox's target is the box and its label together (the label is 32px tall). */
	.DashboardManagerModule .EditItem input[type=checkbox] {
		height: 24px;
		vertical-align: middle;
		width: 24px;
	}

	.DashboardManagerModule .EditItem .DashboardEditorOptions label {
		display: inline-block;
		line-height: 32px;
		min-height: 32px;
		vertical-align: middle;
	}
}

/*********************************************************************************************************************************\
Loading and busy states
\*********************************************************************************************************************************/
.Fade {
	background-color: var(--portal-overlay);
	cursor: wait;
	opacity: 0.3;
	pointer-events: none;
	position: relative;
}

/* One look for every loading box (loadSpinner's, the Matrix spinner's and the Mapping designer's): a small card with the
   message over a thin ring whose purple arc turns on a soft track. The Matrix spinner (.LoadingAnimation) shows the same ring
   in place of its canvas. */
.LoadingContainer {
	align-items: center;
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 12px;
	box-shadow: 0 4px 16px var(--portal-shadow);
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 20px;
	position: absolute;
	text-align: center;
	z-index: 1000004;
}

.LoadingText {
	color: var(--portal-text);
	font-size: 12px !important;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.Loading,
.LoadingAnimation {
	animation: spin 0.8s linear infinite;
	border: 3px solid var(--portal-accent-soft);
	border-radius: 50%;
	border-top-color: var(--portal-accent-text);
	box-sizing: border-box;
	height: 28px;
	margin: 0;
	padding: 0;
	width: 28px;
}

.LoadingAnimation > canvas {
	display: none;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* Reduced motion: the ring keeps still and only breathes gently. */
@keyframes LoadingPulse {
	from {
		opacity: 1;
	}

	to {
		opacity: 0.4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.Loading,
	.LoadingAnimation {
		animation: LoadingPulse 1.2s ease-in-out infinite alternate;
	}
}

/*********************************************************************************************************************************\
Icons: svg.PortalIcon > use[href="#ti-{name}"], drawn from the sprite each layout inlines once (wwwroot\icons\portal-icons.svg,
Tabler Icons outline glyphs). A glyph strokes the current colour: it takes its text's colour (inherit) unless a tint class sets
one (.PortalIcon--{tint}, each a theme variable). Glyphs of 48px and up draw a thinner line (.PortalIcon--large).
\*********************************************************************************************************************************/
.PortalIcon {
	display: inline-block;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	vertical-align: middle;
}

.PortalIcon--large {
	stroke-width: 1.5;
}

.PortalIcon--text {
	color: var(--portal-text);
}

.PortalIcon--muted {
	color: var(--portal-muted);
}

.PortalIcon--accent {
	color: var(--portal-accent-text);
}

.PortalIcon--success {
	color: var(--portal-success);
}

.PortalIcon--danger {
	color: var(--portal-danger);
}

.PortalIcon--warning {
	color: var(--portal-warning);
}

.PortalIcon--info {
	color: var(--portal-info);
}

.PortalIcon--highlight {
	color: var(--portal-highlight);
}

.PortalIcon--header {
	color: var(--portal-header-text);
}

.PortalIcon--header-highlight {
	color: var(--portal-header-highlight);
}

.PortalIcon--menu {
	color: var(--portal-menu-text);
}

.PortalIcon--popup-toolbar {
	color: var(--portal-popup-toolbar-text);
}

.PortalIcon--system {
	color: var(--portal-system);
}

.PortalIcon--role-site {
	color: var(--portal-role-site);
}

.PortalIcon--role-dashboard {
	color: var(--portal-role-dashboard);
}

.PortalIcon--blog {
	color: var(--portal-blog);
}

.PortalIcon--rss {
	color: var(--portal-rss);
}

/* The inlined sprite (the first child of body) holds only symbols: it takes no room and shows nothing. */
.PortalIconSprite {
	height: 0;
	overflow: hidden;
	position: absolute;
	width: 0;
}

/*********************************************************************************************************************************\
Not yet ported: the placeholder a slot renders until its feature is ported to PAS.Portal.App
\*********************************************************************************************************************************/
.NotPorted {
	border: 1px dashed var(--portal-placeholder-border);
	border-radius: 6px;
	color: var(--portal-placeholder-text);
	display: inline-block;
	font-size: 11px;
	margin: 4px;
	padding: 2px 8px;
}

.SystemNotificationContainer .NotPorted {
	background-color: var(--portal-surface);
}

/*********************************************************************************************************************************\
Tables and edit rows (today's site.css, its colours on the theme): table.DataTable (a grid of results, plain and alternate rows),
table.EditTable (a table of editors: labels right, values muted), .EditItem (a row being edited, today's outset box),
.ButtonHorizontal (a row's image buttons) and ul.ListColumnView (a list in three columns). Today's Tahoma font and
ThreeDDarkShadow lines take the portal's font and border colours. A sortable table is a portal grid (ruling I-T1: Tabulator,
themed below), so today's .SortableDataTable and portal.js's sorter are gone, except on the shell pages' plain tables (Sortable
tables, below).
\*********************************************************************************************************************************/
table.DataTable {
	border: 1px solid var(--portal-border-strong);
	border-collapse: separate;
	border-spacing: 0;
	color: var(--portal-text);
	padding: 2px;
}

table.DataTable > caption {
	background-color: var(--portal-header-background);
	color: var(--portal-header-text);
	font-weight: bold;
}

table.DataTable > tr,
table.DataTable > tbody > tr {
	background-color: var(--portal-surface);
}

table.DataTable > tr:nth-child(even),
table.DataTable > tbody > tr:nth-child(even) {
	background-color: var(--portal-surface-sunken);
}

/* Plain list rows (Lee's UI standard, 2026-11-16): one 18.2px line and 5px above and below it make a 28px row, and a row's 24px
   icon buttons (portal.css, Image buttons) fit inside it; 4px each side puts a name 8px after the buttons of the cell before it. */
table.DataTable > tr > td,
table.DataTable > tbody > tr > td {
	background-color: inherit;
	border-top: 1px solid var(--portal-border);
	padding: 5px 4px;
	text-align: left;
	vertical-align: top;
}

table.DataTable > thead > tr {
	font-weight: bolder;
}

table.DataTable > thead > tr,
table.DataTable > tfoot > tr {
	background-color: var(--portal-module-header-background);
	color: var(--portal-module-header-text);
	vertical-align: top;
}

table.DataTable > tr > th,
table.DataTable > tbody > tr > th,
table.DataTable > thead > tr > td,
table.DataTable > thead > tr > th {
	border-bottom: 1px solid var(--portal-border-strong);
	border-top: none;
	padding: 5px 4px;
	text-align: left;
}

table.EditTable {
	text-align: left;
}

table.EditTable td {
	color: var(--portal-muted);
	text-align: left;
}

table.EditTable td:first-of-type,
table.EditTable td.Label {
	padding-right: 2px;
	text-align: right;
}

table.EditTable td:last-child,
table.EditTable td.Content {
	padding-right: 10px;
}

table.EditTable.Edge {
	border: 1px solid var(--portal-border-strong);
}

.EditItem {
	background-color: var(--portal-surface-raised);
	border: 2px solid var(--portal-border-strong);
	color: var(--portal-text);
	font-weight: normal;
	margin: 0;
	padding: 0;
}

/* Today's -10px top margin took back the gap of an empty validation summary, which the app does not render. */
.EditItem form {
	margin: 0;
	padding: 0 5px;
}

.ButtonHorizontal {
	display: inline;
	padding: 2px;
	white-space: nowrap;
}

/* A table cell marked ButtonHorizontal stays a cell, so its list's padding keeps the row's buttons inside the row (Lee's UI standard,
   2026-11-16: plain list rows). Outside the portal's list tables it keeps today's room: 2px at its sides only, as the inline cell
   had. */
td.ButtonHorizontal,
th.ButtonHorizontal {
	display: table-cell;
	padding-bottom: 0;
	padding-top: 0;
}

.ButtonHorizontal img,
.ButtonHorizontal input[type=image],
.ButtonHorizontal .PortalIcon {
	border: none;
	height: 16px;
	vertical-align: middle;
	width: 16px;
}

ul.ListColumnView {
	list-style-type: none;
	white-space: normal;
}

/* An entry is a plain list row (Lee's UI standard, 2026-11-16): its line and 5px above and below it, and no gap between entries. */
ul.ListColumnView > li {
	display: inline-block;
	margin: 0 auto;
	padding-bottom: 5px;
	padding-top: 5px;
	vertical-align: top;
	width: 30%;
}

/* The role and member lists in ul.ListColumnView (the module and tab security editors, the mapping security, the role membership
   list; Lee, 2026-11-16): on a desktop each entry (its remove button first) stays on one line. An entry is at least a third of the
   list wide, as today's columns, and grows to its text; the entries wrap between them, never inside one. On a phone (below 600px,
   ruling I-M1) an entry wraps as today. */
@media (min-width: 600px) {
	ul.ListColumnView > li {
		box-sizing: border-box;
		min-width: 30%;
		padding-right: 12px;
		white-space: nowrap;
		width: auto;
	}
}

/*********************************************************************************************************************************\
Utility classes (today's names)
\*********************************************************************************************************************************/
.Bold {
	font-weight: bold;
}

.Bottom {
	vertical-align: bottom;
}

.Center {
	text-align: center;
}

.CenteredContainer {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.CenteredImage {
	display: block;
	margin: auto;
}

.Clear {
	clear: both;
}

/* Today's .Disabled (site.less): an element that takes no input while its request runs (the Remote Execution module). Not ported:
   IE's filter: alpha(opacity=50) beside the opacity. */
.Disabled {
	opacity: .5;
	pointer-events: none;
}

.Fixed25 {
	width: 25px;
}

.Fixed50 {
	width: 50px;
}

.Fixed75 {
	width: 75px;
}

.Fixed100 {
	width: 100px;
}

.Fixed200 {
	width: 200px;
}

textarea.Fixed {
	resize: none;
}

textarea.FixedWidth {
	resize: vertical;
}

textarea.FixedHeight {
	resize: horizontal;
}

.FixedTable {
	table-layout: fixed;
}

.FloatLeft {
	float: left;
}

.FloatRight {
	float: right;
}

/* .Hidden is the last rule of this file (MX-BUG-1): it must come after every one-class display helper. */

/* A layout-only table: no borders, margins or padding (the module error uses one). */
table.Invisible,
table.Invisible > tbody > tr > td,
table.Invisible > tbody > tr > th,
table.Invisible > thead > tr > td,
table.Invisible > thead > tr > th,
table.Invisible > tfoot > tr > td {
	border: none;
	border-collapse: collapse;
	margin: 0;
	padding: 0;
}

/* A list table marked Invisible (no lines) is still a list: its rows take the plain list geometry (Lee's UI standard, 2026-11-16);
   a plain Invisible layout table keeps padding 0. */
table.Invisible.DataTable > thead > tr > td,
table.Invisible.DataTable > thead > tr > th,
table.Invisible.DataTable > tbody > tr > td,
table.Invisible.DataTable > tbody > tr > th {
	padding: 5px 4px;
	vertical-align: top;
}

.Indent {
	text-indent: 20px;
}

.InlineBlock {
	display: inline-block;
	vertical-align: top;
}

.Italic {
	font-style: italic;
}

.Left {
	text-align: left;
}

.MinWidth50 {
	min-width: 50px;
}

.NoDecoration {
	text-decoration: none;
}

.NoPadding {
	padding: 0;
}

.NoMargin {
	margin: 0;
}

.NotItalic {
	font-style: normal !important;
}

.Nowrap {
	white-space: nowrap;
}

.Pale {
	opacity: 0.2;
}

.Pointer {
	cursor: pointer;
}

.Right {
	text-align: right;
}

.Strike {
	text-decoration: line-through;
}

.Tall {
	height: 100%;
}

.TopAlign {
	vertical-align: top;
}

.Top {
	vertical-align: text-top;
}

.Middle,
.Middle * {
	vertical-align: middle;
}

.MiddleCheckRadio,
.MiddleCheckRadio input[type=checkbox],
.MiddleCheckRadio input[type=radio] {
	vertical-align: middle;
}

.Underline {
	border-bottom: 1px solid var(--portal-text);
}

.Waiting {
	cursor: progress;
}

.Wide {
	width: 100%;
}

textarea.Wide {
	box-sizing: border-box;
}

.HalfWide {
	width: 50%;
}

.Wrap {
	white-space: normal;
	word-wrap: break-word;
}

.Table {
	display: table;
}

.TableRow {
	display: table-row;
}

.TableCell {
	display: table-cell;
}

.TableAutoWidth {
	display: table;
	width: auto;
}

/*********************************************************************************************************************************\
Vendor widget classes on the theme: the ui-* classes jQuery UI gave, which portalTabs and the pins' drag still give (jQuery UI and
Chosen are gone: jQuery to vanilla, T2 and T11); these put them on the portal's colours.
\*********************************************************************************************************************************/
.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
	font-family: inherit;
	font-size: inherit;
}

.ui-widget-content {
	background: var(--portal-surface);
	border-color: var(--portal-border);
	color: var(--portal-text);
}

.ui-widget-content a {
	color: var(--portal-link);
}

.ui-widget-header {
	background: var(--portal-surface-raised);
	border-color: var(--portal-border);
	color: var(--portal-text);
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button {
	background: var(--portal-button-background);
	border-color: var(--portal-border);
	color: var(--portal-button-text);
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
	background: var(--portal-button-hover-background);
	border-color: var(--portal-border-strong);
	color: var(--portal-button-text);
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active {
	background: var(--portal-accent);
	border-color: var(--portal-accent);
	color: var(--portal-on-accent);
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight {
	background: var(--portal-accent-soft);
	border-color: var(--portal-accent);
	color: var(--portal-text);
}

.ui-state-error,
.ui-widget-content .ui-state-error {
	background: var(--portal-danger-background);
	border-color: var(--portal-danger);
	color: var(--portal-danger);
}

.ui-widget-overlay {
	background: var(--portal-overlay);
	opacity: 1;
}

/*********************************************************************************************************************************\
The portal multi-select (frontend\src\components\PortalMultiSelect.vue: the ported role pickers, in place of chosen). The control
holds the chosen values as chips and the search box; the drop-down list is teleported to body and placed (position: fixed, left,
top, width, max-height) next to the control by the component, so no popup or scrolling container clips it. It sits above the
popups (.PopupContainer 1000002, its dialogs 1000004) and the module menu (1000003).
\*********************************************************************************************************************************/
.PortalMultiSelect {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 150px;
	font-size: 13px;
	text-align: left;
	white-space: normal;
	cursor: text;
}

.PortalMultiSelect .PortalMultiSelectChoices {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px 5px;
	box-sizing: border-box;
	min-height: 30px;
	margin: 0;
	padding: 3px 5px;
	list-style: none;
	background: var(--portal-input-background);
	border: 1px solid var(--portal-input-border);
	border-radius: 3px;
	color: var(--portal-input-text);
}

.PortalMultiSelect .PortalMultiSelectChoices:focus-within,
.PortalMultiSelectOpen .PortalMultiSelectChoices {
	border-color: var(--portal-focus);
	box-shadow: 0 0 0 2px var(--portal-focus-ring);
}

.PortalMultiSelectOpen .PortalMultiSelectChoices {
	border-radius: 3px 3px 0 0;
}

.PortalMultiSelectOpen.PortalMultiSelectAbove .PortalMultiSelectChoices {
	border-radius: 0 0 3px 3px;
}

.PortalMultiSelect.PortalMultiSelectDisabled {
	cursor: default;
}

.PortalMultiSelectDisabled .PortalMultiSelectChoices {
	background: var(--portal-surface-sunken);
	color: var(--portal-muted);
}

.PortalMultiSelect .PortalMultiSelectChip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 2px 3px 2px 5px;
	line-height: 16px;
	list-style: none;
	background: var(--portal-accent-soft);
	border: 1px solid var(--portal-border);
	border-radius: 3px;
	color: var(--portal-text);
	cursor: default;
}

.PortalMultiSelect .PortalMultiSelectChipRemove {
	flex: none;
	margin: 0;
	padding: 0 2px;
	font: inherit;
	font-size: 15px;
	line-height: 14px;
	background: none;
	border: 0;
	border-radius: 2px;
	color: var(--portal-muted);
	cursor: pointer;
}

.PortalMultiSelect .PortalMultiSelectChipRemove:hover {
	color: var(--portal-text);
}

/* A single select (single): the chosen label shows in the box, not as a chip. */
.PortalMultiSelectSingle .PortalMultiSelectChip {
	padding-left: 2px;
	background: none;
	border: 0;
}

.PortalMultiSelect .PortalMultiSelectSearchItem {
	display: flex;
	flex: 1 1 60px;
	min-width: 60px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The search box has no frame of its own (the control is the frame): the global input rules' selectors, prefixed, outrank them. */
.PortalMultiSelect input.PortalMultiSelectSearch:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=image]),
.PortalMultiSelect input.PortalMultiSelectSearch:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=image]):focus {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 22px;
	margin: 0;
	padding: 0;
	font: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	outline: 0;
	box-shadow: none;
	color: var(--portal-input-text);
	cursor: inherit;
}

.PortalMultiSelect .PortalMultiSelectSearch::placeholder {
	color: var(--portal-muted);
	opacity: 1;
}

.PortalMultiSelectImage {
	flex: none;
	width: 16px;
	height: 16px;
}

.PortalMultiSelectLabel {
	min-width: 0;
	overflow-wrap: anywhere;
}

.PortalMultiSelectBadge {
	flex: none;
	padding: 0 5px;
	font-size: 11px;
	line-height: 15px;
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	color: var(--portal-muted);
}

.PortalMultiSelectList {
	position: fixed;
	z-index: 1000010;
	box-sizing: border-box;
	margin: 0;
	padding: 2px 0;
	overflow-x: hidden;
	overflow-y: auto;
	font-size: 13px;
	text-align: left;
	list-style: none;
	background: var(--portal-input-background);
	border: 1px solid var(--portal-focus);
	border-top-width: 0;
	border-radius: 0 0 3px 3px;
	box-shadow: 0 4px 10px var(--portal-shadow);
	color: var(--portal-input-text);
}

.PortalMultiSelectList.PortalMultiSelectListAbove {
	border-top-width: 1px;
	border-bottom-width: 0;
	border-radius: 3px 3px 0 0;
	box-shadow: 0 -4px 10px var(--portal-shadow);
}

.PortalMultiSelectList .PortalMultiSelectOption {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 5px 6px;
	line-height: 16px;
	list-style: none;
	cursor: pointer;
}

.PortalMultiSelectList .PortalMultiSelectOptionSelected {
	background: var(--portal-accent-soft);
	color: var(--portal-text);
}

.PortalMultiSelectList .PortalMultiSelectOptionSelected::after {
	content: "\2713";
	margin-left: auto;
}

.PortalMultiSelectList .PortalMultiSelectOptionActive {
	background: var(--portal-accent);
	color: var(--portal-on-accent);
}

.PortalMultiSelectList .PortalMultiSelectOptionActive .PortalMultiSelectBadge {
	border-color: var(--portal-on-accent);
	color: var(--portal-on-accent);
}

.PortalMultiSelectList .PortalMultiSelectOptionDisabled {
	color: var(--portal-muted);
	cursor: default;
}

.PortalMultiSelectList .PortalMultiSelectMessage {
	margin: 0;
	padding: 5px 6px;
	list-style: none;
	color: var(--portal-muted);
}

/*********************************************************************************************************************************\
Tabulator (4.9.3, vendored: frontend\vendor\tabulator.css, byte-identical to today's, imported with Tabulator by the Vite front
end): every colour rule of that stylesheet again, with the same selector under :root and the same property and importance, its
colours replaced by theme variables (--portal-tabulator-*; light = Tabulator's own colours). :root makes each override more
specific than the rule it replaces, so it wins wherever the vendored stylesheet loads; the overrides keep the vendored rules'
order and relative specificity among themselves. ViteTests.TabulatorColours_AreAllOverriddenWithThemeVariables keeps the two in
step.
\*********************************************************************************************************************************/

:root .tabulator {
	border: 1px solid var(--portal-tabulator-gridline);
	background-color: var(--portal-tabulator-background);
}

:root .tabulator .tabulator-header {
	border-bottom: 2px solid var(--portal-tabulator-accent);
	background-color: var(--portal-tabulator-background);
	color: var(--portal-tabulator-header-text);
}

:root .tabulator .tabulator-header .tabulator-col {
	border-right: 2px solid var(--portal-tabulator-gridline);
	background-color: var(--portal-tabulator-background);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-moving {
	border: 1px solid var(--portal-tabulator-accent);
	background: var(--portal-tabulator-header-hover-background);
}

:root .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor {
	border: 1px solid var(--portal-tabulator-accent);
	background: var(--portal-tabulator-background);
	color: var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
	border-bottom: 6px solid var(--portal-tabulator-sorter);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols {
	border-top: 2px solid var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
	background-color: var(--portal-tabulator-header-hover-background);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-col-sorter {
	color: var(--portal-tabulator-sorter);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
	border-bottom: 6px solid var(--portal-tabulator-sorter);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="asc"] .tabulator-col-content .tabulator-col-sorter {
	color: var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="asc"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
	border-bottom: 6px solid var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-col-sorter {
	color: var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
	border-top: 6px solid var(--portal-tabulator-accent);
	color: var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left {
	border-right: 2px solid var(--portal-tabulator-gridline);
}

:root .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right {
	border-left: 2px solid var(--portal-tabulator-gridline);
}

:root .tabulator .tabulator-header .tabulator-calcs-holder {
	border-top: 2px solid var(--portal-tabulator-accent) !important;
	background: var(--portal-tabulator-background) !important;
	border-top: 1px solid var(--portal-tabulator-gridline);
	border-bottom: 1px solid var(--portal-tabulator-gridline);
}

:root .tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row {
	background: var(--portal-tabulator-background) !important;
}

:root .tabulator .tabulator-tableHolder .tabulator-placeholder span {
	color: var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-tableHolder .tabulator-table {
	background-color: var(--portal-tabulator-cell-background);
	color: var(--portal-tabulator-text);
}

:root .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs {
	background: var(--portal-tabulator-calcs-background) !important;
}

:root .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top {
	border-bottom: 2px solid var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom {
	border-top: 2px solid var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-footer {
	border-top: 1px solid var(--portal-tabulator-footer-border);
	background-color: var(--portal-tabulator-background);
	color: var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-footer .tabulator-calcs-holder {
	background: var(--portal-tabulator-background) !important;
	border-top: 3px solid var(--portal-tabulator-accent) !important;
	border-bottom: 2px solid var(--portal-tabulator-accent) !important;
	border-bottom: 1px solid var(--portal-tabulator-gridline);
	border-top: 1px solid var(--portal-tabulator-gridline);
}

:root .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row {
	background: var(--portal-tabulator-background) !important;
}

:root .tabulator .tabulator-footer .tabulator-paginator {
	color: var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-footer .tabulator-page-size {
	border: 1px solid var(--portal-tabulator-page-border);
}

:root .tabulator .tabulator-footer .tabulator-page {
	border: 1px solid var(--portal-tabulator-page-border);
	background: var(--portal-tabulator-page-background);
}

:root .tabulator .tabulator-footer .tabulator-page.active {
	color: var(--portal-tabulator-accent);
}

:root .tabulator .tabulator-footer .tabulator-page:not(.disabled):hover {
	background: var(--portal-tabulator-tint-strong);
	color: var(--portal-tabulator-page-hover-text);
}

:root .tabulator .tabulator-loader {
	background: var(--portal-tabulator-loader-overlay);
}

:root .tabulator .tabulator-loader .tabulator-loader-msg {
	background: var(--portal-tabulator-background);
}

:root .tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading {
	border: 4px solid var(--portal-tabulator-control);
	color: var(--portal-tabulator-loader-text);
}

:root .tabulator .tabulator-loader .tabulator-loader-msg.tabulator-error {
	border: 4px solid var(--portal-tabulator-invalid);
	color: var(--portal-tabulator-loader-error-text);
}

:root .tabulator-row .tabulator-cell:first-child {
	border-left: 10px solid var(--portal-tabulator-accent);
}

:root .tabulator-row:nth-child(even) {
	background-color: var(--portal-tabulator-background);
}

:root .tabulator-row:nth-child(even) .tabulator-cell {
	background-color: var(--portal-tabulator-background);
}

:root .tabulator-row:nth-child(even) .tabulator-cell:first-child {
	border-left: 10px solid var(--portal-tabulator-row-marker-alternate);
}

:root .tabulator-row.tabulator-selectable:hover .tabulator-cell {
	background-color: var(--portal-tabulator-row-hover);
}

:root .tabulator-row.tabulator-selected .tabulator-cell {
	background-color: var(--portal-tabulator-row-selected);
}

:root .tabulator-row.tabulator-selected:hover .tabulator-cell {
	background-color: var(--portal-tabulator-row-selected-hover);
}

:root .tabulator-row.tabulator-moving {
	border-top: 1px solid var(--portal-tabulator-gridline);
	border-bottom: 1px solid var(--portal-tabulator-gridline);
}

:root .tabulator-row .tabulator-frozen.tabulator-frozen-left {
	border-right: 2px solid var(--portal-tabulator-gridline);
}

:root .tabulator-row .tabulator-frozen.tabulator-frozen-right {
	border-left: 2px solid var(--portal-tabulator-gridline);
}

:root .tabulator-row .tabulator-responsive-collapse {
	border-top: 1px solid var(--portal-tabulator-gridline);
	border-bottom: 1px solid var(--portal-tabulator-gridline);
}

:root .tabulator-row .tabulator-cell {
	border-right: 2px solid var(--portal-tabulator-gridline);
	background-color: var(--portal-tabulator-cell-background);
}

:root .tabulator-row:nth-child(even) .tabulator-cell {
	border-right: 2px solid var(--portal-tabulator-cell-background);
}

:root .tabulator-row .tabulator-cell.tabulator-editing {
	border: 1px solid var(--portal-tabulator-editing);
}

:root .tabulator-row .tabulator-cell.tabulator-validation-fail {
	border: 1px solid var(--portal-tabulator-invalid);
}

:root .tabulator-row .tabulator-cell.tabulator-validation-fail input,
:root .tabulator-row .tabulator-cell.tabulator-validation-fail select {
	color: var(--portal-tabulator-invalid);
}

:root .tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar {
	background: var(--portal-tabulator-handle);
}

:root .tabulator-row .tabulator-cell .tabulator-data-tree-branch {
	border-left: 2px solid var(--portal-tabulator-gridline);
	border-bottom: 2px solid var(--portal-tabulator-gridline);
}

:root .tabulator-row .tabulator-cell .tabulator-data-tree-control {
	border: 1px solid var(--portal-tabulator-control);
	background: var(--portal-tabulator-tint);
}

:root .tabulator-row .tabulator-cell .tabulator-data-tree-control:hover {
	background: var(--portal-tabulator-tint-strong);
}

:root .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after {
	background: var(--portal-tabulator-control);
}

:root .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand {
	background: var(--portal-tabulator-control);
}

:root .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after {
	background: var(--portal-tabulator-control);
}

:root .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle {
	background: var(--portal-tabulator-handle);
	color: var(--portal-tabulator-inverse-text);
}

:root .tabulator-row.tabulator-group {
	border-bottom: 2px solid var(--portal-tabulator-accent);
	border-top: 2px solid var(--portal-tabulator-accent);
	background: var(--portal-tabulator-group-background);
}

:root .tabulator-row.tabulator-group:hover {
	background-color: var(--portal-tabulator-tint);
}

:root .tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow {
	border-top: 6px solid var(--portal-tabulator-accent);
}

:root .tabulator-row.tabulator-group .tabulator-arrow {
	border-left: 6px solid var(--portal-tabulator-accent);
}

:root .tabulator-row.tabulator-group span {
	color: var(--portal-tabulator-accent);
}

:root .tabulator-menu {
	background: var(--portal-tabulator-cell-background);
	border: 1px solid var(--portal-tabulator-gridline);
	box-shadow: 0 0 5px 0 var(--portal-tabulator-shadow);
}

:root .tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover {
	background: var(--portal-tabulator-background);
}

:root .tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu::after {
	border-color: var(--portal-tabulator-gridline);
}

:root .tabulator-menu .tabulator-menu-separator {
	border-top: 1px solid var(--portal-tabulator-gridline);
}

:root .tabulator-edit-select-list {
	background: var(--portal-tabulator-cell-background);
	border: 1px solid var(--portal-tabulator-editing);
}

:root .tabulator-edit-select-list .tabulator-edit-select-list-item {
	color: var(--portal-tabulator-text);
}

:root .tabulator-edit-select-list .tabulator-edit-select-list-item.active {
	color: var(--portal-tabulator-inverse-text);
	background: var(--portal-tabulator-editing);
}

:root .tabulator-edit-select-list .tabulator-edit-select-list-item.active.focused {
	outline: 1px solid var(--portal-tabulator-inverse-outline);
}

:root .tabulator-edit-select-list .tabulator-edit-select-list-item.focused {
	outline: 1px solid var(--portal-tabulator-editing);
}

:root .tabulator-edit-select-list .tabulator-edit-select-list-item:hover {
	color: var(--portal-tabulator-inverse-text);
	background: var(--portal-tabulator-editing);
}

:root .tabulator-edit-select-list .tabulator-edit-select-list-notice {
	color: var(--portal-tabulator-text);
}

:root .tabulator-edit-select-list .tabulator-edit-select-list-group {
	border-bottom: 1px solid var(--portal-tabulator-gridline);
	color: var(--portal-tabulator-text);
}

:root .tabulator.tabulator-rtl .tabulator-header .tabulator-col {
	border-left: 1px solid var(--portal-tabulator-gridline);
}

:root .tabulator.tabulator-rtl .tabulator-row .tabulator-cell {
	border-left: 1px solid var(--portal-tabulator-gridline);
}

:root .tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch {
	border-right: 2px solid var(--portal-tabulator-gridline);
}

:root .tabulator-print-table .tabulator-print-table-group {
	border-bottom: 2px solid var(--portal-tabulator-accent);
	border-top: 2px solid var(--portal-tabulator-accent);
	background: var(--portal-tabulator-group-background);
}

:root .tabulator-print-table .tabulator-print-table-group:hover {
	background-color: var(--portal-tabulator-tint);
}

:root .tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow {
	border-top: 6px solid var(--portal-tabulator-accent);
}

:root .tabulator-print-table .tabulator-print-table-group .tabulator-arrow {
	border-left: 6px solid var(--portal-tabulator-accent);
}

:root .tabulator-print-table .tabulator-print-table-group span {
	color: var(--portal-tabulator-accent);
}

:root .tabulator-print-table .tabulator-data-tree-branch {
	border-left: 2px solid var(--portal-tabulator-gridline);
	border-bottom: 2px solid var(--portal-tabulator-gridline);
}

:root .tabulator-print-table .tabulator-data-tree-control {
	border: 1px solid var(--portal-tabulator-control);
	background: var(--portal-tabulator-tint);
}

:root .tabulator-print-table .tabulator-data-tree-control:hover {
	background: var(--portal-tabulator-tint-strong);
}

:root .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after {
	background: var(--portal-tabulator-control);
}

:root .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand {
	background: var(--portal-tabulator-control);
}

:root .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after {
	background: var(--portal-tabulator-control);
}

/*********************************************************************************************************************************\
Portal grids: Lee's UI standard (2026-11-16). Geometry only (the colours are the Tabulator block's above).
	* A grid row in a module's or a popup's content is one line of the grid's text and 7px above and below it, the standard's 32px
	  row (Tabulator's own cells have 6px); its 24px icon buttons (Image buttons) take back from their line what they add to it, so
	  they fit inside it. It is more specific than the vendored cell rule, whatever the load order; a cell being edited keeps
	  Tabulator's (no padding round its editor), and a module's own touch rule (a 32px or 40px target) sets its rows' padding after it.
	* A result grid's date and time column (result-grid.ts: ResultGridDate) keeps each value on one line on a desktop, whatever the
	  grid's own wrapping; on a phone it wraps with the rest.
\*********************************************************************************************************************************/
.PortalModuleContent .tabulator-row .tabulator-cell:not(.tabulator-editing),
.PopupDialogContent .tabulator-row .tabulator-cell:not(.tabulator-editing) {
	padding: 7px 4px;
}

@media (min-width: 600px) {
	.tabulator .tabulator-row .tabulator-cell.ResultGridDate {
		overflow-wrap: normal;
		white-space: nowrap;
	}
}

/*********************************************************************************************************************************\
Table headers that stay in view, and popups whose table takes the overflow (Lee 2026-11-03: "the table should catch all overflow. All
tables like this should also have sticky headers").
	* A portal grid's header row (Tabulator) sticks to the top of the box its rows scroll in: the grid's own holder when the grid has a
	  height or fills a popup (the header is above the holder), else the nearest box that scrolls it (a popup's content, a module with a
	  height of its own, the page's content). Tabulator's .tabulator hides its overflow, which makes it a scroll box of its own and would
	  hold a header in place: it clips instead (the same clipping, no scroll box), and so does a module's content that holds a grid or a
	  list table (its overflow: auto would hold the header too; the grid's holder scrolls a wide grid sideways, 1cecc9a4d). Sorting,
	  the column resize handles and the header following the holder's sideways scroll are Tabulator's own, unchanged.
	* A plain list table marked StickyHeader keeps its header cells at the top of the box it scrolls in, as the Dashboard Security
	  Manager's grid does. A list that scrolls sideways in a box of its own (a narrow module) is marked StickyHeaderBox: a box that
	  scrolls one way scrolls both, so the header sticks to that box, which is at most 80% of the window's height, and not to the page.
	  The header cells lie on the surface under them (a popup's, a Panel popup's, a card's, else a module's: --sticky-header-background),
	  or on the header row's own colour (table.DataTable), so nothing shows through; the cells' own colours, where a list sets them, win.
	* A popup's part marked PopupFill (a grid, or the box of a plain table or of the Matrix job log) is the part that gives: the popup's
	  content is a column in which it is as tall as its table, or the room left when that is less, and takes every overflow of its table,
	  down and across, so the popup itself never scrolls because of it. A popup resized from its corner (POP-1) gives it the new room: a grid is laid out again at a new width
	  (createPortalGrid), and its rows fill the new height.
\*********************************************************************************************************************************/
:root .tabulator {
	overflow: clip;
}

:root .tabulator .tabulator-header {
	position: sticky;
	top: 0;
	z-index: 20;
}

.PortalModuleContent:has(.tabulator, table.StickyHeader) {
	overflow: clip;
}

table.StickyHeader > thead > tr > th {
	position: sticky;
	top: 0;
	z-index: 2;
}

:where(table.StickyHeader > thead > tr > th) {
	background-color: var(--sticky-header-background, var(--portal-surface));
}

:where(table.DataTable.StickyHeader > thead > tr > th) {
	background-color: var(--portal-module-header-background);
}

.PopupContainer > .PopupDialog:not(.PopupDialogPanel) {
	--sticky-header-background: var(--portal-popup-background);
}

.PopupContainer > .PopupDialog.PopupDialogPanel {
	--sticky-header-background: var(--portal-popup-panel-background);
}

.StickyHeaderBox {
	max-height: 80vh;
	overflow: auto;
}

.PopupContainer > .PopupDialog .PopupDialogContent:has(> .PopupFill) {
	display: flex;
	flex-direction: column;
}

.PopupContainer > .PopupDialog .PopupFill {
	box-sizing: border-box;
	flex: 0 1 auto;
	min-height: 0;
	min-width: 0;
}

.PopupContainer > .PopupDialog .PopupFill:not(.tabulator) {
	overflow: auto;
}

.PopupContainer > .PopupDialog .PopupFill.tabulator {
	display: flex;
	flex-direction: column;
}

.PopupContainer > .PopupDialog .PopupFill.tabulator > .tabulator-header,
.PopupContainer > .PopupDialog .PopupFill.tabulator > .tabulator-footer {
	flex: none;
}

.PopupContainer > .PopupDialog .PopupFill.tabulator > .tabulator-tableHolder {
	flex: 1 1 auto;
	min-height: 0;
}

/*********************************************************************************************************************************\
Pins (Views\Pin\PinPartial.cshtml, PinDisplay.cshtml, PinEditor.cshtml): today's star and slide-out menu (site.less "Custom Pins
slide-out menu") on the portal's look (Lee 2026-11-03), theme colours only. The star is a tab at the window's right edge, half way
down as today; the open menu is a panel against the same edge with the star at its left side, as today's, never taller than the
window (its list scrolls inside it); under 600px the panel takes the window's width less a margin and covers the star. The header
holds Close (ban, warning), "Pins" and Help on one line; each pin is one row: its 16px icon and its name (cut short, the whole name
its tool tip), Edit and Delete at the row's end. With a mouse they show while the row is under the pointer or holds the focus, as
today; on a touch screen they always show (phone usability; Tab reaches them either way). While a module's name or a tab is dragged
(portal.ts bindDraggables) the drop targets (.DroppablePlaceholder) are outlined and the one under the pointer is filled (.ui-droppable-hover,
as jQuery UI 1.14 applied it; its hoverClass option never applied); the dragged copy is drawn on the body as a chip. The containers
take no room of their own (both children are fixed): portal.ts's drop stops when .PinsContainer is under the pointer.
\*********************************************************************************************************************************/
.PinsContainer .PinsButtonContainer {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.PinsContainer .PinsButtonContainer .PinButton {
	align-items: center;
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border-strong);
	border-radius: 8px 0 0 8px;
	border-right: none;
	box-shadow: -2px 2px 8px var(--portal-shadow);
	box-sizing: border-box;
	color: var(--portal-accent-text);
	cursor: pointer;
	display: flex;
	height: 36px;
	justify-content: center;
	margin: 0;
	padding: 0 0 0 2px;
	width: 28px;
}

.PinsContainer .PinsButtonContainer .PinButton:hover {
	background-color: var(--portal-accent-soft);
}

.PinsContainer .PinsButtonContainer .PinButton:focus-visible {
	outline-offset: -3px;
}

.PinsContainer.Opened .PinsButtonContainer .PinButton {
	background-color: var(--portal-surface-raised);
}

.PinsContainer.Opened .PinsButtonContainer .PinButton .PortalIcon {
	fill: currentColor;
}

.PinsContainer .PinsMenu {
	display: none;
}

.PinsContainer.Opened .PinsMenu {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 12px 0 0 12px;
	border-right: none;
	box-shadow: 0 8px 24px var(--portal-shadow);
	box-sizing: border-box;
	color: var(--portal-text);
	display: flex;
	flex-direction: column;
	font-size: 13px;
	line-height: 20px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	min-height: 36px;
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 288px;
}

.PinsContainer.Opened .PinsButtonContainer {
	right: 288px;
}

.PinsContainer .PinsMenu .PinsMenuHeader {
	align-items: center;
	background-color: var(--portal-surface-raised);
	border-bottom: 1px solid var(--portal-border);
	border-radius: 12px 0 0 0;
	color: var(--portal-text-strong);
	cursor: default;
	display: flex;
	flex: none;
	font-size: 15px;
	font-weight: 600;
	gap: 8px;
	justify-content: space-between;
	padding: 4px 6px;
}

.PinsContainer .PinsMenu .PinsMenuHeader > div {
	display: flex;
}

.PinsContainer .PinsMenu .PinsMenuHeader a.ImageButton,
.PinsContainer .PinsMenu .PinToolbar a.ImageButton {
	align-items: center;
	border-radius: 6px;
	display: inline-flex;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.PinsContainer .PinsMenu .PinsMenuHeader a.ImageButton:hover {
	background-color: var(--portal-accent-soft);
}

.PinsContainer .PinsMenu .PinsMenuContent {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px;
}

.PinsContainer .PinsMenu #pinList > li:not(.Pin) {
	color: var(--portal-muted);
	padding: 8px;
}

.PinsContainer .PinsMenu .Pin {
	align-items: center;
	border-radius: 6px;
	display: flex;
	position: relative;
}

.PinsContainer .PinsMenu .Pin:hover,
.PinsContainer .PinsMenu .Pin:focus-within {
	background-color: var(--portal-accent-soft);
}

.PinsContainer .PinsMenu .Pin .PinContainer {
	flex: 1 1 auto;
	min-width: 0;
	order: 1;
}

.PinsContainer .PinsMenu .PinContainer a.ImageButton {
	border-radius: 6px;
	color: var(--portal-text);
	display: block;
	padding: 6px 8px;
	text-decoration: none;
}

.PinsContainer .PinsMenu .ImageButtonBody {
	align-items: center;
	display: flex;
	gap: 8px;
	min-width: 0;
}

.PinsContainer .PinsMenu .ImageButtonBody > img,
.PinsContainer .PinsMenu .ImageButtonBody > svg {
	flex: none;
	height: 16px;
	width: 16px;
}

.PinsContainer .PinsMenu .ImageButtonBody > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.PinsContainer .PinsMenu .ImageButtonBody > input[type=text] {
	box-sizing: border-box;
	flex: 1 1 auto;
	height: 28px;
	min-width: 0;
}

.PinsContainer .PinsMenu .Pin .validation-summary-errors {
	color: var(--portal-danger);
	padding: 4px 8px 0;
}

.PinsContainer .PinsMenu .Pin .validation-summary-errors ul {
	margin: 0;
	padding: 0 0 0 16px;
}

/* Edit and Delete: shown, not .Hidden (this rule outweighs it), so Tab reaches them; with a mouse they appear over the row's end
   while the row is under the pointer or holds the focus. */
.PinsContainer .PinsMenu .Pin .PinToolbar.Hidden {
	display: flex;
	flex: none;
	order: 2;
	padding-right: 4px;
}

.PinsContainer .PinsMenu .PinToolbar ul.ListNoType {
	display: flex;
	gap: 2px;
}

.PinsContainer .PinsMenu .PinToolbar a.ImageButton:hover {
	background-color: var(--portal-surface);
}

@media (hover: hover) {
	.PinsContainer .PinsMenu .Pin .PinToolbar.Hidden {
		background-color: var(--portal-accent-soft);
		border-radius: 6px;
		opacity: 0;
		pointer-events: none;
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
	}

	.PinsContainer .PinsMenu .Pin:hover .PinToolbar.Hidden,
	.PinsContainer .PinsMenu .Pin:focus-within .PinToolbar.Hidden {
		opacity: 1;
		pointer-events: auto;
	}
}

/* A module's name can be dragged onto the pins (portal.ts bindDraggables marks it .hover under the pointer, as today). */
.ModuleHeaderText.hover {
	cursor: move;
}

/* The dragged copy, drawn on the body (a module's name, or a tab's item without its children), left of the pointer so the target
   under the pointer stays in view. */
body > .ModuleHeaderText.ui-draggable-dragging,
body > li.ui-draggable-dragging {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-accent);
	border-radius: 6px;
	box-shadow: 0 6px 18px var(--portal-shadow);
	color: var(--portal-text);
	font-size: 13px;
	font-weight: 600;
	list-style: none;
	max-width: 240px;
	overflow: hidden;
	padding: 4px 10px;
	text-overflow: ellipsis;
	transform: translateX(calc(-100% - 4px));
	white-space: nowrap;
}

body > li.ui-draggable-dragging a {
	color: inherit;
	text-decoration: none;
}

/* The drop targets while dragging, and the one under the pointer. */
.PinsContainer .PinsButtonContainer.DroppablePlaceholder .PinButton {
	background-color: var(--portal-accent-soft);
	border-color: var(--portal-accent);
	border-style: dashed;
}

.PinsContainer .PinsButtonContainer.ui-droppable-hover .PinButton {
	background-color: var(--portal-accent);
	border-color: var(--portal-accent);
	border-style: solid;
	color: var(--portal-on-accent);
}

.PinsContainer.Opened .PinsMenu.DroppablePlaceholder {
	border: 2px dashed var(--portal-accent);
	border-right: none;
	min-height: 120px;
}

.PinsContainer.Opened .PinsMenu.ui-droppable-hover {
	background-color: var(--portal-accent-soft);
	border: 2px solid var(--portal-accent);
	border-right: none;
	color: var(--portal-text);
}

/* Touch targets (32px) on a phone and on a touch screen. */
@media not all and (min-width: 600px), (pointer: coarse) {
	.PinsContainer .PinsButtonContainer .PinButton {
		height: 40px;
		width: 36px;
	}

	.PinsContainer .PinsMenu .PinsMenuHeader a.ImageButton,
	.PinsContainer .PinsMenu .PinToolbar a.ImageButton {
		height: 32px;
		width: 32px;
	}

	.PinsContainer .PinsMenu .PinContainer a.ImageButton {
		padding: 8px;
	}

	.PinsContainer .PinsMenu .ImageButtonBody > input[type=text] {
		height: 32px;
	}
}

@media not all and (min-width: 600px) {
	.PinsContainer.Opened .PinsMenu {
		border-radius: 12px;
		border-right: 1px solid var(--portal-border);
		left: 8px;
		right: 8px;
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
		width: auto;
	}

	.PinsContainer.Opened .PinsMenu .PinsMenuHeader {
		border-radius: 12px 12px 0 0;
	}

	.PinsContainer.Opened .PinsButtonContainer {
		right: 0;
	}
}

/*********************************************************************************************************************************\
Search (Views\Search): today's look; on a phone and on a touch screen the search button, the rules link and the results' viewer links
are 32px targets. (Below 950px the results and the viewer stack, as today: the .TableCell rule above.)
\*********************************************************************************************************************************/
@media not all and (min-width: 600px), (pointer: coarse) {
	#searchContainer a.ImageButton,
	#searchResultsTable a.PeekModuleButton {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		min-height: 32px;
		min-width: 32px;
		vertical-align: middle;
	}
}

/*********************************************************************************************************************************\
Diagnostics (Views\Diagnostics): today's look. On a phone the report form fits the screen: today's 300px captcha image narrows with its
column, so the form never scrolls the page sideways. (The settings tables are fixed-layout and wrap, inside a .ScrollableContainer.)
\*********************************************************************************************************************************/
@media not all and (min-width: 600px) {
	#diagnosticsForm img[alt=captcha] {
		height: auto;
		max-width: 100%;
	}
}

/*********************************************************************************************************************************\
Sortable tables (Scripts\sortable-table.ts, today's portal.js makeSortable on a .SortableDataTable): the plain tables of the shell
pages (the Subscriptions page, the Search results) marked data-sortable. A header with text takes today's pointer, and the sorted one
today's triangle after its text, in the header's own text colour.
\*********************************************************************************************************************************/
table[data-sortable] > thead > tr > th[aria-sort] {
	cursor: pointer;
}

table[data-sortable] > thead > tr > th.Sorted::after {
	color: var(--portal-module-header-text);
	margin-left: 2px;
}

table[data-sortable] > thead > tr > th.SortedAscending::after {
	content: '\25B2';
}

table[data-sortable] > thead > tr > th.SortedDescending::after {
	content: '\25BC';
}

/*********************************************************************************************************************************\
Blogs (Views\Blogs, the public Blogs pages; Lee approved the mockups 2026-11-20): the page is the theme's background with cards on it
(the theme's surface and border), in a centred column 1096px wide at most with 16px side gutters (on a phone too). The blog list is a
grid of cards about 220px wide (one column on a phone), each card one link with a visible ring: the blog's picture in a 36px rounded
tile, its name and its description (three lines at most). A blog's page and an article start with the header card (the back link, the
blog's name and description, Follow at the right, below them when the card is narrow); a blog's articles are cards (the date small and
muted, the title, Read article); an empty blog is a centred card. An article reads in a column 760px wide at most; its content,
written for a light page, is paper (above: the light sheet in dark mode), and its pictures fit its width. The sidebar (tags and
archives) sits at the right from 900px, below on narrower screens. On a phone buttons and long names wrap, the content scrolls sideways
in its own box, and the links are 32px targets (also on a touch screen).
\*********************************************************************************************************************************/
.BlogPage {
	background-color: var(--portal-background);
	min-height: 100%;
	overflow-wrap: anywhere;
}

.BlogPage .BlogShell {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1096px;
	padding: 24px 16px;
}

.BlogPage .BlogCard,
.BlogPage .BlogHeaderCard,
.BlogPage .BlogArticleCard,
.BlogPage .BlogReading,
.BlogPage .BlogEmpty,
.BlogPage .BlogSideCard {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	box-sizing: border-box;
}

/* The headings: the blog list's, and the header card's. */
.BlogPage .BlogIntro {
	margin-bottom: 16px;
}

.BlogPage .BlogHeaderTitle {
	color: var(--portal-text-strong);
	font-size: 1.75em;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
}

.BlogPage .BlogHeaderDescription {
	color: var(--portal-muted);
	margin: 4px 0 0 0;
}

/* The blog list: a card per blog, the whole card the link. */
.BlogPage .BlogCardGrid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.BlogPage .BlogCard {
	color: var(--portal-text);
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 16px;
	text-decoration: none;
}

.BlogPage .BlogCard:hover {
	border-color: var(--portal-accent);
	box-shadow: 0 4px 12px var(--portal-shadow);
	color: var(--portal-text);
	text-decoration: none;
}

.BlogPage .BlogCard:focus-visible {
	outline-offset: 2px;
}

.BlogPage .BlogCardImage {
	align-items: center;
	background-color: var(--portal-tile-image-background);
	border-radius: 8px;
	display: flex;
	flex: none;
	height: 36px;
	justify-content: center;
	overflow: hidden;
	width: 36px;
}

.BlogPage .BlogCardImage > img {
	height: 28px;
	object-fit: contain;
	width: 28px;
}

.BlogPage .BlogCardName {
	color: var(--portal-link);
	font-size: 1.1em;
	font-weight: 600;
}

.BlogPage .BlogCard:hover .BlogCardName {
	color: var(--portal-link-hover);
	text-decoration: underline;
}

.BlogPage .BlogCardDescription {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--portal-muted);
	display: -webkit-box;
	overflow: hidden;
}

/* The header card: the back link (and on an article the blog's link), the name and description; Follow at the right. */
.BlogPage .BlogHeaderCard {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	justify-content: space-between;
	margin-bottom: 16px;
	padding: 16px 20px;
}

.BlogPage .BlogHeaderMain {
	flex: 1 1 320px;
	min-width: 0;
}

.BlogPage .BlogBack {
	align-items: center;
	color: var(--portal-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin-bottom: 8px;
}

.BlogPage .BlogBack a {
	align-items: center;
	display: inline-flex;
	gap: 4px;
}

.BlogPage .BlogFollow {
	align-items: center;
	display: inline-flex;
	flex: none;
	gap: 8px;
}

/* The articles and the sidebar: one column, the sidebar at the right from 900px. */
.BlogPage .BlogColumns {
	align-items: start;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.BlogPage .BlogColumns.BlogColumnsWithSidebar {
		grid-template-columns: minmax(0, 1fr) 280px;
	}
}

/* A blog's articles. */
.BlogPage .BlogArticleList {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.BlogPage .BlogArticleCard {
	padding: 16px 20px;
}

.BlogPage .BlogArticleMeta {
	color: var(--portal-muted);
	font-size: 0.85em;
	margin: 0;
}

.BlogPage .BlogArticleTitle {
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1.3;
	margin: 4px 0 8px 0;
}

.BlogPage .BlogReadMore {
	font-weight: 600;
}

/* An empty blog. */
.BlogPage .BlogEmpty {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 32px 24px;
	text-align: center;
}

.BlogPage .BlogEmptyTitle {
	color: var(--portal-text-strong);
	font-size: 1.2em;
	font-weight: 600;
	margin: 0;
}

.BlogPage .BlogEmptyText {
	color: var(--portal-muted);
	margin: 0 0 8px 0;
}

/* An article: the reading column. */
.BlogPage .BlogReading {
	max-width: 760px;
	padding: 20px 24px;
}

.BlogPage .BlogArticleHeading {
	color: var(--portal-text-strong);
	font-size: 1.6em;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
}

.BlogPage .BlogArticleByline {
	color: var(--portal-muted);
	margin: 4px 0 0 0;
}

.BlogPage .BlogContent {
	margin-top: 16px;
	overflow-x: auto;
}

/* A picture in an article fits the page (Lee's UI standard, 2026-11-16; the UI sweep's Plan Ruling 9): never wider than the article's
   content, its proportions kept. */
.BlogPage .BlogContent img {
	height: auto;
	max-width: 100%;
}

/* The sidebar: the tag cloud (today's sizes, on the tag) and the archive. */
.BlogPage .BlogSidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.BlogPage .BlogSideCard {
	padding: 16px;
}

.BlogPage .BlogSideHeading {
	color: var(--portal-accent-text);
	font-size: 1em;
	font-weight: 600;
	margin: 0 0 8px 0;
}

.BlogPage .BlogTags {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.BlogPage .BlogTag {
	background-color: var(--portal-button-background);
	border-radius: 999px;
	color: var(--portal-button-text);
	line-height: 1.4;
	padding: 0.15em 0.6em;
	text-decoration: none;
}

.BlogPage .BlogTag:hover {
	background-color: var(--portal-button-hover-background);
	color: var(--portal-button-text);
	text-decoration: none;
}

.BlogPage .BlogArchiveList {
	list-style: none;
	margin: 0;
	padding: 0;
}

.BlogPage .BlogArchiveList > li {
	line-height: 28px;
}

@media not all and (min-width: 600px) {
	.BlogPage .BlogHeaderCard,
	.BlogPage .BlogReading {
		padding: 16px;
	}

	.BlogPage .Button {
		max-width: 100%;
		white-space: normal;
	}
}

@media not all and (min-width: 600px), (pointer: coarse) {
	.BlogPage .BlogBack a,
	.BlogPage .BlogArticleLink,
	.BlogPage .BlogReadMore,
	.BlogPage .BlogTag,
	.BlogPage .BlogArchiveList a,
	.BlogPage a.Button {
		align-items: center;
		box-sizing: border-box;
		display: inline-flex;
		min-height: 32px;
		min-width: 32px;
		vertical-align: middle;
	}
}

/*********************************************************************************************************************************\
The designer's on and off message (#designerMessage, Tab Index.cshtml, above the panes): its own area, so the message never lands in a
module's .TemporaryMessage. Empty, and once appendTemporaryMessage removes the message after 5 s (it leaves its empty .TemporaryMessage
behind), it takes no space; an alert (the only kind the designer writes) shows as a band in the danger tint, its text .Alert's danger
colour.
\*********************************************************************************************************************************/
.DesignerMessage .TemporaryMessage > div.Alert {
	background-color: var(--portal-danger-background);
	color: var(--portal-danger);
	border-radius: 6px;
	margin: 4px 0 8px;
	overflow-wrap: anywhere;
	padding: 8px 12px;
}

/*********************************************************************************************************************************\
The tabs (portal.ts portalTabs; jQuery to vanilla, T7: the profile editor's .TabsWrapper): jQuery UI 1.14's base rules for the classes the
tabs carry (its themes\base, deleted in T11: core.css's reset and clearfix, tabs.css, and theme.css's borders, weights and corners), so
the tabs kept their look when the jQuery UI stylesheet went (T11). The colours are the portal's tokens, the ones the vendor rules above
already give these classes; the editor's own colours are profile-editor.css's. No tab is disabled, collapsible or loading in the portal,
so their rules are not copied.
\*********************************************************************************************************************************/
.ui-helper-reset {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	line-height: 1.3;
	text-decoration: none;
	font-size: 100%;
	list-style: none;
}

.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
	content: "";
	display: table;
	border-collapse: collapse;
}

.ui-helper-clearfix:after {
	clear: both;
}

.ui-tabs {
	position: relative;
	padding: .2em;
}

.ui-tabs .ui-tabs-nav {
	margin: 0;
	padding: .2em .2em 0;
}

.ui-tabs .ui-tabs-nav li {
	list-style: none;
	float: left;
	position: relative;
	top: 0;
	margin: 1px .2em 0 0;
	border-bottom-width: 0;
	padding: 0;
	white-space: nowrap;
}

.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
	float: left;
	padding: .5em 1em;
	text-decoration: none;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active {
	margin-bottom: -1px;
	padding-bottom: 1px;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
	cursor: text;
}

.ui-tabs .ui-tabs-panel {
	display: block;
	border-width: 0;
	padding: 1em 1.4em;
	background: none;
}

.ui-widget.ui-widget-content,
.ui-widget-content {
	border: 1px solid var(--portal-border);
}

.ui-widget-header {
	border: 1px solid var(--portal-border);
	font-weight: bold;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
	border: 1px solid var(--portal-border);
	font-weight: normal;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
	border: 1px solid var(--portal-border-strong);
	font-weight: normal;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
	border: 1px solid var(--portal-accent);
	font-weight: normal;
}

.ui-corner-all,
.ui-corner-top {
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}

.ui-corner-all,
.ui-corner-bottom {
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

/*********************************************************************************************************************************\
The pins' drag sources (portal.ts bindDraggables; jQuery to vanilla, T11: a module's name and the tab menu's items carry
ui-draggable-handle, as jQuery UI's draggable gave them): jQuery UI 1.14's rule for that class (its themes\base\draggable.css,
deleted in T11), so a touch on a drag source still pans nothing now the jQuery UI stylesheet has gone (T11), as before.
\*********************************************************************************************************************************/
.ui-draggable-handle {
	touch-action: none;
}

/*********************************************************************************************************************************\
Portal switch (Views\Shared\_PortalSwitch.cshtml, portal-switch.ts): the pill back to the classic portal, fixed to the window's
bottom-right corner in the neutral button colours (so dark mode follows), its collapse button at its right end. Collapsed, only that
button shows, as a slim tab against the window's right edge with its chevron turned to point back. Above the content and the footer
(.ContentWrap is 1), below every menu, drawer and popup layer (the lowest, .NavigationMenuOuter, is 9999); hidden while the Pins menu
is open (the menu draws over it; the pill would only peek out under it), under 600px only the glyph shows (the button keeps its
name), and never printed.
\*********************************************************************************************************************************/
.PortalSwitch {
	align-items: stretch;
	background-color: var(--portal-button-background);
	border: 1px solid var(--portal-border-strong);
	border-radius: 18px;
	bottom: 16px;
	box-shadow: 0 4px 12px var(--portal-shadow);
	box-sizing: border-box;
	color: var(--portal-button-text);
	display: flex;
	font-size: 13px;
	height: 36px;
	line-height: 20px;
	overflow: hidden;
	position: fixed;
	right: 16px;
	z-index: 1000;
}

.PortalSwitch .PortalSwitchForm {
	display: flex;
	margin: 0;
}

.PortalSwitch .PortalSwitchButton,
.PortalSwitch .PortalSwitchCollapse {
	align-items: center;
	background-color: transparent;
	border: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	font: inherit;
	margin: 0;
}

.PortalSwitch .PortalSwitchButton {
	gap: 6px;
	padding: 0 10px 0 14px;
	text-decoration: none;
	white-space: nowrap;
}

.PortalSwitch .PortalSwitchCollapse {
	border-left: 1px solid var(--portal-border-strong);
	justify-content: center;
	padding: 0;
	width: 28px;
}

.PortalSwitch .PortalSwitchButton:hover,
.PortalSwitch .PortalSwitchCollapse:hover {
	background-color: var(--portal-button-hover-background);
}

.PortalSwitch .PortalSwitchButton:focus-visible,
.PortalSwitch .PortalSwitchCollapse:focus-visible {
	outline-offset: -3px;
}

.PortalSwitch.Collapsed {
	border-radius: 8px 0 0 8px;
	border-right: none;
	right: 0;
}

.PortalSwitch.Collapsed .PortalSwitchForm,
.PortalSwitch.Collapsed > .PortalSwitchButton {
	display: none;
}

.PortalSwitch.Collapsed .PortalSwitchCollapse {
	border-left: none;
}

.PortalSwitch.Collapsed .PortalSwitchCollapse svg {
	transform: rotate(180deg);
}

body:has(.PinsContainer.Opened) .PortalSwitch {
	display: none;
}

@media not all and (min-width: 600px) {
	.PortalSwitch .PortalSwitchButton {
		padding: 0 10px;
	}

	.PortalSwitch .PortalSwitchText {
		display: none;
	}
}

@media print {
	.PortalSwitch {
		display: none;
	}
}

/*********************************************************************************************************************************\
Portal switch pages (Views\Switch\Handoff.cshtml and Refused.cshtml, both without the layout): the hand-off on its way to the classic
portal and the refusal, each one card centred on the page in the theme's surface colours (so dark mode follows): the logo and the
wordmark, a heading and a line of text. The hand-off's spinner turns while its form posts, keeps still for reduced motion and is
hidden without scripting (the Continue button shows instead); the refusal's Sign in is the primary button. Unlike the shell, the page
scrolls when the card is taller than the window.
\*********************************************************************************************************************************/
html.SwitchPageDocument,
html.SwitchPageDocument body {
	overflow: auto;
}

body.SwitchPage {
	box-sizing: border-box;
	display: flex;
	padding: 24px 16px;
}

.SwitchPage .SwitchCard {
	background-color: var(--portal-surface);
	border: 1px solid var(--portal-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px var(--portal-shadow);
	box-sizing: border-box;
	margin: auto;
	max-width: 440px;
	padding: 32px 28px;
	text-align: center;
	width: 100%;
}

.SwitchPage .SwitchLogo {
	display: block;
	height: 56px;
	margin: 0 auto;
	width: 56px;
}

.SwitchPage .SwitchBrand {
	color: var(--portal-accent-text);
	font-size: 15px;
	font-weight: 600;
	margin: 6px 0 20px;
}

.SwitchPage .SwitchHeading {
	color: var(--portal-text-strong);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px;
}

.SwitchPage .SwitchMessage {
	color: var(--portal-muted);
	font-size: 14px;
	margin: 0;
}

.SwitchPage .SwitchSpinner {
	animation: spin 0.9s linear infinite;
	border: 3px solid var(--portal-accent-soft);
	border-radius: 50%;
	border-top-color: var(--portal-accent);
	box-sizing: border-box;
	height: 28px;
	margin: 24px auto 0;
	width: 28px;
}

.SwitchPage .SwitchActions {
	margin: 0;
}

.SwitchPage .SwitchButton {
	font-size: 14px;
	margin: 24px 0 0;
	padding: 8px 24px;
}

/* Reduced motion: the ring does not turn; it pulses gently, as the portal's loading spinner does (LoadingPulse), so the page still
   shows that it is working (Lee 2026-11-19: a still ring looked frozen). */
@media (prefers-reduced-motion: reduce) {
	.SwitchPage .SwitchSpinner {
		animation: LoadingPulse 1.2s ease-in-out infinite alternate;
	}
}

@media not all and (min-width: 600px) {
	.SwitchPage .SwitchCard {
		padding: 24px 20px;
	}
}

/*********************************************************************************************************************************\
Hidden (MX-BUG-1): today's .Hidden { display: none; } is the last rule of the file, so it wins over every one-class display helper
(.InlineBlock, .Table, .TableRow, .TableCell, .TableAutoWidth, .PortalMultiSelect, ...) on an element that carries both: the same
specificity, the later declaration wins. (Declared beside .FloatRight, it lost to .InlineBlock: the Matrix drop box editor's alert
threshold, div.InlineBlock.Hidden, showed.) HiddenClassTests pins it. Under 950px portal.css's .TableCell is inline !important, which
.Hidden cannot beat; no element carries both.
\*********************************************************************************************************************************/
.Hidden {
	display: none;
}
