/* Vega — generated from tokens.json (Vega design system). Do not edit by hand.
   Palette tokens are fixed; semantic tokens switch with data-theme on <html>
   (or on any element that must stay in one theme). */

@font-face {
  font-family: "Inter";
  src: url("/Content/vega/fonts/Inter-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  ascent-override: 96.9%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/Content/vega/fonts/Inter-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  ascent-override: 96.9%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/Content/vega/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 96.9%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/Content/vega/fonts/Inter-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  ascent-override: 96.9%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/Content/vega/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  ascent-override: 96.9%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/Content/vega/fonts/Inter-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  ascent-override: 96.9%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}

:root {
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --vega-purple: #605eea;
  --vega-navy: #244358;
  --vega-black: #000000;
  --vega-white: #ffffff;
  --logo-ink: #0b0b19;
  --purple-50: #f0f0fd;
  --purple-100: #e1e0fb;
  --purple-200: #c3c2f7;
  --purple-400: #8381ef;
  --purple-600: #4a48d6;
  --purple-700: #3b39b0;
  --navy-50: #eef2f5;
  --navy-700: #172f40;
  --navy-900: #102331;
  --gray-50: #f6f7f9;
  --gray-100: #eceef2;
  --gray-200: #dde1e7;
  --gray-500: #7b8696;
  --gray-600: #5b6675;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: var(--gray-50);
  --surface: #ffffff;
  --surface-sunken: var(--gray-100);
  --border: var(--gray-200);
  --border-strong: var(--gray-500);
  --text: var(--logo-ink);
  --text-muted: var(--gray-600);
  --text-accent: var(--vega-purple);
  --text-accent-strong: var(--purple-600);
  --primary: var(--vega-purple);
  --primary-hover: var(--purple-600);
  --primary-pressed: var(--purple-700);
  --on-primary: #ffffff;
  --primary-subtle: var(--purple-50);
  --focus-ring: var(--vega-purple);
  --success: #17784a;
  --success-bg: #e7f4ed;
  --on-success: #ffffff;
  --warning: #9a5b00;
  --warning-bg: #fdf3e3;
  --danger: #c4322b;
  --danger-bg: #fbeceb;
  --info: var(--purple-600);
  --info-bg: var(--purple-50);
  --shadow-sm: 0 1px 2px rgba(36, 67, 88, 0.08);
  --shadow-lg: 0 12px 32px rgba(36, 67, 88, 0.18);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--navy-700);
  --surface: var(--vega-navy);
  --surface-sunken: var(--navy-900);
  --border: #3a5a70;
  --border-strong: #8fa3b3;
  --text: #ffffff;
  --text-muted: #b8c4ce;
  --text-accent: var(--purple-200);
  --text-accent-strong: var(--purple-200);
  --primary: var(--vega-purple);
  --primary-hover: var(--purple-600);
  --primary-pressed: var(--purple-700);
  --on-primary: #ffffff;
  --primary-subtle: #2f3a6e;
  --focus-ring: var(--purple-200);
  --success: #5fd39a;
  --success-bg: #1d4a3c;
  --on-success: var(--navy-900);
  --warning: #f2b866;
  --warning-bg: #4a3d24;
  --danger: #ff8a80;
  --danger-bg: #4a2a33;
  --info: var(--purple-200);
  --info-bg: #2f3a6e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Type styles. Prefixed vg- so they can't collide with Bootstrap 3 (.label). */
.vg-display { font-family: var(--font-sans); font-size: 56px; line-height: 60px; font-weight: 500; letter-spacing: -0.02em; }
.vg-h1 { font-family: var(--font-sans); font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: -0.01em; }
.vg-h2 { font-family: var(--font-sans); font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.01em; }
.vg-h3 { font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 500; }
.vg-body-lg { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 400; }
.vg-body { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 400; }
.vg-body-sm { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 400; }
.vg-label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; }
.vg-eyebrow { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 400; }
.vg-code { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; }
.vg-eyebrow { color: var(--text-accent); }

/* Vega UI components (vg-*), copied unchanged from the Vega design system's components/bundle.css. Load after tokens.css. */

.vg-root, body.vg-root {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.vg-root a:not([class]), a.vg-link { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; }
.vg-root a:not([class]):hover, a.vg-link:hover { text-decoration-thickness: 2px; }
.vg-root :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vg-num { font-variant-numeric: tabular-nums; }

/* ---------- Icon (Phosphor Fill) ---------- */
.vg-icon { display: inline-block; flex: none; width: 20px; height: 20px; fill: currentColor; vertical-align: -4px; }
.vg-icon--sm { width: 16px; height: 16px; vertical-align: -3px; }
.vg-icon--lg { width: 24px; height: 24px; vertical-align: -6px; }
.vg-icon--muted { color: var(--text-muted); }
.vg-icon--accent { color: var(--text-accent); }
.vg-icon--success { color: var(--success); }
.vg-icon--warning { color: var(--warning); }
.vg-icon--danger { color: var(--danger); }
.vg-icon--info { color: var(--info); }
.vg-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
.vg-icon-btn:hover { background: var(--surface-sunken); color: var(--text); }
.vg-icon-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vg-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Button ---------- */
.vg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 40px; padding: 0 var(--space-6);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font: 500 14px/20px var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.vg-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vg-btn svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.vg-btn--primary { background: var(--primary); color: var(--on-primary); }
.vg-btn--primary:hover { background: var(--primary-hover); }
.vg-btn--primary:active { background: var(--primary-pressed); }
.vg-btn--secondary { background: transparent; color: var(--text); border-color: var(--text); }
.vg-btn--secondary:hover { background: var(--primary-subtle); }
.vg-btn--ghost { background: transparent; color: var(--text-accent); }
.vg-btn--ghost:hover { background: var(--primary-subtle); color: var(--text-accent-strong); }
.vg-btn--danger { background: var(--danger); color: var(--surface); }
.vg-btn--danger:hover { filter: brightness(.92); }
.vg-btn--sm { min-height: 32px; padding: 0 var(--space-4); font-size: 13px; }
/* Disabled: sunken and muted - plainly unavailable, still readable (faded
   purple at 45% read as a different colour, and its label as faint). */
.vg-btn:disabled, .vg-btn[aria-disabled="true"] { cursor: not-allowed; pointer-events: none; }
.vg-btn--primary:disabled, .vg-btn--primary[aria-disabled="true"],
.vg-btn--danger:disabled, .vg-btn--danger[aria-disabled="true"] { background: var(--surface-sunken); border-color: var(--border); color: var(--text-muted); }
.vg-btn--secondary:disabled, .vg-btn--secondary[aria-disabled="true"],
.vg-btn--ghost:disabled, .vg-btn--ghost[aria-disabled="true"] { color: var(--text-muted); border-color: var(--border); }

/* ---------- Field ---------- */
.vg-field { display: flex; flex-direction: column; gap: var(--space-2); }
.vg-field__label { font: 500 14px/20px var(--font-sans); color: var(--text); }
.vg-field__hint { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.vg-field__error { font-size: 13px; line-height: 18px; color: var(--danger); }
.vg-input, .vg-select, .vg-textarea {
  width: 100%; box-sizing: border-box; min-height: 40px; padding: var(--space-2) var(--space-3);
  font: 400 15px/22px var(--font-sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  transition: border-color .15s ease-out;
}
.vg-textarea { min-height: 96px; resize: vertical; }
.vg-select { appearance: none; padding-right: var(--space-8);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.vg-input::placeholder, .vg-textarea::placeholder { color: var(--text-muted); }
.vg-input:hover, .vg-select:hover, .vg-textarea:hover { border-color: var(--text); }
.vg-input:focus-visible, .vg-select:focus-visible, .vg-textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.vg-input[readonly] { background: var(--surface-sunken); }
/* Disabled (a locked setting): sunken and muted, not faded. */
.vg-input:disabled, .vg-select:disabled, .vg-textarea:disabled { background-color: var(--surface-sunken); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }
.vg-field--invalid .vg-input, .vg-field--invalid .vg-select, .vg-field--invalid .vg-textarea { border-color: var(--danger); }

/* ---------- Choice (checkbox, radio, switch) ---------- */
.vg-choice { display: inline-flex; align-items: flex-start; gap: var(--space-2); font-size: 15px; line-height: 22px; color: var(--text); cursor: pointer; }
.vg-choice input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; display: grid; place-content: center;
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; }
.vg-choice input[type="radio"] { border-radius: 50%; }
.vg-choice input:checked { background: var(--primary); border-color: var(--primary); }
.vg-choice input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid var(--on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.vg-choice input[type="radio"]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on-primary); }
.vg-choice input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vg-choice input:disabled, .vg-choice input:disabled + span { opacity: .5; cursor: not-allowed; }
.vg-switch { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; font-size: 15px; color: var(--text); }
.vg-switch input { appearance: none; width: 36px; height: 20px; margin: 0; border-radius: var(--radius-pill);
  background: var(--border-strong); position: relative; cursor: pointer; transition: background-color .15s ease-out; }
.vg-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); transition: transform .15s ease-out; }
.vg-switch input:checked { background: var(--primary); }
.vg-switch input:checked::after { transform: translateX(16px); background: var(--on-primary); }
.vg-switch input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* Navy: the primary fill is 2.1:1 against vega-navy, so a chosen control also
   carries a ring in focus-ring (purple-200, 6.1:1) - the choice isn't purple alone. */
[data-theme="dark"] .vg-switch input:checked,
[data-theme="dark"] .vg-choice input:checked { box-shadow: 0 0 0 1.5px var(--focus-ring); }

/* ---------- Card ---------- */
.vg-card { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm); }
.vg-card--dense { padding: var(--space-4); }
.vg-card__eyebrow { font-size: 13px; line-height: 16px; color: var(--text-accent); margin: 0 0 var(--space-2); }
.vg-card__title { font: 500 18px/24px var(--font-sans); margin: 0 0 var(--space-2); }
.vg-card__body { color: var(--text-muted); margin: 0; }
.vg-card__media { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.vg-card__footer { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.vg-stat__value { font: 500 32px/38px var(--font-sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.vg-stat__label { font-size: 13px; line-height: 18px; color: var(--text-muted); }

/* ---------- Badge ---------- */
.vg-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 10px;
  border-radius: var(--radius-pill); font: 500 12px/16px var(--font-sans); white-space: nowrap;
  background: var(--surface-sunken); color: var(--text); }
.vg-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vg-badge--plain::before { display: none; }
.vg-badge--success { background: var(--success-bg); color: var(--success); }
.vg-badge--warning { background: var(--warning-bg); color: var(--warning); }
.vg-badge--danger { background: var(--danger-bg); color: var(--danger); }
.vg-badge--info { background: var(--info-bg); color: var(--info); }

/* ---------- Alert ---------- */
.vg-alert { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--info-bg); color: var(--text); font-size: 14px; line-height: 20px; }
.vg-alert__icon { flex: none; width: 20px; height: 20px; fill: var(--info); }
.vg-alert__title { font-weight: 500; margin: 0 0 2px; }
.vg-alert p { margin: 0; }
.vg-alert--success { background: var(--success-bg); } .vg-alert--success .vg-alert__icon { fill: var(--success); }
.vg-alert--warning { background: var(--warning-bg); } .vg-alert--warning .vg-alert__icon { fill: var(--warning); }
.vg-alert--danger { background: var(--danger-bg); } .vg-alert--danger .vg-alert__icon { fill: var(--danger); }

/* ---------- Table ---------- */
.vg-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.vg-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; color: var(--text); }
.vg-table th { text-align: left; font-weight: 500; color: var(--text-muted); background: var(--surface-sunken);
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); white-space: nowrap; }
.vg-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.vg-table tr:last-child td { border-bottom: 0; }
.vg-table tbody tr:hover { background: var(--primary-subtle); }
.vg-table tr[aria-selected="true"] { background: var(--primary-subtle); box-shadow: inset 3px 0 0 var(--focus-ring); }
.vg-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.vg-table .is-code { font-family: var(--font-mono); font-size: 13px; }
.vg-table .is-muted { color: var(--text-muted); }

