/* ==========================================================================
   Auxilium Pulse — Prototype Shell + Design System
   ==========================================================================
   Enterprise-grade workforce management UI. System font stack, no webfonts.
   Dark navy sidebar + light workspace. Dense data-forward layout.
   Reference register: Rippling, Gusto, Justworks, Stripe Dashboard.
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Brand — dark chrome */
	--aux-brand-ink: #0B1020;
	--aux-brand-ink-2: #161D35;
	--aux-brand-ink-3: #1F2847;
	--aux-brand-accent: #3B6BF5;
	--aux-brand-accent-hover: #2D54D1;
	--aux-brand-accent-soft: rgba(59, 107, 245, 0.10);
	--aux-brand-accent-surface: rgba(59, 107, 245, 0.06);
	--aux-brand-gold: #C9A961;

	/* Workspace — light */
	--aux-bg: #F7F8FB;
	--aux-bg-soft: #EEF1F6;
	--aux-surface: #FFFFFF;
	--aux-surface-hover: #F7F8FB;
	--aux-surface-active: #EEF1F6;
	--aux-border: #E4E7EC;
	--aux-border-strong: #CBD2DE;
	--aux-border-subtle: #EEF1F6;

	/* Text */
	--aux-text: #0B1020;
	--aux-text-2: #1F2937;
	--aux-text-muted: #5B6578;
	--aux-text-subtle: #8892A6;
	--aux-text-inverse: #FFFFFF;
	--aux-text-disabled: #B9C0CD;

	/* Sidebar */
	--aux-side-bg: #0B1020;
	--aux-side-bg-2: #161D35;
	--aux-side-text: rgba(255, 255, 255, 0.78);
	--aux-side-text-hover: #FFFFFF;
	--aux-side-item-hover: rgba(255, 255, 255, 0.05);
	--aux-side-item-active: rgba(59, 107, 245, 0.18);
	--aux-side-group-label: rgba(255, 255, 255, 0.42);
	--aux-side-border: rgba(255, 255, 255, 0.06);

	/* Semantic */
	--aux-success: #0E8A5F;
	--aux-success-bg: rgba(14, 138, 95, 0.10);
	--aux-success-bg-strong: rgba(14, 138, 95, 0.18);
	--aux-warning: #B45309;
	--aux-warning-bg: rgba(180, 83, 9, 0.10);
	--aux-warning-bg-strong: rgba(180, 83, 9, 0.18);
	--aux-danger: #C2261E;
	--aux-danger-bg: rgba(194, 38, 30, 0.10);
	--aux-danger-bg-strong: rgba(194, 38, 30, 0.18);
	--aux-info: #2563EB;
	--aux-info-bg: rgba(37, 99, 235, 0.10);
	--aux-info-bg-strong: rgba(37, 99, 235, 0.18);

	/* Avatar palette (deterministic per user) */
	--aux-avatar-1: #3B6BF5;
	--aux-avatar-2: #0E8A5F;
	--aux-avatar-3: #7B3FF2;
	--aux-avatar-4: #B45309;
	--aux-avatar-5: #0891B2;
	--aux-avatar-6: #C2261E;
	--aux-avatar-7: #C9A961;
	--aux-avatar-8: #EC4899;

	/* Typography */
	--aux-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--aux-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	/* Font sizes */
	--aux-fs-xs: 0.6875rem;    /* 11px */
	--aux-fs-sm: 0.75rem;      /* 12px */
	--aux-fs-base: 0.8125rem;  /* 13px */
	--aux-fs-md: 0.875rem;     /* 14px */
	--aux-fs-lg: 1rem;         /* 16px */
	--aux-fs-xl: 1.125rem;     /* 18px */
	--aux-fs-2xl: 1.375rem;    /* 22px */
	--aux-fs-3xl: 1.75rem;     /* 28px */
	--aux-fs-4xl: 2.25rem;     /* 36px */

	/* Font weights */
	--aux-fw-regular: 400;
	--aux-fw-medium: 500;
	--aux-fw-semibold: 600;
	--aux-fw-bold: 700;

	/* Line heights */
	--aux-lh-tight: 1.15;
	--aux-lh-snug: 1.35;
	--aux-lh-normal: 1.5;
	--aux-lh-relaxed: 1.65;

	/* Spacing — 4px scale */
	--aux-sp-0: 0;
	--aux-sp-1: 4px;
	--aux-sp-2: 8px;
	--aux-sp-3: 12px;
	--aux-sp-4: 16px;
	--aux-sp-5: 20px;
	--aux-sp-6: 24px;
	--aux-sp-8: 32px;
	--aux-sp-10: 40px;
	--aux-sp-12: 48px;
	--aux-sp-16: 64px;

	/* Radii */
	--aux-radius-sm: 4px;
	--aux-radius: 6px;
	--aux-radius-md: 8px;
	--aux-radius-lg: 10px;
	--aux-radius-xl: 14px;
	--aux-radius-pill: 999px;

	/* Shadows */
	--aux-shadow-xs: 0 1px 2px rgba(11, 16, 32, 0.04);
	--aux-shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06), 0 1px 3px rgba(11, 16, 32, 0.06);
	--aux-shadow: 0 1px 3px rgba(11, 16, 32, 0.06), 0 4px 10px rgba(11, 16, 32, 0.06);
	--aux-shadow-md: 0 4px 8px rgba(11, 16, 32, 0.08), 0 8px 24px rgba(11, 16, 32, 0.08);
	--aux-shadow-lg: 0 8px 16px rgba(11, 16, 32, 0.1), 0 16px 40px rgba(11, 16, 32, 0.12);

	/* Transitions */
	--aux-t-fast: 120ms ease;
	--aux-t: 200ms ease;
	--aux-t-slow: 300ms ease;

	/* Z-index */
	--aux-z-content: 1;
	--aux-z-sidebar: 40;
	--aux-z-topbar: 50;
	--aux-z-dropdown: 60;
	--aux-z-backdrop: 80;
	--aux-z-modal: 90;
	--aux-z-toast: 100;

	/* Shell dimensions */
	--aux-sidebar-w: 248px;
	--aux-topbar-h: 56px;
	--aux-page-max: 1360px;
	/* Inner content measures — caps for readable blocks inside .aux-page so the
	   content column does not jump width between pages. Narrow = forms/notices on
	   form-centric pages; wide = data tables / detail views. */
	--aux-measure: 760px;
	--aux-measure-wide: 1000px;
}

/* ==========================================================================
   2. Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body {
	margin: 0;
	font-family: var(--aux-font-sans);
	font-size: var(--aux-fs-md);
	line-height: var(--aux-lh-normal);
	color: var(--aux-text);
	background: var(--aux-bg);
	min-height: 100vh;
}

a {
	color: var(--aux-brand-accent);
	text-decoration: none;
	transition: color var(--aux-t-fast);
}
a:hover, a:focus { color: var(--aux-brand-accent-hover); }

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

input, select, textarea {
	font: inherit;
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: var(--aux-fw-semibold);
	line-height: var(--aux-lh-tight);
	color: var(--aux-text);
	letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
	outline: 2px solid var(--aux-brand-accent);
	outline-offset: 2px;
	border-radius: var(--aux-radius);
}

/* Remove default details/summary arrow */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* Skip link */
.aux-skip {
	position: absolute;
	top: -40px;
	left: var(--aux-sp-2);
	background: var(--aux-brand-accent);
	color: #fff;
	padding: var(--aux-sp-2) var(--aux-sp-4);
	border-radius: var(--aux-radius);
	z-index: var(--aux-z-toast);
	font-weight: var(--aux-fw-medium);
}
.aux-skip:focus { top: var(--aux-sp-2); color: #fff; }

/* ==========================================================================
   3. Shell layout
   ========================================================================== */
/* App shell: a two-column grid. Column 1 is the sticky sidebar; column 2 is
   .aux-shell__main, a vertical flex column holding the sticky topbar above the
   scrolling page content. (The markup wraps topbar + main in .aux-shell__main,
   so the shell is a single implicit row — NOT the old two-row grid.) */
.aux-shell {
	display: grid;
	grid-template-columns: var(--aux-sidebar-w) 1fr;
	min-height: 100vh;
}

.aux-side {
	grid-column: 1;
	background: var(--aux-side-bg);
	color: var(--aux-side-text);
	border-right: 1px solid var(--aux-side-border);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	z-index: var(--aux-z-sidebar);
	overflow: hidden;
}

.aux-shell__main {
	grid-column: 2;
	min-width: 0;            /* allow wide tables to scroll instead of blowing out the grid */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--aux-bg);
}

.aux-main {
	flex: 1 1 auto;
	width: 100%;
	max-width: var(--aux-page-max);
	padding: var(--aux-sp-6) var(--aux-sp-8);
}

/* ==========================================================================
   4. Sidebar — workspace switcher, nav, user card
   ========================================================================== */
