@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Playfair+Display:ital,wght@1,700&display=swap");

:root {
  --primary: 240 6% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 5% 96%;
  --secondary-foreground: 240 6% 10%;
  --accent: 240 5% 96%;
  --accent-foreground: 240 6% 10%;
  --background: 0 0% 100%;
  --foreground: 240 10% 4%;
  --muted: 240 5% 96%;
  --muted-foreground: 240 4% 46%;
  --card: 0 0% 100%;
  --card-foreground: 240 6% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 4%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 6% 90%;
  --input: 240 6% 90%;
  --ring: 240 6% 10%;
  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 0.625rem;
}

html {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050505;
  color: hsl(var(--foreground));
  font-family: var(--font-sans), system-ui, sans-serif;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(26rem, calc(100vw - 2rem));
}

.cookie-banner__card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.96), rgba(9, 9, 14, 0.98));
  box-shadow: 0 24px 80px -36px rgba(0, 0, 0, 0.9);
  padding: 1rem;
  backdrop-filter: blur(16px);
}

.cookie-banner__body {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.cookie-banner__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  flex-shrink: 0;
}

.cookie-banner__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cookie-banner__copy {
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(228, 228, 231, 0.82);
}

.cookie-banner__link {
  color: #c7d2fe;
  text-decoration: underline;
  text-decoration-color: rgba(199, 210, 254, 0.35);
  text-underline-offset: 0.18rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.cookie-banner__form {
  margin: 0;
}

.cookie-banner__button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  color: #fff;
  padding: 0.625rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner__button--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #050505;
  color: hsl(var(--foreground));
}

.app-shell--state {
  color: #fff;
}

.app-shell--state .app-header__badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.app-shell--state .trust-badge {
  opacity: 0.8;
}

.app-shell--state .trust-badge__label,
.app-shell--state .app-footer,
.app-shell--state .app-footer__links a {
  color: rgba(255, 255, 255, 0.78);
}

.app-shell__background {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.app-shell__background-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(49, 46, 129, 0.35), #050505 45%, #050505 100%);
}

.app-header,
.app-footer,
.app-main {
  position: relative;
  z-index: 1;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-header__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-header__brand-icon {
  width: 2rem;
  height: 2rem;
}

.app-header__brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.app-header__badge {
  display: none;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(224, 231, 255, 0.6);
  font-family: var(--font-mono), monospace;
  text-transform: none;
}

.app-main {
  min-height: calc(100vh - 10rem);
  max-width: 28rem;
  margin: -4rem auto 0;
  padding: 1rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.state-main {
  max-width: 42rem;
  margin-top: -2rem;
}

.state-panel {
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.96), rgba(7, 7, 8, 0.98));
  padding: 2.5rem 2rem;
  box-shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.9);
  text-align: center;
  color: #fff;
}

.state-panel--not_found {
  border-color: rgba(129, 140, 248, 0.18);
}

.state-panel--maintenance {
  border-color: rgba(129, 140, 248, 0.18);
  box-shadow: 0 30px 80px -32px rgba(79, 70, 229, 0.28);
}