/* ---------- Top bar ---------- */
.vg-topbar { display: flex; align-items: center; gap: var(--space-6); height: 64px; padding: 0 var(--space-6);
  background: var(--surface); border-bottom: 1px solid var(--border); }
.vg-topbar__logo { display: block; height: 28px; width: auto; }
.vg-topbar__nav { display: flex; gap: var(--space-1); flex: 1; }
.vg-topbar__link { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill);
  font: 500 14px/20px var(--font-sans); color: var(--text-muted); text-decoration: none; }
.vg-topbar__link:hover { color: var(--text); background: var(--surface-sunken); }
/* Selected: the tint plus a 1px ring - the tint alone is 1.1:1 against the bar. */
.vg-topbar__link[aria-current="page"] { color: var(--text); background: var(--primary-subtle); box-shadow: inset 0 0 0 1px var(--focus-ring); }
.vg-topbar__link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vg-topbar__actions { display: flex; align-items: center; gap: var(--space-3); }
.vg-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font: 500 13px/1 var(--font-sans); }

/* ---------- Tabs ---------- */
.vg-tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--border); }
.vg-tab { position: relative; padding: var(--space-3) 0; background: none; border: 0; cursor: pointer;
  font: 500 14px/20px var(--font-sans); color: var(--text-muted); }
