/* ============================================================
   VETERANS BACKBONE CORE
   MASTER APPLICATION STYLESHEET

   One stylesheet.
   No override lasagne.
   No beige behaviour.
   Steve is supervised.
   ============================================================ */


/* ============================================================
   1. DESIGN SYSTEM
   ============================================================ */

:root {
  --sidebar-width: 285px;

  --navy: #08172d;
  --navy-deep: #050e1b;
  --ink: #0b1729;

  --pink: #ff1478;
  --orange: #ff7a18;
  --yellow: #ffc928;
  --green: #34c77b;
  --blue: #2388ff;
  --purple: #8a3ffc;
  --raspberry: #d93664;
  --red: #c83c50;

  --pink-soft: rgba(255, 20, 120, 0.09);
  --orange-soft: rgba(255, 122, 24, 0.10);
  --yellow-soft: rgba(255, 201, 40, 0.18);
  --green-soft: rgba(52, 199, 123, 0.12);
  --blue-soft: rgba(35, 136, 255, 0.09);
  --purple-soft: rgba(138, 63, 252, 0.09);
  --red-soft: rgba(200, 60, 80, 0.10);

  --background: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.89);
  --surface-solid: #ffffff;

  --border: #e1e6ec;
  --border-dark: #d3dae3;

  --text: #182230;
  --muted: #687586;
  --light-text: #929eae;

  --radius: 13px;
  --radius-small: 9px;

  --shadow:
    0 8px 25px rgba(15, 30, 50, 0.075);

  --shadow-hover:
    0 13px 32px rgba(15, 30, 50, 0.12);

  --rainbow:
    linear-gradient(
      90deg,
      #ff1478 0%,
      #ff7a18 18%,
      #ffc928 35%,
      #34c77b 53%,
      #2388ff 72%,
      #8a3ffc 88%,
      #f027c8 100%
    );
}


/* ============================================================
   2. RESET
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: var(--background);
  color: var(--text);

  line-height: 1.5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--pink);
  color: white;
}


/* ============================================================
   3. APPLICATION SHELL
   ============================================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.main-content {
  position: relative;
  isolation: isolate;

  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;

  margin-left: var(--sidebar-width);

  padding:
    0
    48px
    34px;

  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(255, 20, 120, 0.09),
      transparent 24%
    ),
    radial-gradient(
      circle at 57% 92%,
      rgba(35, 136, 255, 0.06),
      transparent 30%
    ),
    #fbfaf7;
}


/* Rainbow strip */

.main-content::before {
  content: "";

  position: fixed;

  top: 0;
  left: var(--sidebar-width);
  right: 0;

  height: 6px;

  z-index: 100;

  background: var(--rainbow);

  box-shadow:
    0 2px 12px rgba(138, 63, 252, 0.18);
}


/* Steve watermark */

.main-content::after {
  content: "";

  position: fixed;

  right: -40px;
  bottom: -60px;

  width: min(45vw, 760px);
  height: 92vh;

  z-index: -1;

  background-image:
    url("../../images/watermark.png");

  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;

  opacity: 0.14;

  filter:
    saturate(105%)
    contrast(92%);

  pointer-events: none;
}


/* ============================================================
   4. SIDEBAR
   ============================================================ */

.sidebar {
  position: fixed;

  top: 0;
  bottom: 0;
  left: 0;

  z-index: 50;

  width: var(--sidebar-width);
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  color: white;

  background:
    radial-gradient(
      ellipse at -10% 15%,
      rgba(20, 100, 255, 0.65),
      transparent 25%
    ),
    radial-gradient(
      ellipse at 115% 65%,
      rgba(255, 20, 120, 0.48),
      transparent 24%
    ),
    radial-gradient(
      ellipse at 30% 95%,
      rgba(138, 63, 252, 0.28),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #08172d 0%,
      #071425 45%,
      #050e1b 100%
    );

  border-right:
    1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    8px 0 25px rgba(8, 23, 45, 0.10);
}

.sidebar::after {
  content: "";

  position: absolute;

  top: 0;
  right: -1px;
  bottom: 0;

  width: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 20, 120, 0.7),
      rgba(35, 136, 255, 0.45) 20%,
      rgba(255, 122, 24, 0.5) 44%,
      rgba(240, 39, 200, 0.55) 67%,
      rgba(138, 63, 252, 0.45)
    );

  opacity: 0.48;

  filter: blur(7px);

  transform: skewY(-4deg);

  pointer-events: none;
}


/* ============================================================
   5. BRAND
   ============================================================ */

.brand {
  position: relative;

  min-height: 190px;

  padding:
    28px
    26px
    25px;

  display: block;

  overflow: visible;
}

.brand::before {
  content: "";

  position: absolute;

  left: -40px;
  top: -25px;

  width: 240px;
  height: 160px;

  background:
    radial-gradient(
      ellipse,
      rgba(0, 91, 255, 0.45),
      rgba(0, 91, 255, 0.12) 48%,
      transparent 70%
    );

  transform: rotate(-13deg);

  filter: blur(4px);

  pointer-events: none;
}

.brand-mark {
  position: relative;
  z-index: 2;

  width: 150px;
  height: 95px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  margin: 0;
  padding: 0;

  background-image:
    url("../../images/vblogo.png");

  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;

  border: 0;

  color: transparent;
  font-size: 0;

  filter:
    drop-shadow(
      3px 4px 5px rgba(0, 0, 0, 0.16)
    );
}

/* Old generated VB removed */
.brand-mark::before {
  content: none;
}
.brand-text {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;

  margin-top: 16px;
}

.brand-text strong {
  color: white;

  font-size: 19px;
  font-weight: 950;

  line-height: 1;

  letter-spacing: -0.4px;

  text-transform: uppercase;
}

.brand-text span {
  margin-top: 5px;

  color: #ff2a88;

  font-size: 24px;
  font-weight: 1000;

  line-height: 1;

  text-transform: uppercase;

  transform: rotate(-2deg);
  transform-origin: left center;
}


/* ============================================================
   6. NAVIGATION
   ============================================================ */

.main-nav {
  position: relative;
  z-index: 2;

  flex: 1;

  padding:
    0
    18px
    25px;

  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color:
    rgba(255, 255, 255, 0.16)
    transparent;
}