.aux-side__ws {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-2);
	padding: var(--aux-sp-3) var(--aux-sp-4);
	height: var(--aux-topbar-h);
	border-bottom: 1px solid var(--aux-side-border);
	color: #fff;
	text-decoration: none;
	flex-shrink: 0;
	transition: background var(--aux-t-fast);
}
.aux-side__ws:hover { background: var(--aux-side-item-hover); color: #fff; }

.aux-side__ws-mark {
	width: 32px;
	height: 32px;
	border-radius: var(--aux-radius);
	background: linear-gradient(135deg, var(--aux-brand-accent) 0%, #5B84F7 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.aux-side__ws-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}
.aux-side__ws-name {
	font-size: var(--aux-fs-md);
	font-weight: var(--aux-fw-semibold);
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.aux-side__ws-sub {
	font-size: var(--aux-fs-xs);
	color: var(--aux-side-group-label);
}

.aux-side__ws-arrow {
	margin-left: auto;
	opacity: 0.5;
	flex-shrink: 0;
}

.aux-side__nav {
	flex: 1;
	padding: var(--aux-sp-4) 0;
	overflow-y: auto;
	scrollbar-width: thin;
}
.aux-side__nav::-webkit-scrollbar { width: 6px; }
.aux-side__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.aux-side__group { margin-bottom: var(--aux-sp-5); }
.aux-side__group:last-child { margin-bottom: 0; }

.aux-side__group-label {
	padding: 0 var(--aux-sp-5);
	margin-bottom: var(--aux-sp-1);
	font-size: var(--aux-fs-xs);
	font-weight: var(--aux-fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--aux-side-group-label);
}

.aux-side__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aux-side__link {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-3);
	padding: 7px var(--aux-sp-5);
	color: var(--aux-side-text);
	text-decoration: none;
	font-size: var(--aux-fs-md);
	font-weight: var(--aux-fw-medium);
	border-left: 2px solid transparent;
	transition: background var(--aux-t-fast), color var(--aux-t-fast);
	position: relative;
}
.aux-side__link:hover {
	background: var(--aux-side-item-hover);
	color: var(--aux-side-text-hover);
}
.aux-side__link--active {
	background: var(--aux-side-item-active);
	color: var(--aux-side-text-hover);
	border-left-color: var(--aux-brand-accent);
	font-weight: var(--aux-fw-semibold);
}
.aux-side__link-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: 0.8;
}
.aux-side__link-icon svg,
.aux-side__signout svg {
	width: 18px;
	height: 18px;
	display: block;
	stroke: currentColor;
}
.aux-side__link--active .aux-side__link-icon {
	opacity: 1;
	color: var(--aux-brand-accent);
}
.aux-side__link-badge {
	margin-left: auto;
	background: var(--aux-brand-accent);
	color: #fff;
	font-size: var(--aux-fs-xs);
	font-weight: var(--aux-fw-semibold);
	padding: 1px 7px;
	border-radius: var(--aux-radius-pill);
	min-width: 20px;
	text-align: center;
}

/* Sidebar footer with user card */
.aux-side__foot {
	border-top: 1px solid var(--aux-side-border);
	padding: var(--aux-sp-2);
	flex-shrink: 0;
}
.aux-side__user {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-3);
	padding: var(--aux-sp-2);
	border-radius: var(--aux-radius);
	text-decoration: none;
	transition: background var(--aux-t-fast);
}
.aux-side__user:hover { background: var(--aux-side-item-hover); }
.aux-side__user-info {
	min-width: 0;
	flex: 1;
	line-height: 1.2;
}
.aux-side__user-name {
	color: #fff;
	font-size: var(--aux-fs-md);
	font-weight: var(--aux-fw-medium);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.aux-side__user-role {
	color: var(--aux-side-group-label);
	font-size: var(--aux-fs-xs);
}

/* ==========================================================================
   5. Topbar
   ========================================================================== */
/* Topbar container — sticky chrome at the top of the content column.
   (Replaces the legacy .aux-top selector; markup now emits .aux-topbar.) */
.aux-topbar {
	flex-shrink: 0;
	height: var(--aux-topbar-h);
	display: flex;
	align-items: center;
	gap: var(--aux-sp-3);
	padding: 0 var(--aux-sp-6);
	background: var(--aux-surface);
	border-bottom: 1px solid var(--aux-border);
	position: sticky;
	top: 0;
	z-index: var(--aux-z-topbar);
}

/* Mobile drawer trigger — hidden on desktop, revealed in the responsive block. */
.aux-topbar__menu {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-left: calc(var(--aux-sp-2) * -1);
	border: 0;
	background: transparent;
	border-radius: var(--aux-radius);
	color: var(--aux-text-muted);
	cursor: pointer;
	transition: background var(--aux-t-fast), color var(--aux-t-fast);
}
.aux-topbar__menu:hover { background: var(--aux-bg-soft); color: var(--aux-text); }

/* Breadcrumb — horizontal trail. The <ol> must reset list styling or the
   browser renders ordered-list numerals ("1. 2."). */
.aux-breadcrumb {
	min-width: 0;
	flex: 1 1 auto;
}
.aux-breadcrumb__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: var(--aux-sp-2);
	min-width: 0;
}
.aux-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: var(--aux-sp-2);
	min-width: 0;
	font-size: var(--aux-fs-md);
}
.aux-breadcrumb__link {
	color: var(--aux-text-muted);
	font-weight: var(--aux-fw-medium);
	text-decoration: none;
	white-space: nowrap;
	border-radius: var(--aux-radius-sm);
	transition: color var(--aux-t-fast);
}
.aux-breadcrumb__link:hover { color: var(--aux-text); text-decoration: underline; text-underline-offset: 2px; }
.aux-breadcrumb__sep {
	color: var(--aux-text-subtle);
	opacity: 0.6;
	user-select: none;
	font-size: var(--aux-fs-base);
}
.aux-breadcrumb__current {
	color: var(--aux-text);
	font-weight: var(--aux-fw-semibold);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/* Right-aligned action cluster. */
.aux-topbar__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: var(--aux-sp-2);
	flex-shrink: 0;
}

.aux-topbar__iconbtn {
	position: relative;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: var(--aux-radius);
	color: var(--aux-text-muted);
	cursor: pointer;
	transition: background var(--aux-t-fast), color var(--aux-t-fast);
}
.aux-topbar__iconbtn:hover { background: var(--aux-bg-soft); color: var(--aux-text); }
.aux-topbar__iconbtn:disabled { opacity: 0.45; cursor: not-allowed; }
.aux-topbar__iconbtn:disabled:hover { background: transparent; color: var(--aux-text-muted); }

.aux-topbar__iconbtn-dot {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 8px;
	height: 8px;
	background: var(--aux-danger);
	border: 2px solid var(--aux-surface);
	border-radius: 50%;
}

.aux-topbar__user { display: inline-flex; align-items: center; }
.aux-topbar__user-link {
	display: inline-flex;
	align-items: center;
	border-radius: var(--aux-radius-pill);
	text-decoration: none;
	transition: box-shadow var(--aux-t-fast);
}
.aux-topbar__user-link:hover { box-shadow: 0 0 0 3px var(--aux-brand-accent-soft); }

/* v14 §3.31 — Notification dropdown */
.aux-notif-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 380px;
	max-height: 520px;
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius-md);
	box-shadow: 0 12px 32px rgba(0,0,0,0.12);
	overflow: hidden;
	z-index: 80;
	display: flex;
	flex-direction: column;
}
.aux-notif-dropdown__head {
	padding: var(--aux-sp-3) var(--aux-sp-4);
	border-bottom: 1px solid var(--aux-border-subtle);
	background: var(--aux-bg-soft);
}
.aux-notif-dropdown__body {
	overflow-y: auto;
	flex: 1;
	max-height: 400px;
}
.aux-notif-dropdown__foot {
	padding: var(--aux-sp-3) var(--aux-sp-4);
	border-top: 1px solid var(--aux-border-subtle);
	background: var(--aux-bg-soft);
	text-align: center;
}
.aux-notif-item:hover { background: var(--aux-bg-soft); }
.aux-notif-item:last-child { border-bottom: 0 !important; }

/* (Legacy .aux-top__drawer-btn removed — mobile trigger is now .aux-topbar__menu.) */

/* ==========================================================================
   6. Page header
   ========================================================================== */
/* Canonical page header wrapper. Markup stacks .aux-page__title + .aux-page__sub
   directly inside .aux-page__head, so this is a block with a bottom margin that
   establishes consistent vertical rhythm between the heading and page content. */
.aux-page__head {
	margin-bottom: var(--aux-sp-6);
}
.aux-page__head > .aux-page__sub { margin-top: var(--aux-sp-1); }

/* Reusable uppercase section label (groups of cards, sub-sections). Centralizes
   the eyebrow styling that several templates previously inlined verbatim. */
.aux-section-label {
	font-size: var(--aux-fs-xs);
	font-weight: var(--aux-fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--aux-text-muted);
	margin-bottom: var(--aux-sp-3);
}

.aux-page__header {
	margin-bottom: var(--aux-sp-6);
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--aux-sp-4);
	flex-wrap: wrap;
}

.aux-page__heading {
	flex: 1;
	min-width: 0;
}

.aux-page__title {
	font-size: var(--aux-fs-3xl);
	font-weight: var(--aux-fw-semibold);
	color: var(--aux-text);
	line-height: var(--aux-lh-tight);
	margin: 0 0 var(--aux-sp-1);
	letter-spacing: -0.02em;
}

.aux-page__sub {
	font-size: var(--aux-fs-md);
	color: var(--aux-text-muted);
	line-height: var(--aux-lh-normal);
	max-width: 75ch;
}