.vg-tab:hover { color: var(--text); }
.vg-tab[aria-selected="true"] { color: var(--text); }
.vg-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  border-radius: var(--radius-pill); background: var(--primary); }
.vg-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.vg-tab__count { margin-left: var(--space-1); color: var(--text-muted); font-weight: 400; }

/* ---------- Dialog ---------- */
.vg-dialog { width: min(480px, calc(100vw - 32px)); box-sizing: border-box; padding: var(--space-6);
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.vg-dialog::backdrop { background: rgba(16, 35, 49, .5); }
.vg-dialog__title { font: 500 24px/30px var(--font-sans); letter-spacing: -0.01em; margin: 0 0 var(--space-2); }
.vg-dialog__body { color: var(--text-muted); margin: 0 0 var(--space-6); }
.vg-dialog__actions { display: flex; justify-content: flex-end; gap: var(--space-2); }

/* ---------- Select lists ----------
   Where the browser lets the open list be styled (appearance: base-select,
   Chrome and Edge 135+), it matches a menu: the surface, the overlay shadow,
   the highlighted option in the selected tint with a ring, the chosen one
   ticked. Elsewhere the browser's own list stays, with the options at least
   in the theme's colours. */
.vg-select option { background-color: var(--surface); color: var(--text); }
@supports (appearance: base-select) {
  .vg-select, .vg-select::picker(select) { appearance: base-select; }
  .vg-select { background-image: none; display: inline-flex; align-items: center; }
  .vg-select::picker-icon { color: var(--text-muted); transition: rotate .15s ease-out; }
  .vg-select:open::picker-icon { rotate: 180deg; }
  .vg-select::picker(select) { margin-top: var(--space-1); padding: var(--space-1); background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
  .vg-select option { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; background: transparent; }
  .vg-select option:hover, .vg-select option:focus-visible { background: var(--primary-subtle); box-shadow: inset 0 0 0 1px var(--focus-ring); outline: none; }
  .vg-select option:checked { font-weight: 500; }
  .vg-select option::checkmark { order: 1; margin-left: auto; color: var(--text-accent); }
}

/* ---------- Motion ----------
   Less of it for those who ask. */
@media (prefers-reduced-motion: reduce) {
  .vg-root *, .vg-root *::before, .vg-root *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Vega sign-in pages (Default.aspx and the Account pages around it)
   --------------------------------------------------------------------------
   Always Light: nobody is signed in, so there is no theme preference yet.
   Loaded as ~/Content/VegaLogin with tokens.css and components.css, without
   vega-theme.css, so the app's restyle can't reach these pages.

   Layout: a navy brand panel (vertical white logo, the graphic element, one
   brand line) beside the sign-in card. Below 900px, or when the page runs in
   the app's re-login iframe, the brand panel goes and the card carries the
   horizontal logo.
   ========================================================================== */

html[data-theme] body.vg-login {
    margin: 0;
    min-height: 100vh;
    background: var(--bg) !important;          /* the page's old .blueHills photo */
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 22px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.vg-login *, .vg-login *::before, .vg-login *::after { box-sizing: border-box; }

.vg-login__layout {
    display: grid;
    grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr);
    min-height: 100vh;
}
.vg-login__main { min-width: 0; }

/* ---------- Brand panel ---------- */
.vg-login__brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-12);
    background: var(--vega-navy) url("/Content/vega/images/vega-graphic-element.svg") no-repeat right -140px bottom -80px / auto 72%;
    color: var(--vega-white);
}
.vg-login__logo { display: inline-block; align-self: flex-start; }
.vg-login__logo img { display: block; height: 112px; width: auto; }
.vg-login__logo:focus-visible { outline: 2px solid var(--purple-200); outline-offset: 4px; border-radius: var(--radius-sm); }
.vg-login__tagline {
    max-width: 18em;
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--vega-white);
}
.vg-login__tagline span { color: var(--purple-200); }   /* one highlighted word; purple text never on navy */