.nav-label {
  margin:
    19px
    13px
    9px;

  color: #8d9bb1;

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.nav-item {
  position: relative;

  min-height: 48px;

  display: flex;
  align-items: center;

  gap: 11px;

  margin-bottom: 2px;

  padding:
    10px
    15px;

  border-radius: 9px;

  color: #f0f3f7;

  text-decoration: none;

  font-size: 15px;
  font-weight: 650;

  transition:
    background 0.17s ease,
    color 0.17s ease,
    transform 0.17s ease;
}

.nav-item::before {
  content: "";

  position: absolute;

  top: 8px;
  bottom: 8px;
  left: 0;

  width: 4px;

  border-radius:
    0
    5px
    5px
    0;

  background: transparent;
}

.nav-item:hover {
  background:
    rgba(255, 255, 255, 0.075);

  color: white;

  transform: translateX(2px);
}

.nav-item.active {
  background: white;

  color: #121c2c;

  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.17);
}

.nav-item.active::before {
  top: 0;
  bottom: 0;

  width: 5px;

  background: var(--pink);
}

.nav-icon {
  width: 25px;

  color: #ff2b88;

  text-align: center;

  font-size: 20px;
}

.nav-item.active .nav-icon {
  color: var(--pink);
}

.nav-count {
  min-width: 25px;

  margin-left: auto;

  padding:
    2px
    7px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.12);

  color: white;

  text-align: center;

  font-size: 10px;
  font-weight: 900;
}

.nav-item.active .nav-count {
  background: var(--pink-soft);
  color: var(--pink);
}

.nav-count.warning {
  background: var(--orange);
  color: white;
}


/* ============================================================
   7. SIDEBAR FOOTER
   ============================================================ */

.sidebar-footer {
  position: relative;
  z-index: 2;

  padding:
    16px
    18px
    20px;
}

.system-status {
  display: flex;
  align-items: center;

  gap: 11px;

  padding: 13px;

  border:
    1px solid rgba(255, 255, 255, 0.05);

  border-radius: 10px;

  background:
    linear-gradient(
      110deg,
      rgba(18, 39, 65, 0.95),
      rgba(255, 70, 70, 0.16)
    );

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15);
}

.status-dot {
  width: 9px;
  height: 9px;

  flex: 0 0 9px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 0 4px rgba(52, 199, 123, 0.13),
    0 0 12px rgba(52, 199, 123, 0.32);
}

.system-status div {
  display: flex;
  flex-direction: column;
}

.system-status strong {
  font-size: 11px;
}

.system-status span {
  color: #8496ad;

  font-size: 10px;
}

/* ============================================================
   CORE SIGN OUT
   ============================================================ */

.core-sign-out {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);

  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;

  cursor: pointer;

  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.core-sign-out:hover,
.core-sign-out:focus-visible {
  background: rgba(255, 20, 120, 0.14);
  border-color: rgba(255, 20, 120, 0.5);
  color: #ffffff;
}

.core-sign-out:active {
  transform: translateY(1px);
}

.core-sign-out:focus-visible {
  outline: 2px solid #ff1478;
  outline-offset: 2px;
}

.core-sign-out:disabled {
  opacity: 0.55;
  cursor: wait;
}

.core-sign-out-icon {
  color: #ff1478;
  font-size: 1rem;
  line-height: 1;
}


/* ============================================================
   8. TOP BAR
   ============================================================ */

.topbar {
  position: relative;

  min-height: 130px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  border-bottom:
    1px solid var(--border);
}

.topbar > div:first-child {
  position: relative;
}

.eyebrow {
  margin:
    0
    0
    4px;

  color: #53627a;

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.topbar h1 {
  position: relative;

  display: inline-block;

  margin:
    4px
    0
    0;

  color: var(--ink);

  font-family:
    "Trebuchet MS",
    "Segoe UI",
    sans-serif;

  font-size: 43px;
  font-weight: 1000;

  line-height: 1;

  letter-spacing: -2px;

  font-style: italic;

  transform: rotate(-1deg);
  transform-origin: left center;
}

.topbar h1::after {
  content: "";

  display: block;

  width: 190px;
  height: 5px;

  margin-top: 10px;

  border-radius: 99px;

  background: var(--rainbow);

  transform: rotate(-2deg);
}

.topbar > div:first-child::after {
  content: "SUPPORT WITHOUT CONTROL   ♡";

  position: absolute;

  top: 16px;
  left: 370px;

  width: 430px;

  color:
    rgba(138, 63, 252, 0.065);

  font-size: 26px;
  font-weight: 950;

  font-style: italic;

  transform: rotate(-7deg);

  pointer-events: none;
}

.topbar-actions {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;

  gap: 18px;
}

.search-button {
  min-width: 245px;

  padding:
    14px
    18px;

  border:
    1px solid var(--border);

  border-radius: 11px;

  background:
    rgba(255, 255, 255, 0.88);

  color: var(--muted);

  text-align: left;

  box-shadow:
    0 5px 18px rgba(11, 23, 41, 0.05);

  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.search-button:hover {
  border-color:
    rgba(255, 20, 120, 0.30);

  box-shadow:
    0 6px 18px rgba(11, 23, 41, 0.09);
}

.staff-profile {
  display: flex;
  align-items: center;

  gap: 10px;
}

.staff-avatar {
  width: 47px;
  height: 47px;

  display: grid;
  place-items: center;

  border:
    2px solid rgba(255, 255, 255, 0.85);

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--pink),
      var(--purple)
    );

  color: white;

  font-size: 14px;
  font-weight: 900;

  box-shadow:
    0 5px 16px rgba(138, 63, 252, 0.25);
}

.staff-profile > div:last-child {
  display: flex;
  flex-direction: column;
}

.staff-profile strong {
  font-size: 14px;
}

.staff-profile span {
  color: var(--muted);

  font-size: 12px;
}


/* ============================================================
   9. DEVELOPMENT NOTICE
   ============================================================ */

.dev-notice {
  position: relative;

  min-height: 43px;

  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 0;

  padding:
    10px
    16px;

  overflow: hidden;

  border:
    1px solid rgba(35, 136, 255, 0.45);

  border-radius: 7px;

  background:
    rgba(255, 255, 255, 0.48);

  color: #315c92;

  font-size: 12px;

  box-shadow:
    0 4px 15px rgba(35, 136, 255, 0.04);
}