.aux-page__actions {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-2);
	flex-shrink: 0;
	flex-wrap: wrap;
}

/* ==========================================================================
   7. Cards
   ========================================================================== */
.aux-card {
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius-lg);
	box-shadow: var(--aux-shadow-xs);
}

.aux-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--aux-sp-3);
	padding: var(--aux-sp-4) var(--aux-sp-5);
	border-bottom: 1px solid var(--aux-border);
}

.aux-card__title {
	font-size: var(--aux-fs-lg);
	font-weight: var(--aux-fw-semibold);
	margin: 0;
	line-height: var(--aux-lh-tight);
}
.aux-card__sub {
	font-size: var(--aux-fs-sm);
	color: var(--aux-text-muted);
	margin: 2px 0 0;
}

.aux-card__body {
	padding: var(--aux-sp-5);
}

.aux-card__body--flush { padding: 0; }
.aux-card__body--compact { padding: var(--aux-sp-3) var(--aux-sp-4); }

.aux-card__foot {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-2);
	padding: var(--aux-sp-3) var(--aux-sp-5);
	border-top: 1px solid var(--aux-border);
	background: var(--aux-bg);
	border-radius: 0 0 var(--aux-radius-lg) var(--aux-radius-lg);
}

/* ==========================================================================
   8. Buttons
   ========================================================================== */
.aux-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--aux-sp-2);
	padding: 6px var(--aux-sp-3);
	background: var(--aux-brand-accent);
	color: #fff;
	border: 1px solid var(--aux-brand-accent);
	border-radius: var(--aux-radius-md);
	font-size: var(--aux-fs-md);
	font-weight: var(--aux-fw-medium);
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--aux-t-fast);
	white-space: nowrap;
}
.aux-btn:hover, .aux-btn:focus {
	background: var(--aux-brand-accent-hover);
	border-color: var(--aux-brand-accent-hover);
	color: #fff;
	text-decoration: none;
	box-shadow: var(--aux-shadow-sm);
}
.aux-btn:disabled, .aux-btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

/* Primary action. Defined explicitly (it had been relying on the base .aux-btn
   fill, which meant 56 --primary buttons would silently break if the base were
   ever made neutral). Encoding the primary intent here makes the base safe to
   evolve. */
.aux-btn--primary {
	background: var(--aux-brand-accent);
	color: #fff;
	border-color: var(--aux-brand-accent);
}
.aux-btn--primary:hover, .aux-btn--primary:focus {
	background: var(--aux-brand-accent-hover);
	border-color: var(--aux-brand-accent-hover);
	color: #fff;
}

.aux-btn--ghost {
	background: var(--aux-surface);
	color: var(--aux-text);
	border-color: var(--aux-border-strong);
}
.aux-btn--ghost:hover, .aux-btn--ghost:focus {
	background: var(--aux-bg);
	border-color: var(--aux-text-muted);
	color: var(--aux-text);
	box-shadow: var(--aux-shadow-xs);
}

.aux-btn--subtle {
	background: transparent;
	color: var(--aux-text-muted);
	border-color: transparent;
}
.aux-btn--subtle:hover {
	background: var(--aux-bg);
	color: var(--aux-text);
	border-color: transparent;
	box-shadow: none;
}

.aux-btn--success {
	background: var(--aux-success);
	border-color: var(--aux-success);
}
.aux-btn--success:hover { background: #0A6F4C; border-color: #0A6F4C; }

.aux-btn--danger {
	background: var(--aux-surface);
	color: var(--aux-danger);
	border-color: var(--aux-border-strong);
}
.aux-btn--danger:hover {
	background: var(--aux-danger);
	color: #fff;
	border-color: var(--aux-danger);
}

.aux-btn--sm {
	padding: 3px 10px;
	font-size: var(--aux-fs-sm);
}
.aux-btn--lg {
	padding: 9px var(--aux-sp-4);
	font-size: var(--aux-fs-md);
}

.aux-btn-group {
	display: inline-flex;
}
.aux-btn-group .aux-btn {
	border-radius: 0;
}
.aux-btn-group .aux-btn:first-child {
	border-radius: var(--aux-radius-md) 0 0 var(--aux-radius-md);
}
.aux-btn-group .aux-btn:last-child {
	border-radius: 0 var(--aux-radius-md) var(--aux-radius-md) 0;
}
.aux-btn-group .aux-btn + .aux-btn {
	margin-left: -1px;
}

/* ==========================================================================
   9. Forms
   ========================================================================== */
.aux-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: var(--aux-sp-4);
}
.aux-field:last-child { margin-bottom: 0; }
/* A button or button-group placed directly after a field (the common
   "select + Update" pattern on detail pages) needs breathing room from the
   control above it. Forms that don't wrap actions in .aux-form-actions still
   get consistent separation. */
.aux-card__body > form > .aux-btn,
.aux-card__body > form > .aux-btn-group,
.aux-card__body > .aux-btn,
.aux-card__body > form > button[type="submit"] {
	margin-top: var(--aux-sp-4);
}
/* Pages lay out side-by-side field rows as
   <div class="aux-field" style="display:flex;gap:16px"> with child <div>s.
   Because .aux-field forces flex-direction:column, those inline display:flex
   rows would otherwise still stack their children vertically. When an
   aux-field opts into a horizontal flex row inline, force row direction and
   allow wrapping so the children actually sit beside each other (and the
   labels inside each child keep their normal column stack). */
.aux-field[style*="display:flex"],
.aux-field[style*="display: flex"] {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
}
.aux-field[style*="display:flex"] > div,
.aux-field[style*="display: flex"] > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.aux-field__label {
	font-size: var(--aux-fs-sm);
	font-weight: var(--aux-fw-medium);
	color: var(--aux-text);
}
.aux-field__label--required::after {
	content: "*";
	color: var(--aux-danger);
	margin-left: 2px;
}
.aux-field__hint {
	font-size: var(--aux-fs-xs);
	color: var(--aux-text-subtle);
}
.aux-field__error {
	font-size: var(--aux-fs-xs);
	color: var(--aux-danger);
}

.aux-input, .aux-select, .aux-textarea {
	padding: 7px var(--aux-sp-3);
	border: 1px solid var(--aux-border-strong);
	border-radius: var(--aux-radius-md);
	background: var(--aux-surface);
	color: var(--aux-text);
	font-size: var(--aux-fs-md);
	line-height: var(--aux-lh-normal);
	transition: all var(--aux-t-fast);
	width: 100%;
}
.aux-input:focus, .aux-select:focus, .aux-textarea:focus {
	outline: none;
	border-color: var(--aux-brand-accent);
	box-shadow: 0 0 0 3px var(--aux-brand-accent-soft);
}
.aux-input::placeholder, .aux-textarea::placeholder {
	color: var(--aux-text-subtle);
}
.aux-textarea {
	min-height: 80px;
	resize: vertical;
	line-height: var(--aux-lh-relaxed);
}
.aux-select {
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%238892A6' d='M0 0l5 6 5-6z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 32px;
}

.aux-field-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: var(--aux-sp-4);
	align-items: start;
	padding: var(--aux-sp-4) 0;
	border-bottom: 1px solid var(--aux-border-subtle);
}
.aux-field-row:last-child { border-bottom: 0; }
.aux-field-row__label {
	font-size: var(--aux-fs-md);
	font-weight: var(--aux-fw-medium);
	color: var(--aux-text);
	padding-top: 6px;
}
.aux-field-row__hint {
	font-size: var(--aux-fs-sm);
	color: var(--aux-text-muted);
	margin-top: 2px;
}
.aux-field-row__value { min-width: 0; }
.aux-field-row__read {
	padding: 7px 0;
	color: var(--aux-text);
	font-size: var(--aux-fs-md);
}

/* --------------------------------------------------------------------------
   Field grid — lays out groups of .aux-field side by side instead of one
   stacked column, to reduce vertical scrolling on form/detail pages. Columns
   auto-fit to the available width and collapse to a single column on narrow
   screens. Use .aux-field-grid around a set of .aux-field blocks. The fixed
   --2 / --3 variants force a column count where a specific layout is wanted.
   A .aux-field can opt out and span the full row with .aux-field--full.
   -------------------------------------------------------------------------- */
.aux-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--aux-sp-4) var(--aux-sp-5);
	align-items: start;
}
.aux-field-grid--2 { grid-template-columns: repeat(2, 1fr); }
.aux-field-grid--3 { grid-template-columns: repeat(3, 1fr); }
.aux-field-grid .aux-field--full { grid-column: 1 / -1; }
@media (max-width: 900px) {
	.aux-field-grid,
	.aux-field-grid--2,
	.aux-field-grid--3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Card grid — places related cards beside each other rather than stacked,
   so a detail page reads across as well as down. Collapses to one column on
   narrow screens. .aux-card-grid--2 forces two equal columns.
   -------------------------------------------------------------------------- */
.aux-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: var(--aux-sp-5);
	align-items: start;
}
.aux-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.aux-card-grid .aux-card--full { grid-column: 1 / -1; }
@media (max-width: 1000px) {
	.aux-card-grid,
	.aux-card-grid--2 { grid-template-columns: 1fr; }
}
/* Equal-height variant: action cards in a row should match heights so the row
   reads as a balanced band instead of ragged-bottom cards. */