/* ---------- Sign-in side ---------- */
.vg-login__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-12) var(--space-6);
}
.vg-login__card {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    padding: var(--space-8) var(--space-8) var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.vg-login__card-logo { display: none; height: 28px; width: auto; margin: 0 0 var(--space-6); }
.vg-login__title {
    margin: 0 0 var(--space-2);
    font-family: var(--font-sans);
    font-size: 32px;
    line-height: 38px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}
.vg-login__lead { margin: 0 0 var(--space-6); color: var(--text-muted); }
.vg-login__submit { width: 100%; min-height: 48px; font-size: 16px; }

/* Server messages (lblError) as an alert; empty means nothing shows. */
.vg-login__message label { display: block; margin: 0; font-weight: 400; }
.vg-login__message label:not(:empty) {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--danger-bg);
    color: var(--text) !important;             /* vega.works.min.css colours it red */
    font-size: 14px;
    line-height: 20px;
}
.vg-login__message a { color: var(--text-accent-strong); font-weight: 500; cursor: pointer; }
.vg-login__links { margin-top: var(--space-4); font-size: 14px; }
.vg-login__links a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.vg-login__links a:hover { text-decoration-thickness: 2px; }

/* The page's .hidden helper (Semantic doesn't have one). */
.vg-login .hidden { display: none !important; }

