@charset "UTF-8";
: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;
  }
}
:root {
  --portal-bg: #0b000d;
  --portal-surface: rgba(255, 255, 255, 0.035);
  --portal-field: #0b000d;
  --portal-text: #dccedc;
  --portal-muted: rgba(220, 206, 220, 0.77);
  --portal-border: rgba(220, 206, 220, 0.22);
  --portal-accent: #ff00ff;
  --portal-brand: #cc00cc;
  --portal-heading-weight: 300;
  --portal-paid: #84e3aa;
  --portal-paid-bg: rgba(132, 227, 170, 0.1);
  --portal-past-due: #ff9898;
  --portal-past-due-bg: rgba(255, 152, 152, 0.1);
  color-scheme: dark;
}

:root[data-theme=tame] {
  --portal-bg: #f6f6f8;
  --portal-surface: #ffffff;
  --portal-field: #ffffff;
  --portal-text: #1c1a1f;
  --portal-muted: #5e5966;
  --portal-border: #d9d6de;
  --portal-accent: #880088;
  --portal-brand: #880088;
  --portal-heading-weight: 600;
  --portal-paid: #17703d;
  --portal-paid-bg: rgba(23, 112, 61, 0.08);
  --portal-past-due: #b3261e;
  --portal-past-due-bg: rgba(179, 38, 30, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[data-theme=tame] .site-bg {
  display: none;
}

[data-theme=tame] :is(.stat, .project-card, .table-scroll) {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--portal-bg);
  color: var(--portal-text);
  font: 1rem/1.55 "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--portal-accent);
}

button, input, select {
  font: inherit;
}

button, .button {
  color: inherit;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

button:hover {
  border-color: var(--portal-accent);
}

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 var(--portal-accent);
  outline-offset: 3px;
}

input, select {
  min-width: 0;
  max-width: 100%;
  color: inherit;
  background: var(--portal-field);
  border: 1px solid var(--portal-border);
  border-radius: 0.5rem;
  padding: 0.65rem;
}

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

h1, h2, h3 {
  font-weight: var(--portal-heading-weight);
  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: var(--portal-bg);
  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 1.5rem;
  border-bottom: 1px solid var(--portal-border);
}

.brand {
  display: block;
  flex-shrink: 0;
  color: var(--portal-brand);
  text-decoration: none;
}

.brand:hover {
  color: #ff00ff;
}

.brand__logo {
  display: block;
  height: 4.5rem;
  aspect-ratio: 2.6688227684;
  background-color: currentColor;
  mask: url("./feral-logo-horiz.svg") center/contain no-repeat;
}

.portal-header__tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.theme-switch {
  font-size: 0.875rem;
}

.theme-switch.split-pill > button {
  min-height: 0;
  padding: 0.25rem 0.9rem;
}

.theme-switch > button[aria-pressed=true], .theme-switch > button[aria-pressed=true]:hover {
  background: var(--portal-text);
  color: var(--portal-bg);
  font-weight: 600;
}

.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: var(--portal-muted);
}

.eyebrow {
  color: var(--portal-muted);
  font-size: 0.875rem;
}

.muted, .meta {
  color: var(--portal-muted);
  font-size: 0.875rem;
}

.notice {
  padding: 1rem;
  border: 1px solid var(--portal-border);
  border-left: 3px solid var(--portal-accent);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
}

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

.workspace-selectors {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  max-width: 100%;
  gap: 1rem;
}

.workspace-selectors > div {
  min-width: 0;
}

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

#view-as-select {
  width: 18rem;
}

.workspace-heading__main {
  min-width: 0;
}

.portal-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.admin-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem 1rem;
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 0.5rem;
  background: var(--portal-surface);
}

.admin-controls__label {
  display: block;
  grid-column: 1/-1;
  color: var(--portal-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-controls__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-controls .workspace-selectors {
  min-width: 0;
}

:is(.portal-nav, .admin-controls) button[aria-current] {
  border-bottom: 2px solid var(--portal-accent);
}

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

.stat {
  padding: 1.5rem;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 0.5rem;
}

.stats__note {
  grid-column: 1/-1;
  margin: 0;
}

.stat__value {
  display: block;
  font-size: 1.75rem;
  margin: 0.5rem 0;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem;
}

.project-card {
  min-width: 0;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 0.5rem;
  overflow: clip;
}

.project-card__header {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  cursor: pointer;
  list-style: none;
}

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

.project-card__header:hover {
  background: var(--portal-surface);
}

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

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

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

.project-card__metadata {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

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

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

.project-card:not(.project-card--archived) .badge {
  background: var(--portal-muted);
  color: var(--portal-bg);
  border-color: var(--portal-muted);
  font-weight: 600;
}

.archived-projects {
  margin-top: 2rem;
}

.project-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.archived-projects > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--portal-border);
  cursor: pointer;
  list-style: none;
}

.archived-projects > summary::-webkit-details-marker {
  display: none;
}

.archived-projects > summary::after {
  content: "+";
  color: var(--portal-muted);
  font-size: 1.5rem;
}

.archived-projects[open] > summary::after {
  content: "−";
}

.archived-projects > summary h2 {
  margin: 0;
  font-size: 1.125rem;
}

.project-card--archived {
  border-left: 4px solid var(--portal-muted);
  background: var(--portal-surface);
  opacity: 0.8;
}

.project-card--archived:focus-within {
  opacity: 1;
}

.project-card--archived .badge {
  background: transparent;
  color: var(--portal-muted);
  border-color: var(--portal-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card__subtitle {
  display: block;
  margin-top: 0.35rem;
  color: var(--portal-muted);
  font-size: 0.875rem;
}

.project-card__glance {
  display: grid;
  max-width: 5rem;
  text-align: right;
  flex-shrink: 0;
  color: var(--portal-muted);
  font-size: 0.75rem;
}

.project-card__glance strong {
  color: var(--portal-text);
  font-size: 1.125rem;
  font-weight: 500;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.project-card__chevron {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--portal-muted);
}

.project-card[open] .project-card__chevron {
  rotate: 180deg;
  color: var(--portal-accent);
}

.project-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--portal-border);
}

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

.project-card__section + .project-card__section {
  border-top: 1px solid var(--portal-border);
}

.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: var(--portal-muted);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.project-card__metric dd {
  margin: 0;
  font-size: 1.125rem;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.project-card__section .project-card__footnote {
  margin: 1.25rem 0 0;
  color: var(--portal-muted);
  font-size: 0.75rem;
}

.project-card__footer {
  grid-column: 1/-1;
  padding: 1rem;
  border-top: 1px solid var(--portal-border);
}

.project-card__footer button {
  width: 100%;
}

.budget {
  display: block;
  width: 100%;
  height: 0.4rem;
  accent-color: var(--portal-accent);
  margin-top: 0.75rem;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--portal-border);
  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: var(--portal-muted);
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--portal-border);
  vertical-align: top;
}