.aux-card-grid--even { align-items: stretch; }
.aux-card-grid--even > .aux-card { display: flex; flex-direction: column; }
.aux-card-grid--even > .aux-card > .aux-card__body { flex: 1; }

/* ==========================================================================
   9B. Entity header — a polished page-top band for a single record
   (avatar + name + meta chips). Adds colour and identity at a glance.
   ========================================================================== */
.aux-entity-header {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-4);
	padding: var(--aux-sp-5) var(--aux-sp-6);
	margin-bottom: var(--aux-sp-6);
	background: linear-gradient(120deg, var(--aux-brand-accent-surface), var(--aux-surface) 70%);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius-lg);
	box-shadow: var(--aux-shadow-xs);
}
.aux-entity-header__avatar {
	width: 56px; height: 56px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: var(--aux-fs-xl); font-weight: var(--aux-fw-bold);
	color: #fff; flex-shrink: 0;
	box-shadow: var(--aux-shadow-sm);
}
.aux-entity-header__body { min-width: 0; flex: 1; }
.aux-entity-header__name {
	font-size: var(--aux-fs-2xl); font-weight: var(--aux-fw-bold);
	color: var(--aux-text); margin: 0 0 4px; line-height: 1.2;
}
.aux-entity-header__meta {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: var(--aux-sp-2); font-size: var(--aux-fs-md); color: var(--aux-text-muted);
}
.aux-entity-header__sep { color: var(--aux-border-strong); }

/* ==========================================================================
   9C. Status chip — semantic, coloured state badge used everywhere a
   status/state is shown (active, suspended, inactive, pending…).
   ========================================================================== */
.aux-status {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px var(--aux-sp-2) 2px var(--aux-sp-2);
	font-size: var(--aux-fs-xs); font-weight: var(--aux-fw-semibold);
	border-radius: var(--aux-radius-pill);
	border: 1px solid transparent; line-height: 1.6;
	text-transform: capitalize; white-space: nowrap;
	background: var(--aux-bg-soft); color: var(--aux-text-muted);
}
.aux-status::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%;
	background: currentColor; flex-shrink: 0;
}
.aux-status--active,
.aux-status--approved,
.aux-status--paid,
.aux-status--complete,
.aux-status--ok { background: var(--aux-success-bg); color: var(--aux-success); border-color: var(--aux-success-bg-strong); }
.aux-status--pending,
.aux-status--submitted,
.aux-status--in_progress,
.aux-status--sent,
.aux-status--draft { background: var(--aux-warning-bg); color: var(--aux-warning); border-color: var(--aux-warning-bg-strong); }
.aux-status--suspended,
.aux-status--rejected,
.aux-status--overdue,
.aux-status--failed,
.aux-status--disputed,
.aux-status--void { background: var(--aux-danger-bg); color: var(--aux-danger); border-color: var(--aux-danger-bg-strong); }
.aux-status--inactive,
.aux-status--archived,
.aux-status--writeoff,
.aux-status--withdrawn { background: var(--aux-bg-soft); color: var(--aux-text-subtle); border-color: var(--aux-border); }

/* ==========================================================================
   9D. Detail list — clean label/value read-only display (replaces the
   fake-disabled-input look for reference data).
   ========================================================================== */
.aux-detail-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--aux-sp-4) var(--aux-sp-5);
}
.aux-detail-list--stack { grid-template-columns: 1fr; gap: 0; }
.aux-detail {
	display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.aux-detail-list--stack .aux-detail {
	flex-direction: row; align-items: baseline; gap: var(--aux-sp-4);
	padding: var(--aux-sp-3) 0; border-bottom: 1px solid var(--aux-border-subtle);
}
.aux-detail-list--stack .aux-detail:last-child { border-bottom: 0; }
.aux-detail__label {
	font-size: var(--aux-fs-xs); font-weight: var(--aux-fw-semibold);
	color: var(--aux-text-subtle); text-transform: uppercase; letter-spacing: 0.04em;
}
.aux-detail-list--stack .aux-detail__label { min-width: 140px; text-transform: none; letter-spacing: 0; font-size: var(--aux-fs-sm); color: var(--aux-text-muted); }
.aux-detail__value {
	font-size: var(--aux-fs-md); font-weight: var(--aux-fw-medium); color: var(--aux-text);
	word-break: break-word;
}

/* ==========================================================================
   9E. Card accents — a subtle coloured top edge to add visual rhythm and
   help users scan between card purposes. Opt-in via modifier.
   ========================================================================== */
.aux-card--accent { border-top: 3px solid var(--aux-brand-accent); }
.aux-card--accent-success { border-top: 3px solid var(--aux-success); }
.aux-card--accent-warning { border-top: 3px solid var(--aux-warning); }
.aux-card--accent-info { border-top: 3px solid var(--aux-info); }
.aux-card--accent-gold { border-top: 3px solid var(--aux-brand-gold); }
.aux-card__head--icon { display: flex; align-items: center; gap: var(--aux-sp-3); justify-content: flex-start; }
.aux-card__head-ic {
	width: 28px; height: 28px; border-radius: var(--aux-radius-md);
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--aux-brand-accent-soft); color: var(--aux-brand-accent);
	flex-shrink: 0;
}

/* ==========================================================================
   9F. Section tones — colour a card header's icon chip + a faint header wash
   + a top accent line, keyed by the card's purpose. Applied to the
   .aux-card__head--icon element (always present on a section header), so it
   works regardless of how the parent card div is marked up. One tone class
   drives icon colour, header tint, and the accent edge together — colour stays
   consistent and meaningful (people = indigo, money = green, docs = blue,
   time = amber, status = teal, reports = purple, config = slate, danger = red,
   gold = gold). Subtle by design.
   ========================================================================== */