/* ---------- What's new: a Vega document (LoginNews.ashx), or news.html ---------- */
.vg-login [hidden] { display: none !important; }
.vg-login__news { box-sizing: border-box; width: 100%; max-width: 440px; }
/* The document, on a card like the sign-in one; the frame is clipped to its corners. No
   heading of ours: the document has its own. As on Vega Forms' sign-in page. */
.vg-login__news-card {
    box-sizing: border-box;
    overflow: hidden;
    padding: var(--space-1) var(--space-4);    /* small: a Vega document brings its own padding */
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.vg-login__news-frame { display: block; width: 100%; height: 0; border: 0; }

/* news.html, when there's no document (edited by staff: styled here, not there). */
#divNewsFallback { padding: 0 var(--space-2); }
.vg-login__news-title {
    margin: 0 0 var(--space-3);
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
    color: var(--text-accent);
}
#divNewsFeed { font-family: var(--font-sans) !important; text-align: left !important; color: var(--text-muted); font-size: 14px; line-height: 20px; }
#divNewsFeed > div { margin: 0 0 var(--space-2) !important; }
#divNewsFeed h2 {
    margin: var(--space-3) 0 0;
    font-family: var(--font-sans) !important;
    font-size: 15px !important;
    line-height: 22px;
    font-weight: 500 !important;
    color: var(--text) !important;
}
#divNewsFeed h2[style*="font-size"] {          /* the feed's link lines */
    margin-top: 0;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
}
#divNewsFeed p { margin: 0; color: var(--text-muted); }
#divNewsFeed a { color: var(--text-accent); }
#divNewsFeed b, #divNewsFeed strong { font-weight: 500; }
#divNewsFeed .ui.message { border-radius: var(--radius-md); box-shadow: none; background: var(--info-bg); color: var(--text); margin: 0 0 var(--space-3) !important; }
#divNewsFeed .ui.message .header { color: var(--text) !important; font-family: var(--font-sans); font-weight: 500 !important; }