.dev-notice::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 4px;

  background:
    linear-gradient(
      180deg,
      var(--blue),
      var(--purple),
      var(--pink)
    );
}

.dev-notice strong {
  color: #244d81;
}


/* ============================================================
   10. SHARED PAGE INTRO / HERO
   ============================================================ */

.page-intro,
.veterans-intro,
.workspace-intro,
.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;

  padding:
    32px
    0
    23px;
}

.page-intro h2,
.veterans-intro h2,
.workspace-intro h2,
.page-hero h2 {
  margin: 0;

  color: var(--ink);

  font-size: 28px;
  font-weight: 950;

  letter-spacing: -1px;
}

.page-intro p:not(.eyebrow),
.veterans-intro p:not(.eyebrow),
.workspace-intro p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 700px;

  margin:
    7px
    0
    0;

  color: var(--muted);

  font-size: 13px;
}


/* ============================================================
   11. BUTTONS
   ============================================================ */

.primary-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding:
    11px
    17px;

  border: 0;

  border-radius: 9px;

  background:
    linear-gradient(
      100deg,
      var(--pink),
      var(--orange)
    );

  color: white;

  text-decoration: none;

  font-size: 12px;
  font-weight: 850;

  box-shadow:
    0 6px 18px rgba(255, 20, 120, 0.24);

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.primary-button:hover,
.action-button:hover {
  transform:
    translateY(-2px)
    rotate(-0.4deg);

  box-shadow:
    0 9px 23px rgba(255, 20, 120, 0.30);
}

.secondary-button,
.row-button,
.open-record-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding:
    8px
    12px;

  border:
    1px solid rgba(255, 20, 120, 0.45);

  border-radius: 8px;

  background:
    rgba(255, 255, 255, 0.82);

  color: var(--pink);

  text-decoration: none;

  font-size: 10px;
  font-weight: 850;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.secondary-button:hover,
.row-button:hover,
.open-record-button:hover {
  transform: translateY(-1px);

  border-color: var(--pink);

  box-shadow:
    0 5px 14px rgba(255, 20, 120, 0.12);
}

.text-button,
.text-link {
  padding: 5px;

  border: 0;

  background: transparent;

  color: var(--pink);

  text-decoration: none;

  font-size: 11px;
  font-weight: 800;
}

.text-button:hover,
.text-link:hover {
  text-decoration: underline;
}


/* ============================================================
   12. PRINCIPLE / PHILOSOPHY BARS
   ============================================================ */

.principle-bar,
.principle-notice,
.human-first-notice,
.human-decision-notice,
.recording-standard,
.identity-notice,
.restricted-notice,
.info-notice {
  position: relative;

  margin:
    18px
    0;

  padding:
    16px
    18px
    16px
    21px;

  overflow: hidden;

  border:
    1px solid rgba(138, 63, 252, 0.14);

  border-radius: 11px;

  background:
    linear-gradient(
      90deg,
      rgba(138, 63, 252, 0.055),
      rgba(35, 136, 255, 0.04),
      rgba(255, 255, 255, 0.62)
    );

  box-shadow:
    0 5px 17px rgba(15, 30, 50, 0.04);
}

.principle-bar::before,
.principle-notice::before,
.human-first-notice::before,
.human-decision-notice::before,
.recording-standard::before,
.identity-notice::before,
.info-notice::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 5px;

  background: var(--rainbow);
}

.principle-bar strong,
.principle-notice strong,
.human-first-notice strong,
.human-decision-notice strong,
.recording-standard strong,
.identity-notice strong,
.restricted-notice strong,
.info-notice strong {
  color: var(--ink);

  font-size: 12px;
}

.principle-bar p,
.principle-notice p,
.human-first-notice p,
.human-decision-notice p,
.recording-standard p,
.identity-notice p,
.restricted-notice p,
.info-notice p {
  margin:
    4px
    0
    0;

  color: var(--muted);

  font-size: 11px;
}


/* ============================================================
   13. SECTION HEADINGS
   ============================================================ */

.dashboard-section,
.workspace-section,
.page-section {
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 22px;
}

.section-heading h2,
.panel-header h2 {
  margin: 0;

  color: var(--ink);

  font-weight: 950;
}

.section-heading h2 {
  position: relative;

  display: inline-block;

  font-size: 25px;

  letter-spacing: -0.8px;
}

.section-heading h2::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -9px;

  width: 52px;
  height: 4px;

  border-radius: 99px;

  background: var(--rainbow);
}

.section-note {
  margin: 0;

  color: var(--muted);

  font-size: 12px;
}


/* ============================================================
   14. STAT CARDS
   ============================================================ */

.stat-grid,
.summary-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 20px;
}

.stat-card {
  position: relative;

  min-height: 130px;

  display: grid;

  grid-template-columns:
    auto 1fr;

  gap:
    7px
    13px;

  align-items: center;

  padding:
    20px
    21px;

  overflow: hidden;

  border:
    1px solid rgba(15, 30, 50, 0.07);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow);

  backdrop-filter: blur(3px);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.stat-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 5px;

  background: var(--rainbow);
}

.stat-card:nth-child(1)::before {
  background:
    linear-gradient(
      90deg,
      var(--pink),
      #ff6d9f
    );
}

.stat-card:nth-child(2)::before {
  background:
    linear-gradient(
      90deg,
      var(--yellow),
      var(--orange)
    );
}

.stat-card:nth-child(3)::before {
  background:
    linear-gradient(
      90deg,
      var(--orange),
      var(--pink)
    );
}

.stat-card:nth-child(4)::before {
  background:
    linear-gradient(
      90deg,
      var(--blue),
      var(--purple)
    );
}

.stat-card:hover {
  transform:
    translateY(-4px)
    rotate(-0.15deg);

  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 47px;
  height: 47px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-size: 22px;
  font-weight: 900;
}

.stat-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.stat-icon.amber,
.stat-icon.yellow {
  background: var(--yellow-soft);
  color: #b47600;
}

.stat-icon.green {
  background: var(--green-soft);
  color: #16814b;
}