.aux-card__head--icon[class*="aux-tone-"] {
	border-top: 3px solid var(--aux-tone, var(--aux-brand-accent));
	background: var(--aux-tone-wash, transparent);
	margin-top: -1px; /* sit the accent flush with the card's top edge */
}
.aux-card__head--icon[class*="aux-tone-"] .aux-card__head-ic {
	background: var(--aux-tone-soft, var(--aux-brand-accent-soft));
	color: var(--aux-tone, var(--aux-brand-accent));
}
.aux-tone-people  { --aux-tone:#4F46E5; --aux-tone-soft:rgba(79,70,229,0.12);  --aux-tone-wash:rgba(79,70,229,0.05); }
.aux-tone-money   { --aux-tone:#0E8A5F; --aux-tone-soft:rgba(14,138,95,0.12);  --aux-tone-wash:rgba(14,138,95,0.05); }
.aux-tone-docs    { --aux-tone:#2563EB; --aux-tone-soft:rgba(37,99,235,0.12);  --aux-tone-wash:rgba(37,99,235,0.05); }
.aux-tone-time    { --aux-tone:#B45309; --aux-tone-soft:rgba(180,83,9,0.12);   --aux-tone-wash:rgba(180,83,9,0.05); }
.aux-tone-status  { --aux-tone:#0891B2; --aux-tone-soft:rgba(8,145,178,0.12);  --aux-tone-wash:rgba(8,145,178,0.05); }
.aux-tone-reports { --aux-tone:#7B3FF2; --aux-tone-soft:rgba(123,63,242,0.12); --aux-tone-wash:rgba(123,63,242,0.05); }
.aux-tone-config  { --aux-tone:#5B6CB5; --aux-tone-soft:rgba(91,108,181,0.13); --aux-tone-wash:rgba(91,108,181,0.06); }
.aux-tone-gold    { --aux-tone:#9A7B2E; --aux-tone-soft:rgba(201,169,97,0.16); --aux-tone-wash:rgba(201,169,97,0.07); }
.aux-tone-danger  { --aux-tone:#C2261E; --aux-tone-soft:rgba(194,38,30,0.12);  --aux-tone-wash:rgba(194,38,30,0.05); }

/* ==========================================================================
   10. Tables
   ========================================================================== */
.aux-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: var(--aux-fs-md);
}

.aux-table th {
	padding: 10px var(--aux-sp-4);
	text-align: left;
	font-size: var(--aux-fs-xs);
	font-weight: var(--aux-fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--aux-text-subtle);
	background: var(--aux-bg);
	border-bottom: 1px solid var(--aux-border);
	white-space: nowrap;
}
.aux-table th:first-child { padding-left: var(--aux-sp-5); }
.aux-table th:last-child { padding-right: var(--aux-sp-5); }

.aux-table td {
	padding: 11px var(--aux-sp-4);
	color: var(--aux-text);
	border-bottom: 1px solid var(--aux-border);
	vertical-align: middle;
}
.aux-table td:first-child { padding-left: var(--aux-sp-5); }
.aux-table td:last-child { padding-right: var(--aux-sp-5); }
.aux-table tbody tr:last-child td { border-bottom: 0; }
.aux-table tbody tr { transition: background var(--aux-t-fast); }
.aux-table tbody tr:hover { background: var(--aux-bg); }
.aux-table tbody tr.is-selected { background: var(--aux-brand-accent-surface); }
/* Attention row tints — a faint left bar + tint for rows in an exception state
   (overdue, rejected, suspended, failed). Subtle: draws the eye without
   shouting. Apply the modifier on the <tr>. */
.aux-table tbody tr.aux-row--danger { background: var(--aux-danger-bg); box-shadow: inset 3px 0 0 var(--aux-danger); }
.aux-table tbody tr.aux-row--danger:hover { background: var(--aux-danger-bg-strong); }
.aux-table tbody tr.aux-row--warning { background: var(--aux-warning-bg); box-shadow: inset 3px 0 0 var(--aux-warning); }
.aux-table tbody tr.aux-row--warning:hover { background: var(--aux-warning-bg-strong); }

.aux-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.aux-table .cell-primary {
	font-weight: var(--aux-fw-semibold);
	color: var(--aux-text);
}
.aux-table .cell-muted {
	color: var(--aux-text-muted);
	font-size: var(--aux-fs-sm);
}
.aux-table__empty {
	padding: var(--aux-sp-10) var(--aux-sp-4);
	text-align: center;
	color: var(--aux-text-subtle);
	font-size: var(--aux-fs-md);
}

/* ==========================================================================
   11. Chips / pills / badges
   ========================================================================== */
.aux-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px var(--aux-sp-2);
	font-size: var(--aux-fs-xs);
	font-weight: var(--aux-fw-semibold);
	border-radius: var(--aux-radius-pill);
	border: 1px solid transparent;
	background: var(--aux-bg-soft);
	color: var(--aux-text-muted);
	line-height: 1.55;
	white-space: nowrap;
}
.aux-chip::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}
.aux-chip--success { background: var(--aux-success-bg); color: var(--aux-success); }
.aux-chip--warning { background: var(--aux-warning-bg); color: var(--aux-warning); }
.aux-chip--danger { background: var(--aux-danger-bg); color: var(--aux-danger); }
.aux-chip--info { background: var(--aux-info-bg); color: var(--aux-info); }
.aux-chip--muted { background: var(--aux-bg-soft); color: var(--aux-text-muted); }

.aux-chip--solid { padding-left: var(--aux-sp-2); }
.aux-chip--solid::before { display: none; }

.aux-chip--tag {
	background: var(--aux-bg-soft);
	color: var(--aux-text-muted);
	border-color: var(--aux-border);
}
.aux-chip--tag::before { display: none; }

/* ==========================================================================
   12. Avatars
   ========================================================================== */
.aux-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--aux-avatar-1);
	color: #fff;
	font-size: var(--aux-fs-sm);
	font-weight: var(--aux-fw-semibold);
	flex-shrink: 0;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}
.aux-avatar--sm { width: 24px; height: 24px; font-size: var(--aux-fs-xs); }
.aux-avatar--md { width: 36px; height: 36px; font-size: var(--aux-fs-md); }
.aux-avatar--lg { width: 48px; height: 48px; font-size: var(--aux-fs-lg); }
.aux-avatar--xl { width: 64px; height: 64px; font-size: var(--aux-fs-xl); }

.aux-avatar--color-1 { background: var(--aux-avatar-1); }
.aux-avatar--color-2 { background: var(--aux-avatar-2); }
.aux-avatar--color-3 { background: var(--aux-avatar-3); }
.aux-avatar--color-4 { background: var(--aux-avatar-4); }
.aux-avatar--color-5 { background: var(--aux-avatar-5); }
.aux-avatar--color-6 { background: var(--aux-avatar-6); }
.aux-avatar--color-7 { background: var(--aux-avatar-7); }
.aux-avatar--color-8 { background: var(--aux-avatar-8); }

.aux-user-cell {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-3);
	min-width: 0;
}
.aux-user-cell__info {
	min-width: 0;
	line-height: 1.3;
}
.aux-user-cell__name {
	font-weight: var(--aux-fw-semibold);
	color: var(--aux-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.aux-user-cell__sub {
	font-size: var(--aux-fs-sm);
	color: var(--aux-text-subtle);
}

/* ==========================================================================
   12b. Profile page — identity hero + two-column working layout
   ========================================================================== */
/* Hero band: a bordered surface that anchors the page with the person's
   avatar, name, role/population chips and key contact meta. Replaces the
   plain stacked title so the top of the page reads as an account header. */
.aux-profile-hero {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-5);
	padding: var(--aux-sp-5) var(--aux-sp-6);
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius-lg);
	box-shadow: var(--aux-shadow-xs);
	margin-bottom: var(--aux-sp-5);
	position: relative;
	overflow: hidden;
}
/* Subtle brand wash on the leading edge for an enterprise feel. */
.aux-profile-hero::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: linear-gradient(180deg, var(--aux-brand-accent), var(--aux-brand-ink));
}
.aux-profile-hero__avatar {
	width: 76px;
	height: 76px;
	font-size: 26px;
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--aux-surface), 0 0 0 5px var(--aux-border);
}
.aux-profile-hero__main { min-width: 0; flex: 1 1 auto; }
.aux-profile-hero__name {
	font-size: var(--aux-fs-2xl);
	font-weight: var(--aux-fw-semibold);
	color: var(--aux-text);
	line-height: var(--aux-lh-tight);
	letter-spacing: -0.01em;
	margin: 0;
}
.aux-profile-hero__role {
	font-size: var(--aux-fs-md);
	color: var(--aux-text-muted);
	margin-top: 2px;
}
.aux-profile-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--aux-sp-2);
	margin-top: var(--aux-sp-3);
}
.aux-profile-hero__meta {
	display: flex;
	flex-direction: column;
	gap: var(--aux-sp-2);
	flex-shrink: 0;
	padding-left: var(--aux-sp-5);
	border-left: 1px solid var(--aux-border-subtle);
	max-width: 320px;
}
.aux-profile-hero__meta-row {
	display: flex;
	align-items: baseline;
	gap: var(--aux-sp-3);
	font-size: var(--aux-fs-sm);
	min-width: 0;
}
.aux-profile-hero__meta-k {
	color: var(--aux-text-subtle);
	flex-shrink: 0;
	width: 64px;
	font-weight: var(--aux-fw-medium);
}
.aux-profile-hero__meta-v {
	color: var(--aux-text);
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Two-column working area: editable form (main) beside read-only reference
   and security (side). Collapses to a single column below 980px. */
.aux-profile-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: var(--aux-sp-5);
	align-items: start;
}
.aux-profile-main { min-width: 0; }
.aux-profile-side { min-width: 0; }
.aux-profile-grid .aux-card { margin-bottom: var(--aux-sp-5); }
.aux-profile-grid .aux-card:last-child { margin-bottom: 0; }
.aux-profile-actions {
	display: flex;
	gap: var(--aux-sp-3);
	margin-top: var(--aux-sp-1);
}
@media (max-width: 980px) {
	.aux-profile-grid { grid-template-columns: 1fr; }
	.aux-profile-hero { flex-wrap: wrap; }
	.aux-profile-hero__meta {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--aux-border-subtle);
		padding-top: var(--aux-sp-4);
		flex-basis: 100%;
		max-width: none;
	}
}
@media (max-width: 560px) {
	.aux-profile-hero { padding: var(--aux-sp-4); gap: var(--aux-sp-4); }
	.aux-profile-hero__avatar { width: 60px; height: 60px; font-size: 22px; }
}


.aux-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--aux-sp-4);
	margin-bottom: var(--aux-sp-6);
}

.aux-kpi {
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius-lg);
	padding: var(--aux-sp-5);
	box-shadow: var(--aux-shadow-xs);
	transition: border-color var(--aux-t-fast), box-shadow var(--aux-t-fast);
}
.aux-kpi:hover {
	border-color: var(--aux-border-strong);
	box-shadow: var(--aux-shadow-sm);
}

.aux-kpi__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--aux-sp-3);
}
.aux-kpi__label {
	font-size: var(--aux-fs-sm);
	font-weight: var(--aux-fw-medium);
	color: var(--aux-text-muted);
}
.aux-kpi__icon {
	width: 32px;
	height: 32px;
	border-radius: var(--aux-radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--aux-brand-accent-surface);
	color: var(--aux-brand-accent);
}
.aux-kpi__icon--success { background: var(--aux-success-bg); color: var(--aux-success); }
.aux-kpi__icon--warning { background: var(--aux-warning-bg); color: var(--aux-warning); }
.aux-kpi__icon--danger { background: var(--aux-danger-bg); color: var(--aux-danger); }

