/* External, same-origin styles: compatible with style-src 'self'. */
html[data-vg21-brand="KIHM"] {
  --vg21-primary:#0c3267; --vg21-deep:#102b50; --vg21-hero-end:#174b83;
  --vg21-accent:#ed762b; --vg21-active:#c34b0b; --vg21-onaccent:#fff;
  --vg21-soft:#fff4e9; --vg21-surface:#f5f7fb; --vg21-link:#123e77;
}
html[data-vg21-brand="VCS"] {
  --vg21-primary:#1558c6; --vg21-deep:#15365e; --vg21-hero-end:#1579ab;
  --vg21-accent:#2270ee; --vg21-active:#1c60ce; --vg21-onaccent:#fff;
  --vg21-soft:#edf4ff; --vg21-surface:#f3f7fc; --vg21-link:#1558c6;
}
html[data-vg21-brand] body:not(.auth) { background:var(--vg21-surface)!important; }
html[data-vg21-brand] body:not(.auth) .shell { background:var(--vg21-surface)!important; }
html[data-vg21-brand] body:not(.auth) #sidebar { background:var(--vg21-deep)!important; background-image:none!important; }
html[data-vg21-brand] body:not(.auth) #sidebar nav a { color:#e2ebf8!important; }
html[data-vg21-brand] body:not(.auth) #sidebar nav a.active,
html[data-vg21-brand] body:not(.auth) #sidebar nav a[aria-current="page"] {
  background:var(--vg21-active)!important; color:#fff!important;
  border-color:transparent!important; box-shadow:none!important;
}
html[data-vg21-brand] body:not(.auth) #sidebar nav a:hover:not(.active) { background:#ffffff16!important; }
html[data-vg21-brand] body:not(.auth) #sidebar .navlabel { color:#bdcee6!important; }
html[data-vg21-brand] body:not(.auth) .shell > header { background:var(--vg21-primary)!important; background-image:none!important; }
html[data-vg21-brand] body:not(.auth) .pageheading .eyebrow { color:var(--vg21-primary)!important; }
html[data-vg21-brand] body:not(.auth) .pageheading h1 { color:var(--vg21-deep)!important; }
html[data-vg21-brand] body:not(.auth) :is(.sp-hero,.portalhero,.student-hero,.portal-hero,.vg21-hero) {
  background:linear-gradient(115deg,var(--vg21-primary),var(--vg21-hero-end))!important;
  color:#fff!important; border-left:5px solid var(--vg21-accent)!important;
  border-radius:22px; box-shadow:0 12px 32px #102b5014;
}
html[data-vg21-brand] body:not(.auth) :is(.sp-hero,.portalhero,.student-hero,.portal-hero,.vg21-hero) :is(h1,h2,h3,p,.eyebrow) { color:#fff!important; }
html[data-vg21-brand] body:not(.auth) :is(.sp-hero,.portalhero,.student-hero,.portal-hero,.vg21-hero) .eyebrow { opacity:.86!important; }
html[data-vg21-brand] body:not(.auth) :is(.sp-stats,.pstats) > *,
html[data-vg21-brand] body:not(.auth) :is(.sp-stat,.pstat) { background:#fff!important; border-top:3px solid var(--vg21-accent)!important; }
html[data-vg21-brand] body:not(.auth) :is(.sp-stat,.pstat,.sp-stats) strong { color:var(--vg21-deep)!important; }
html[data-vg21-brand] body:not(.auth) :is(.sp-card,.card) h2 { color:var(--vg21-deep)!important; }
html[data-vg21-brand] body:not(.auth) :is(.quick,.sp-quick) { background:#fff!important; border-color:#dce4ef!important; }
html[data-vg21-brand] body:not(.auth) :is(.quick,.sp-quick) strong { color:var(--vg21-link)!important; }
html[data-vg21-brand] body:not(.auth) .badge { color:var(--vg21-primary)!important; background:var(--vg21-soft)!important; }
/* Keep destructive actions and validation/fee warning colours unchanged. */
html[data-vg21-brand] body:not(.auth) button:not(.ghost):not(.dangerbutton):not(.danger):not(.secondary):not(.vg21-install-button):not(.vg21-dialog-button),
html[data-vg21-brand] body:not(.auth) .button:not(.ghost):not(.danger):not(.secondary) { background:var(--vg21-primary); }
html[data-vg21-brand] #sidebar .brand.vg21-brand-link { display:flex!important; flex-direction:column!important; align-items:flex-start!important; gap:12px!important; padding-top:6px; }
html[data-vg21-brand] #sidebar .vg21-logo-tile { display:flex; align-items:center; justify-content:center; width:100%; max-width:216px; min-height:72px; padding:10px; box-sizing:border-box; background:#fff; border-radius:12px; }
html[data-vg21-brand] #sidebar .vg21-brand-logo { display:block!important; position:static!important; width:100%!important; max-width:196px!important; height:56px!important; object-fit:contain!important; }
html[data-vg21-brand] #sidebar .vg21-brand-name { color:#fff; font-size:20px; font-weight:700; line-height:1.25; }
html[data-vg21-brand] #sidebar .vg21-brand-sub { display:block; color:#c0d3ef; font-size:11px; line-height:1.5; letter-spacing:.08em; text-transform:uppercase; margin-top:6px; }
.vg21-install-button { display:inline-flex!important; align-items:center; justify-content:center; min-height:44px; border-radius:12px; padding:13px 18px; cursor:pointer; font:inherit; font-weight:700; }
html[data-vg21-brand] body .vg21-install-button { background:#fff!important; color:var(--vg21-deep)!important; border:1px solid #d5e1f2!important; box-shadow:none!important; }
.vg21-install-button:disabled { cursor:default; opacity:.8; }
.vg21-install-button:focus-visible,.vg21-dialog-button:focus-visible { outline:3px solid #f5a052; outline-offset:3px; }
.vg21-install-hint { display:block; font-size:12px; line-height:1.45; margin-top:7px; max-width:300px; }
html[data-vg21-brand] :is(.sp-hero,.portalhero,.student-hero,.portal-hero,.vg21-hero) .vg21-install-hint { color:#e8f0ff; }
.vg21-dialog { font-family:inherit; color:#173152; background:#fff; padding:26px; border:1px solid #d9e3ee; border-radius:18px; width:min(520px,calc(100vw - 36px)); max-height:calc(100vh - 60px); box-sizing:border-box; overflow:auto; box-shadow:0 24px 80px #102b5040; }
.vg21-dialog::backdrop { background:#10233d80; }
.vg21-dialog:not([open]) { display:none!important; }
.vg21-dialog h2 { font-size:23px; margin:0 0 12px; line-height:1.3; color:#173152; }
.vg21-dialog p { font-size:14px; line-height:1.6; margin:12px 0; color:#40536c; }
.vg21-dialog .vg21-dialog-instruction { background:#f1f6fd; border-radius:12px; padding:14px; color:#173152; }
.vg21-dialog-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; margin-top:20px; }
.vg21-dialog-button { border:0; border-radius:10px; padding:11px 17px; background:#1558c6!important; color:#fff!important; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.vg21-dialog-button.vg21-close { background:#eaf0f8!important; color:#173152!important; }
.vg21-dialog-button[hidden] { display:none!important; }
.vg21-live { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:600px) {
  .vg21-install-button { max-width:100%; font-size:14px; padding:12px 14px; }
  .vg21-install-hint { font-size:11px; }
  .vg21-dialog { padding:20px; }
}