th {
  font-weight: 500;
  background: var(--portal-surface);
  white-space: nowrap;
}

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

.date {
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

th.number, td.number {
  text-align: right;
}

.number {
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.split-pill {
  display: inline-flex;
  border: 1px solid var(--portal-border);
  border-radius: 999rem;
  background: var(--portal-surface);
  white-space: nowrap;
}

.split-pill > :is(a, button) {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.split-pill > :first-child {
  border-radius: 999rem 0 0 999rem;
}

.split-pill > :last-child {
  border-radius: 0 999rem 999rem 0;
}

.split-pill > :only-child {
  border-radius: 999rem;
}

.split-pill > * + * {
  border-left: 1px solid var(--portal-border);
}

.split-pill > :is(a, button):hover {
  background: var(--portal-surface);
}

.page-size {
  margin: 0 0 1rem;
  max-width: 100%;
}

.page-size > button {
  flex: 1;
  min-width: 0;
  min-height: 1.5rem;
  padding: 0.125rem 0.9rem;
  line-height: 1.25;
}

.page-size > button[aria-pressed=true] {
  background: var(--portal-muted);
  color: var(--portal-bg);
  font-weight: 600;
}

td select {
  width: 15.4rem;
  max-width: 100%;
  font-size: 0.875rem;
  padding: 0.4rem;
}

.deposit-description {
  display: block;
  min-width: 8rem;
  overflow-wrap: anywhere;
}

.deposit-actions.split-pill > button {
  min-height: 0;
  padding: 0.3rem 0.75rem;
}

.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 var(--portal-border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin: 0 0.3rem 0.3rem 0;
  white-space: nowrap;
}

.badge--attention {
  border-color: var(--portal-accent);
}

.badge--paid {
  color: var(--portal-paid);
  border-color: var(--portal-paid);
  background: var(--portal-paid-bg);
}

.badge--past-due {
  color: var(--portal-past-due);
  border-color: var(--portal-past-due);
  background: var(--portal-past-due-bg);
}

.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;
}

.harvest-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.harvest-actions__sync {
  margin-inline-start: auto;
}

.loading {
  color: var(--portal-muted);
  padding: 1rem 0;
}

.empty {
  padding: 1.5rem 0;
  color: var(--portal-muted);
}

@media (max-width: 1024px) {
  .admin-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .projects {
    grid-template-columns: minmax(0, 1fr);
  }
  .portal-header {
    align-items: start;
  }
  .portal-header__tools {
    max-width: 60%;
    gap: 0.5rem;
  }
  .portal {
    padding: 1.5rem 1rem;
  }
  .workspace-heading {
    align-items: start;
    flex-direction: column;
  }
  .workspace-heading > div, .workspace-selectors > div, .workspace-heading select, #view-as-select {
    width: 100%;
  }
  .project-card__header {
    padding: 1rem;
    gap: 0.75rem;
  }
  .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%;
  }
}
.portal-visibility {
  margin-bottom: 2rem;
}

.portal-visibility__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  column-gap: 1.5rem;
  font-size: 0.75rem;
}

.portal-visibility__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--portal-border);
  cursor: pointer;
  line-height: 1.3;
}

.portal-visibility__row > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-visibility__row input {
  accent-color: var(--portal-accent);
  width: 0.8rem;
  height: 0.8rem;
  margin: 0;
  flex-shrink: 0;
}

.portal-visibility__row > span:last-child {
  white-space: nowrap;
  color: var(--portal-muted);
}

.client-logo {
  display: block;
  width: 12rem;
  max-width: 100%;
  margin-bottom: 2em;
  background-color: #ffffff;
  mask: var(--client-logo-mask) left center/contain no-repeat;
}

.client-logo[data-logo=paa] {
  --client-logo-mask: url('./client-logos/logo-paa.svg');
  aspect-ratio: 1000/331;
}

.client-logo[data-logo=summit] {
  --client-logo-mask: url('./client-logos/logo-summit.svg');
  aspect-ratio: 1461/425;
}

[data-theme=tame] .client-logo[data-logo=paa] {
  background-color: #000000;
}

[data-theme=tame] .client-logo[data-logo=summit] {
  background-color: #263271;
}