﻿/*********************************************************************************************************************************\
The portal theme: every colour the portal uses, as a CSS custom property with a light and a dark value.

	* Light values are on :root, and on paper in every theme (below).
	* Dark values apply when the browser prefers a dark colour scheme, unless the page forces light (<html data-theme="light">),
	  and always when the page forces dark (<html data-theme="dark">).

No other stylesheet holds a literal colour: they use var(--portal-*) only. Keep the three sets below in step - every
variable has a light and a dark value.
\*********************************************************************************************************************************/
/* The light set is also paper's: authored HTML (.PortalPaper: HTML Tree item content, the Welcome custom content), Jodit's
   editing area (.jodit-wysiwyg) and the placeholder Jodit lays over it (.jodit-placeholder) are the light theme inside any
   theme, because the dark sets below are declared on the page (:root) only. Stored HTML was written for a light page, so it
   reads as written; in dark mode portal.css "Paper" puts it on the light surface. Module header and footer messages are paper
   too, and so are their editors (Lee 2026-10-28). The HTML editor's low-contrast outlines (.PortalContrastMarks, laid over the
   editing area by its Show button) take paper's colours too, so they read on the paper beneath them in every theme. */
:root, .PortalPaper, .jodit-wysiwyg, .jodit-placeholder, .PortalContrastMarks {
	color-scheme: light;
	/* Page and surfaces */
	--portal-background: #f3f4f8;
	--portal-surface: #ffffff;
	--portal-surface-raised: #f6f0fb;
	--portal-surface-sunken: #eceef4;
	--portal-text: #1f2230;
	/* Strong text: a top-level tab's row in the tab menu's More and drawer (NAV-F7), with its 600 weight. */
	--portal-text-strong: #11131c;
	/* Muted: #646a7d one step darker on its hue, so it reads at 4.5:1 on the soft lilac accent (4.35:1 before). */
	--portal-muted: #62677a;
	--portal-border: #dcdfe8;
	--portal-border-strong: #b9bdcc;
	--portal-shadow: rgba(23, 18, 48, 0.14);
	--portal-overlay: rgba(17, 14, 32, 0.55);
	/* Brand (the light theme takes pasunity.com's palette: accent text #6b5392, soft lilac surfaces). --portal-brand is the
	   site's brand purple, for borders and decoration only, never text (3.88:1 on white). */
	--portal-accent: #55359a;
	--portal-accent-hover: #43287e;
	--portal-accent-soft: #eee3f7;
	/* A light wash of the element's own text colour (a coloured Matrix column header under the pointer). */
	--portal-current-wash: color-mix(in srgb, currentColor 8%, transparent);
	--portal-accent-text: #6b5392;
	--portal-on-accent: #ffffff;
	--portal-brand: #8f72c8;
	--portal-highlight: #087a97;
	--portal-on-highlight: #ffffff;
	/* Links and focus. The focus ring reaches 3:1 on every surface it is drawn on (ruling I-F7: #2fa8d8 was 1.95:1 on the hover
	   surface; #2083aa, darker on its hue, is 3.09:1 there and more on the other surfaces). No one colour reaches 3:1 against both
	   the light hover surface and the accent, so on the accent and the purple bars (the active tab, the tab menu, the popup tool
	   bar) the ring is --portal-focus-on-accent. */
	--portal-link: #6b5392;
	--portal-link-hover: #08718c;
	--portal-focus: #2083aa;
	--portal-focus-ring: rgba(32, 131, 170, 0.35);
	--portal-focus-on-accent: #ffffff;
	/* Header (the dark bar with the portal's tools) */
	--portal-header-background: #1d1a2c;
	--portal-header-text: #e9e7f2;
	--portal-header-muted: #a7a3bd;
	--portal-header-highlight: #4fd2f0;
	--portal-header-hover-background: #2d2943;
	/* Tab menu (the pasunity.com banner's gradient, left to right, over its middle colour; the active tab takes the page's
	   colour). The banner's end colour #866ab3 carries white at 4.44:1, so the end stop is the nearest darker colour on its
	   hue that reaches 4.5:1. */
	--portal-menu-background: #6a518f;
	--portal-menu-gradient-start: #4b3a67;
	--portal-menu-gradient-middle: #6a518f;
	--portal-menu-gradient-end: #8569b2;
	--portal-menu-text: #ffffff;
	--portal-menu-hover-background: #6a45ad;
	--portal-menu-hover-text: #ffffff;
	--portal-menu-selected-background: #f3f4f8;
	--portal-menu-selected-text: #52318d;
	--portal-menu-dropdown-background: #ffffff;
	--portal-menu-dropdown-text: #2b2840;
	--portal-menu-dropdown-selected-text: #55359a;
	--portal-menu-dropdown-hover-background: #55359a;
	--portal-menu-dropdown-hover-text: #ffffff;
	/* Modules */
	--portal-module-header-background: #f6f0fb;
	--portal-module-header-text: #3c2a70;
	/* Footer */
	--portal-footer-background: #1d1a2c;
	--portal-footer-text: #c9c6d8;
	/* Forms */
	--portal-input-background: #ffffff;
	--portal-input-border: #c3c7d4;
	--portal-input-text: #1f2230;
	--portal-button-background: #e7e8ef;
	--portal-button-text: #2b2840;
	--portal-button-hover-background: #d8dae5;
	/* The module settings editor's tab strip, behind its tabs (the button colours): a tab reads as a tab at 1.3:1 on it (today's
	   #e6e6e6 on #cccccc; the sunken surface was 1.05:1). */
	--portal-tab-strip-background: #c9ccd8;
	/* Popups */
	--portal-popup-background: #ffffff;
	--portal-popup-toolbar-background: #55359a;
	--portal-popup-toolbar-text: #ffffff;
	--portal-popup-panel-background: #f6f0fb;
	/* Tiles (Welcome and tab summary columns: the image band is light lilac in the light theme and dark in the dark theme; its
	   glyphs take their action family's colour) */
	--portal-tile-background: #ffffff;
	--portal-tile-image-background: #f6f0fb;
	--portal-tile-label: #55359a;
	/* States */
	--portal-danger: #c3292e;
	--portal-danger-background: #fdecec;
	--portal-on-danger: #ffffff;
	--portal-success: #2b7a3d;
	--portal-success-background: #e7f5ea;
	--portal-on-success: #ffffff;
	--portal-warning: #8a5a00;
	--portal-warning-background: #fff4dc;
	--portal-info: #1d5fb5;
	--portal-info-background: #e8f0fb;
	--portal-strength-average: #e0a800;
	/* The skin code editor's strings and CSS properties (module-skin-manager.css "Code editor"): the success and highlight colours
	   fall below 4.5:1 on the editor's selection and active line in the light theme, so code takes a shade darker of each. */
	--portal-code-string: #287239;
	--portal-code-property: #076d87;
	/* Not-yet-ported placeholders */
	--portal-placeholder-text: #646a7d;
	--portal-placeholder-border: #b9bdcc;
	/* Tabulator (the vendored 4.9.3 grid, frontend\vendor\tabulator.css; light: its own colours) */
	--portal-tabulator-background: #ffffff;
	--portal-tabulator-cell-background: #f3f3f3;
	--portal-tabulator-calcs-background: #f2f2f2;
	--portal-tabulator-header-hover-background: #e6e6e6;
	--portal-tabulator-gridline: #ffffff;
	--portal-tabulator-text: #333333;
	--portal-tabulator-header-text: #52318d;
	--portal-tabulator-accent: #2f0058;
	--portal-tabulator-sorter: #b7c3f1;
	--portal-tabulator-row-hover: #bbbbbb;
	--portal-tabulator-row-selected: #9abcea;
	--portal-tabulator-row-selected-hover: #769bcc;
	--portal-tabulator-row-marker-alternate: #d8ccee;
	--portal-tabulator-group-background: #8ca0e8;
	--portal-tabulator-editing: #1d68cd;
	--portal-tabulator-inverse-text: #f3f3f3;
	--portal-tabulator-inverse-outline: rgba(243, 243, 243, 0.5);
	--portal-tabulator-invalid: #dd0000;
	--portal-tabulator-control: #333333;
	--portal-tabulator-handle: #666666;
	--portal-tabulator-tint: rgba(0, 0, 0, 0.1);
	--portal-tabulator-tint-strong: rgba(0, 0, 0, 0.2);
	--portal-tabulator-shadow: rgba(0, 0, 0, 0.2);
	--portal-tabulator-footer-border: #999999;
	--portal-tabulator-page-border: #aaaaaa;
	--portal-tabulator-page-background: rgba(255, 255, 255, 0.2);
	--portal-tabulator-page-hover-text: #ffffff;
	--portal-tabulator-loader-overlay: rgba(0, 0, 0, 0.4);
	--portal-tabulator-loader-text: #000000;
	--portal-tabulator-loader-error-text: #590000;
	/* The Mapping module and designer (mapping.css; light: today's Mapping.less colours, a few darkened to read at 4.5:1). The
	   header uses the portal header's colours, the tool bar the tab menu's, the body the surface. */
	--portal-mapping-background: #d8ccee;
	--portal-mapping-heartbeat: #ff4d4d;
	--portal-mapping-heartbeat-expired: #8c8c8c;
	--portal-mapping-button-border: #808080;
	--portal-mapping-tab-background: #57575b;
	--portal-mapping-tab-text: #d8ccee;
	--portal-mapping-button-background: #d8ccee;
	--portal-mapping-button-text: #52318d;
	--portal-mapping-button-highlight: #1ec8ea;
	--portal-mapping-button-highlight-text: #52318d;
	--portal-mapping-error: #4b1580;
	--portal-mapping-danger: #a11d22;
	--portal-mapping-tick-cross: #ce1515;
	--portal-mapping-row-error-background: #f08080;
	--portal-mapping-row-error-hover-background: #ffb6c1;
	--portal-mapping-omission-matched-background: #20b2aa;
	--portal-mapping-omission-matched-hover-background: #90ee90;
	/* The folder tree (explorer-view.css; light: today's #9cbbe9 behind the selected folder, its link a darker purple to read
	   at 4.5:1 there) */
	--portal-explorer-selected-background: #9cbbe9;
	--portal-explorer-selected-text: #3c2a70;
	/* The Document module's drop zone (document.css .FileContainer.DocumentDropZone; light: today's blue border and lightgray
	   behind "Drop Here", its @Blue #00bce4 text and dashed border darkened to read at 4.5:1 there) */
	--portal-drop-zone-border: #0000ff;
	--portal-drop-zone-text: #005a73;
	--portal-drop-zone-background: #d3d3d3;
	/* Live updates (live-updates.css): the refresh bar, and the brief highlight on an item another user changed */
	--portal-live-bar-background: #fff4ce;
	--portal-live-bar-text: #4a3b00;
	--portal-live-bar-border: #d9b84a;
	--portal-live-highlight-background: #fff3b0;
	--portal-live-highlight-border: #c9a200;
	/* The Matrix module (unity-matrix.css; light: today's UnityMatrix.less colours, three changed to read at 4.5:1 where text
	   sits on them - said beside each). Grid lines are today's black, cells today's white. */
	--portal-matrix-border: #000000;
	--portal-matrix-cell-background: #ffffff;
	--portal-matrix-header-shadow: #efefef;
	--portal-matrix-empty-background: #d3d3d3;
	/* A column's Background (column_{colour}) behind its header and drop boxes */
	--portal-matrix-column-pink: #fbe8fc;
	--portal-matrix-column-orange: #fce8e9;
	--portal-matrix-column-purple: #f1e8fc;
	--portal-matrix-column-blue: #e8e9fc;
	--portal-matrix-column-yellow: #fafce8;
	--portal-matrix-column-brown: #ebe4dd;
	--portal-matrix-column-green: #dcffdc;
	--portal-matrix-column-lightblue: #e8feff;
	/* A column's frequency: the frame of its header and the color key (borders, no text) */
	--portal-matrix-frequency-daily: #808080;
	--portal-matrix-frequency-weekly: #195d8a;
	--portal-matrix-frequency-monthly: #198a7e;
	--portal-matrix-frequency-quarterly: #46198a;
	--portal-matrix-frequency-annually: #19258a;
	/* A file's status (the file rows and the activity report's rows) and the text on it (today's text, inherited) */
	--portal-matrix-file-pending: #fbfebe;
	--portal-matrix-file-pending-text: #1f2230;
	--portal-matrix-file-processed: #befec7;
	--portal-matrix-file-processed-text: #1f2230;
	--portal-matrix-file-failed: #f47474;
	--portal-matrix-file-failed-text: #1f2230;
	--portal-matrix-file-waiting: #add8e6;
	--portal-matrix-file-waiting-text: #1f2230;
	--portal-matrix-file-purged: #f0fff2;
	--portal-matrix-file-purged-text: #1f2230;
	/* The data file storage bar: available (today's Green), used (today's Red darkened: white on #ff0000 is 4.00:1), the
	   percentage on both, and the outset border (today's, in the text colour) */
	--portal-matrix-storage-fill: #008000;
	--portal-matrix-storage-used: #ee0000;
	--portal-matrix-storage-text: #ffffff;
	--portal-matrix-storage-border: #ffffff;
	/* Today's @Blue: the drop zone's dashed border and the selected calendar day (the selected mode's text, today's @Blue too, is the
	   accent text on the selected tab: unity-matrix.css) */
	--portal-matrix-highlight: #00bce4;
	--portal-matrix-highlight-background: rgba(0, 188, 228, 0.2);
	/* A drop box's drop zone: today's lightgray behind "Drop Here", its @Blue text darkened (#00bce4 on it is 1.51:1) */
	--portal-matrix-drop-zone-background: #d3d3d3;
	--portal-matrix-drop-zone-text: #005a73;
	/* The job log: today's XSLT colours (ghostwhite, darkblue, #F0F0F0), scoped to the log */
	--portal-matrix-job-log-background: #f8f8ff;
	--portal-matrix-job-log-text: #00008b;
	--portal-matrix-job-log-table-background: #f0f0f0;
	/* Text drawn straight on the column backgrounds (and a plain cell), so it reads at 4.5:1 on every one: a cell's Success message
	   (the portal's success darkened: 4.22:1 on brown), its error lines (the portal's danger) and links under the pointer (the
	   portal's link hover darkened: 4.45:1 on brown) */
	--portal-matrix-cell-success: #277236;
	--portal-matrix-cell-danger: #c3292e;
	--portal-matrix-cell-link-hover: #086f8a;
	/* A file's chip in a Matrix tile (MX-1): today's status colours as a soft tint, with a darker text (and status glyph) of the same
	   hue that reads at 4.5:1 on it; none: a file with no status yet */
	--portal-matrix-chip-pending: #fdf6d4;
	--portal-matrix-chip-pending-text: #6b4e00;
	--portal-matrix-chip-processed: #e2f4e5;
	--portal-matrix-chip-processed-text: #1d6a31;
	--portal-matrix-chip-failed: #fde5e5;
	--portal-matrix-chip-failed-text: #a4232a;
	--portal-matrix-chip-waiting: #e1eff7;
	--portal-matrix-chip-waiting-text: #1a5a7d;
	--portal-matrix-chip-none: #f1edf6;
	--portal-matrix-chip-none-text: #1f2230;
	/* The Matrix tiles (MX-3): the gridline around every tile (at least 3:1 on the page, the surfaces, every column colour and the
	   not-applicable fill), and the not-applicable fill (an empty intersection, a drop box not due on the date): a mid lilac grey,
	   1.69:1 from the surface, under which the muted "Not due" glyph still reads at 3:1 */
	--portal-matrix-grid: #6a6387;
	--portal-matrix-na: #cbc3dd;
	/* The Remote Execution work queue's rows (unity-impeller.css: today's .ProcessPending, .ProcessSuccess, .ProcessFailure and
	   .ProcessWaiting colours), under the text colour */
	--portal-process-pending-background: #fbfebe;
	--portal-process-success-background: #befec7;
	--portal-process-failure-background: #f47474;
	--portal-process-waiting-background: #add8e6;
	/* The video popup (video-popup.css): the details' background (today's rgb(240, 240, 240)), the player's background (today's
	   black) and the details' "Title:" and "Summary:" labels (today's @color-general-background, #52318D) */
	--portal-video-details-background: #f0f0f0;
	--portal-video-player-background: #000000;
	--portal-video-label-text: #52318d;
	/* Icons (portal.css "Icons": .PortalIcon--{tint}): the system admin tabs blue (today's admin icon's blue wrench), site roles
	   magenta and dashboard roles green (today's role icons' colours), blogs blue (today's blog icons' cyan-blue, darkened to read
	   on white, on the designer's soft accent and on the dark header) and RSS feeds the classic RSS orange (darkened to read on light
	   surfaces) */
	--portal-system: #476bbf;
	--portal-role-site: #990066;
	--portal-role-dashboard: #336633;
	--portal-blog: #1c8bd0;
	--portal-rss: #d9541a;
	/* The Hosted Applications module (hosted-application.css): the group bar (.TerminalIconGroup, today's white on black) and a tile's icon
	   name over the white hover emboss image (the accent text; dark: today's @color-general-background, 9.6:1 on white) */
	--portal-hosted-application-group-background: #000000;
	--portal-hosted-application-group-text: #ffffff;
	--portal-hosted-application-emboss-text: #6b5392;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--portal-background: #1a1824;
		--portal-surface: #232130;
		--portal-surface-raised: #2b283b;
		--portal-surface-sunken: #1d1b28;
		--portal-text: #e6e4ee;
		--portal-text-strong: #f6f5fa;
		--portal-muted: #aaa6bd;
		--portal-border: #3b3750;
		--portal-border-strong: #524d6c;
		--portal-shadow: rgba(0, 0, 0, 0.5);
		--portal-overlay: rgba(0, 0, 0, 0.65);
		--portal-accent: #7457d1;
		--portal-accent-hover: #5f42b8;
		--portal-accent-soft: #322b4c;
		/* A light wash of the element's own text colour (a coloured Matrix column header under the pointer). */
		--portal-current-wash: color-mix(in srgb, currentColor 8%, transparent);
		--portal-accent-text: #b3a1f2;
		--portal-on-accent: #ffffff;
		--portal-brand: #8f72c8;
		--portal-highlight: #3cc4e4;
		--portal-on-highlight: #0e0c16;
		--portal-link: #b3a1f2;
		--portal-link-hover: #5fd4ef;
		/* The focus ring: #5cc8f0 was 2.73:1 on the accent (the active tab); #78d2f2, lighter on its hue, is 3.06:1 there
		   (ruling I-F7). */
		--portal-focus: #78d2f2;
		--portal-focus-ring: rgba(120, 210, 242, 0.35);
		--portal-focus-on-accent: #78d2f2;
		--portal-header-background: #15121f;
		--portal-header-text: #e6e4ee;
		--portal-header-muted: #a29eb5;
		--portal-header-highlight: #5fd4ef;
		--portal-header-hover-background: #2a263c;
		--portal-menu-background: #2e2346;
		--portal-menu-gradient-start: #2e2346;
		--portal-menu-gradient-middle: #2e2346;
		--portal-menu-gradient-end: #2e2346;
		--portal-menu-text: #ece8f7;
		--portal-menu-hover-background: #3e3060;
		--portal-menu-hover-text: #ffffff;
		--portal-menu-selected-background: #1a1824;
		--portal-menu-selected-text: #c4b5f7;
		--portal-menu-dropdown-background: #2a2739;
		--portal-menu-dropdown-text: #d9d6e5;
		--portal-menu-dropdown-selected-text: #c4b5f7;
		--portal-menu-dropdown-hover-background: #7457d1;
		--portal-menu-dropdown-hover-text: #ffffff;
		--portal-module-header-background: #2e2a42;
		--portal-module-header-text: #d6cdf6;
		--portal-footer-background: #15121f;
		--portal-footer-text: #aaa6bd;
		--portal-input-background: #1d1b28;
		--portal-input-border: #46415f;
		--portal-input-text: #e6e4ee;
		--portal-button-background: #322f42;
		--portal-button-text: #e6e4ee;
		--portal-button-hover-background: #3f3b53;
		/* The module settings editor's tab strip: a tab is 1.31:1 on it. */
		--portal-tab-strip-background: #1d1b28;
		--portal-popup-background: #232130;
		--portal-popup-toolbar-background: #342c50;
		--portal-popup-toolbar-text: #ffffff;
		--portal-popup-panel-background: #2a2737;
		--portal-tile-background: #232130;
		--portal-tile-image-background: #171522;
		--portal-tile-label: #c4b5f7;
		--portal-danger: #f06a6e;
		--portal-danger-background: #3a1c20;
		--portal-on-danger: #ffffff;
		--portal-success: #6cc37f;
		--portal-success-background: #17301f;
		--portal-on-success: #0e0c16;
		--portal-warning: #ffcf7a;
		--portal-warning-background: #3a2b0f;
		--portal-info: #8ab8f5;
		--portal-info-background: #172a44;
		--portal-strength-average: #f2c14e;
		--portal-code-string: #6cc37f;
		--portal-code-property: #3cc4e4;
		--portal-placeholder-text: #aaa6bd;
		--portal-placeholder-border: #524d6c;
		--portal-tabulator-background: #232130;
		--portal-tabulator-cell-background: #2b283b;
		--portal-tabulator-calcs-background: #2e2a42;
		--portal-tabulator-header-hover-background: #322d49;
		--portal-tabulator-gridline: #1a1824;
		--portal-tabulator-text: #e6e4ee;
		--portal-tabulator-header-text: #d6cdf6;
		--portal-tabulator-accent: #b3a1f2;
		--portal-tabulator-sorter: #6d6790;
		--portal-tabulator-row-hover: #3f3b53;
		--portal-tabulator-row-selected: #2d4a72;
		--portal-tabulator-row-selected-hover: #36598a;
		--portal-tabulator-row-marker-alternate: #4a3f6e;
		--portal-tabulator-group-background: #3a3560;
		--portal-tabulator-editing: #3570c8;
		--portal-tabulator-inverse-text: #ffffff;
		--portal-tabulator-inverse-outline: rgba(255, 255, 255, 0.5);
		--portal-tabulator-invalid: #f47e82;
		--portal-tabulator-control: #c9c6d8;
		--portal-tabulator-handle: #8f8aa6;
		--portal-tabulator-tint: rgba(255, 255, 255, 0.08);
		--portal-tabulator-tint-strong: rgba(255, 255, 255, 0.16);
		--portal-tabulator-shadow: rgba(0, 0, 0, 0.5);
		--portal-tabulator-footer-border: #524d6c;
		--portal-tabulator-page-border: #524d6c;
		--portal-tabulator-page-background: rgba(255, 255, 255, 0.06);
		--portal-tabulator-page-hover-text: #ffffff;
		--portal-tabulator-loader-overlay: rgba(0, 0, 0, 0.6);
		--portal-tabulator-loader-text: #e6e4ee;
		--portal-tabulator-loader-error-text: #f5a3a5;
		--portal-mapping-background: #2a2440;
		--portal-mapping-heartbeat: #f06a6e;
		--portal-mapping-heartbeat-expired: #8f8aa6;
		--portal-mapping-button-border: #6d6790;
		--portal-mapping-tab-background: #3b3750;
		--portal-mapping-tab-text: #e6e4ee;
		--portal-mapping-button-background: #4a3f6e;
		--portal-mapping-button-text: #ece8f7;
		--portal-mapping-button-highlight: #3cc4e4;
		--portal-mapping-button-highlight-text: #0e0c16;
		--portal-mapping-error: #d6c2ff;
		--portal-mapping-danger: #f5a3a5;
		--portal-mapping-tick-cross: #f06a6e;
		--portal-mapping-row-error-background: #5a2a2e;
		--portal-mapping-row-error-hover-background: #6e3338;
		--portal-mapping-omission-matched-background: #1f5a4f;
		--portal-mapping-omission-matched-hover-background: #2a6e5f;
		--portal-explorer-selected-background: #2d4a72;
		--portal-explorer-selected-text: #e6e4ee;
		--portal-drop-zone-border: #6b8cff;
		--portal-drop-zone-text: #00bce4;
		--portal-drop-zone-background: #1f2a33;
		--portal-live-bar-background: #3a3220;
		--portal-live-bar-text: #f1e6c2;
		--portal-live-bar-border: #7a6630;
		--portal-live-highlight-background: #3d3518;
		--portal-live-highlight-border: #a68a2c;
		--portal-matrix-border: #6d6790;
		--portal-matrix-cell-background: #232130;
		--portal-matrix-header-shadow: #3b3750;
		--portal-matrix-empty-background: #36334a;
		--portal-matrix-column-pink: #3d2a40;
		--portal-matrix-column-orange: #402a2c;
		--portal-matrix-column-purple: #33294a;
		--portal-matrix-column-blue: #282b4a;
		--portal-matrix-column-yellow: #3a3a24;
		--portal-matrix-column-brown: #3a3129;
		--portal-matrix-column-green: #233d26;
		--portal-matrix-column-lightblue: #213c40;
		--portal-matrix-frequency-daily: #8f8aa6;
		--portal-matrix-frequency-weekly: #4f95c8;
		--portal-matrix-frequency-monthly: #3fb5a7;
		--portal-matrix-frequency-quarterly: #9a76e0;
		--portal-matrix-frequency-annually: #6f7ef0;
		--portal-matrix-file-pending: #3d3d1c;
		--portal-matrix-file-pending-text: #e6e4ee;
		--portal-matrix-file-processed: #1d4226;
		--portal-matrix-file-processed-text: #e6e4ee;
		--portal-matrix-file-failed: #5a2a2e;
		--portal-matrix-file-failed-text: #e6e4ee;
		--portal-matrix-file-waiting: #1f3d4c;
		--portal-matrix-file-waiting-text: #e6e4ee;
		--portal-matrix-file-purged: #24302a;
		--portal-matrix-file-purged-text: #e6e4ee;
		--portal-matrix-storage-fill: #2b6e3a;
		--portal-matrix-storage-used: #8f2a2e;
		--portal-matrix-storage-text: #ffffff;
		--portal-matrix-storage-border: #c9c6d8;
		--portal-matrix-highlight: #3cc4e4;
		--portal-matrix-highlight-background: rgba(60, 196, 228, 0.25);
		--portal-matrix-drop-zone-background: #1f2a33;
		--portal-matrix-drop-zone-text: #3cc4e4;
		--portal-matrix-job-log-background: #26243a;
		--portal-matrix-job-log-text: #b8c8ff;
		--portal-matrix-job-log-table-background: #2b283b;
		--portal-matrix-cell-success: #6cc37f;
		--portal-matrix-cell-danger: #f78589;
		--portal-matrix-cell-link-hover: #5fd4ef;
		--portal-matrix-chip-pending: #3a3320;
		--portal-matrix-chip-pending-text: #f0d27a;
		--portal-matrix-chip-processed: #1e3a27;
		--portal-matrix-chip-processed-text: #8fd9a0;
		--portal-matrix-chip-failed: #4a262c;
		--portal-matrix-chip-failed-text: #ffb0b3;
		--portal-matrix-chip-waiting: #1c3546;
		--portal-matrix-chip-waiting-text: #8fcdec;
		--portal-matrix-chip-none: #2f2b40;
		--portal-matrix-chip-none-text: #e6e4ee;
		--portal-matrix-grid: #9089ad;
		--portal-matrix-na: #0e0c15;
		--portal-process-pending-background: #3d3d1c;
		--portal-process-success-background: #1d4226;
		--portal-process-failure-background: #5a2a2e;
		--portal-process-waiting-background: #1f3d4c;
		--portal-video-details-background: #1d1b28;
		--portal-video-player-background: #000000;
		--portal-video-label-text: #b3a1f2;
		--portal-system: #8aa8f0;
		--portal-role-site: #e05aa8;
		--portal-role-dashboard: #6cc37f;
		--portal-blog: #5cb8f0;
		--portal-rss: #f58a4b;
		--portal-hosted-application-group-background: #0f0e16;
		--portal-hosted-application-group-text: #e6e4ee;
		--portal-hosted-application-emboss-text: #52318d;
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--portal-background: #1a1824;
	--portal-surface: #232130;
	--portal-surface-raised: #2b283b;
	--portal-surface-sunken: #1d1b28;
	--portal-text: #e6e4ee;
	--portal-text-strong: #f6f5fa;
	--portal-muted: #aaa6bd;
	--portal-border: #3b3750;
	--portal-border-strong: #524d6c;
	--portal-shadow: rgba(0, 0, 0, 0.5);
	--portal-overlay: rgba(0, 0, 0, 0.65);
	--portal-accent: #7457d1;
	--portal-accent-hover: #5f42b8;
	--portal-accent-soft: #322b4c;
	/* A light wash of the element's own text colour (a coloured Matrix column header under the pointer). */
	--portal-current-wash: color-mix(in srgb, currentColor 8%, transparent);
	--portal-accent-text: #b3a1f2;
	--portal-on-accent: #ffffff;
	--portal-brand: #8f72c8;
	--portal-highlight: #3cc4e4;
	--portal-on-highlight: #0e0c16;
	--portal-link: #b3a1f2;
	--portal-link-hover: #5fd4ef;
	/* The focus ring: #5cc8f0 was 2.73:1 on the accent (the active tab); #78d2f2, lighter on its hue, is 3.06:1 there
	   (ruling I-F7). */
	--portal-focus: #78d2f2;
	--portal-focus-ring: rgba(120, 210, 242, 0.35);
	--portal-focus-on-accent: #78d2f2;
	--portal-header-background: #15121f;
	--portal-header-text: #e6e4ee;
	--portal-header-muted: #a29eb5;
	--portal-header-highlight: #5fd4ef;
	--portal-header-hover-background: #2a263c;
	--portal-menu-background: #2e2346;
	--portal-menu-gradient-start: #2e2346;
	--portal-menu-gradient-middle: #2e2346;
	--portal-menu-gradient-end: #2e2346;
	--portal-menu-text: #ece8f7;
	--portal-menu-hover-background: #3e3060;
	--portal-menu-hover-text: #ffffff;
	--portal-menu-selected-background: #1a1824;
	--portal-menu-selected-text: #c4b5f7;
	--portal-menu-dropdown-background: #2a2739;
	--portal-menu-dropdown-text: #d9d6e5;
	--portal-menu-dropdown-selected-text: #c4b5f7;
	--portal-menu-dropdown-hover-background: #7457d1;
	--portal-menu-dropdown-hover-text: #ffffff;
	--portal-module-header-background: #2e2a42;
	--portal-module-header-text: #d6cdf6;
	--portal-footer-background: #15121f;
	--portal-footer-text: #aaa6bd;
	--portal-input-background: #1d1b28;
	--portal-input-border: #46415f;
	--portal-input-text: #e6e4ee;
	--portal-button-background: #322f42;
	--portal-button-text: #e6e4ee;
	--portal-button-hover-background: #3f3b53;
	/* The module settings editor's tab strip: a tab is 1.31:1 on it. */
	--portal-tab-strip-background: #1d1b28;
	--portal-popup-background: #232130;
	--portal-popup-toolbar-background: #342c50;
	--portal-popup-toolbar-text: #ffffff;
	--portal-popup-panel-background: #2a2737;
	--portal-tile-background: #232130;
	--portal-tile-image-background: #171522;
	--portal-tile-label: #c4b5f7;
	--portal-danger: #f06a6e;
	--portal-danger-background: #3a1c20;
	--portal-on-danger: #ffffff;
	--portal-success: #6cc37f;
	--portal-success-background: #17301f;
	--portal-on-success: #0e0c16;
	--portal-warning: #ffcf7a;
	--portal-warning-background: #3a2b0f;
	--portal-info: #8ab8f5;
	--portal-info-background: #172a44;
	--portal-strength-average: #f2c14e;
	--portal-code-string: #6cc37f;
	--portal-code-property: #3cc4e4;
	--portal-placeholder-text: #aaa6bd;
	--portal-placeholder-border: #524d6c;
	--portal-tabulator-background: #232130;
	--portal-tabulator-cell-background: #2b283b;
	--portal-tabulator-calcs-background: #2e2a42;
	--portal-tabulator-header-hover-background: #322d49;
	--portal-tabulator-gridline: #1a1824;
	--portal-tabulator-text: #e6e4ee;
	--portal-tabulator-header-text: #d6cdf6;
	--portal-tabulator-accent: #b3a1f2;
	--portal-tabulator-sorter: #6d6790;
	--portal-tabulator-row-hover: #3f3b53;
	--portal-tabulator-row-selected: #2d4a72;
	--portal-tabulator-row-selected-hover: #36598a;
	--portal-tabulator-row-marker-alternate: #4a3f6e;
	--portal-tabulator-group-background: #3a3560;
	--portal-tabulator-editing: #3570c8;
	--portal-tabulator-inverse-text: #ffffff;
	--portal-tabulator-inverse-outline: rgba(255, 255, 255, 0.5);
	--portal-tabulator-invalid: #f47e82;
	--portal-tabulator-control: #c9c6d8;
	--portal-tabulator-handle: #8f8aa6;
	--portal-tabulator-tint: rgba(255, 255, 255, 0.08);
	--portal-tabulator-tint-strong: rgba(255, 255, 255, 0.16);
	--portal-tabulator-shadow: rgba(0, 0, 0, 0.5);
	--portal-tabulator-footer-border: #524d6c;
	--portal-tabulator-page-border: #524d6c;
	--portal-tabulator-page-background: rgba(255, 255, 255, 0.06);
	--portal-tabulator-page-hover-text: #ffffff;
	--portal-tabulator-loader-overlay: rgba(0, 0, 0, 0.6);
	--portal-tabulator-loader-text: #e6e4ee;
	--portal-tabulator-loader-error-text: #f5a3a5;
	--portal-mapping-background: #2a2440;
	--portal-mapping-heartbeat: #f06a6e;
	--portal-mapping-heartbeat-expired: #8f8aa6;
	--portal-mapping-button-border: #6d6790;
	--portal-mapping-tab-background: #3b3750;
	--portal-mapping-tab-text: #e6e4ee;
	--portal-mapping-button-background: #4a3f6e;
	--portal-mapping-button-text: #ece8f7;
	--portal-mapping-button-highlight: #3cc4e4;
	--portal-mapping-button-highlight-text: #0e0c16;
	--portal-mapping-error: #d6c2ff;
	--portal-mapping-danger: #f5a3a5;
	--portal-mapping-tick-cross: #f06a6e;
	--portal-mapping-row-error-background: #5a2a2e;
	--portal-mapping-row-error-hover-background: #6e3338;
	--portal-mapping-omission-matched-background: #1f5a4f;
	--portal-mapping-omission-matched-hover-background: #2a6e5f;
	--portal-explorer-selected-background: #2d4a72;
	--portal-explorer-selected-text: #e6e4ee;
	--portal-drop-zone-border: #6b8cff;
	--portal-drop-zone-text: #00bce4;
	--portal-drop-zone-background: #1f2a33;
	--portal-live-bar-background: #3a3220;
	--portal-live-bar-text: #f1e6c2;
	--portal-live-bar-border: #7a6630;
	--portal-live-highlight-background: #3d3518;
	--portal-live-highlight-border: #a68a2c;
	--portal-matrix-border: #6d6790;
	--portal-matrix-cell-background: #232130;
	--portal-matrix-header-shadow: #3b3750;
	--portal-matrix-empty-background: #36334a;
	--portal-matrix-column-pink: #3d2a40;
	--portal-matrix-column-orange: #402a2c;
	--portal-matrix-column-purple: #33294a;
	--portal-matrix-column-blue: #282b4a;
	--portal-matrix-column-yellow: #3a3a24;
	--portal-matrix-column-brown: #3a3129;
	--portal-matrix-column-green: #233d26;
	--portal-matrix-column-lightblue: #213c40;
	--portal-matrix-frequency-daily: #8f8aa6;
	--portal-matrix-frequency-weekly: #4f95c8;
	--portal-matrix-frequency-monthly: #3fb5a7;
	--portal-matrix-frequency-quarterly: #9a76e0;
	--portal-matrix-frequency-annually: #6f7ef0;
	--portal-matrix-file-pending: #3d3d1c;
	--portal-matrix-file-pending-text: #e6e4ee;
	--portal-matrix-file-processed: #1d4226;
	--portal-matrix-file-processed-text: #e6e4ee;
	--portal-matrix-file-failed: #5a2a2e;
	--portal-matrix-file-failed-text: #e6e4ee;
	--portal-matrix-file-waiting: #1f3d4c;
	--portal-matrix-file-waiting-text: #e6e4ee;
	--portal-matrix-file-purged: #24302a;
	--portal-matrix-file-purged-text: #e6e4ee;
	--portal-matrix-storage-fill: #2b6e3a;
	--portal-matrix-storage-used: #8f2a2e;
	--portal-matrix-storage-text: #ffffff;
	--portal-matrix-storage-border: #c9c6d8;
	--portal-matrix-highlight: #3cc4e4;
	--portal-matrix-highlight-background: rgba(60, 196, 228, 0.25);
	--portal-matrix-drop-zone-background: #1f2a33;
	--portal-matrix-drop-zone-text: #3cc4e4;
	--portal-matrix-job-log-background: #26243a;
	--portal-matrix-job-log-text: #b8c8ff;
	--portal-matrix-job-log-table-background: #2b283b;
	--portal-matrix-cell-success: #6cc37f;
	--portal-matrix-cell-danger: #f78589;
	--portal-matrix-cell-link-hover: #5fd4ef;
	--portal-matrix-chip-pending: #3a3320;
	--portal-matrix-chip-pending-text: #f0d27a;
	--portal-matrix-chip-processed: #1e3a27;
	--portal-matrix-chip-processed-text: #8fd9a0;
	--portal-matrix-chip-failed: #4a262c;
	--portal-matrix-chip-failed-text: #ffb0b3;
	--portal-matrix-chip-waiting: #1c3546;
	--portal-matrix-chip-waiting-text: #8fcdec;
	--portal-matrix-chip-none: #2f2b40;
	--portal-matrix-chip-none-text: #e6e4ee;
	--portal-matrix-grid: #9089ad;
	--portal-matrix-na: #0e0c15;
	--portal-process-pending-background: #3d3d1c;
	--portal-process-success-background: #1d4226;
	--portal-process-failure-background: #5a2a2e;
	--portal-process-waiting-background: #1f3d4c;
	--portal-video-details-background: #1d1b28;
	--portal-video-player-background: #000000;
	--portal-video-label-text: #b3a1f2;
	--portal-system: #8aa8f0;
	--portal-role-site: #e05aa8;
	--portal-role-dashboard: #6cc37f;
	--portal-blog: #5cb8f0;
	--portal-rss: #f58a4b;
	--portal-hosted-application-group-background: #0f0e16;
	--portal-hosted-application-group-text: #e6e4ee;
	--portal-hosted-application-emboss-text: #52318d;
}