.stat-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.stat-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.stat-icon.pink {
  background: var(--pink-soft);
  color: var(--pink);
}

.stat-number {
  color: var(--ink);

  font-size: 31px;
  font-weight: 950;

  line-height: 1;
}

.stat-label {
  margin-top: 4px;

  color: var(--muted);

  font-size: 13px;
}

.stat-detail {
  grid-column: 1 / -1;

  padding-top: 7px;

  border-top:
    1px solid #edf0f4;

  color: var(--muted);

  font-size: 11px;
}


/* ============================================================
   15. MINI STATS
   ============================================================ */

.veteran-summary-grid,
.mini-stat-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;

  margin-top: 17px;
}

.mini-stat {
  position: relative;

  min-height: 76px;

  display: flex;
  align-items: center;

  gap: 13px;

  padding:
    13px
    16px;

  overflow: hidden;

  border:
    1px solid rgba(15, 30, 50, 0.07);

  border-radius: 11px;

  background:
    rgba(255, 255, 255, 0.86);

  box-shadow:
    0 5px 16px rgba(15, 30, 50, 0.05);
}

.mini-stat::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 5px;

  background: var(--pink);
}

.mini-stat.blue::before {
  background: var(--blue);
}

.mini-stat.orange::before {
  background: var(--orange);
}

.mini-stat.green::before {
  background: var(--green);
}

.mini-stat.purple::before {
  background: var(--purple);
}

.mini-stat.yellow::before {
  background: var(--yellow);
}

.mini-stat-number {
  min-width: 46px;

  color: var(--ink);

  font-size: 27px;
  font-weight: 950;
}

.mini-stat > div {
  display: flex;
  flex-direction: column;
}

.mini-stat strong {
  color: var(--ink);

  font-size: 12px;
}

.mini-stat div span {
  color: var(--muted);

  font-size: 10px;
}


/* ============================================================
   16. GENERIC PANELS / GRIDS
   ============================================================ */

.dashboard-grid,
.content-grid,
.workspace-grid,
.two-column-grid,
.detail-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;

  margin-top: 20px;
}

.panel,
.content-panel,
.workspace-panel,
.detail-card,
.info-card,
.action-card,
.queue-card,
.programme-card,
.partner-card,
.workforce-card,
.governance-card,
.policy-card,
.report-card {
  position: relative;

  border:
    1px solid rgba(15, 30, 50, 0.07);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow);

  backdrop-filter: blur(3px);

  overflow: hidden;
}

.panel {
  border-top:
    4px solid transparent;

  border-image:
    var(--rainbow) 1;
}

.wide-panel,
.full-width {
  grid-column: 1 / -1;
}

.panel-header,
.card-header {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding:
    18px
    22px;

  border-bottom:
    1px solid #edf0f4;
}

.panel-header h2 {
  font-family:
    "Trebuchet MS",
    "Segoe UI",
    sans-serif;

  font-size: 24px;
  font-weight: 950;

  font-style: italic;

  letter-spacing: -0.8px;
}

.panel-body,
.card-body {
  padding:
    20px
    22px;
}


/* ============================================================
   17. FILTER / SEARCH PANELS
   ============================================================ */

.veteran-search-panel,
.filter-panel,
.filters,
.search-filter-panel,
.workspace-filters {
  display: grid;

  grid-template-columns:
    minmax(280px, 2fr)
    repeat(3, minmax(140px, 0.7fr));

  gap: 14px;

  padding: 18px;

  border:
    1px solid rgba(15, 30, 50, 0.08);

  border-top:
    4px solid transparent;

  border-image:
    var(--rainbow) 1;

  background:
    rgba(255, 255, 255, 0.88);

  box-shadow:
    0 8px 24px rgba(15, 30, 50, 0.07);
}

.veteran-search-main,
.search-field,
.filter-field {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.veteran-search-main label,
.search-field label,
.filter-field label,
.filter-panel label,
.filters label {
  color: #59687b;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.7px;

  text-transform: uppercase;
}

.veteran-search-box,
.search-box {
  position: relative;
}

.search-symbol {
  position: absolute;

  left: 14px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--pink);

  font-size: 20px;
  font-weight: 900;

  pointer-events: none;
}

input,
select,
textarea {
  border:
    1px solid #dbe1e8;

  border-radius: 9px;

  background:
    rgba(255, 255, 255, 0.95);

  color: var(--ink);

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input,
select {
  min-height: 44px;

  padding:
    0
    12px;
}

textarea {
  min-height: 120px;

  padding: 12px;

  resize: vertical;
}

.veteran-search-box input,
.search-box input {
  width: 100%;

  padding-left: 43px;
}

input:focus,
select:focus,
textarea:focus {
  border-color:
    rgba(255, 20, 120, 0.55);

  box-shadow:
    0 0 0 3px rgba(255, 20, 120, 0.08);
}


/* ============================================================
   18. TABLES
   ============================================================ */

.table-wrap {
  width: 100%;

  overflow-x: auto;

  background:
    rgba(255, 255, 255, 0.68);
}

table {
  width: 100%;

  border-collapse: collapse;
}

th {
  padding:
    12px
    22px;

  background:
    linear-gradient(
      90deg,
      rgba(35, 136, 255, 0.045),
      rgba(138, 63, 252, 0.035)
    );

  color: var(--muted);

  text-align: left;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.55px;

  text-transform: uppercase;
}

td {
  padding:
    14px
    22px;

  border-top:
    1px solid #edf0f4;

  color: var(--muted);

  font-size: 12px;
}

td strong {
  color: var(--ink);
}

tbody tr {
  transition:
    background 0.15s ease;
}

tbody tr:hover {
  background:
    linear-gradient(
      90deg,
      rgba(35, 136, 255, 0.055),
      rgba(255, 20, 120, 0.035),
      transparent
    );
}


/* ============================================================
   19. STATUS / TAGS / BADGES
   ============================================================ */

.tag,
.badge,
.status-pill,
.signal {
  display: inline-block;

  padding:
    4px
    8px;

  border-radius: 999px;

  background: #eef1f5;

  color: #677484;

  white-space: nowrap;

  font-size: 9px;
  font-weight: 850;

  letter-spacing: 0.15px;
}

.status-pill.active,
.tag.active,
.badge.active,
.tag.success,
.badge.success {
  background: var(--green-soft);
  color: #16814b;
}

.status-pill.review,
.tag.review,
.badge.review,
.tag.warning,
.badge.warning {
  background: var(--yellow-soft);
  color: #986500;
}

.tag.urgent,
.badge.urgent,
.status-pill.urgent,
.status-pill.restricted {
  background: var(--red-soft);
  color: var(--red);
}

.tag.action,
.badge.action,
.tag.info,
.badge.info {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.purple,
.badge.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.tag.pink,
.badge.pink {
  background: var(--pink-soft);
  color: var(--pink);
}

.tag.orange,
.badge.orange {
  background: var(--orange-soft);
  color: var(--orange);
}


/* ============================================================
   20. TASKS / ATTENTION CARDS
   ============================================================ */

.task-list,
.attention-list,
.activity-list {
  padding:
    6px
    22px
    14px;
}

.task-item,
.attention-item,
.activity-item,
.queue-item {
  position: relative;

  display: flex;

  padding:
    16px
    0;

  border-bottom:
    1px solid #edf0f4;

  transition:
    background 0.15s ease,
    padding-left 0.15s ease;
}

.task-item:last-child,
.attention-item:last-child,
.activity-item:last-child,
.queue-item:last-child {
  border-bottom: 0;
}

.task-item:hover,
.attention-item:hover,
.queue-item:hover {
  padding-left: 5px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 20, 120, 0.035),
      transparent
    );
}