.aux-kpi__value {
	font-size: var(--aux-fs-3xl);
	font-weight: var(--aux-fw-semibold);
	color: var(--aux-text);
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.aux-kpi__delta {
	margin-top: var(--aux-sp-2);
	font-size: var(--aux-fs-sm);
	color: var(--aux-text-muted);
	display: flex;
	align-items: center;
	gap: 4px;
}
.aux-kpi__delta--up { color: var(--aux-success); }
.aux-kpi__delta--down { color: var(--aux-danger); }

/* ==========================================================================
   14. Notices
   ========================================================================== */
.aux-notice {
	position: relative;
	padding: var(--aux-sp-3) var(--aux-sp-4);
	border: 1px solid var(--aux-border);
	border-left: 3px solid var(--aux-border-strong);
	border-radius: var(--aux-radius-md);
	font-size: var(--aux-fs-md);
	margin-bottom: var(--aux-sp-4);
	display: flex;
	gap: var(--aux-sp-3);
	align-items: flex-start;
	line-height: var(--aux-lh-normal);
	background: var(--aux-surface);
	color: var(--aux-text);
}
/* Content-measure utilities: cap a block to a consistent readable width so the
   content column stays uniform across pages (replaces ad-hoc inline max-width). */
.aux-measure      { max-width: var(--aux-measure); }
.aux-measure-wide { max-width: var(--aux-measure-wide); }
.aux-notice__icon { flex-shrink: 0; margin-top: 1px; }
.aux-notice__body { flex: 1; min-width: 0; }
.aux-notice__body strong { font-weight: var(--aux-fw-semibold); }
.aux-notice__title {
	font-weight: var(--aux-fw-semibold);
	margin-bottom: 2px;
}
/* Semantic variants: tinted surface + colored left accent; body text stays
   dark for readability, while the accent + title + icon carry the hue.
   --error is the primary danger token used across templates; --danger aliases it. */
.aux-notice--success { background: var(--aux-success-bg); border-color: color-mix(in srgb, var(--aux-success) 22%, transparent); border-left-color: var(--aux-success); }
.aux-notice--warning { background: var(--aux-warning-bg); border-color: color-mix(in srgb, var(--aux-warning) 22%, transparent); border-left-color: var(--aux-warning); }
.aux-notice--danger,
.aux-notice--error   { background: var(--aux-danger-bg);  border-color: color-mix(in srgb, var(--aux-danger) 22%, transparent);  border-left-color: var(--aux-danger); }
.aux-notice--info    { background: var(--aux-info-bg);    border-color: color-mix(in srgb, var(--aux-info) 22%, transparent);    border-left-color: var(--aux-info); }
.aux-notice--success .aux-notice__title, .aux-notice--success .aux-notice__icon { color: var(--aux-success); }
.aux-notice--warning .aux-notice__title, .aux-notice--warning .aux-notice__icon { color: var(--aux-warning); }
.aux-notice--danger .aux-notice__title, .aux-notice--danger .aux-notice__icon,
.aux-notice--error .aux-notice__title,  .aux-notice--error .aux-notice__icon  { color: var(--aux-danger); }
.aux-notice--info .aux-notice__title, .aux-notice--info .aux-notice__icon { color: var(--aux-info); }

/* ==========================================================================
   15. Filter bar
   ========================================================================== */
.aux-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--aux-sp-3);
	align-items: flex-end;
	padding: var(--aux-sp-4);
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius-lg);
	margin-bottom: var(--aux-sp-4);
	box-shadow: var(--aux-shadow-xs);
}
.aux-filter-bar .aux-field { min-width: 160px; }
.aux-filter-bar__spacer { flex: 1; }

/* ==========================================================================
   16. Empty states
   ========================================================================== */
.aux-empty {
	background: var(--aux-surface);
	border: 1px dashed var(--aux-border-strong);
	border-radius: var(--aux-radius-lg);
	padding: var(--aux-sp-10) var(--aux-sp-6);
	text-align: center;
}
.aux-empty__icon {
	width: 48px;
	height: 48px;
	margin: 0 auto var(--aux-sp-3);
	color: var(--aux-text-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--aux-bg);
	border-radius: var(--aux-radius-lg);
}
.aux-empty__title {
	font-size: var(--aux-fs-lg);
	font-weight: var(--aux-fw-semibold);
	color: var(--aux-text);
	margin: 0 0 var(--aux-sp-1);
}
.aux-empty__body {
	font-size: var(--aux-fs-md);
	color: var(--aux-text-muted);
	max-width: 50ch;
	margin: 0 auto var(--aux-sp-4);
}

/* ==========================================================================
   17. Dropdowns (details/summary based)
   ========================================================================== */
.aux-menu {
	position: relative;
}
.aux-menu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 4px);
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius-md);
	box-shadow: var(--aux-shadow-md);
	min-width: 240px;
	padding: 6px;
	z-index: var(--aux-z-dropdown);
}
.aux-menu__item {
	display: flex;
	align-items: center;
	gap: var(--aux-sp-2);
	padding: 7px 10px;
	color: var(--aux-text);
	text-decoration: none;
	font-size: var(--aux-fs-md);
	border-radius: var(--aux-radius);
	transition: background var(--aux-t-fast);
	cursor: pointer;
	background: transparent;
	border: 0;
	width: 100%;
	text-align: left;
}
.aux-menu__item:hover, .aux-menu__item:focus {
	background: var(--aux-bg);
	color: var(--aux-text);
	text-decoration: none;
}
.aux-menu__item--danger { color: var(--aux-danger); }
.aux-menu__item--danger:hover { background: var(--aux-danger-bg); color: var(--aux-danger); }
.aux-menu__divider {
	height: 1px;
	background: var(--aux-border);
	margin: 4px 0;
}
.aux-menu__label {
	padding: 6px 10px 4px;
	font-size: var(--aux-fs-xs);
	font-weight: var(--aux-fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--aux-text-subtle);
}

/* ==========================================================================
   18. Modals
   ========================================================================== */
.aux-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(11, 16, 32, 0.48);
	z-index: var(--aux-z-backdrop);
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--aux-sp-4);
}
.aux-modal-backdrop.is-open { display: flex; }
.aux-modal {
	background: var(--aux-surface);
	border-radius: var(--aux-radius-xl);
	box-shadow: var(--aux-shadow-lg);
	width: 100%;
	max-width: 540px;
	max-height: 90vh;
	overflow-y: auto;
	z-index: var(--aux-z-modal);
}
.aux-modal--lg { max-width: 720px; }
.aux-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--aux-sp-5) var(--aux-sp-6);
	border-bottom: 1px solid var(--aux-border);
}
.aux-modal__title {
	font-size: var(--aux-fs-lg);
	font-weight: var(--aux-fw-semibold);
	margin: 0;
}
.aux-modal__close {
	border: 0;
	background: transparent;
	color: var(--aux-text-subtle);
	cursor: pointer;
	padding: 4px;
	border-radius: var(--aux-radius);
}
.aux-modal__close:hover { background: var(--aux-bg); color: var(--aux-text); }
.aux-modal__body { padding: var(--aux-sp-6); }
.aux-modal__foot {
	display: flex;
	justify-content: flex-end;
	gap: var(--aux-sp-2);
	padding: var(--aux-sp-4) var(--aux-sp-6);
	border-top: 1px solid var(--aux-border);
	background: var(--aux-bg);
	border-radius: 0 0 var(--aux-radius-xl) var(--aux-radius-xl);
}

/* ==========================================================================
   19. Tabs
   ========================================================================== */
.aux-tabs {
	display: flex;
	gap: 2px;
	border-bottom: 1px solid var(--aux-border);
	margin-bottom: var(--aux-sp-5);
}
.aux-tabs__tab {
	padding: var(--aux-sp-3) var(--aux-sp-4);
	border: 0;
	background: transparent;
	color: var(--aux-text-muted);
	font-size: var(--aux-fs-md);
	font-weight: var(--aux-fw-medium);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: all var(--aux-t-fast);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: var(--aux-sp-2);
}
.aux-tabs__tab:hover { color: var(--aux-text); }
.aux-tabs__tab.is-active {
	color: var(--aux-brand-accent);
	border-bottom-color: var(--aux-brand-accent);
	font-weight: var(--aux-fw-semibold);
}
.aux-tabs__count {
	background: var(--aux-bg-soft);
	color: var(--aux-text-muted);
	padding: 1px 6px;
	border-radius: var(--aux-radius-pill);
	font-size: var(--aux-fs-xs);
	font-weight: var(--aux-fw-semibold);
}
.aux-tabs__tab.is-active .aux-tabs__count {
	background: var(--aux-brand-accent-soft);
	color: var(--aux-brand-accent);
}

/* ==========================================================================
   20. Progress bars
   ========================================================================== */
.aux-progress {
	position: relative;
	height: 6px;
	background: var(--aux-bg-soft);
	border-radius: var(--aux-radius-pill);
	overflow: hidden;
}
.aux-progress__fill {
	height: 100%;
	background: var(--aux-brand-accent);
	border-radius: var(--aux-radius-pill);
	transition: width var(--aux-t-slow);
}
.aux-progress--success .aux-progress__fill { background: var(--aux-success); }
.aux-progress--warning .aux-progress__fill { background: var(--aux-warning); }
.aux-progress--danger .aux-progress__fill { background: var(--aux-danger); }

/* ==========================================================================
   21. Role switcher (prototype only)
   ========================================================================== */
