html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

nav {
  z-index: 350 !important;
}

button,
input,
select {
  font: inherit;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-bg {
  background: linear-gradient(135deg, #064e3b, #334155);
}

.partner-strip {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(6, 78, 59, 0.96)),
    #0f172a;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  position: relative;
  z-index: 360;
}

.partner-strip-inner {
  align-items: center;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 80rem;
  padding: 0.72rem 1.5rem 0.78rem;
}

.partner-group {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.partner-group-creators {
  flex: 1 1 44rem;
}

.partner-group-collaborators {
  border-left: 1px solid rgba(209, 250, 229, 0.28);
  flex: 0 1 25rem;
  padding-left: 1.2rem;
}

.partner-group-title {
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(16, 185, 129, 0.28);
  text-transform: uppercase;
}

.partner-logo-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.partner-subgroup {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.partner-subgroup-lead {
  padding-right: 0.9rem;
}

.partner-subgroup-institutions {
  border-left: 1px solid rgba(209, 250, 229, 0.28);
  padding-left: 0.9rem;
}

.partner-link {
  align-items: center;
  border-radius: 0.45rem;
  display: inline-flex;
  transition: transform 150ms ease, filter 150ms ease;
}

.partner-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.partner-logo {
  height: 2.55rem;
  max-width: 12.25rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.35rem;
  padding: 0.25rem 0.55rem;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.2);
  color: #94a3b8;
  font-size: 10px;
}

.partner-logo-wildlabs {
  height: 3.15rem;
  max-width: 18rem;
  padding: 0.28rem 0.72rem;
}

.partner-logo-inecoa {
  height: 3.15rem;
  max-width: none;
  object-fit: cover;
  object-position: center;
  padding: 0;
  width: 6.8rem;
}

.partner-logo-local {
  height: 2.82rem;
  max-width: 13.2rem;
}

.partner-logo.missing {
  display: none;
}

.project-logo-hero {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.8rem;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
  max-height: 6.2rem;
  max-width: min(36rem, 82vw);
  object-fit: contain;
  padding: 0.6rem 0.9rem;
}

.author-orcid-link {
  border-bottom: 1px solid rgba(167, 243, 208, 0.5);
  color: rgba(209, 250, 229, 0.96);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

.author-orcid-link:hover,
.author-orcid-link:focus-visible {
  border-color: #ffffff;
  color: #ffffff;
}

.edit-key {
  background: white;
  border: 1px solid #a7f3d0;
  border-radius: 0.45rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  color: #065f46;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
}

.example-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.85rem;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.example-card:hover {
  border-color: #10b981;
  background: #ecfdf5;
  transform: translateY(-1px);
}

.example-card strong {
  display: block;
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.25;
}

.example-card span {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

.canvas-card {
  border: 1px solid #dbe3ea;
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.canvas-card.is-selected {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}

.canvas-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.65rem 0.85rem;
}

.canvas-card h3 {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.canvas-card small {
  color: #64748b;
  font-size: 0.76rem;
}

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

.queue-play,
.queue-remove {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
}

.queue-play {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.queue-play:hover {
  background: #d1fae5;
  border-color: #34d399;
}

.queue-remove {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.queue-remove:hover:not(:disabled) {
  background: #ffe4e6;
  border-color: #fb7185;
}

.queue-remove:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.canvas-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.canvas-actions button {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  color: #0f766e;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.38rem 0.58rem;
}

.canvas-actions button:hover:not(:disabled) {
  background: #ecfdf5;
  border-color: #34d399;
}

.canvas-actions button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.58;
}

.canvas-hint {
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.78rem;
  margin: 0;
  padding: 0.5rem 0.85rem;
}

.editor-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  background: white;
}

.label-pill {
  border: 1px solid transparent;
  border-radius: 0.4rem;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.24rem 0.55rem;
}

.label-telmatobius {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.label-false-positive {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}

.label-noise {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #334155;
}

.row-selected {
  background: #ecfdf5;
  box-shadow: inset 0 0 0 2px #34d399;
}

.drop-active {
  border-color: #059669 !important;
  background: rgba(236, 253, 245, 0.85) !important;
}

.upload-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.upload-picker-button {
  background: #047857;
  border: 1px solid #047857;
  border-radius: 0.55rem;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
}

.upload-picker-button:hover {
  background: #065f46;
}

.upload-picker-button.secondary {
  background: #ffffff;
  border-color: #a7f3d0;
  color: #047857;
}

.upload-picker-button.secondary:hover {
  background: #ecfdf5;
}

.settings-guide-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid #a7f3d0;
  border-radius: 0.55rem;
  color: #047857;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.settings-guide-link:hover {
  background: #ecfdf5;
  border-color: #34d399;
  transform: translateY(-1px);
}

.language-flag,
.language-flag-lg {
  border: 1px solid #e2e8f0;
  border-radius: 0.2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  display: inline-block;
  flex: 0 0 auto;
  background: #ffffff;
  object-fit: contain;
}

.language-flag {
  height: 1.15rem;
  width: 1.72rem;
}

.language-flag-lg {
  height: 1.45rem;
  width: 2.18rem;
}

.language-menu-open {
  opacity: 1 !important;
  visibility: visible !important;
}

#languageMenu {
  z-index: 320;
}

.status-dot-ready {
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.16);
}

.status-dot-error {
  background: #f43f5e;
  box-shadow: 0 0 0 5px rgba(244, 63, 94, 0.16);
}

.status-dot-loading {
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
}

@media (max-width: 700px) {
  .partner-strip-inner {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
  }

  .partner-group {
    align-items: flex-start;
    border-left: 0;
    flex: 1 1 auto;
    padding: 0.55rem;
    width: 100%;
  }

  .partner-group-collaborators {
    border-top: 1px solid rgba(209, 250, 229, 0.24);
    padding-left: 0.55rem;
    padding-top: 0.75rem;
  }

  .partner-logo-row {
    gap: 0.6rem;
    justify-content: flex-start;
  }

  .partner-subgroup-lead {
    padding-right: 0;
  }

  .partner-subgroup-institutions {
    border-left: 0;
    border-top: 1px solid rgba(209, 250, 229, 0.24);
    padding-left: 0;
    padding-top: 0.55rem;
    width: 100%;
  }

  .partner-logo {
    height: 2rem;
    max-width: 8.4rem;
  }

  .partner-logo-wildlabs {
    height: 2.55rem;
    max-width: 12.25rem;
  }

  .partner-logo-inecoa {
    height: 2.55rem;
    max-width: none;
    width: 5.6rem;
  }

  .partner-logo-local {
    height: 2.25rem;
    max-width: 9.5rem;
  }

  .project-logo-hero {
    max-height: 4.5rem;
    max-width: 92vw;
  }

  .editor-canvas {
    min-height: 250px;
  }
}
.project-video-link {
  align-items: center;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  color: #ffffff;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
}

.project-video-link:hover {
  background: #064e3b;
}

.modal-logo-row {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.access-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.1rem;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.34);
  display: flex;
  flex-direction: column;
  max-width: min(30rem, calc(100vw - 2rem));
  padding: 2rem;
  text-align: center;
  width: 100%;
}

.access-logo {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 1.15rem;
  max-height: 4.2rem;
  max-width: 18rem;
  object-fit: contain;
  padding: 0.45rem 0.75rem;
}

.access-lock {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  height: 4.4rem;
  justify-content: center;
  margin-bottom: 1.1rem;
  width: 4.4rem;
}

.access-card h2 {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 0.85rem;
}

.access-card p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.72rem;
}

.access-label {
  align-self: stretch;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 0.45rem;
  text-align: left;
}

.access-input {
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  color: #0f172a;
  font-size: 1rem;
  margin-top: 0.45rem;
  outline: none;
  padding: 0.78rem 0.9rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

.access-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.access-error {
  align-self: stretch;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 0.65rem;
  color: #be123c;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.access-button {
  background: #047857;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.24);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  margin-top: 1rem;
  padding: 0.82rem 1rem;
  transition: background 150ms ease, transform 150ms ease;
  width: 100%;
}

.access-button:hover {
  background: #065f46;
  transform: translateY(-1px);
}

.modal-logo-link {
  border-radius: 0.65rem;
  display: inline-flex;
  transition: filter 150ms ease, transform 150ms ease;
}

.modal-logo-link:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.modal-project-logo {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  max-height: 4.3rem;
  max-width: 20rem;
  object-fit: contain;
  padding: 0.48rem 0.75rem;
}

.modal-wildlabs-logo {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  max-height: 3.4rem;
  max-width: 16rem;
  object-fit: contain;
  padding: 0.45rem 0.75rem;
}

.project-video-icon {
  align-items: center;
  background: #10b981;
  border-radius: 999px;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.translation-notice {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 0.85rem;
  bottom: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  color: #ecfdf5;
  display: flex;
  gap: 0.55rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.8rem 0.95rem;
  position: fixed;
  right: 1.25rem;
  z-index: 260;
}

.translation-notice span {
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.translation-notice svg {
  color: #34d399;
  flex: 0 0 auto;
  margin-top: 0.05rem;
}

@media (max-width: 700px) {
  .translation-notice {
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    max-width: none;
  }
}