.priority-bar {
  width: 6px;

  flex: 0 0 6px;

  margin-right: 18px;

  border-radius: 99px;

  background: var(--blue);
}

.priority-bar.urgent {
  background:
    linear-gradient(
      180deg,
      var(--pink),
      var(--raspberry)
    );
}

.priority-bar.warning {
  background:
    linear-gradient(
      180deg,
      var(--yellow),
      var(--orange)
    );
}

.priority-bar.normal {
  background:
    linear-gradient(
      180deg,
      var(--blue),
      var(--purple)
    );
}

.task-content,
.attention-content {
  flex: 1;
}

.task-topline,
.attention-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.task-topline strong,
.attention-topline strong {
  color: var(--ink);

  font-size: 14px;
}

.task-content p,
.attention-content p {
  margin:
    4px
    0
    2px;

  color: var(--muted);

  font-size: 12px;
}

.task-meta,
.item-meta {
  color: var(--light-text);

  font-size: 10px;
}


/* ============================================================
   21. ASSURANCE
   ============================================================ */

.assurance-panel {
  border-top:
    4px solid var(--yellow);
}

.assurance-message,
.assurance-notice {
  display: flex;

  gap: 12px;

  margin:
    17px
    22px
    5px;

  padding: 16px;

  border:
    1px solid rgba(255, 166, 50, 0.40);

  border-radius: 11px;

  background:
    linear-gradient(
      105deg,
      rgba(255, 201, 40, 0.18),
      rgba(255, 122, 24, 0.09),
      rgba(255, 255, 255, 0.52)
    );
}

.assurance-symbol {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--yellow),
      var(--orange)
    );

  color: white;

  font-size: 19px;
  font-weight: 900;

  box-shadow:
    0 5px 14px rgba(255, 122, 24, 0.25);
}

.assurance-message strong,
.assurance-notice strong {
  color: #835500;

  font-size: 13px;
}

.assurance-message p,
.assurance-notice p {
  margin:
    3px
    0
    0;

  color: #82652e;

  font-size: 11px;
}

.assurance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin:
    0
    22px;

  padding:
    15px
    0;

  border-bottom:
    1px solid #edf0f4;
}

.assurance-item:last-child {
  border-bottom: 0;
}

.assurance-item h3 {
  margin:
    5px
    0
    2px;

  color: var(--ink);

  font-size: 13px;
}

.assurance-item p {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
}


/* ============================================================
   22. VETERANS DIRECTORY
   ============================================================ */

.veteran-records-panel {
  margin-top: 19px;

  overflow: hidden;

  border:
    1px solid rgba(15, 30, 50, 0.07);

  border-radius: var(--radius);

  background:
    rgba(255, 255, 255, 0.80);

  box-shadow: var(--shadow);

  backdrop-filter: blur(5px);
}

.records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
    20px
    23px;

  border-bottom:
    1px solid #e9edf2;
}

.records-header h2 {
  margin: 0;

  color: var(--ink);

  font-size: 20px;
  font-weight: 950;
}

.records-count {
  color: var(--muted);

  font-size: 11px;
}

.veteran-record-card {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(190px, 1.25fr)
    minmax(125px, 0.8fr)
    minmax(150px, 1fr)
    minmax(175px, 1.15fr)
    minmax(110px, 0.7fr)
    auto;

  gap: 18px;

  align-items: center;

  min-height: 115px;

  padding:
    17px
    22px;

  border-bottom:
    1px solid #e9edf2;

  transition:
    background 0.16s ease;
}

.veteran-record-card:last-of-type {
  border-bottom: 0;
}

.veteran-record-card:hover {
  background:
    linear-gradient(
      90deg,
      rgba(255, 20, 120, 0.035),
      rgba(35, 136, 255, 0.025),
      rgba(255, 255, 255, 0.30)
    );
}

.veteran-record-card.attention::before,
.veteran-record-card.review::before {
  content: "";

  position: absolute;

  left: 0;
  top: 13px;
  bottom: 13px;

  width: 5px;

  border-radius:
    0
    5px
    5px
    0;
}

.veteran-record-card.attention::before {
  background:
    linear-gradient(
      180deg,
      var(--pink),
      var(--orange)
    );
}

.veteran-record-card.review::before {
  background:
    linear-gradient(
      180deg,
      var(--yellow),
      var(--orange)
    );
}

.veteran-id-block {
  display: flex;
  align-items: center;

  gap: 13px;
}

.veteran-avatar {
  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--pink),
      var(--orange)
    );

  color: white;

  font-size: 13px;
  font-weight: 950;

  box-shadow:
    0 5px 14px rgba(255, 20, 120, 0.17);
}

.veteran-avatar.blue {
  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--purple)
    );
}