.aux-role-switcher {
	position: fixed;
	bottom: var(--aux-sp-4);
	right: var(--aux-sp-4);
	background: var(--aux-brand-ink);
	color: #fff;
	border-radius: var(--aux-radius-xl);
	padding: var(--aux-sp-2) var(--aux-sp-3);
	box-shadow: var(--aux-shadow-lg);
	z-index: var(--aux-z-toast);
	display: flex;
	align-items: center;
	gap: var(--aux-sp-3);
	font-size: var(--aux-fs-sm);
}
.aux-role-switcher__label {
	color: rgba(255, 255, 255, 0.6);
	font-weight: var(--aux-fw-medium);
}
.aux-role-switcher__options {
	display: flex;
	gap: 2px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: var(--aux-radius-pill);
	padding: 2px;
}
.aux-role-switcher__opt {
	padding: 4px 10px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	border-radius: var(--aux-radius-pill);
	font-size: var(--aux-fs-sm);
	font-weight: var(--aux-fw-medium);
	cursor: pointer;
	transition: all var(--aux-t-fast);
}
.aux-role-switcher__opt:hover { color: #fff; }
.aux-role-switcher__opt.is-active {
	background: var(--aux-brand-accent);
	color: #fff;
}

/* ==========================================================================
   22. Toast notifications
   ========================================================================== */
.aux-toast {
	position: fixed;
	top: calc(var(--aux-topbar-h) + 16px);
	right: var(--aux-sp-4);
	background: var(--aux-brand-ink);
	color: #fff;
	padding: var(--aux-sp-3) var(--aux-sp-4);
	border-radius: var(--aux-radius-md);
	box-shadow: var(--aux-shadow-lg);
	z-index: var(--aux-z-toast);
	display: flex;
	align-items: center;
	gap: var(--aux-sp-3);
	max-width: 400px;
	transform: translateX(calc(100% + 32px));
	transition: transform var(--aux-t);
}
.aux-toast.is-open { transform: translateX(0); }
.aux-toast__icon { color: var(--aux-success); flex-shrink: 0; }
.aux-toast--danger .aux-toast__icon { color: var(--aux-danger); }

/* ==========================================================================
   23. Responsive — drawer
   ========================================================================== */
@media (max-width: 900px) {
	/* Sidebar leaves the flow and becomes an off-canvas drawer; the shell
	   collapses to a single column occupied by .aux-shell__main. */
	.aux-shell {
		grid-template-columns: 1fr;
	}
	.aux-shell__main {
		grid-column: 1;
	}
	.aux-side {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		height: 100dvh;
		width: min(86vw, 300px);
		transform: translateX(-100%);
		transition: transform var(--aux-t) ease;
		box-shadow: var(--aux-shadow-lg);
		z-index: var(--aux-z-modal);
	}
	.aux-side--open { transform: translateX(0); }
	/* Scrim: .aux-side is the first child of .aux-shell and .aux-shell__main is
	   its sibling, so an open drawer dims everything via the main column. */
	.aux-side--open ~ .aux-shell__main::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(11, 16, 32, 0.45);
		z-index: var(--aux-z-backdrop);
		animation: aux-scrim-in var(--aux-t) ease;
	}
	.aux-topbar__menu { display: inline-flex; }
	.aux-main { grid-column: 1; padding: var(--aux-sp-4); }
}
@keyframes aux-scrim-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 600px) {
	.aux-main { padding: var(--aux-sp-3); }
	.aux-page__title { font-size: var(--aux-fs-2xl); }
	.aux-kpi-grid { grid-template-columns: 1fr; }
	.aux-field-row {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   24. Utilities
   ========================================================================== */
.aux-stack { display: flex; flex-direction: column; }
.aux-stack--1 { gap: var(--aux-sp-1); }
.aux-stack--2 { gap: var(--aux-sp-2); }
.aux-stack--3 { gap: var(--aux-sp-3); }
.aux-stack--4 { gap: var(--aux-sp-4); }
.aux-stack--5 { gap: var(--aux-sp-5); }
.aux-stack--6 { gap: var(--aux-sp-6); }

.aux-row { display: flex; align-items: center; }
.aux-row--2 { gap: var(--aux-sp-2); }
.aux-row--3 { gap: var(--aux-sp-3); }
.aux-row--4 { gap: var(--aux-sp-4); }
.aux-row--wrap { flex-wrap: wrap; }

.aux-grid { display: grid; gap: var(--aux-sp-4); }
.aux-grid--2 { grid-template-columns: repeat(2, 1fr); }
.aux-grid--3 { grid-template-columns: repeat(3, 1fr); }
.aux-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.aux-grid--2, .aux-grid--3, .aux-grid--4 { grid-template-columns: 1fr; }
}

.aux-spacer { flex: 1; }
.aux-mt-2 { margin-top: var(--aux-sp-2); }
.aux-mt-3 { margin-top: var(--aux-sp-3); }
.aux-mt-4 { margin-top: var(--aux-sp-4); }
.aux-mt-5 { margin-top: var(--aux-sp-5); }
.aux-mt-6 { margin-top: var(--aux-sp-6); }
.aux-mb-2 { margin-bottom: var(--aux-sp-2); }
.aux-mb-4 { margin-bottom: var(--aux-sp-4); }

.aux-muted { color: var(--aux-text-muted); }
.aux-subtle { color: var(--aux-text-subtle); }
.aux-success-text { color: var(--aux-success); }
.aux-danger-text { color: var(--aux-danger); }
.aux-warning-text { color: var(--aux-warning); }
.aux-mono { font-family: var(--aux-font-mono); }
.aux-nums { font-variant-numeric: tabular-nums; }

.aux-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.aux-fs-xs { font-size: var(--aux-fs-xs); }
.aux-fs-sm { font-size: var(--aux-fs-sm); }
.aux-fs-md { font-size: var(--aux-fs-md); }
.aux-fs-lg { font-size: var(--aux-fs-lg); }
.aux-fw-medium { font-weight: var(--aux-fw-medium); }
.aux-fw-semibold { font-weight: var(--aux-fw-semibold); }

.aux-hide { display: none !important; }
.aux-show-sm { display: none; }
@media (max-width: 600px) { .aux-hide-sm { display: none !important; } .aux-show-sm { display: initial; } }

/* Text alignment */
.aux-ta-l { text-align: left; }
.aux-ta-r { text-align: right; }
.aux-ta-c { text-align: center; }

/* Flex children (proportional sizing within a flex row) */
.aux-flex-1 { flex: 1; min-width: 0; }
.aux-flex-2 { flex: 2; min-width: 0; }
.aux-inline { display: inline; }
.aux-m-0 { margin: 0; }

/* ============================================================
 * Prototype expansion — aliases + utility classes used by new pages
 * ============================================================ */
:root {
	--aux-muted-bg: var(--aux-bg-soft);
	--aux-card-bg: var(--aux-surface);
	--aux-border-dark: var(--aux-border-strong);
	--aux-accent: var(--aux-brand-accent);
	--aux-accent-soft: var(--aux-brand-accent-soft);
	--aux-muted: var(--aux-text-muted);
}

.aux-muted { color: var(--aux-text-muted); }
.aux-nums { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.aux-mono { font-family: var(--aux-font-mono); }
.aux-fw-semibold { font-weight: 600; }
.aux-fs-xs { font-size: var(--aux-fs-xs); }
.aux-fs-sm { font-size: var(--aux-fs-sm); }
.aux-fs-base { font-size: var(--aux-fs-base); }
.aux-fs-md { font-size: var(--aux-fs-md); }
.aux-fs-lg { font-size: var(--aux-fs-lg); }
.aux-fs-xl { font-size: var(--aux-fs-xl); }
.aux-success-text { color: var(--aux-success); }
.aux-danger-text { color: var(--aux-danger); }
.aux-warning-text { color: var(--aux-warning); }

.aux-link { color: var(--aux-brand-accent); text-decoration: none; font-weight: 500; }
.aux-link:hover { text-decoration: underline; }

.aux-field__help { color: var(--aux-text-muted); font-size: var(--aux-fs-sm); margin-top: 4px; }
.aux-form-actions { display: flex; gap: var(--aux-sp-2); justify-content: flex-end; padding-top: var(--aux-sp-4); border-top: 1px solid var(--aux-border-subtle); margin-top: var(--aux-sp-4); }

.aux-two-col { display: grid; grid-template-columns: 2fr 1fr; gap: var(--aux-sp-5); align-items: flex-start; }
@media (max-width: 1100px) { .aux-two-col { grid-template-columns: 1fr !important; } }

.aux-card__head-actions { margin-left: auto; display: flex; gap: var(--aux-sp-2); align-items: center; }

.aux-table--compact td,
.aux-table--compact th { padding: 8px 12px; }
.aux-table--compact tbody tr { height: auto; }

.aux-select--sm { padding: 4px 24px 4px 10px; font-size: var(--aux-fs-sm); height: 30px; }

.aux-btn--sm { padding: 4px 10px; font-size: var(--aux-fs-sm); height: 30px; }
.aux-btn--success { background: var(--aux-success); color: #fff; border-color: var(--aux-success); }

.aux-chip--info { background: var(--aux-info-bg); color: var(--aux-info); }
.aux-chip--info .aux-chip__dot { background: var(--aux-info); }

.aux-avatar--xs { width: 22px; height: 22px; font-size: 9px; }

.aux-progress { position: relative; height: 8px; background: var(--aux-bg-soft); border-radius: 99px; overflow: hidden; }
.aux-progress__bar { position: absolute; inset: 0; width: 0; background: var(--aux-brand-accent); border-radius: 99px; transition: width .4s; }

.aux-kpi__icon--success { color: var(--aux-success); background: var(--aux-success-bg); }
.aux-kpi__icon--warning { color: var(--aux-warning); background: var(--aux-warning-bg); }
.aux-kpi__icon--danger { color: var(--aux-danger); background: var(--aux-danger-bg); }

.cell-primary { font-weight: 600; color: var(--aux-text); }
.cell-muted { color: var(--aux-text-muted); }

/* Tabs — count badge already partially styled; make sure count shows up */
.aux-tabs__count { display: inline-block; padding: 1px 8px; background: var(--aux-bg-soft); border-radius: 99px; font-size: var(--aux-fs-xs); color: var(--aux-text-muted); font-weight: 500; margin-left: 4px; }
.aux-tabs__tab.is-active .aux-tabs__count { background: var(--aux-brand-accent-soft); color: var(--aux-brand-accent); }

/* User cell composite */
.aux-user-cell { display: inline-flex; align-items: center; gap: 8px; }
.aux-user-cell__info { display: flex; flex-direction: column; line-height: 1.2; }
.aux-user-cell__name { font-weight: 600; font-size: var(--aux-fs-base); color: var(--aux-text); }
.aux-user-cell__sub { font-size: var(--aux-fs-xs); color: var(--aux-text-muted); }

/* Quick action grids (used in staff/auditor dashboards) */
.aux-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--aux-sp-3); }
.aux-quick-action { display: flex; gap: var(--aux-sp-3); align-items: center; padding: var(--aux-sp-3); border: 1px solid var(--aux-border); border-radius: var(--aux-radius-md); text-decoration: none; color: var(--aux-text); transition: all 0.15s; }
.aux-quick-action:hover { border-color: var(--aux-brand-accent); box-shadow: var(--aux-shadow-xs); transform: translateY(-1px); }
.aux-quick-action__icon { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 700px) { .aux-quick-actions { grid-template-columns: 1fr; } }

.aux-quick-link { display: flex; align-items: center; gap: var(--aux-sp-2); padding: var(--aux-sp-2) var(--aux-sp-3); border-radius: var(--aux-radius-sm); color: var(--aux-text); text-decoration: none; font-size: var(--aux-fs-sm); transition: background 0.15s; }
.aux-quick-link:hover { background: var(--aux-bg-soft); }

.aux-activity-list { list-style: none; padding: 0; margin: 0; }
.aux-activity-item { display: flex; gap: var(--aux-sp-2); padding: var(--aux-sp-3) var(--aux-sp-4); border-bottom: 1px solid var(--aux-border-subtle); align-items: center; }
.aux-activity-item:last-child { border-bottom: 0; }

/* Auditor read-only global indicator */
.aux-auditor-banner {
	background: color-mix(in srgb, var(--aux-brand-accent) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--aux-brand-accent) 25%, transparent);
	color: var(--aux-brand-accent);
	padding: var(--aux-sp-2) var(--aux-sp-4);
	border-radius: var(--aux-radius-sm);
	font-size: var(--aux-fs-sm);
	margin-bottom: var(--aux-sp-4);
	display: flex;
	gap: var(--aux-sp-2);
	align-items: center;
}

