:root {
  --bg-sequin-front: #140014;
  --bg-sequin-back: #260026;
  --bg-sequin-glint: #ff00ff;
  --bg-sequin-size: 5;
  --bg-sequin-gap: 1;
  --bg-sequin-alpha: 0.7;
  --bg-sequin-glint-alpha: 0.35;
  --bg-sequin-follow: 2.2;
  --bg-sequin-speed: 0.5;
  --bg-sequin-ripple: 5;
  --bg-sequin-softness: 1.8;
  --bg-sequin-brush-radius: 140;
  --bg-sequin-brush-strength: 0.75;
  --bg-sequin-brush-fade: 0.5;
  --bg-sequin-brush-ease: 1.5;
  --bg-sequin-brush-fill: 700;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: #0b000d;
}

.site-bg__glow {
  position: absolute;
  width: 95vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: site-bg-drift 80s ease-in-out infinite alternate;
  will-change: transform;
}

.site-bg__glow--a {
  left: -30vmax;
  top: -35vmax;
  background: radial-gradient(closest-side, rgba(136, 0, 136, 0.18), transparent);
  animation-delay: 0s;
  --drift-x: 18vmax;
  --drift-y: 12vmax;
  --drift-scale: 1.15;
}

.site-bg__glow--b {
  left: 35vw;
  top: 20vh;
  background: radial-gradient(closest-side, rgba(102, 0, 102, 0.24), transparent);
  animation-delay: -25s;
  --drift-x: -20vmax;
  --drift-y: -10vmax;
  --drift-scale: 0.9;
}

.site-bg__glow--c {
  left: 10vw;
  top: 40vh;
  background: radial-gradient(closest-side, rgba(255, 0, 255, 0.04), transparent);
  animation-delay: -50s;
  --drift-x: 14vmax;
  --drift-y: -16vmax;
  --drift-scale: 1.2;
}

.site-bg__sequins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes site-bg-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(var(--drift-scale));
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-bg__glow {
    animation: none;
  }
}
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: #0b000d;
  color: #dccedc;
  font: 1rem/1.55 "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ff00ff;
}

button, input, select {
  font: inherit;
}

button, .button {
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(220, 206, 220, 0.22);
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

button:hover {
  border-color: #ff00ff;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #ff00ff;
  outline-offset: 3px;
}

input, select {
  min-width: 0;
  max-width: 100%;
  color: inherit;
  background: #0b000d;
  border: 1px solid rgba(220, 206, 220, 0.22);
  border-radius: 0.5rem;
  padding: 0.65rem;
}

label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

h1, h2, h3 {
  font-weight: 300;
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1.5rem;
  top: -5rem;
  background: #0b000d;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.portal-header {
  max-width: 76rem;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(220, 206, 220, 0.22);
}

.brand {
  font-weight: 500;
  text-decoration: none;
}

.portal-header__account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.portal {
  max-width: 76rem;
  margin: auto;
  padding: 2.5rem 1.5rem;
  min-height: 75vh;
}

.portal-footer {
  max-width: 76rem;
  margin: auto;
  padding: 1.5rem;
  font-size: 0.875rem;
}

.login {
  max-width: 26rem;
  margin: 3rem auto;
  display: grid;
  gap: 1rem;
}

.login form {
  display: grid;
  gap: 0.5rem;
}

.login p {
  margin: 0;
}

.login__separator {
  text-align: center;
  color: rgba(220, 206, 220, 0.77);
}

.eyebrow {
  color: rgba(220, 206, 220, 0.77);
  font-size: 0.875rem;
}

.muted, .meta {
  color: rgba(220, 206, 220, 0.77);
  font-size: 0.875rem;
}

.notice {
  padding: 1rem;
  border: 1px solid rgba(220, 206, 220, 0.22);
  border-left: 3px solid #ff00ff;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
}

.workspace-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.workspace-heading select {
  width: 22rem;
}

.portal-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.portal-nav button[aria-current] {
  border-bottom: 2px solid #ff00ff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(220, 206, 220, 0.22);
  border-radius: 0.5rem;
}

.stat__value {
  display: block;
  font-size: 1.75rem;
  margin: 0.5rem 0;
  font-variant-numeric: tabular-nums;
}

.projects {
  display: grid;
  gap: 0.75rem;
}

.project-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(220, 206, 220, 0.22);
  border-radius: 0.5rem;
  overflow: clip;
}