.veteran-avatar.purple {
  background:
    linear-gradient(
      135deg,
      var(--purple),
      var(--pink)
    );
}

.veteran-id-block h3 {
  margin:
    1px
    0
    2px;

  color: var(--ink);

  font-size: 16px;
  font-weight: 950;
}

.record-label {
  display: block;

  color: #8a96a7;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.9px;

  text-transform: uppercase;
}

.site-label {
  color: var(--muted);

  font-size: 10px;
}

.record-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 3px;
}

.record-detail strong {
  color: var(--ink);

  font-size: 11px;
}

.record-detail > span:last-child:not(.status-pill) {
  color: var(--muted);

  font-size: 10px;
}

.record-attention {
  color: #d44b6e !important;

  font-weight: 750;
}

.record-signals {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 5px;
}

.signal.workflow {
  background: var(--purple-soft);
  color: #7130da;
}

.signal.assurance {
  background: var(--yellow-soft);
  color: #946400;
}

.record-action {
  text-align: right;
}


/* ============================================================
   23. CORE RECORD / BREADCRUMBS / TABS
   ============================================================ */

.breadcrumb,
.breadcrumbs {
  display: flex;
  align-items: center;

  gap: 8px;

  margin:
    22px
    0
    0;

  color: var(--muted);

  font-size: 11px;
}

.breadcrumb a,
.breadcrumbs a {
  color: var(--pink);

  text-decoration: none;

  font-weight: 750;
}

.record-hero {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  margin-top: 18px;

  padding:
    24px
    25px;

  overflow: hidden;

  border:
    1px solid rgba(15, 30, 50, 0.07);

  border-radius: var(--radius);

  background:
    rgba(255, 255, 255, 0.88);

  box-shadow: var(--shadow);
}

.record-hero::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 5px;

  background: var(--rainbow);
}

.record-hero h2 {
  margin:
    4px
    0
    5px;

  color: var(--ink);

  font-size: 30px;
  font-weight: 950;

  letter-spacing: -1px;
}

.record-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;

  gap:
    7px
    14px;

  color: var(--muted);

  font-size: 11px;
}

.record-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;
}

.record-tabs,
.tabs {
  display: flex;

  gap: 4px;

  margin-top: 18px;

  padding:
    5px;

  overflow-x: auto;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.70);
}

.record-tabs a,
.tabs a {
  padding:
    9px
    13px;

  border-radius: 7px;

  color: var(--muted);

  text-decoration: none;

  white-space: nowrap;

  font-size: 11px;
  font-weight: 800;
}

.record-tabs a:hover,
.tabs a:hover,
.record-tabs a.active,
.tabs a.active {
  background: var(--pink-soft);
  color: var(--pink);
}


/* ============================================================
   24. TIMELINE / ACTIVITY
   ============================================================ */

.timeline {
  position: relative;

  padding:
    8px
    0;
}

.timeline-item {
  position: relative;

  margin-left: 12px;

  padding:
    0
    0
    22px
    28px;

  border-left:
    2px solid #e4e8ee;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";

  position: absolute;

  left: -7px;
  top: 3px;

  width: 12px;
  height: 12px;

  border:
    3px solid white;

  border-radius: 50%;

  background: var(--pink);

  box-shadow:
    0 0 0 2px rgba(255, 20, 120, 0.14);
}

.timeline-item h3 {
  margin: 0;

  color: var(--ink);

  font-size: 12px;
}

.timeline-item p {
  margin:
    4px
    0;

  color: var(--muted);

  font-size: 11px;
}

.timeline-meta {
  color: var(--light-text);

  font-size: 9px;
}


/* ============================================================
   25. PROCESS / WORKFLOW STEPS
   ============================================================ */

.process-steps,
.journey-steps,
.workflow-steps,
.assessment-flow {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(120px, 1fr));

  gap: 10px;

  padding:
    20px;
}

.process-step,
.journey-step,
.workflow-step,
.flow-step {
  position: relative;

  min-height: 95px;

  display: flex;
  flex-direction: column;

  justify-content: center;

  padding:
    14px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.78);
}

.process-step:not(:last-child)::after,
.journey-step:not(:last-child)::after,
.workflow-step:not(:last-child)::after {
  content: "→";

  position: absolute;

  right: -10px;
  top: 50%;

  z-index: 3;

  color: var(--pink);

  font-weight: 950;

  transform: translateY(-50%);
}

.process-step strong,
.journey-step strong,
.workflow-step strong,
.flow-step strong {
  color: var(--ink);

  font-size: 11px;
}

.process-step span,
.journey-step span,
.workflow-step span,
.flow-step span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 9px;
}


/* ============================================================
   26. GENERIC LIST / DETAIL BLOCKS
   ============================================================ */

.detail-list,
.info-list,
.rule-list,
.requirement-list {
  margin: 0;

  padding: 0;

  list-style: none;
}

.detail-list li,
.info-list li,
.rule-list li,
.requirement-list li {
  padding:
    10px
    0;

  border-bottom:
    1px solid #edf0f4;

  color: var(--muted);

  font-size: 11px;
}

.detail-list li:last-child,
.info-list li:last-child,
.rule-list li:last-child,
.requirement-list li:last-child {
  border-bottom: 0;
}

.detail-list strong,
.info-list strong,
.rule-list strong,
.requirement-list strong {
  color: var(--ink);
}


/* ============================================================
   27. MODULE COLOUR LANGUAGE
   ============================================================ */

/* Casework */

.casework-panel,
.case-card {
  border-top:
    4px solid var(--blue);
}


/* Referral Bridge */

.referral-panel,
.referral-card {
  border-top:
    4px solid var(--orange);
}


/* Workflow */

.workflow-panel,
.workflow-card {
  border-top:
    4px solid var(--pink);
}


/* Assurance */

.assurance-card {
  border-top:
    4px solid var(--yellow);
}


/* Programmes */

.programme-card,
.programme-panel {
  border-top:
    4px solid var(--green);
}


/* Partners */

.partner-card,
.partner-panel {
  border-top:
    4px solid var(--orange);
}


/* Workforce */

.workforce-card,
.workforce-panel {
  border-top:
    4px solid var(--blue);
}


/* Governance */