/* Financial lockout for staff role */
.aux-staff-lockout {
	background: var(--aux-bg-soft);
	border: 1px dashed var(--aux-border);
	color: var(--aux-muted);
	padding: var(--aux-sp-3);
	border-radius: var(--aux-radius-sm);
	font-size: var(--aux-fs-sm);
	text-align: center;
}

/* Invoice-specific colors */
.aux-invoice-status--draft    { background: color-mix(in srgb, var(--aux-muted) 15%, transparent); color: var(--aux-muted); }
.aux-invoice-status--sent     { background: color-mix(in srgb, var(--aux-brand-accent) 12%, transparent); color: var(--aux-brand-accent); }
.aux-invoice-status--viewed   { background: color-mix(in srgb, var(--aux-info) 12%, transparent); color: var(--aux-info); }
.aux-invoice-status--paid     { background: color-mix(in srgb, var(--aux-success) 15%, transparent); color: var(--aux-success); }
.aux-invoice-status--overdue  { background: color-mix(in srgb, var(--aux-danger) 12%, transparent); color: var(--aux-danger); }

/* Definition list pattern (used in profile, invoice detail, P&L, etc.) */
.aux-def-list { display: flex; flex-direction: column; gap: var(--aux-sp-2); margin: 0; }
.aux-def-list > div { display: flex; justify-content: space-between; padding: var(--aux-sp-1) 0; border-bottom: 1px solid var(--aux-border-subtle); gap: var(--aux-sp-3); }
.aux-def-list > div:last-child { border-bottom: 0; }
.aux-def-list dt { color: var(--aux-muted); font-size: var(--aux-fs-sm); margin: 0; }
.aux-def-list dd { margin: 0; font-weight: 500; font-size: var(--aux-fs-sm); text-align: right; }

/* ==========================================================================
   v14.1 Category 8 — Print stylesheet (§8.5)
   Optimized for invoices, timesheets, reports — hides nav/sidebar/chrome.
   ========================================================================== */
@page {
	size: letter;
	margin: 0.75in;
}

@media print {
	/* Hide all chrome */
	.aux-side,
	.aux-topbar,
	.aux-role-switcher,
	.aux-drawer-toggle,
	.aux-topbar__menu,
	.aux-page__actions,
	.aux-notif-wrap,
	.aux-toast,
	.aux-modal,
	.aux-bulk-bar,
	.aux-skip,
	nav, aside,
	[role="navigation"],
	.aux-card__head-actions,
	.aux-btn,
	button:not([data-print]),
	.aux-tabs {
		display: none !important;
	}

	body,
	.aux-shell,
	.aux-main {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		color: #000 !important;
		font-size: 10pt;
	}

	/* Force single-column on grids */
	.aux-grid,
	.aux-grid--2,
	.aux-grid--3,
	.aux-two-col,
	.aux-kpi-grid {
		display: block !important;
		grid-template-columns: 1fr !important;
	}

	.aux-card {
		page-break-inside: avoid;
		box-shadow: none !important;
		border: 1px solid #ccc !important;
		border-radius: 4pt !important;
		margin-bottom: 12pt !important;
	}

	.aux-table {
		border-collapse: collapse;
		width: 100%;
		font-size: 9pt;
	}
	.aux-table th,
	.aux-table td {
		border: 0.5pt solid #999 !important;
		padding: 4pt 6pt !important;
	}
	.aux-table thead {
		display: table-header-group;  /* repeat on each page */
	}
	.aux-table tr {
		page-break-inside: avoid;
	}

	/* Page break hints */
	h1, h2, h3 { page-break-after: avoid; }
	.aux-page__header { page-break-after: avoid; }
	.aux-page-break { page-break-before: always; }

	/* Links: show URL after */
	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 85%;
		color: #666;
	}
	a[href^="#"]::after,
	a[href^="javascript:"]::after,
	.aux-chip a::after,
	.aux-user-cell a::after {
		content: "";
	}

	/* Chips in BW */
	.aux-chip {
		border: 0.5pt solid #666 !important;
		background: transparent !important;
		color: #000 !important;
	}

	/* Notices: keep visible but simplify */
	.aux-notice {
		border: 1pt solid #000 !important;
		background: transparent !important;
		padding: 6pt !important;
	}
	.aux-notice--danger { border-left: 4pt solid #000 !important; }
	.aux-notice--warning { border-left: 4pt solid #666 !important; }
	.aux-notice--info { border-left: 4pt solid #999 !important; }

	/* Input fields: show value as text */
	input,
	select,
	textarea {
		border: none !important;
		background: transparent !important;
		padding: 0 !important;
		color: #000 !important;
		font: inherit;
	}

	/* Progress bars: render as text percentage */
	.aux-progress { display: none; }

	/* URL footer */
	body::after {
		content: "Printed from Auxilium Pulse · " attr(data-print-source);
		display: block;
		position: fixed;
		bottom: 0;
		right: 0;
		font-size: 8pt;
		color: #999;
	}
}

/* ==========================================================================
   v14.1 Category 8 — Accessibility (§8.3)
   Skip link + focus indicators + screen-reader-only
   ========================================================================== */
.aux-skip {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.aux-skip:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: var(--aux-sp-2) var(--aux-sp-3);
	background: var(--aux-brand-accent);
	color: #fff;
	border-radius: var(--aux-radius-md);
	font-weight: 600;
	text-decoration: none;
}

.aux-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Focus ring — WCAG 2.1 AA minimum 2px outline */
:focus-visible {
	outline: 2px solid var(--aux-brand-accent);
	outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
	outline: 2px solid var(--aux-brand-accent);
	outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ============================================================
 * v1.3.0 additions — profile form readonly field styles
 * ============================================================ */
.aux-field__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #0B1020;
	margin-bottom: 6px;
	letter-spacing: 0.1px;
}
.aux-field__readonly {
	padding: 10px 14px;
	background: var(--aux-bg-soft);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius);
	color: var(--aux-text);
	font-size: var(--aux-fs-md);
	min-height: 40px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--aux-sp-2) var(--aux-sp-3);
}
.aux-field__note {
	flex-shrink: 0;
	margin-left: auto;
	font-size: var(--aux-fs-xs);
	color: var(--aux-text-subtle);
	font-weight: var(--aux-fw-medium);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* v1.3.4 — Switch persona link in topbar (demo mode only) */
.aux-topbar__switch {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	margin-right: 8px;
	background: var(--aux-bg-soft);
	border: 1px solid var(--aux-border);
	border-radius: 999px;
	color: var(--aux-text-muted);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.aux-topbar__switch:hover {
	background: #fff;
	color: var(--aux-text);
	border-color: #C7CDDA;
}