.project-card__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.project-card__header::-webkit-details-marker {
  display: none;
}

.project-card__header:hover {
  background: rgba(255, 255, 255, 0.035);
}

.project-card__header:focus-visible {
  outline-offset: -3px;
}

.project-card__identity {
  flex: 1;
  min-width: 0;
}

.project-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.project-card h2 {
  margin: 0;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.project-card .badge {
  margin: 0;
  font-size: 0.75rem;
}

.project-card__subtitle {
  display: block;
  margin-top: 0.35rem;
  color: rgba(220, 206, 220, 0.77);
  font-size: 0.875rem;
}

.project-card__glance {
  display: grid;
  text-align: right;
  flex-shrink: 0;
  color: rgba(220, 206, 220, 0.77);
  font-size: 0.75rem;
}

.project-card__glance strong {
  color: #dccedc;
  font-size: 1.125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.project-card__chevron {
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(220, 206, 220, 0.77);
}

.project-card[open] .project-card__chevron {
  rotate: 180deg;
  color: #ff00ff;
}

.project-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid rgba(220, 206, 220, 0.22);
}

.project-card__section {
  min-width: 0;
  padding: 1.5rem;
}

.project-card__section + .project-card__section {
  border-left: 1px solid rgba(220, 206, 220, 0.22);
}

.project-card h3 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-card__section p {
  font-size: 0.875rem;
}

.project-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
}

.project-card__metric {
  min-width: 0;
}

.project-card__metric:last-child:nth-child(odd) {
  grid-column: 1/-1;
}

.project-card__metric dt {
  color: rgba(220, 206, 220, 0.77);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.project-card__metric dd {
  margin: 0;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.project-card__section .project-card__footnote {
  margin: 1.25rem 0 0;
  color: rgba(220, 206, 220, 0.77);
  font-size: 0.75rem;
}

.project-card__footer {
  grid-column: 1/-1;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(220, 206, 220, 0.22);
}

.budget {
  display: block;
  width: 100%;
  height: 0.4rem;
  accent-color: #ff00ff;
  margin-top: 0.75rem;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(220, 206, 220, 0.22);
  border-radius: 0.5rem;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

caption {
  text-align: left;
  padding: 1rem;
  color: rgba(220, 206, 220, 0.77);
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(220, 206, 220, 0.22);
  vertical-align: top;
}

th {
  font-weight: 500;
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.number {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.entry-notes {
  min-width: 12rem;
  max-width: 28rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(220, 206, 220, 0.22);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin: 0 0.3rem 0.3rem 0;
  white-space: nowrap;
}

.badge--attention {
  border-color: #ff00ff;
}

.filters, .access-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
  margin: 1.5rem 0;
}

.filters button, .access-form button {
  min-height: 2.8rem;
}

.access-form input {
  width: 22rem;
}

.access-form select {
  width: 20rem;
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.detail-header h2 {
  margin: 0;
}

.section-gap {
  margin-top: 2rem;
}

.loading {
  color: rgba(220, 206, 220, 0.77);
  padding: 1rem 0;
}

.empty {
  padding: 1.5rem 0;
  color: rgba(220, 206, 220, 0.77);
}

@media (max-width: 767px) {
  .portal-header {
    align-items: start;
  }
  .portal-header__account {
    max-width: 55%;
    gap: 0.5rem;
  }
  .portal {
    padding: 1.5rem 1rem;
  }
  .workspace-heading {
    align-items: start;
    flex-direction: column;
  }
  .workspace-heading > div, .workspace-heading select {
    width: 100%;
  }
  .project-card__header {
    padding: 1rem;
    gap: 0.75rem;
  }
  .project-card__glance {
    max-width: 5rem;
  }
  .project-card__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-card__section {
    padding: 1.25rem 1rem;
  }
  .project-card__section + .project-card__section {
    border-left: 0;
    border-top: 1px solid rgba(220, 206, 220, 0.22);
  }
  .project-card__footer {
    padding: 1rem;
  }
  .project-card__footer button {
    width: 100%;
  }
  .login {
    margin: 1.5rem auto;
  }
  .filters > div, .access-form > div, .access-form input, .access-form select {
    width: 100%;
  }
  .filters button, .access-form button {
    width: 100%;
  }
}