.governance-card,
.governance-panel {
  border-top:
    4px solid var(--purple);
}


/* Policy Brain */

.policy-card,
.policy-panel {
  border-top:
    4px solid var(--purple);
}


/* Reporting */

.report-card,
.reporting-panel {
  border-top:
    4px solid var(--green);
}


/* ============================================================
   28. PROGRAMMES / PARTNERS / WORKFORCE CARDS
   ============================================================ */

.programme-grid,
.partner-grid,
.workforce-grid,
.governance-grid,
.policy-grid,
.reporting-grid,
.card-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin-top: 18px;
}

.programme-card,
.partner-card,
.workforce-card,
.governance-card,
.policy-card,
.report-card {
  padding:
    20px
    21px;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.programme-card:hover,
.partner-card:hover,
.workforce-card:hover,
.governance-card:hover,
.policy-card:hover,
.report-card:hover {
  transform: translateY(-2px);

  box-shadow: var(--shadow-hover);
}

.programme-card h3,
.partner-card h3,
.workforce-card h3,
.governance-card h3,
.policy-card h3,
.report-card h3 {
  margin:
    5px
    0;

  color: var(--ink);

  font-size: 16px;
  font-weight: 950;
}

.programme-card p,
.partner-card p,
.workforce-card p,
.governance-card p,
.policy-card p,
.report-card p {
  margin:
    5px
    0;

  color: var(--muted);

  font-size: 11px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;

  gap:
    6px
    12px;

  margin-top: 12px;

  color: var(--light-text);

  font-size: 10px;
}


/* ============================================================
   29. POLICY BRAIN
   ============================================================ */

.policy-summary,
.policy-health {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.policy-code,
.rule-code,
.system-code {
  display: inline-block;

  padding:
    4px
    7px;

  border-radius: 6px;

  background:
    #f0ebff;

  color: #6734bf;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 9px;
  font-weight: 750;
}

.policy-status {
  display: flex;
  align-items: center;

  gap: 7px;

  font-size: 10px;
}

.policy-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--green);
}

.policy-dot.missing {
  background: var(--orange);
}

.policy-dot.review {
  background: var(--yellow);
}


/* ============================================================
   30. REPORTING
   ============================================================ */

.metric-value {
  color: var(--ink);

  font-size: 30px;
  font-weight: 950;

  line-height: 1;
}

.metric-label {
  margin-top: 5px;

  color: var(--muted);

  font-size: 11px;
}

.progress-track {
  width: 100%;
  height: 8px;

  margin-top: 10px;

  overflow: hidden;

  border-radius: 99px;

  background: #edf0f4;
}

.progress-fill {
  height: 100%;

  border-radius: inherit;

  background: var(--rainbow);
}


/* ============================================================
   31. SAFEGUARDING
   Deliberately calmer.
   Steve does not get to wear a party hat in here.
   ============================================================ */

body.safeguarding-page .main-content::after,
.safeguarding-workspace .main-content::after {
  opacity: 0.025;
}

.restricted-notice {
  border:
    1px solid rgba(200, 60, 80, 0.28);

  background:
    linear-gradient(
      90deg,
      rgba(200, 60, 80, 0.08),
      rgba(255, 255, 255, 0.78)
    );
}

.restricted-notice::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 5px;

  background: var(--red);
}

.safeguarding-panel,
.safeguarding-card,
.restricted-panel {
  border-top:
    4px solid var(--raspberry);

  background:
    rgba(255, 255, 255, 0.94);
}

.safeguarding-panel h2,
.safeguarding-card h3 {
  font-style: normal;
}

.restricted-badge {
  display: inline-block;

  padding:
    4px
    8px;

  border-radius: 999px;

  background: var(--red-soft);

  color: var(--red);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.6px;

  text-transform: uppercase;
}


/* ============================================================
   32. PRIVACY / INFORMATION CONTROL
   ============================================================ */

.privacy-reminder {
  display: flex;

  gap: 13px;

  margin:
    17px
    20px
    20px;

  padding:
    14px
    16px;

  border:
    1px solid rgba(138, 63, 252, 0.16);

  border-radius: 10px;

  background:
    linear-gradient(
      90deg,
      rgba(138, 63, 252, 0.055),
      rgba(35, 136, 255, 0.04),
      rgba(255, 255, 255, 0.40)
    );
}

.privacy-icon {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  background:
    linear-gradient(
      135deg,
      var(--purple),
      var(--blue)
    );

  color: white;
}

.privacy-reminder strong {
  color: var(--ink);

  font-size: 11px;
}

.privacy-reminder p {
  margin:
    3px
    0
    0;

  color: var(--muted);

  font-size: 10px;
}


/* ============================================================
   33. EMPTY / FUTURE STATES
   ============================================================ */

.empty-state,
.future-state,
.ai-placeholder {
  padding:
    28px
    24px;

  border:
    1px dashed #ccd4de;

  border-radius: 11px;

  background:
    rgba(255, 255, 255, 0.55);

  text-align: center;
}

.empty-state h3,
.future-state h3,
.ai-placeholder h3 {
  margin:
    6px
    0;

  color: var(--ink);

  font-size: 15px;
}

.empty-state p,
.future-state p,
.ai-placeholder p {
  max-width: 600px;

  margin:
    5px
    auto;

  color: var(--muted);

  font-size: 11px;
}

.empty-icon {
  font-size: 30px;
}


/* ============================================================
   34. FOOTER
   ============================================================ */

.app-footer {
  position: relative;

  display: flex;
  align-items: center;

  gap: 12px;

  margin-top: 28px;

  padding:
    18px
    15px
    10px;

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.38);

  backdrop-filter: blur(5px);
}

.app-footer::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 2px;

  border-radius: 99px;

  background: var(--rainbow);
}

.footer-mark {
  font-size: 29px;

  filter:
    drop-shadow(
      0 3px 4px rgba(138, 63, 252, 0.18)
    );

  animation:
    steveWobble 7s ease-in-out infinite;
}

.app-footer > div:last-child {
  display: flex;
  flex-direction: column;
}

.app-footer strong {
  color: var(--ink);

  font-size: 11px;
}

.app-footer span {
  color: var(--muted);

  font-size: 10px;
}