/* Maintenance notice (news.html swaps it into the card). */
#loginContainer .ui.segment { border: 0; box-shadow: none; padding: 0; }
#loginContainer .ui.header { font-family: var(--font-sans); font-weight: 500; color: var(--text); }

/* ---------- Narrow screens and the re-login iframe ---------- */
@media (max-width: 900px) {
    .vg-login__layout { grid-template-columns: minmax(0, 1fr); }
    .vg-login__main { padding: var(--space-8) var(--space-4); }
    .vg-login__card { padding: var(--space-6); }
    .vg-login__brand { display: none; }
    .vg-login__card-logo { display: block; }
}
.vg-login__brand.iframemode { display: none !important; }
.vg-login__brand.iframemode ~ .vg-login__main .vg-login__card-logo { display: block; }
.vg-login__layout:has(> .vg-login__brand.iframemode) { grid-template-columns: 1fr; }

/* ==========================================================================
   Account pages (body.vg-account: Account/recovery, recoveryWait,
   resetPassword, Activation). Their panels are shown and hidden by script
   by id, so they keep their markup; this skins it: the navy page with the graphic
   element (as the sign-in, organisation picker and error pages), each panel a
   white card with the horizontal logo, fields, pill buttons and alerts.
   ========================================================================== */
html[data-theme] body.vg-account {
    margin: 0;
    min-height: 100vh;
    padding: var(--space-12) var(--space-4);
    background: var(--vega-navy) url("/Content/vega/images/vega-graphic-element.svg") no-repeat right -140px bottom -80px / auto 72% fixed !important;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 22px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
.vg-account *, .vg-account *::before, .vg-account *::after { box-sizing: border-box; }
.vg-account h1, .vg-account h2, .vg-account h3, .vg-account h4,
.vg-account .ui.header {
    font-family: var(--font-sans) !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    letter-spacing: -0.01em;
}
.vg-account h2, .vg-account h3, .vg-account .ui.header { font-size: 24px !important; line-height: 30px !important; }
.vg-account p { color: var(--text-muted); }
.vg-account a { color: var(--text-accent); }

/* "Home › Log in" trail above the card, on the navy: light text. */
.vg-account .ui.container > .ui:first-child { max-width: 480px; margin: 0 auto var(--space-4); font-size: 14px; color: var(--purple-200); }
.vg-account .ui.container > .ui:first-child a.section { color: var(--vega-white); }
.vg-account .ui.container > .ui:first-child a.section:hover { text-decoration: underline; }

/* The page's panels as cards. */
.vg-account .ui.vertical.stripe.segment { background: transparent; border: 0; box-shadow: none; padding: 0; }
.vg-account .eight.wide.centered.column,
.vg-account .mainBanner.contentPanel {
    width: 100% !important;
    max-width: 480px;
    margin: 0 auto !important;
    padding: var(--space-8) !important;
    background: var(--surface) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 12px 32px rgba(16, 35, 49, 0.18) !important;   /* on the navy */
    text-align: left;
}
/* The horizontal logo at the top of the card, as on the sign-in and error pages. */
.vg-account .ui.centered.small.image,
.vg-account .mainBanner img.img-responsive,
.vg-account img.vg-account__logo { display: block; width: auto !important; height: 32px !important; margin: 0 0 var(--space-8) !important; }
.vg-account .four.wide.centered.column { width: 100% !important; padding: 0 !important; }
.vg-account .ui.stacked { margin: var(--space-4) 0; }

/* Fields */
.vg-account .ui.input { width: 100%; }
.vg-account .ui.icon.input > i.icon { color: var(--text-muted); opacity: 1; }
.vg-account input[type="text"],
.vg-account input[type="email"],
.vg-account input[type="password"],
.vg-account .form-control {
    width: 100%;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-sans) !important;
    font-size: 15px;
    color: var(--text);
    background: var(--surface) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
}
.vg-account .ui.icon.input > input { padding-left: var(--space-3) !important; padding-right: 2.6em !important; }   /* Semantic puts the icon on the right */
.vg-account .ui.left.icon.input > input { padding-left: 2.6em !important; padding-right: var(--space-3) !important; }
.vg-account input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring) !important; }
.vg-account label { font-weight: 500; color: var(--text); }