.state-panel__eyebrow {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-mono), monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.state-panel__code {
  margin: 0;
  font-size: clamp(5rem, 16vw, 8rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

.state-panel__glyph {
  width: 5.75rem;
  height: 5.75rem;
  margin: 0 auto 0.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(129, 140, 248, 0.16);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.22);
}

.state-panel__glyph-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.state-panel__copy {
  margin: 1rem auto 0;
  max-width: 34rem;
}

.state-panel__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.state-panel__description {
  margin: 1rem auto 0;
  max-width: 31rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

.state-panel__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

.state-panel__action {
  min-width: 10rem;
  border-radius: 999px;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.state-panel__action:hover {
  transform: translateY(-1px);
}

.state-panel__action--primary {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  color: #fff;
  box-shadow: 0 18px 32px -22px rgba(99, 102, 241, 0.8);
}

.state-panel__action--secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.state-panel__action--secondary:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.hero-copy {
  width: 100%;
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-copy__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-copy__accent {
  margin: 0.75rem 0 0;
  font-family: var(--font-serif), serif;
  font-style: italic;
  font-size: clamp(1.875rem, 5vw, 2.25rem);
  line-height: 1;
  color: #818cf8;
  letter-spacing: -0.04em;
}

.login-card {
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.login-card__intro {
  margin-bottom: 2rem;
  text-align: center;
}

.login-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.login-card__description,
.field__label,
.login-form__link,
.login-card__footer-copy,
.trust-badge__label,
.app-footer {
  color: rgba(161, 161, 170, 0.6);
}

.login-card__description {
  margin: 0;
  font-size: 0.8125rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-panel {
  width: 100%;
}

.login-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form__password-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.login-form__support-row {
  display: flex;
  justify-content: flex-end;
}

.login-form__link {
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-form__link:hover,
.app-footer__links a:hover {
  color: #fff;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
}

.field__label {
  user-select: none;
  font-size: 0.8125rem;
  font-weight: 500;
}

.field__control {
  position: relative;
}

.field__input {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #fff;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.field__input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #6366f1, 0 0 0 4px rgba(5, 5, 5, 1);
}

.field__input--invalid {
  border-color: hsl(var(--destructive));
}

.field__input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.button-primary {
  width: 100%;
  height: 2.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.button-primary:hover {
  opacity: 0.9;
}

.button-primary:disabled,
.button-secondary:disabled,
.forgot-success__retry-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.button-primary__chevron {
  opacity: 0.5;
  font-size: 1rem;
  line-height: 1;
}

.button-secondary {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.button-secondary:hover {
  background: #222;
  border-color: rgba(255, 255, 255, 0.16);
}

.login-form__actions--stacked {
  gap: 0.75rem;
}

.login-form__back-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(161, 161, 170, 0.5);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.login-form__back-button:hover {
  color: #fff;
}

.login-card__footer-copy {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
}

.login-card__footer-prefix {
  opacity: 0.7;
}

.login-card__footer-link {
  margin-left: 0.125rem;
  color: #818cf8;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-card__footer-link:hover {
  color: #a5b4fc;
}

.trust-badge {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.trust-badge:hover {
  opacity: 1;
}

.trust-badge__rule {
  width: 4rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.trust-badge__label {
  font-family: var(--font-mono), monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-footer {
  width: 100%;
  padding: 1.5rem;
  font-size: 0.75rem;
}

.app-footer__content {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.error-banner--hidden,
.is-hidden {
  display: none;
}

.error-banner__icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.75rem;
}

.forgot-card {
  backdrop-filter: blur(4px);
}

.forgot-password-panel,
.forgot-success-panel {
  width: 100%;
}

.forgot-card__back-link-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.forgot-card__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(161, 161, 170, 0.6);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.forgot-card__back-link:hover {
  color: #fff;
}

.auth-entry-card__info {
  margin: 0 0 1rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  padding: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.auth-entry-card__divider {
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(161, 161, 170, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-entry-card__divider::before,
.auth-entry-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.forgot-success {
  text-align: center;
  padding: 1rem 0;
}

.forgot-success__icon-wrap {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.forgot-success__icon {
  color: #4ade80;
  font-size: 1.75rem;
  line-height: 1;
}

.forgot-success__title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.forgot-success__description {
  margin: 0 0 2rem;
  color: rgba(161, 161, 170, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}

.forgot-success__email {
  color: #fff;
  font-weight: 500;
}

.forgot-success__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.forgot-success__retry-button {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.forgot-success__retry-button:hover {
  background: #222;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (min-width: 640px) {
  .app-header__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-main {
    padding: 1.5rem 1.5rem 3rem;
  }

  .login-card__intro {
    text-align: left;
  }

  .app-footer__content {
    flex-direction: row;
  }

  .state-panel {
    padding: 3.25rem 3rem;
  }
}

.projects-shell {
  position: relative;
  min-height: 100vh;
  background: #050505;
  color: #fff;
  overflow-x: hidden;
  overflow-y: visible;
}

.projects-shell__background {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.projects-shell__background-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(79, 70, 229, 0.18), transparent 38%),
    radial-gradient(circle at left bottom, rgba(99, 102, 241, 0.1), transparent 30%),
    #050505;
}

.projects-topbar {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
}

.projects-main {
  position: relative;
  z-index: 1;
}

.projects-topbar__inner {
  max-width: 80rem;
  margin: 0 auto;
  min-height: 3.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.projects-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.projects-topbar__brand-mark {
  display: inline-flex;
}

.projects-topbar__brand-icon {
  width: 1.625rem;
  height: 1.625rem;
}

.brand-mark__tile {
  fill: rgba(99, 102, 241, 0.08);
  stroke: rgba(129, 140, 248, 0.14);
}

.brand-mark__shield {
  stroke: #818cf8;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.brand-mark__letter {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
}

.projects-topbar__brand-text {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.projects-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.projects-topbar__docs-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(228, 228, 231, 0.82);
  font-size: 0.8125rem;
  font-weight: 600;
}

.projects-topbar__docs-link:hover {
  color: #fff;
  border-color: rgba(129, 140, 248, 0.24);
  background: rgba(99, 102, 241, 0.12);
}

.projects-topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: rgba(99, 102, 241, 0.1);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 500;
}

.projects-topbar__account {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  list-style: none;
  cursor: pointer;
}

.projects-topbar__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.projects-topbar__identity {
  display: none;
}

.projects-topbar__account-name {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
}

.projects-topbar__account-subline {
  margin: 0;
  color: rgba(161, 161, 170, 0.7);
  font-size: 0.6875rem;
}

.projects-account-menu {
  position: relative;
  z-index: 30;
  isolation: isolate;
}

.projects-account-menu[open] {
  z-index: 50;
}

.projects-account-menu__summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.projects-account-menu__summary::-webkit-details-marker {
  display: none;
}

.projects-account-menu__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.48);
  transition: transform 0.2s ease, color 0.2s ease;
}

.projects-account-menu__chevron-icon {
  width: 1rem;
  height: 1rem;
}

.projects-account-menu[open] .projects-account-menu__chevron {
  transform: rotate(180deg);
  color: rgba(199, 210, 254, 0.84);
}

.projects-account-menu__popover {
  position: absolute;
  top: calc(100% + 0.875rem);
  right: 0;
  min-width: 15rem;
  border-radius: 1rem;
  border: 1px solid rgba(129, 140, 248, 0.18);
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  padding: 0.625rem;
  z-index: 60;
  pointer-events: auto;
}

.projects-account-menu__label {
  padding: 0.5rem 0.625rem 0.625rem;
}

.projects-account-menu__name {
  margin: 0;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.projects-account-menu__meta {
  margin: 0.1875rem 0 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.75rem;
}

.projects-account-menu__divider {
  height: 1px;
  margin: 0 0.125rem 0.375rem;
  background: rgba(255, 255, 255, 0.08);
}

.projects-account-menu__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.projects-account-menu__item:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #fff;
}

.projects-account-menu__item--accent {
  color: #c7d2fe;
}

.projects-account-menu__item--accent:hover {
  background: rgba(99, 102, 241, 0.16);
  color: #e0e7ff;
}

.projects-account-menu__item-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(199, 210, 254, 0.82);
}

.projects-account-menu__item-icon-svg {
  width: 1rem;
  height: 1rem;
}

.projects-account-menu__form {
  margin: 0;
}

.projects-account-menu__item--button {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.projects-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.projects-main--superadmin {
  max-width: 88rem;
}

.security-feedback {
  margin-bottom: 1rem;
}

.projects-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.projects-hero__eyebrow {
  margin: 0 0 0.5rem;
  color: rgba(199, 210, 254, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.projects-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.projects-hero__description {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.projects-hero__controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.projects-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 18rem;
}

.projects-search-form {
  width: 100%;
}

.projects-search__icon {
  position: absolute;
  left: 0.875rem;
  width: 1rem;
  height: 1rem;
  color: rgba(161, 161, 170, 0.65);
}

.projects-search input {
  width: 100%;
  height: 2.75rem;
  padding: 0.5rem 0.875rem 0.5rem 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.92);
  color: rgba(255, 255, 255, 0.88);
}

.projects-search--full {
  max-width: none;
}

.projects-search--full input {
  color: #fff;
}

.projects-hero__action,
.projects-empty__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: max-content;
  height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: #4f46e5;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 1rem;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.24);
}

.projects-hero__action:hover,
.projects-empty__action:hover {
  background: #5b52ed;
}

.projects-hero__action:disabled,
.projects-empty__action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  padding: 1.25rem;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.32);
}

.project-card--link {
  display: block;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.project-card--link:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.22);
  background: rgba(15, 15, 18, 0.96);
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-card__icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
}

.project-card__title {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 500;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: rgba(161, 161, 170, 0.56);
  font-size: 0.75rem;
}

.project-card__open {
  color: rgba(199, 210, 254, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
}

.security-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-card__copy {
  margin: 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.875rem;
  line-height: 1.6;
}

.security-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-form--compact {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card__id {
  font-family: var(--font-mono), monospace;
}

.projects-empty,
.projects-error {
  max-width: 38rem;
  margin: 4rem auto 0;
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.92);
  text-align: center;
}

.projects-empty__icon,
.projects-error__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-empty__icon {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
}

.projects-empty__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.projects-error__icon {
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 1.5rem;
  font-weight: 600;
}

.projects-empty__title,
.projects-error h2 {
  margin: 0;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.projects-empty__description,
.projects-error p {
  margin: 0.75rem auto 0;
  max-width: 30rem;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.projects-empty__action {
  margin-top: 1.5rem;
}

.project-form-shell {
  max-width: 42rem;
  margin: 0 auto;
}

.project-form-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-form-card__header h2,
.project-danger-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
}

.project-form-card__header p {
  margin: 0.5rem 0 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.875rem;
  line-height: 1.6;
}

.project-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.project-form-actions__cancel {
  text-decoration: none;
}

.project-inline-note {
  margin: 0;
  color: rgba(199, 210, 254, 0.82);
  font-size: 0.875rem;
  line-height: 1.6;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: rgba(199, 210, 254, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-back-link:hover {
  color: #fff;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
}

.project-detail-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.project-detail-card__eyebrow {
  margin: 0 0 0.625rem;
  color: rgba(199, 210, 254, 0.68);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail-card__badge {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-detail-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.project-detail-metadata__item {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 1rem;
}

.project-detail-metadata__label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-detail-metadata__value {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.project-danger-card {
  border-color: rgba(239, 68, 68, 0.2);
}

.project-delete-panel {
  width: 100%;
}

.project-delete-panel[open] .project-delete-panel__toggle {
  margin-bottom: 1rem;
}

.project-delete-panel__toggle {
  cursor: pointer;
  list-style: none;
}

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

.project-delete-button {
  height: 2.75rem;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 0.75rem;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 1rem;
}

.project-delete-button:hover {
  background: rgba(153, 27, 27, 0.42);
}

.projects-main--workspace {
  max-width: 88rem;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.workspace-sidebar {
  position: sticky;
  top: 5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.94);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.workspace-sidebar__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #a5b4fc;
  font-size: 0.8125rem;
  font-weight: 500;
}

.workspace-sidebar__back:hover {
  color: #fff;
}

.workspace-sidebar__project {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.875rem;
}

.workspace-sidebar__eyebrow {
  margin: 0 0 0.35rem;
  color: rgba(161, 161, 170, 0.68);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-sidebar__project-name {
  margin: 0;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.workspace-sidebar__project-id {
  margin: 0.375rem 0 0;
  color: rgba(161, 161, 170, 0.64);
  font-size: 0.75rem;
  font-family: var(--font-mono), monospace;
}

.workspace-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 1rem;
}

.workspace-sidebar__nav-item {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  color: rgba(161, 161, 170, 0.82);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.workspace-sidebar__nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.workspace-sidebar__nav-item--active {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.14);
  color: #c7d2fe;
}

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

.workspace-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(161, 161, 170, 0.64);
  font-size: 0.8125rem;
}

.workspace-breadcrumbs__link {
  color: inherit;
}

.workspace-breadcrumbs__link:hover,
.workspace-breadcrumbs__current {
  color: #fff;
}

.workspace-breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.18);
}

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

.workspace-header__eyebrow {
  margin: 0 0 0.5rem;
  color: rgba(199, 210, 254, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-header__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.workspace-header__description {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.workspace-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
}

.workspace-section-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-section-stack__header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
}

.workspace-section-stack__header p {
  margin: 0.5rem 0 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.875rem;
  line-height: 1.6;
}

.workspace-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workspace-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-checklist__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-checklist__item--active {
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.12);
}

.workspace-checklist__item--done {
  border-color: rgba(16, 185, 129, 0.2);
}

.workspace-checklist__item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-checklist__item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.workspace-checklist__item-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.workspace-checklist__item-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(228, 228, 231, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
}

.workspace-link-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.workspace-link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.22);
  background: rgba(15, 15, 18, 0.96);
}

.workspace-link-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.workspace-link-card__count {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 600;
}

.workspace-entity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-entity-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-entity-card__body {
  min-width: 0;
}

.workspace-entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.workspace-inline-action {
  color: rgba(199, 210, 254, 0.82);
  font-size: 0.8125rem;
  font-weight: 600;
}

.workspace-disabled-action {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
  border: 1px dashed rgba(161, 161, 170, 0.28);
  color: rgba(161, 161, 170, 0.62);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: not-allowed;
}

.workspace-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workspace-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.workspace-subject-actions,
.workspace-disabled-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.workspace-disabled-actions {
  margin-top: 1rem;
}

.workspace-warning {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-left: 2px solid rgba(245, 158, 11, 0.42);
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.05);
}

.workspace-warning__title {
  margin: 0;
  color: rgba(253, 230, 138, 0.92);
  font-size: 0.875rem;
  font-weight: 600;
}

.workspace-warning__copy {
  margin: 0.35rem 0 0;
  color: rgba(253, 230, 138, 0.68);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.workspace-overrides-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workspace-api-key-list {
  display: flex;
  flex-direction: column;
}

.workspace-api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-api-key-row:first-child {
  border-top: 0;
}

.workspace-api-key-row--revoked {
  opacity: 0.58;
}

.workspace-api-key-row__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.workspace-inline-code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.workspace-integration-snippet pre,
.workspace-secret-block {
  margin: 0;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow-x: auto;
}

.workspace-integration-snippet code,
.workspace-secret-block code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre;
}

.workspace-modal__card--wide {
  gap: 1.25rem;
}

.workspace-reveal-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-danger-action {
  background: #dc2626;
}

.workspace-danger-action:hover {
  background: #ef4444;
}

.workspace-chip--muted {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 63, 94, 0.78);
  border-color: rgba(244, 63, 94, 0.2);
}

.workspace-override-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.workspace-override-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.workspace-override-row__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-effect-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.workspace-effect-badge--allow {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #86efac;
}

.workspace-effect-badge--deny {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.24);
  color: #fca5a5;
}

.workspace-subject-type {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workspace-subject-type__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.workspace-subject-type__option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(161, 161, 170, 0.92);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.workspace-subject-type__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.workspace-subject-type__option--selected {
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(79, 70, 229, 0.12);
  color: #c7d2fe;
}

.workspace-empty {
  margin-top: 0;
}

.workspace-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding-top: 3.5rem;
}

.workspace-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.workspace-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  margin: auto;
  padding: 1rem;
}

.workspace-modal__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-modal__header h2,
.workspace-drawer__title {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
}

.workspace-modal__close {
  color: rgba(161, 161, 170, 0.82);
  font-size: 0.8125rem;
  font-weight: 500;
}

.workspace-modal__close:hover {
  color: #fff;
}

.workspace-drawer {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  height: calc(100vh - 3.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
}

.workspace-permission-builder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-permission-builder__groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-permission-builder__group {
  margin: 0;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.workspace-permission-builder__legend {
  padding: 0 0.25rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.workspace-permission-builder__summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workspace-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.workspace-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
}

.workspace-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: #818cf8;
}

.workspace-drawer__header,
.workspace-drawer__footer {
  padding: 1.5rem;
}

.workspace-drawer__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-drawer__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
}

.workspace-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-drawer__eyebrow {
  margin: 0 0 0.375rem;
  color: rgba(161, 161, 170, 0.68);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-drawer__subline {
  margin: 0.375rem 0 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.8125rem;
}

.workspace-empty-state {
  padding: 3rem 1rem;
  text-align: center;
}

.workspace-empty-state__title {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  font-weight: 600;
}

.workspace-empty-state__copy {
  margin: 0.5rem auto 0;
  max-width: 16rem;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.workspace-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.workspace-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 600;
}

.workspace-chip--success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.18);
  color: rgba(167, 243, 208, 0.92);
}

.workspace-permission-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.workspace-permission-group__label {
  margin: 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-filter-form {
  margin-bottom: 1rem;
}

.workspace-select-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.workspace-select {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  padding: 0 0.875rem;
}

.workspace-textarea {
  width: 100%;
  min-height: 8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  padding: 0.875rem;
  resize: vertical;
}

.workspace-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #6366f1, 0 0 0 4px rgba(5, 5, 5, 1);
}

.workspace-submit {
  width: 100%;
  margin-top: 1rem;
}

.superadmin-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.superadmin-sidebar {
  position: sticky;
  top: 5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.94);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.superadmin-sidebar__header {
  padding: 1rem 1rem 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.superadmin-sidebar__nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.25rem;
}

.superadmin-sidebar__item {
  display: flex;
  align-items: center;
  padding: 0.875rem 0.9rem;
  border-radius: 0.8rem;
  color: rgba(161, 161, 170, 0.82);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.superadmin-sidebar__item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.superadmin-sidebar__item--active {
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.14);
}

.superadmin-content {
  min-width: 0;
}

.superadmin-header {
  margin-bottom: 1.75rem;
}

.superadmin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.superadmin-stat-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  padding: 1.25rem;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.24);
}

.superadmin-stat-card__label {
  margin: 0;
  color: rgba(199, 210, 254, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.superadmin-stat-card__value {
  margin: 0.75rem 0 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.superadmin-stat-card__help {
  margin: 0.75rem 0 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.superadmin-section {
  margin-top: 1.5rem;
}

.superadmin-section__header {
  margin-bottom: 1rem;
}

.superadmin-section__header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
}

.superadmin-section__header p,
.superadmin-results-label,
.superadmin-empty p,
.superadmin-table__subline {
  margin: 0.4rem 0 0;
  color: rgba(161, 161, 170, 0.72);
  font-size: 0.875rem;
}

.superadmin-search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.superadmin-table {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

.superadmin-table__head,
.superadmin-table__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
}

.superadmin-table__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(199, 210, 254, 0.62);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.superadmin-table__head--users,
.superadmin-table__row--users {
  grid-template-columns: 1.7fr 0.8fr 0.9fr 1fr;
}

.superadmin-table__head--billing,
.superadmin-table__row--billing {
  grid-template-columns: 1.5fr 0.9fr 1fr 1fr 0.7fr;
}

.superadmin-table__row {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

a.superadmin-table__row {
  transition: background-color 0.2s ease;
}

a.superadmin-table__row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.superadmin-table__name {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.superadmin-table__mono {
  display: block;
  margin-top: 0.35rem;
  color: rgba(199, 210, 254, 0.7);
  font-family: var(--font-mono), monospace;
  font-size: 0.75rem;
}

.superadmin-empty {
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.75);
  padding: 1.75rem;
  text-align: center;
}

.superadmin-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.superadmin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.superadmin-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #a5b4fc;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .projects-topbar__identity {
    display: block;
  }

  .projects-hero__controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .state-main {
    max-width: 48rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .workspace-layout,
  .workspace-overview-grid,
  .workspace-link-grid,
  .project-detail-grid,
  .superadmin-shell,
  .superadmin-detail-grid,
  .superadmin-metrics {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar,
  .superadmin-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .project-detail-metadata {
    grid-template-columns: 1fr;
  }

  .workspace-header,
  .workspace-entity-card,
  .workspace-select-row {
    flex-direction: column;
    align-items: stretch;
  }

  .project-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .workspace-drawer,
  .project-delete-button,
  .project-form-actions .button-secondary,
  .project-form-actions .button-primary,
  .project-form-actions .projects-hero__action {
    width: 100%;
  }

  .superadmin-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .superadmin-table__head,
  .superadmin-table__row,
  .superadmin-table__head--users,
  .superadmin-table__row--users {
    grid-template-columns: 1fr;
  }
}

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

.billing-card,
.billing-plan-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.5rem;
  background: rgba(10, 15, 26, 0.78);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  padding: 1.5rem;
}

.billing-card__header,
.billing-plan-card__header {
  display: grid;
  gap: 0.5rem;
}

.billing-card__title,
.billing-plan-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.billing-card__description,
.billing-plan-card__header p,
.billing-card__detail,
.billing-empty {
  color: rgba(226, 232, 240, 0.72);
}

.billing-card__stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.25rem 0;
}

.billing-stat__label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(148, 163, 184, 0.82);
  font-size: 0.85rem;
}

.billing-stat__value,
.billing-plan-card__price {
  font-size: 1.2rem;
  font-weight: 700;
}

.billing-card__actions,
.billing-plan-card__form {
  margin-top: 1.25rem;
}

.billing-warning {
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 0.95rem;
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  padding: 0.95rem 1rem;
}

.billing-usage-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.billing-usage-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.billing-plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.billing-plan-card--current {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 20px 50px rgba(8, 47, 73, 0.3);
}

.billing-plan-card__list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: rgba(226, 232, 240, 0.78);
  display: grid;
  gap: 0.55rem;
}

.billing-plan-card__action,
.billing-plan-card__current {
  margin-top: 1.25rem;
}

.billing-plan-card__current {
  color: rgba(56, 189, 248, 0.9);
  font-weight: 700;
}

@media (max-width: 900px) {
  .billing-grid {
    grid-template-columns: 1fr;
  }

  .billing-card__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__form,
  .cookie-banner__button {
    width: 100%;
  }
}