@keyframes steveWobble {
  0%,
  90%,
  100% {
    transform: rotate(-7deg);
  }

  94% {
    transform: rotate(4deg);
  }

  97% {
    transform: rotate(-2deg);
  }
}


/* ============================================================
   35. LARGE SCREENS
   ============================================================ */

@media (min-width: 1450px) {
  .main-content {
    padding-left: 48px;
    padding-right: 52px;
  }

  .stat-grid,
  .summary-grid {
    gap: 22px;
  }

  .dashboard-grid,
  .content-grid,
  .workspace-grid {
    gap: 22px;
  }
}


/* ============================================================
   36. MEDIUM DESKTOP / TABLET
   ============================================================ */

@media (max-width: 1250px) {
  .veteran-search-panel,
  .filter-panel,
  .filters,
  .search-filter-panel,
  .workspace-filters {
    grid-template-columns:
      1fr
      1fr;
  }

  .veteran-search-main,
  .search-field:first-child {
    grid-column: 1 / -1;
  }

  .veteran-record-card {
    grid-template-columns:
      1.2fr
      0.8fr
      1fr
      1fr;
  }

  .record-signals {
    grid-column: 1 / 3;

    flex-direction: row;
  }

  .record-action {
    grid-column: 4;

    align-self: end;
  }

  .topbar > div:first-child::after {
    display: none;
  }
}


@media (max-width: 1100px) {
  :root {
    --sidebar-width: 235px;
  }

  .brand {
    min-height: 165px;

    padding:
      25px
      20px;
  }

  .brand-mark {
  width: 125px;
  height: 80px;
}

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text span {
    font-size: 20px;
  }

  .main-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .main-nav {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-item {
    font-size: 13px;
  }

  .stat-grid,
  .summary-grid,
  .policy-summary,
  .policy-health {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* ============================================================
   37. MOBILE
   ============================================================ */

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;

    width: 100%;
    min-height: auto;
  }

  .brand {
    min-height: auto;

    display: flex;
    align-items: center;

    gap: 14px;

    padding:
      16px
      20px;
  }

  .brand-mark {
  width: 90px;
  height: 58px;
  flex: 0 0 90px;
}

  .brand-text {
    margin-top: 0;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text span {
    font-size: 16px;
  }

  .main-nav {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    width: 100%;

    margin-left: 0;

    padding:
      0
      16px
      25px;
  }

  .main-content::before {
    left: 0;
  }

  .main-content::after {
    width: 430px;
    height: 60vh;

    right: -180px;
    bottom: -40px;

    opacity: 0.07;
  }

  .topbar {
    min-height: 95px;

    align-items: flex-start;

    padding:
      22px
      0
      18px;
  }

  .topbar h1 {
    font-size: 30px;
  }

  .topbar h1::after {
    width: 110px;
  }

  .search-button {
    display: none;
  }

  .staff-profile > div:last-child {
    display: none;
  }

  .staff-avatar {
    width: 40px;
    height: 40px;
  }

  .dev-notice {
    align-items: flex-start;
    flex-direction: column;

    gap: 2px;
  }

  .page-intro,
  .veterans-intro,
  .workspace-intro,
  .page-hero,
  .record-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-note {
    display: none;
  }

  .stat-grid,
  .summary-grid,
  .policy-summary,
  .policy-health {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .content-grid,
  .workspace-grid,
  .two-column-grid,
  .detail-grid,
  .programme-grid,
  .partner-grid,
  .workforce-grid,
  .governance-grid,
  .policy-grid,
  .reporting-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .wide-panel,
  .full-width {
    grid-column: auto;
  }

  .veteran-search-panel,
  .filter-panel,
  .filters,
  .search-filter-panel,
  .workspace-filters {
    grid-template-columns: 1fr;
  }

  .veteran-search-main,
  .search-field:first-child {
    grid-column: auto;
  }

  .veteran-summary-grid,
  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .records-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .veteran-record-card {
    grid-template-columns: 1fr;

    gap: 14px;

    padding:
      20px
      18px;
  }

  .record-signals,
  .record-action {
    grid-column: auto;
  }

  .record-signals {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .record-action {
    text-align: left;
  }

  .record-tabs,
  .tabs {
    margin-left: -4px;
    margin-right: -4px;
  }

  .process-steps,
  .journey-steps,
  .workflow-steps,
  .assessment-flow {
    grid-template-columns: 1fr;
  }

  .process-step::after,
  .journey-step::after,
  .workflow-step::after {
    display: none;
  }

  .assurance-item {
    align-items: flex-start;
    flex-direction: column;
  }

  th,
  td {
    white-space: nowrap;
  }
}


/* ============================================================
   38. SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {
  .stat-grid,
  .summary-grid,
  .policy-summary,
  .policy-health {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 27px;
  }

  .panel-header,
  .card-header {
    align-items: flex-start;
    flex-direction: column;

    padding:
      16px
      17px;
  }

  .panel-body,
  .card-body {
    padding:
      17px;
  }

  .task-list,
  .attention-list,
  .activity-list {
    padding:
      4px
      16px
      8px;
  }

  .assurance-message,
  .assurance-notice {
    margin:
      15px
      16px
      5px;
  }

  .assurance-item {
    margin:
      0
      16px;
  }

  .page-intro h2,
  .veterans-intro h2,
  .workspace-intro h2,
  .page-hero h2 {
    font-size: 24px;
  }

  .record-hero h2 {
    font-size: 25px;
  }

  .record-actions,
  .page-actions {
    width: 100%;
  }

  .record-actions .primary-button,
  .record-actions .secondary-button,
  .page-actions .primary-button,
  .page-actions .secondary-button {
    flex: 1;
  }
}


/* ============================================================
   39. ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline:
    3px solid rgba(35, 136, 255, 0.40);

  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .footer-mark {
    animation: none;
  }

  .stat-card,
  .nav-item,
  .primary-button,
  .secondary-button,
  .row-button,
  .task-item,
  .programme-card,
  .partner-card,
  .workforce-card,
  .governance-card,
  .policy-card,
  .report-card {
    transition: none;
  }
}


/* ============================================================
   END
   VB CORE

   The system surfaces work.
   People make decisions.
   Steve causes minor administrative disruption.
   ============================================================ */