/* Buttons: Semantic and Bootstrap buttons as Vega pills. */
.vg-account .ui.button,
.vg-account .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 var(--space-6) !important;
    font-family: var(--font-sans) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: none !important;
    text-shadow: none;
}
.vg-account .ui.primary.button,
.vg-account .btn-primary {
    width: 100%;
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: var(--on-primary) !important;
}
.vg-account .ui.primary.button:hover,
.vg-account .btn-primary:hover { background: var(--primary-hover) !important; }
.vg-account .ui.default.button,
.vg-account .ui.button:not(.primary),
.vg-account .btn-default {
    background: transparent !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text) !important;
}
.vg-account .ui.button:not(.primary):hover,
.vg-account .btn-default:hover { background: var(--primary-subtle) !important; }
.vg-account .center.aligned.column { text-align: left; padding: 0 !important; }

/* Errors (lblError) and messages. */
.vg-account #lblError:not(:empty) {
    display: block;
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--danger-bg);
    color: var(--text) !important;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
}
.vg-account .ui.message { border-radius: var(--radius-md); box-shadow: none; background: var(--info-bg); color: var(--text); }
.vg-account .ui.divider { border-top-color: var(--border) !important; border-bottom: 0 !important; }

/* Focus and motion follow the design system. */
.vg-account :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vg-login :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .vg-login *, .vg-login *::before, .vg-login *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* Activation (a Bootstrap page): its .container and offset grid columns kept their desktop widths
   inside the card, so the text ran out of it. Inside an account card the grid is one column. */
.vg-account .mainBanner .container,
.vg-account .mainBanner .row { width: auto !important; max-width: 100%; margin: 0 !important; padding: 0 !important; }
.vg-account .mainBanner [class*="col-"] { float: none !important; width: 100% !important; margin-left: 0 !important; padding: 0 !important; }
.vg-account .mainBanner .text-center { text-align: left; }
.vg-account .mainBanner .height500 { height: auto !important; min-height: 0 !important; margin: 0; }
.vg-account .mainBanner h2 { margin: 0 0 var(--space-3); }
.vg-account .mainBanner h3 { margin: 0 0 var(--space-4); font-size: 15px !important; line-height: 22px !important; font-weight: 400 !important; color: var(--text-muted) !important; }
.vg-account .mainBanner label { font-weight: 500; margin: 0; padding: 0; }
@media (max-width: 480px) {
    html[data-theme] body.vg-account { background-image: none !important; padding: var(--space-6) var(--space-4); }
}

