/* RAIOT's shared visual identity. Loaded only by the RAIOT brand. */
@font-face {
  font-family: Tajawal;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Tajawal/tajawal-400-ar.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: Tajawal;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Tajawal/tajawal-400-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Tajawal;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Tajawal/tajawal-700-ar.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: Tajawal;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Tajawal/tajawal-700-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Tajawal;
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Tajawal/tajawal-800-ar.woff2") format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: Tajawal;
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Tajawal/tajawal-800-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

.raiot-app, .raiot-auth {
  --raiot-ink: var(--raiot-color-ground, #060b16);
  --raiot-rail: var(--raiot-color-panel, #0a1222);
  --raiot-mint: var(--raiot-color-secondary, #34e0c0);
  --raiot-base: var(--raiot-color-ground, #060b16);
  --raiot-outline: var(--raiot-color-line, #253851);
  --raiot-heading: Tajawal, Tahoma, sans-serif;
  --vg-font-sans: Tajawal, "Segoe UI", Tahoma, sans-serif;
  --raiot-gradient: linear-gradient(100deg, var(--raiot-color-highlight, #9edbff), var(--raiot-color-accent, #4fb8ff) 45%, var(--raiot-color-secondary, #34e0c0));
}

.raiot-app, .raiot-auth { font-family: var(--vg-font-sans); color-scheme: dark; }

.raiot-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--raiot-color-text, #eaf1ff);
  text-decoration: none;
}
.raiot-brand:hover { color: var(--raiot-mint); text-decoration: none; }
.raiot-brand__name {
  font-family: var(--vg-font-sans);
  font-weight: 750;
  font-size: 1.45rem;
  letter-spacing: .09em;
}
.raiot-mark {
  display: block;
  flex: none;
  inline-size: 2.6rem;
  block-size: auto;
  object-fit: contain;
}
.raiot-brand__logo { display: block; inline-size: clamp(8rem, 14vw, 12rem); block-size: auto; }


.raiot-app {
  --vg-primary: var(--raiot-color-accent, #4fb8ff);
  --vg-primary-soft: color-mix(in srgb, var(--raiot-color-accent) 12%, transparent);
  --vg-primary-line: color-mix(in srgb, var(--raiot-color-accent) 38%, transparent);
  --vg-ground: var(--raiot-color-ground, #060b16);
  --vg-panel: var(--raiot-rail);
  --vg-surface: var(--raiot-color-surface, #0d1729);
  --vg-surface-2: var(--raiot-color-raised, #14243b);
  --vg-line: var(--raiot-color-line, #253851);
  --vg-line-soft: var(--raiot-color-line, #17243a);
  --vg-text: var(--raiot-color-text, #eaf1ff);
  --vg-muted: var(--raiot-color-muted, #97a8c7);
  --vg-faint: var(--raiot-color-muted, #8b9dbd);
  --vg-radius: 11px;
  --vg-radius-sm: 7px;
  --vgf-primary: var(--vg-primary);
  --vgf-ring: var(--vg-primary-soft);
  --vgf-surface: var(--vg-surface);
  --vgf-surface-2: var(--vg-ground);
  --vgf-line: var(--vg-line);
  --vgf-line-hi: var(--raiot-color-line-hi, #3a577c);
  --vgf-text: var(--vg-text);
  --vgf-muted: var(--vg-muted);
  --vgf-faint: var(--vg-faint);
  --vgt-primary: var(--vg-primary);
  --vgt-primary-dk: var(--raiot-color-secondary, #34e0c0);
  --vgt-ring: var(--vg-primary-soft);
  --vgt-surface: var(--vg-surface);
  --vgt-recess: var(--vg-ground);
  --vgt-raised: var(--vg-surface-2);
  --vgt-hover: var(--raiot-color-raised, #14243b);
  --vgt-line: var(--vg-line);
  --vgt-line-hi: var(--raiot-color-line-hi, #3a577c);
  --vgt-text: var(--vg-text);
  --vgt-muted: var(--vg-muted);
  --vgt-faint: var(--vg-faint);
  --vgt-info: var(--vg-primary);
  --vgv-surface: var(--vg-surface);
  --vgv-track: var(--vg-surface-2);
  --vgv-line: var(--vg-line);
  --vgv-text: var(--vg-text);
  --vgv-muted: var(--vg-muted);
  --vgv-faint: var(--vg-faint);
  --vgv-accent: var(--vg-primary);
  background: var(--vg-ground);
}

.raiot-app .navbar.fixed-top {
  --vg-surface: var(--raiot-color-panel, #0a1222);
  --vg-surface-2: var(--raiot-color-raised, #14243b);
  --vg-line: var(--raiot-color-line, #253851);
  --vg-muted: var(--raiot-color-muted, #97a8c7);
  --vg-text: var(--raiot-color-text, #eaf1ff);
  --vg-faint: var(--raiot-color-muted, #8b9dbd);
  --vg-primary: var(--raiot-color-accent, #4fb8ff);
  --vg-danger: var(--raiot-color-danger, #ff6b8b);
  background: var(--vg-surface);
  color: var(--vg-text);
  border-color: var(--raiot-color-line, #253851);
}
.raiot-app .vg-head { flex-direction: column-reverse; }
.raiot-app .vg-head__title {
  font: 700 1.125rem/1.2 var(--vg-font-sans);
  letter-spacing: -.03em;
}
.raiot-app .vg-crumbs { letter-spacing: .015em; }
.raiot-app .vg-actions { gap: .4rem; }
.raiot-app .vg-iconbtn,
.raiot-app .vg-profile { border-radius: .55rem; }
.raiot-app .navbar .vg-profile { border-color: var(--vg-line); }
.raiot-app .vg-profile__avatar {
  border: 1px solid var(--raiot-color-line-hi, #36516f);
  border-radius: .4rem;
  background: var(--raiot-color-raised, #14243b);
}
.raiot-app .navbar .vg-menu { box-shadow: 0 18px 36px #02061770; }
.raiot-app .navbar .vg-notif--unread { background: var(--raiot-color-raised, #142641); }
.raiot-app .content-wrapper:not(.raiot-overview) { padding-block-start: 1.5rem; }
.raiot-app .content-wrapper:not(.raiot-overview) .card {
  background-color: var(--vg-surface);
  border: 1px solid var(--vg-line);
  box-shadow: 0 6px 22px #03071255;
}
.raiot-app .content-wrapper .card-title,
.raiot-app .content-wrapper .vgv-cardhead__title { letter-spacing: -.025em; }
.raiot-app .vgfg {
  --vgfg-accent: var(--vg-primary);
  --vgfg-accent-soft: var(--vg-primary-soft);
  --vgfg-accent-line: var(--vg-primary-line);
  --vgfg-line-hi: var(--vg-line);
}
.raiot-app .vg-people .dashboard-card {
  background: var(--vg-surface);
  border-color: var(--vg-line);
}
.raiot-app :is(.vg-people, .vg-people-modal) .btn-primary-custom {
  background: var(--raiot-mint) !important;
  color: var(--raiot-ink) !important;
}
.raiot-app :is(.vg-people, .vg-people-modal) .btn-primary-custom:hover {
  background: var(--raiot-color-highlight, #8ad3ff) !important;
  color: var(--raiot-ink) !important;
}
.raiot-app .vg-btn--primary, .raiot-app .vg-btn--primary[data-loading="true"]::after { color: var(--raiot-ink); }
.raiot-app .content-wrapper a:focus-visible,
.raiot-app .content-wrapper button:focus-visible {
  outline: 2px solid var(--vg-primary);
  outline-offset: 3px;
}
.raiot-app .btn-vg-primary { color: var(--raiot-ink); }
.raiot-app .footer {
  gap: .75rem;
  background: var(--raiot-rail);
  border-block-start-color: var(--raiot-color-line, #253851);
}

.raiot-overview {
  --vg-text: var(--raiot-color-text, #eaf1ff);
  --vg-muted: var(--raiot-color-muted, #97a8c7);
  --vg-faint: var(--raiot-color-muted, #8b9dbd);
  --vg-primary: var(--raiot-color-accent, #4fb8ff);
  --vg-surface: var(--raiot-color-surface, #0d1729);
  --vg-surface-2: var(--raiot-color-raised, #14243b);
  --vg-line: var(--raiot-color-line, #253851);
  --vgf-surface: var(--vg-surface);
  --vgf-text: var(--vg-text);
  --vgf-line: var(--vg-line);
  --vgt-primary: var(--raiot-color-accent, #4fb8ff);
  --vgt-primary-dk: var(--raiot-color-highlight, #69c9ff);
  --vgt-info: var(--raiot-color-highlight, #8ad3ff);
  --vgt-ok: var(--raiot-color-success, #3ddc97);
  --vgt-bad: var(--raiot-color-danger, #ff6b8b);
  --vgt-warn: var(--raiot-color-warning, #e9c68e);
  --vgt-surface: var(--vg-surface);
  --vgt-recess: var(--raiot-color-panel, #0a1222);
  --vgt-raised: var(--vg-surface);
  --vgt-hover: var(--raiot-color-raised, #14243b);
  --vgt-line: var(--raiot-color-line, #253851);
  --vgt-line-hi: var(--raiot-color-line-hi, #3a577c);
  --vgt-text: var(--vg-text);
  --vgt-muted: var(--vg-muted);
  --vgt-faint: var(--vg-faint);
  --vgv-surface: var(--vg-surface);
  --vgv-track: var(--raiot-color-raised, #14243b);
  --vgv-line: var(--raiot-color-line, #253851);
  --vgv-text: var(--vg-text);
  --vgv-muted: var(--vg-muted);
  --vgv-faint: var(--vg-faint);
  --vgv-accent: var(--raiot-color-accent, #4fb8ff);
  --vgv-ok: var(--raiot-color-success, #3ddc97);
  --vgv-bad: var(--raiot-color-danger, #ff6b8b);
  --vgv-warn: var(--raiot-color-warning, #e9c68e);
  background: var(--raiot-base);
  color: var(--vg-text);
  padding-inline: clamp(1rem, 3vw, 3.25rem);
  padding-block: clamp(1rem, 3vw, 2.75rem);
}
.raiot-overview > :is(section, .row) { max-inline-size: 104rem; }
.raiot-overview .card {
  background: var(--vg-surface);
  border: 1px solid var(--raiot-outline);
  border-radius: .72rem;
  box-shadow: 0 5px 20px #02061758;
  color: var(--vg-text);
}
.raiot-overview .card .card-title { color: var(--vg-text); }
.raiot-overview .card .card-body { padding: clamp(.9rem, 1.7vw, 1.5rem); }
.raiot-overview .raiot-overview__metrics .card {
  border-block-start: 3px solid var(--raiot-color-accent, #4fb8ff);
}
.raiot-overview .raiot-overview__metrics .card .vgv-stat__icon {
  background: var(--raiot-color-raised, #142641);
  border-radius: .5rem;
  color: var(--raiot-color-highlight, #8ad3ff);
}
.raiot-overview .raiot-overview__metrics .vgv-stat__value {
  font: 800 clamp(1.7rem, 2.4vw, 2.7rem)/1.1 var(--raiot-heading);
}
.raiot-overview .raiot-overview__metrics .vgv-stat__foot { margin-block-start: .9rem; }
.raiot-app .vgt-scroll:has(.vgt-empty) { container-type: inline-size; }
.raiot-app .vgt-scroll .vgt-empty {
  position: sticky;
  inset-inline-start: var(--vgt-cell-x);
  max-inline-size: calc(100cqw - 2 * var(--vgt-cell-x));
  white-space: normal;
}
.raiot-overview__lead {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  min-block-size: 10rem;
  margin-block-end: 1.5rem;
  padding: clamp(1.15rem, 4vw, 3rem);
  overflow: hidden;
  border-radius: .85rem;
  background: radial-gradient(ellipse at 95% 10%, var(--raiot-color-raised, #1c3a65) 0, var(--raiot-color-surface, #101e35) 56%, var(--raiot-color-panel, #0a1222) 100%);
  color: var(--raiot-color-text, #eaf1ff);
}
.raiot-overview__lead::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 82% 120%, color-mix(in srgb, var(--raiot-color-accent) 15%, transparent) 0 1px, transparent 2px 24px);
  mask-image: linear-gradient(110deg, transparent 3%, #000 100%);
  content: "";
}
.raiot-overview__lead h1 {
  margin: 0;
  font: 800 clamp(2.45rem, 5vw, 4rem)/1.06 var(--raiot-heading);
  letter-spacing: -.05em;
}
[dir="rtl"] .raiot-overview__lead h1 { letter-spacing: 0; }
.raiot-overview__links { display: flex; flex-wrap: wrap; gap: .55rem; }
.raiot-overview__action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .9rem;
  border: 1px solid color-mix(in srgb, var(--raiot-color-highlight) 55%, transparent);
  border-radius: .45rem;
  background: var(--raiot-color-highlight, #8ad3ff);
  color: var(--raiot-color-ground, #060b16);
  font-weight: 650;
  text-decoration: none;
}
.raiot-overview__action:hover { background: #fff; color: var(--raiot-color-ground, #060b16); text-decoration: none; }
.raiot-overview__action:focus-visible { outline-color: white !important; }
.raiot-overview .modal-content {
  --vg-text: var(--raiot-color-text, #eaf1ff);
  --vg-muted: var(--raiot-color-muted, #97a8c7);
  --vg-line: var(--raiot-color-line, #253851);
  --vg-surface: var(--raiot-color-surface, #0d1729);
  --vg-surface-2: var(--raiot-color-raised, #14243b);
  --vgf-surface: var(--vg-surface);
  --vgf-line: var(--vg-line);
  --vgf-text: var(--vg-text);
  color: var(--vg-text);
}

body.raiot-auth, .raiot-auth .vg-auth {
  --vg-ground: var(--raiot-base);
  --vg-surface: var(--raiot-color-surface, #0d1729);
  --vg-surface-2: var(--raiot-color-raised, #14243b);
  --vg-line: var(--raiot-color-line, #253851);
  --vg-text: var(--raiot-color-text, #eaf1ff);
  --vg-muted: var(--raiot-color-muted, #97a8c7);
  --vg-faint: var(--raiot-color-muted, #8b9dbd);
  --vg-primary: var(--raiot-color-accent, #4fb8ff);
  --vg-primary-soft: color-mix(in srgb, var(--raiot-color-accent) 13%, transparent);
  --vg-primary-line: color-mix(in srgb, var(--raiot-color-accent) 44%, transparent);
  --vgf-primary: var(--vg-primary);
  --vgf-ring: var(--vg-primary-soft);
  --vgf-surface: var(--vg-surface);
  --vgf-surface-2: var(--raiot-color-panel, #0a1222);
  --vgf-line: var(--vg-line);
  --vgf-line-hi: var(--raiot-color-line-hi, #3a577c);
  --vgf-text: var(--vg-text);
  --vgf-muted: var(--vg-muted);
  --vgf-faint: var(--vg-faint);
  background: var(--vg-ground);
  color: var(--vg-text);
  font-family: var(--vg-font-sans);
}
.raiot-auth .vg-auth {
  min-height: 100svh;
  padding: clamp(.65rem, 2vw, 1.5rem);
  gap: clamp(.8rem, 2vw, 1.5rem);
}
.raiot-auth__aside {
  isolation: isolate;
  position: relative;
  display: flex;
  flex: 1 1 48%;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  padding: clamp(1.4rem, 5vw, 4.5rem);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 80% 20%, var(--raiot-color-raised, #162e52), var(--raiot-color-raised, #101d34) 60%, var(--raiot-color-panel, #0a1222));
  color: var(--raiot-color-text, #eaf1ff);
}
.raiot-auth__aside > .raiot-brand { align-self: start; }
.raiot-auth__intro { position: relative; }
.raiot-auth__intro h2 {
  max-inline-size: 10ch;
  margin-block: 0 1.1rem;
  font: 800 clamp(2.7rem, 6vw, 5.1rem)/.98 var(--raiot-heading);
  letter-spacing: -.055em;
}
[dir="rtl"] .raiot-auth__intro h2 { letter-spacing: 0; line-height: 1.16; }
.raiot-auth__intro a {
  display: inline-flex;
  gap: .55rem;
  padding-block: .35rem;
  color: var(--raiot-mint);
  text-underline-offset: .22em;
}
.raiot-auth__graphic {
  position: absolute;
  z-index: -1;
  inset: 10% -20% 12% 15%;
  pointer-events: none;
  transform: rotate(-20deg);
}
.raiot-auth__graphic i {
  position: absolute;
  inset: calc(var(--level, 0) * 2.4rem);
  outline: 1px solid color-mix(in srgb, var(--raiot-color-accent) 32%, transparent);
  border-radius: 6rem .6rem 6rem .6rem;
  background: linear-gradient(130deg, color-mix(in srgb, var(--raiot-color-secondary) 4%, transparent), transparent 70%);
}
.raiot-auth__graphic i:nth-child(2) { --level: 1; }
.raiot-auth__graphic i:nth-child(3) { --level: 2; }
.raiot-auth__graphic i:nth-child(4) { --level: 3; }
.raiot-auth .vg-auth__main { background: transparent; flex: 1 1 52%; min-width: 0; }
.raiot-auth .vg-auth__form { max-inline-size: 26rem; }
.raiot-auth .vg-auth__title {
  color: var(--vg-text);
  font: 800 clamp(2.15rem, 4.8vw, 3.75rem)/1.08 var(--raiot-heading);
}
.raiot-auth .vg-auth__topbar { padding-block-start: .75rem; }
.raiot-auth .vg-auth__form :is(.btn-vg-primary, .vg-auth__link) { min-block-size: 2.5rem; }
.raiot-auth .vg-auth__form .btn-vg-primary {
  background: var(--raiot-gradient);
  color: var(--raiot-ink);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--raiot-color-accent) 25%, transparent);
}
.raiot-auth .vg-auth__form .btn-vg-primary:hover { background: var(--raiot-color-highlight, #8ad3ff); color: var(--raiot-ink); }
.raiot-auth .vg-auth__form a,
.raiot-auth .vg-auth__form .vg-auth__link { color: var(--raiot-color-accent, #4fb8ff); }
.raiot-auth .vg-auth__foot { display: flex; justify-content: center; padding-block-end: .6rem; color: var(--vg-faint); }

.raiot-auth .vg-auth--wide .vg-auth__form { max-inline-size: 42rem; }
.raiot-auth .vg-auth--wide .raiot-auth__aside { flex: 0 1 38%; }
.raiot-auth .vg-auth--wide .vg-auth__main { flex-basis: 62%; }
.raiot-auth .vg-feat__bar { background: var(--raiot-rail); border-color: var(--raiot-color-line, #253851); }
.raiot-auth .vg-feat__bar .vg-lang {
  --vg-line: var(--raiot-color-line-hi, #3a577c);
  --vg-muted: var(--raiot-color-muted, #97a8c7);
  --vg-primary: var(--raiot-color-accent, #4fb8ff);
  --vg-surface: var(--raiot-color-raised, #101d34);
}
.raiot-auth .vg-feat__h1 { color: var(--vg-text); font-family: var(--raiot-heading); }
.raiot-auth .vg-feat__h2 { color: var(--vg-text); }
.raiot-auth .vg-feat__btn--primary:hover { background: var(--raiot-color-secondary, #34e0c0); color: var(--raiot-ink); }
.raiot-auth .vg-feat__btn--ghost:hover,
.raiot-auth .vg-feat__chip:hover { color: var(--raiot-mint); }
.raiot-auth .vg-feat__float,
.raiot-auth .vg-feat__float b { color: var(--raiot-color-text, #eaf1ff); }
.raiot-auth .vg-feat__sec + .vg-feat__sec { border-block-start-color: var(--raiot-outline); }
.raiot-auth .vg-feat__item {
  background: var(--vg-surface);
  border-color: var(--raiot-outline);
  color: var(--vg-text);
}
.raiot-auth .vg-feat__item:hover { background: var(--raiot-color-raised, #14243b); border-color: var(--raiot-color-line-hi, #3a577c); }


@media (max-width: 767px) {
  .raiot-auth .vg-auth { flex-direction: column; }
  .raiot-auth__aside, .raiot-auth .vg-auth--wide .raiot-auth__aside { flex: 0 0 auto; gap: 2rem; }
  .raiot-auth__graphic { inset: 10% -12% -48% 42%; }
  .raiot-auth__intro h2 { max-inline-size: none; font-size: 2rem; margin-block-end: .3rem; }
  .raiot-auth .vg-auth__topbar { padding-block-start: .2rem; }
  .raiot-auth .vg-auth__form-wrap { padding-block: 1.1rem; }
}
@media (max-width: 575px) {
  .raiot-overview__lead { align-items: start; flex-direction: column; justify-content: end; }
  .raiot-overview__links { gap: .4rem; }
  .raiot-overview__action { padding: .5rem .65rem; }
  .raiot-overview__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0 0 1rem; }
  .raiot-overview__metrics > div { max-width: none; padding-inline: 0; margin-block: 0; }
  .raiot-overview__metrics .vgv-stat__head { gap: .35rem; }
  .raiot-overview__metrics .vgv-stat__icon { display: none; }
  .raiot-overview__metrics .vgv-stat__foot span { min-width: 0; }
  .raiot-overview__metrics .vgv-stat__foot strong { white-space: nowrap; }
  .raiot-app .vg-people .dashboard-card .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .raiot-app .vg-people .dashboard-card .card-header > .d-flex {
    display: grid !important;
    gap: .5rem;
  }
  .raiot-app .vg-people .dashboard-card .card-header :is(select, input) {
    width: 100% !important;
    min-height: 2.5rem;
  }
  .raiot-app .vg-people .students-table { display: block; }
  .raiot-app .vg-people .students-table thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .raiot-app .vg-people .students-table tbody { display: grid; gap: .65rem; }
  .raiot-app .vg-people .students-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
    padding: .8rem;
    border: 1px solid var(--vg-line);
    border-radius: var(--vg-radius-sm);
  }
  .raiot-app .vg-people .students-table td {
    display: block;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .raiot-app .vg-people .students-table td:is(:first-child, :last-child) { grid-column: 1 / -1; }
  .raiot-app .vg-people .students-table td:last-child { display: flex; flex-wrap: wrap; gap: .3rem; }
  .raiot-app .vg-people .students-table .action-btn {
    justify-content: center;
    min-inline-size: 2rem;
    min-block-size: 2rem;
    margin: 0;
  }
  .raiot-app .vg-actions { gap: .15rem; }
}

/* Global navigation moves from the header to the bottom edge on compact screens. */
.raiot-app {
  --raiot-topbar-height: 3.85rem;
  --raiot-mobile-nav-height: 4.25rem;
  --raiot-gutter: clamp(1rem, 2.5vw, 2.5rem);
}

.raiot-app > .container-scroller { display: block; overflow: clip; }
.raiot-app > .container-scroller > .page-body-wrapper {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  width: 100%;
  transition: none;
}
.raiot-app .main-panel {
  min-block-size: 0;
  margin: 0;
  padding-block-start: 0;
  flex: 1 0 auto;
}
.raiot-app .raiot-topbar.fixed-top {
  position: sticky;
  inset: 0 0 auto;
  width: 100%;
  z-index: 1030;
}
.raiot-app .raiot-topbar .navbar-menu-wrapper {
  background: transparent;
  margin-inline: auto;
  min-inline-size: 0;
  width: 100%;
  height: var(--raiot-topbar-height);
  padding-inline: var(--raiot-gutter);
}
.raiot-topbar .raiot-brand { flex: 0 0 auto; }
.raiot-topbar__space { flex: 1 1 auto; }

.raiot-navigation {
  position: relative;
  display: flex;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  min-inline-size: 0;
  padding: .42rem var(--raiot-gutter);
  background: var(--raiot-color-surface, #0d1729);
  border-block-start: 1px solid var(--raiot-outline);
}
.raiot-navigation__section { min-inline-size: 0; }
.raiot-navigation__tab {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-block-size: 2.65rem;
  padding: .38rem .95rem;
  list-style: none;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: transparent;
  color: var(--vg-muted);
  cursor: pointer;
  font: 700 .95rem/1.08 var(--vg-font-sans);
  text-align: center;
  text-decoration: none;
}
.raiot-navigation__tab::marker { content: ""; }
.raiot-navigation__tab::-webkit-details-marker { display: none; }
.raiot-navigation__tab .mdi { font-size: 1.15rem; }
.raiot-navigation__tab .raiot-navigation__chevron { font-size: .92rem; }
.raiot-navigation__tab:hover,
.raiot-navigation__section[open] > .raiot-navigation__tab,
.raiot-navigation__section.is-current > .raiot-navigation__tab,
.raiot-navigation__tab.is-current {
  background: var(--raiot-color-raised, #172b46);
  border-color: var(--raiot-color-line-hi, #346083);
  color: var(--vg-text);
  text-decoration: none;
}
.raiot-navigation__section[open] > .raiot-navigation__tab .raiot-navigation__chevron { transform: rotate(180deg); }
.raiot-navigation :is(summary, a):focus-visible {
  outline: 2px solid var(--raiot-mint);
  outline-offset: 2px;
}
.raiot-navigation__flyout {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% + .42rem);
  inset-inline: 0;
  margin-inline: auto;
  inline-size: min(calc(100% - 2 * var(--raiot-gutter)), 58rem);
  max-block-size: min(68dvh, 36rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  border: 1px solid var(--raiot-color-line-hi, #365579);
  border-radius: .85rem;
  background: var(--raiot-color-surface, #0d1729);
  box-shadow: 0 .9rem 2.7rem #020617d9;
}
.raiot-navigation__title {
  margin: 0 0 .63rem;
  padding: 0 .25rem .55rem;
  border-block-end: 1px solid var(--raiot-outline);
  color: var(--vg-text);
  font: 800 1.3rem/1.16 var(--vg-font-sans);
}
.raiot-navigation__destinations,
.raiot-navigation__children {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .42rem;
}
.raiot-navigation__group {
  grid-column: 1 / -1;
  padding: .62rem;
  border: 1px solid var(--raiot-outline);
  border-radius: .6rem;
}
.raiot-navigation__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .4rem;
  color: var(--vg-muted);
  font: 700 .87rem/1.2 var(--vg-font-sans);
}
.raiot-navigation__link {
  display: flex;
  align-items: center;
  gap: .56rem;
  min-block-size: 2.75rem;
  min-inline-size: 0;
  padding: .51rem .65rem;
  overflow-wrap: anywhere;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: var(--raiot-color-panel, #111f34);
  color: var(--vg-text);
  font: 700 .9rem/1.18 var(--vg-font-sans);
}
.raiot-navigation__link .mdi { font-size: 1.1rem; color: var(--raiot-color-highlight, #8acfff); }
.raiot-navigation__link:hover,
.raiot-navigation__link.is-current {
  background: var(--raiot-color-raised, #172b46);
  border-color: var(--raiot-color-line-hi, #47749d);
  color: #fff;
  text-decoration: none;
}
.raiot-navigation__link.is-current .mdi { color: var(--raiot-mint); }

.raiot-app .raiot-page-heading {
  flex: 0 0 auto;
  align-items: start;
  gap: .42rem;
  padding: clamp(.8rem, 2.5vw, 1.45rem) var(--raiot-gutter) .65rem;
}
.raiot-app .raiot-page-heading .vg-head__title {
  font: 800 clamp(1.55rem, 3vw, 2.3rem)/1.15 var(--vg-font-sans);
  white-space: normal;
  letter-spacing: normal;
}
.raiot-app .raiot-page-heading .vg-crumbs { display: flex; flex-wrap: wrap; }

@media (max-width: 767px) {
  .raiot-app > .container-scroller > .page-body-wrapper {
    padding-block-end: calc(var(--raiot-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
  }
  .raiot-app .raiot-topbar .navbar-menu-wrapper { gap: .32rem; }
  .raiot-topbar .vg-actions :is(.vg-iconbtn, .vg-profile) { min-block-size: 2.75rem; min-inline-size: 2.75rem; }
  .raiot-navigation {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: .16rem;
    min-block-size: calc(var(--raiot-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom, 0px));
  }
  .raiot-navigation__tab {
    flex-direction: column;
    justify-content: center;
    gap: .15rem;
    block-size: 100%;
    min-block-size: 3.5rem;
    padding: .22rem .05rem;
    font-size: clamp(.65rem, 2.4vw, .83rem);
    overflow-wrap: anywhere;
  }
  .raiot-navigation__tab .mdi { font-size: 1.3rem; }
  .raiot-navigation__tab .raiot-navigation__chevron { display: none; }
  .raiot-navigation__flyout {
    inset-block: auto calc(100% + .3rem);
    inline-size: calc(100% - .7rem);
    max-block-size: min(70dvh, 34rem);
    padding: .72rem;
  }
  .raiot-navigation__destinations,
  .raiot-navigation__children { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raiot-app .vgtour-offer {
    inset-block-end: calc(var(--raiot-mobile-nav-height) + env(safe-area-inset-bottom, 0px) + .7rem);
  }
}
@media (max-width: 359px) {
  .raiot-topbar .raiot-brand__name { display: none; }
}
