@font-face {
  font-family: "Pirulen";
  src: local("Pirulen"),
    url("/static/fonts/pirulen.170fe40412c3.otf") format("truetype");
}

@font-face {
  font-family: "Klamp 205";
  src: local("Klamp 205"),
    url("/static/fonts/klamp-205.b145969bf917.ttf") format("truetype");
}

@font-face {
  font-family: "URW DIN";
  src: local("URW DIN"),
    url("/static/fonts/URWDINCond.93465a6b304b.ttf") format("truetype");
}

@font-face {
  font-family: "Barlow";
  src: local("Barlow"),
    url("/static/fonts/Barlow.9373fb661b5c.ttf") format("truetype");
}

@font-face {
  font-family: "Toxigenesis";
  src: local("Toxigenesis"),
    url("/static/fonts/Toxigenesis.44cfdead3442.otf") format("truetype");
}

[data-bs-theme=dark] {
  color-scheme: dark;

  --bs-body-color: #D9D9D9;
  --bs-body-color-rgb: 217, 217, 217;
  --bs-body-bg: #222832;
  --bs-body-bg-rgb: 34, 40, 50;
  --bs-emphasis-color: #FFFFFF;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-secondary-color: rgb(176, 176, 176);
  --bs-secondary-color-rgb: 176, 176, 176;
  --bs-tertiary-color: rgba(176, 176, 176, 0.55);
  --bs-tertiary-color-rgb: 176, 176, 176;
  --bs-heading-color: inherit;
  --bs-secondary-bg: #343942;
  --bs-secondary-bg-rgb: 52, 57, 66;
  --bs-tertiary-bg: #32353c;
  --bs-tertiary-bg-rgb: 50, 53, 60;
  --bs-border-color: #495057;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.12);
  --bs-primary: #29bab2;
  --bs-primary-rgb: 41, 186, 178;
  --bs-info: #348ae5;
  --bs-info-rgb: 52, 138, 229;
  --bs-dark: #141920;
  --bs-dark-rgb: 20, 25, 32;
  --bs-link-color: #29BAB2;
  --bs-link-color-rgb: 41, 186, 178;
  --bs-link-hover-color: #4AD1C9;
  --bs-link-hover-color-rgb: 74, 209, 201;
  --bs-primary-text-emphasis: #7FE5DF;
  --bs-secondary-text-emphasis: #D0D0D0;
  --bs-info-text-emphasis: #8AA3FF;
  --bs-success: #2FBF71;
  --bs-success-text-emphasis: #7EE3A4;
  --bs-warning: #F19415;
  --bs-warning-text-emphasis: #FFD27A;
  --bs-danger: #E05D6F;
  --bs-danger-text-emphasis: #FF9AA3;
  --bs-light-text-emphasis: #F8F9FA;
  --bs-dark-text-emphasis: #D9D9D9;
  --bs-primary-bg-subtle: #0B3432;
  --bs-secondary-bg-subtle: #2A303D;
  --bs-success-bg-subtle: #0B2A1A;
  --bs-info-bg-subtle: #060C4A;
  --bs-warning-bg-subtle: #33260D;
  --bs-danger-bg-subtle: #3A1216;
  --bs-light-bg-subtle: #222836;
  --bs-dark-bg-subtle: #0B0F1A;
  --bs-primary-border-subtle: #1F8F89;
  --bs-secondary-border-subtle: #41464b;
  --bs-success-border-subtle: #2F8F57;
  --bs-info-border-subtle: #4C5FE3;
  --bs-warning-border-subtle: #8A6B1F;
  --bs-danger-border-subtle: #B23A45;
  --bs-light-border-subtle: #495057;
  --bs-dark-border-subtle: #222836;
  --bs-code-color: #FF7AD9;
  --bs-highlight-color: #D9D9D9;
  --bs-highlight-bg: #1B255E;
  --bs-form-control-bg: #22262b;
  --bs-form-select-bg: #222836;
  --bs-form-control-color: #D9D9D9;
  --bs-form-control-border-color: rgba(255, 255, 255, 0.16);
  --bs-form-control-placeholder-color: rgba(176, 176, 176, 0.55);
  --bs-focus-ring-width: 0.25rem;
  --bs-focus-ring-color: rgba(41, 186, 178, 0.35);
  --bs-form-valid-color: #2FBF71;
  --bs-form-valid-border-color: #2FBF71;
  --bs-form-invalid-color: #E05D6F;
  --bs-form-invalid-border-color: #E05D6F;
  --bs-swap-rgb: 227, 115, 131;
}

.dropdown-item {
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-color: #FFFFFF;
  --bs-dropdown-link-active-bg: var(--bs-primary);
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-link-hover-color);
  --bs-btn-hover-border-color: var(--bs-link-hover-color);
  --bs-btn-active-bg: var(--bs-link-color);
  --bs-btn-active-border-color: var(--bs-link-color);
  --bs-btn-disabled-bg: var(--bs-primary-border-subtle);
  --bs-btn-disabled-border-color: var(--bs-primary-border-subtle);
}


.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
  --bs-btn-secondary-color: #D9D9D9;
  --bs-btn-secondary-bg: var(--bs-secondary-bg);
  --bs-btn-secondary-border-color: rgba(255, 255, 255, 0.20);
  --bs-btn-secondary-hover-color: #FFFFFF;
  --bs-btn-secondary-hover-bg: #2A303D;
  --bs-btn-secondary-hover-border-color: #FFFFFF;
  --bs-btn-secondary-active-color: #FFFFFF;
  --bs-btn-secondary-active-bg: #343942;
  --bs-btn-secondary-active-border-color: #FFFFFF;
  --bs-btn-secondary-disabled-color: rgba(217, 217, 217, 0.65);
  --bs-btn-secondary-disabled-bg: var(--bs-secondary-bg);
  --bs-btn-secondary-disabled-border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .card .form-control:not([disabled]),
[data-bs-theme="dark"] .card .form-select:not([disabled]) {
  background-color: var(--bs-form-control-bg);
}

.body {
  padding-top: 0;
}

body.login-bg {
  background: url("/static/login-bg.125b94b06b0d.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: fit-content;
  min-width: fit-content;
  padding: 0;
  color: #fff;
}

.login-center {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.input {
  width: 40%;
  height: 40px;
  border-radius: 3px;
  border: 1px solid #797979;
  background: var(--white, #fff);
  font-family: "URW DIN";
  font-size: 16;
  color: #797979;
}

.input-label {
  font-family: "URW DIN";
  font-size: 18;
  font-weight: 600;
}

label.required::after {
  content: " *";
  color: #dc3545;
}

.mobile-header {
  height: 42px;
}

.navbar-avatar {
  width: 28px;
  height: 28px;
}

.header {
  height: 310px;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(180deg, #000a65 9.38%, #01031a 83.85%);
  display: block;
}

.header-title {
  font-family: "Pirulen";
  font-size: 35px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  margin-left: 109px;
  margin-top: 161px;
}

.member {
  font-family: "Barlow";
  font-weight: 400;
  color: #FFF;
  font-size: 18px;
  text-transform: capitalize;
  vertical-align: middle;

}

.members-line {
  border-top: 1px solid #FFF;
  opacity: 1;
}

.page-item .page-link {
  background-color: #141920;
  color: #FFFFFF;
  border: 1px solid #B0B0B0;
  margin: 0 3px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  user-select: none;
  cursor: pointer;
}

.page-item .page-link:hover {
  background-color: #222832;
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.page-item.active .page-link {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.page-item.disabled .page-link {
  background-color: #141920;
  border-color: #222832;
  color: #777;
  cursor: not-allowed;
}

.desktop-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  padding-bottom: 5px;
  z-index: 1031;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Global search (nav bar) ---- */
.nav-search {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 30px;
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.nav-search:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.25);
}

.nav-search-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
}

.nav-search-body {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.1rem;
  right: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.nav-search-pills {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  /* Keep horizontal scrolling, but hide the scrollbar — it was overlapping the pills.
     scrollbar-width (Firefox) + -ms-overflow-style (legacy Edge) + the ::-webkit
     rule below (Chrome/Safari) cover every engine. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-search-pills::-webkit-scrollbar {
  display: none;
}

.nav-search-filter-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.15rem;
  padding: 0.1rem 0.3rem 0.1rem 0.45rem;
  font-size: 0.68rem;
  line-height: 1.3;
  border-radius: 0.75rem;
  background-color: rgba(var(--bs-primary-rgb), 0.85);
  color: #fff;
  white-space: nowrap;
  user-select: none;
}

.nav-search-filter-pill-label {
  font-family: ui-monospace, monospace;
  letter-spacing: 0;
}

.nav-search-filter-pill-prefix {
  font-weight: 400;
  opacity: 0.8;
}

.nav-search-filter-pill-label strong {
  font-weight: 700;
}

.nav-search-filter-pill-remove {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav-search-filter-pill-remove:hover {
  opacity: 1;
}

.nav-search-filter-pill--scope {
  background-color: rgba(111, 66, 193, 0.85);
}

.nav-search-filter-pill:focus {
  outline: none;
}

.nav-search-filter-pill:focus .nav-search-filter-pill-remove {
  color: var(--bs-danger);
  opacity: 1;
}

.nav-search-input-wrap {
  position: relative;
  flex: 1 0 35%;
  min-width: 80px;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-search-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: pre;
  font-size: 0.875rem;
  font-family: inherit;
  letter-spacing: normal;
  pointer-events: none;
}

.nav-search-ghost-completion {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-tertiary-color);
  opacity: 0.55;
  font-size: 0.875rem;
  font-family: inherit;
  letter-spacing: normal;
  white-space: pre;
  pointer-events: none;
  z-index: 0;
}

.nav-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: auto;
  padding: 0;
  font-size: 0.875rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--bs-body-color);
  position: relative;
  z-index: 1;
  text-overflow: ellipsis;
}

.nav-search-input::placeholder {
  color: var(--bs-tertiary-color);
}

.nav-search-input:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--bs-body-color);
  outline: none;
}

.nav-search-input::-webkit-search-cancel-button {
  display: none;
}

.nav-search-hint {
  position: absolute;
  top: 50%;
  right: 2.1rem;
  transform: translateY(-50%);
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  color: var(--bs-secondary-color);
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.25rem;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.15s;
  z-index: 2;
}

.nav-search:focus-within .nav-search-hint,
.nav-search.has-value .nav-search-hint {
  opacity: 0;
  pointer-events: none;
}

.nav-search-clear {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.1rem 0.25rem;
  color: var(--bs-secondary-color);
  opacity: 0.7;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: none;
  align-items: center;
  z-index: 3;
  transition: opacity 0.15s;
}

.nav-search.has-value .nav-search-clear {
  display: flex;
}

.nav-search-clear:hover {
  opacity: 1;
  color: var(--bs-body-color);
}

/* Filter toggle icon — persistent entry point to the quick-filter tray */
.nav-search-filter-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.1rem 0.25rem;
  color: var(--bs-secondary-color);
  opacity: 0.8;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: flex;
  align-items: center;
  z-index: 3;
  transition: color 0.15s, opacity 0.15s;
}

.nav-search-filter-toggle:hover {
  opacity: 1;
  color: var(--bs-body-color);
}

.nav-search-filter-toggle.is-active {
  color: var(--bs-primary);
  opacity: 1;
}

/* Quick-filter tray — single scrollable row of filter pills below the bar */
.nav-search-tray[hidden],
.nav-search-org-picker[hidden] {
  display: none;
}

.nav-search-tray {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1041;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-search-tray::-webkit-scrollbar {
  display: none;
}

.nav-search-tray-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  line-height: 1.3;
  white-space: nowrap;
  border-radius: 0.75rem;
  border: 1px solid var(--bs-border-color);
  background-color: transparent;
  color: var(--bs-body-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}

.nav-search-tray-pill i {
  font-size: 0.8rem;
  opacity: 0.85;
}

.nav-search-tray-pill:hover {
  border-color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.12);
}

.nav-search-tray-pill.is-active {
  background-color: rgba(var(--bs-primary-rgb), 0.85);
  border-color: rgba(var(--bs-primary-rgb), 0.85);
  color: #fff;
}

.nav-search-tray-pill.is-active i {
  opacity: 1;
}

.nav-search-tray-pill--filter.is-active {
  background-color: rgba(111, 66, 193, 0.85);
  border-color: rgba(111, 66, 193, 0.85);
}

.nav-search-tray-pill:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 1px;
}

/* Org-scope picker popover anchored under the Organizations pill */
.nav-search-org-picker {
  position: absolute;
  z-index: 1042;
  width: 320px;
  max-width: calc(100% - 8px);
  padding: 0.4rem;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-search-org-picker-input {
  width: 100%;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  color: var(--bs-body-color);
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.35rem;
  margin-bottom: 0.3rem;
}

.nav-search-org-picker-input:focus {
  outline: none;
  border-color: var(--bs-primary);
}

.nav-search-org-picker-list {
  max-height: 240px;
  overflow-y: auto;
}

.nav-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px + var(--nav-tray-offset, 0px));
  left: 0;
  right: 0;
  width: auto;
  z-index: 1040;
  max-height: 70vh;
  padding: 0.25rem 0;
  overflow-y: auto;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-search-dropdown.show {
  display: block;
}

.nav-search-dropdown--suggest {
  right: auto;
  width: 320px;
  max-width: calc(100% - 8px);
}

/* Filter keyword suggestion list — shown on bare ':' in the nav search */
.search-suggest-header {
  padding: 0.35rem 0.75rem 0.15rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-tertiary-color);
}

.search-filter-suggest-row {
  display: block;
  width: 100%;
  padding: 0.3rem 0.75rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

.search-filter-suggest-row:hover,
.search-filter-suggest-row.is-active {
  background: var(--bs-tertiary-bg);
}

.suggest-prefix {
  color: var(--bs-secondary-color);
  font-weight: 400;
}

.suggest-typed {
  color: var(--bs-primary);
  font-weight: 600;
}

.suggest-rest {
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.search-org-suggest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.75rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bs-body-color);
  font-size: 0.875rem;
  gap: 0.5rem;
}

.search-org-suggest-row:hover,
.search-org-suggest-row.is-active {
  background: var(--bs-tertiary-bg);
}

.search-org-suggest-icon {
  flex-shrink: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

.search-org-suggest-name {
  flex: 1;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-org-suggest-type {
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* Result groups / rows — shared by the nav dropdown and the full results page */
.search-group {
  padding: 0.25rem 0;
}

.search-group + .search-group {
  border-top: 1px solid var(--bs-border-color-translucent);
}

.search-group-label {
  padding: 0.35rem 0.85rem 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-secondary-color);
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  color: var(--bs-body-color);
  text-decoration: none;
}

.search-result-row:hover {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-emphasis-color);
}

.search-result-title {
  font-weight: 500;
}

.search-result-context {
  margin-left: auto;
  white-space: nowrap;
}

.search-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.3rem;
  font-size: 0.85rem;
  color: #fff;
}

.search-badge-project {
  background-color: #348ae5;
}

.search-badge-event {
  background-color: #b06fd6;
}

.search-badge-capability {
  background-color: #29bab2;
}

.search-badge-showcase {
  background-color: #e0944d;
}

.search-badge-organization {
  background-color: #788494;
}

.search-badge-collection {
  background-color: #6366f1;
}

.search-badge-person {
  background-color: #d1699a;
}

.search-result-org-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* List-view owner/subtext — a touch smaller than the default .small. */
.search-result-item .small {
  font-size: 0.75rem;
}

.search-filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--bs-tertiary-bg);
  border-radius: 0.75rem;
  padding: 1rem;
}

.srf-corner-toggle {
  border: none;
  background: transparent;
  padding: 0.15rem 0.35rem;
  line-height: 1;
  color: var(--bs-secondary-color);
}

.srf-corner-toggle:hover {
  color: var(--bs-body-color);
}

.search-filter-rail {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.search-filter-rail .btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

/* Card view doesn't have room to breathe on mobile widths — hide the button.
   List view remains the only usable option below the md breakpoint. */
@media (max-width: 767.98px) {
  .srf-card-view-toggle {
    display: none;
  }
}

.search-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  text-decoration: none;
  color: var(--bs-body-color);
  font-size: 0.8rem;
}

.search-summary-row:hover {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}

.search-summary-text {
  min-width: 0;
}

.search-summary-enter {
  flex-shrink: 0;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* Mobile global search overlay ------------------------------------------- */
/* Additive rules for the nav_search component rendered inside the mobile
   offcanvas (#mobile-search-overlay). Every rule is scoped to
   .mobile-search-overlay so the desktop bar (fixed max-width:800px, height:30px)
   is untouched. */
.mobile-search-overlay .nav-search {
  max-width: none;
  height: 44px; /* iOS minimum touch target */
}

/* Every .nav-search-input instance must stay >=16px on mobile — Safari
   zooms the whole page on focus for anything smaller. Scoped as a viewport
   query (not per-instance) so it covers any current or future mobile
   instance, not just .mobile-search-overlay. */
@media (max-width: 767.98px) {
  .nav-search-input {
    font-size: 16px;
  }
}

/* Give the pills their own row instead of packing icon + pills + input +
   clear + funnel into one 44px row — at iPhone width (~343px usable) a
   single "includes: Long Org Name" pill squeezes the input down to ~80px.
   The offcanvas has vertical room, so wrap and let pills claim a full-width
   second line while the input keeps full width on its own line. */
.mobile-search-overlay .nav-search-body {
  flex-wrap: wrap;
}

.mobile-search-overlay .nav-search-pills {
  order: 2;
  flex-basis: 100%;
}

/* >=44px tap area for icon-only controls in the overlay (they inherit the
   compact desktop 0.1rem/0.25rem padding otherwise). */
.mobile-search-overlay .nav-search-clear,
.mobile-search-overlay .nav-search-filter-toggle {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

/* Full-screen results panel instead of the desktop absolute 70vh popover.
   `top` is set in JS (updateDropdownPosition) from the search bar's actual
   getBoundingClientRect() rather than a hardcoded viewport offset — a fixed
   pixel guess from the viewport top ignores the offcanvas header row (close
   button) above the bar and ends up overlapping the input instead of sitting
   below it. */
.mobile-search-overlay .nav-search-dropdown {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-height: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

/* Suggest mode is full-width on mobile too (the desktop caret-tracking offset
   is disabled in JS via the isDesktop guard in updateDropdownPosition). */
.mobile-search-overlay .nav-search-dropdown--suggest {
  width: auto;
}

/* Taller touch targets for tray pills and org/person suggest rows. */
.mobile-search-overlay .nav-search-tray-pill,
.mobile-search-overlay .search-org-suggest-row {
  min-height: 40px;
}

/* Filter picker fills the width instead of the desktop 320px popover. */
.mobile-search-overlay .nav-search-org-picker {
  position: fixed;
  left: 8px;
  right: 8px;
  width: auto;
  max-width: none;
}

/* Search result cards (card-view mode) ----------------------------------- */
.search-card {
  --search-card-h: 5.75rem;
  display: flex;
  align-items: stretch;
  min-height: var(--search-card-h);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.search-card:hover {
  border-color: var(--bs-primary);
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}

/* Banner variant: 4:3 image flush to the left edge. */
.search-card-media {
  flex-shrink: 0;
  width: calc(var(--search-card-h) * 4 / 3);
  height: var(--search-card-h);
  object-fit: cover;
  display: block;
  background: var(--bs-secondary-bg);
}

/* Collection variant: the 4:3 left slot is a mosaic of item banners (1/2/3),
   mirroring the collection list/home-widget card. */
.search-card-mosaic {
  display: grid;
  gap: 2px;
  overflow: hidden;
}

.search-card-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-card-mosaic--2 {
  grid-template-columns: 1fr 1fr;
}

.search-card-mosaic--3 {
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* First (largest) banner spans both rows on the left. */
.search-card-mosaic--3 > img:first-child {
  grid-row: 1 / span 2;
}

.search-card-mosaic-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  background: var(--bs-dark-bg-subtle);
  color: var(--bs-secondary-color);
  font-size: 1.75rem;
}

/* Avatar variant: large centered circular image in a square gutter. */
.search-card-avatar-frame {
  flex-shrink: 0;
  width: var(--search-card-h);
  height: var(--search-card-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-card-avatar-img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.search-card-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
}

.search-card-title {
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-card-owner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}

.search-card-owner-logo {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.search-card-owner-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Per-type metadata — a vertically-centered right-hand aside. The top-right
   corner stays free for a future date. */
.search-card-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem;
  text-align: right;
  max-width: 45%;
}

.search-card-meta-text {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Capability tag chips. */
.search-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  overflow: hidden;
  max-height: 3.25rem;
}

.search-card-tags .badge {
  font-weight: 500;
}

/* Thinner cards on mobile — the 5.75rem desktop row height (plus 0.6rem gap +
   0.75rem/1rem padding in search-card-body) reads as bulky on a phone-width
   single-column stack. Shrink the media/avatar gutter and tighten body
   spacing; text stays >=0.8rem (nothing here touches nav-search-input, which
   must stay 16px per the iOS-zoom rule above). */
@media (max-width: 575.98px) {
  .search-card {
    --search-card-h: 3.75rem;
  }

  .search-card-avatar-img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .search-card-body {
    gap: 0.25rem;
    padding: 0.5rem 0.65rem;
  }

  .search-card-owner {
    font-size: 0.75rem;
  }

  .search-card-owner-logo {
    width: 1rem;
    height: 1rem;
  }

  .search-card-aside {
    padding: 0.5rem 0.65rem;
    max-width: 38%;
  }

  .search-card-meta-text {
    font-size: 0.7rem;
  }

  .search-card-tags {
    max-height: 2.25rem;
  }

  .search-card-tags .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
  }
}

/* Collection list cards -------------------------------------------------- */
/* Match the event-card footprint (height + grid breakpoints). */
.collection-card {
  min-height: 333px;
}

/* Banner mosaic built from the first items added to a collection: one banner
   fills the strip, two split it, three lay out as one large + two stacked. */
.collection-card-banner {
  display: grid;
  gap: 2px;
  height: 220px;
  background-color: var(--bs-dark);
  overflow: hidden;
}

.collection-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-card-banner--1 {
  grid-template-columns: 1fr;
}

.collection-card-banner--2 {
  grid-template-columns: 1fr 1fr;
}

.collection-card-banner--3 {
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* First (largest) banner spans both rows on the left. */
.collection-card-banner--3 > img:first-child {
  grid-row: 1 / span 2;
}

.collection-card-banner-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-dark-bg-subtle);
  color: var(--bs-secondary-color);
  font-size: 2.5rem;
}

/* On the event-showcase detail page the Save-to-Collection kebab sits beside the
   info toggle, so match that toggle exactly: same tertiary-bg background and light
   icon color. Scoped to the toggle button only (not the dropdown items); !important
   overrides the component's `bg-dark bg-opacity-50` + text-secondary, which win
   otherwise (bg utilities are themselves !important). */
.showcase-collection-kebab button[data-bs-toggle="dropdown"] {
  background: var(--bs-tertiary-bg) !important;
  color: var(--bs-light) !important;
}

.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  z-index: 1030;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
  flex: 1;
  flex-wrap: nowrap;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  min-height: 0;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  gap: 6px;
  padding: 10px 8px;
  width: 100%;
  transition: color 0.15s;
  border-radius: 0;
}

.sidebar-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 46px;
  border-radius: 12px;
  transition: background-color 0.15s;
}

.sidebar-tab svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.sidebar-tab.active {
  color: #fff;
}

.sidebar-tab.active .sidebar-tab-icon {
  background-color: rgba(25,63,70);
}

.sidebar-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-tab:hover:not(.active) .sidebar-tab-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-tab-label {
  font-size: 0.72rem;
  font-family: "Klamp 205";
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.sidebar-user {
  position: relative;
  flex-shrink: 0;
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Remove default <details> triangle marker */
.sidebar-user>summary {
  list-style: none;
}

.sidebar-user>summary::-webkit-details-marker {
  display: none;
}

.sidebar-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.sidebar-user-btn:hover,
.sidebar-user[open] .sidebar-user-btn {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-user-menu {
  position: absolute;
  bottom: 0;
  left: calc(100% + 8px);
  min-width: 220px;
  background-color: var(--bs-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sidebar-user-menu .dropdown-item,
.sidebar-user-menu summary.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  color: #d9d9d9;
  font-size: 0.875rem;
  text-decoration: none;
  background-color: transparent;
  border: 0;
  white-space: nowrap;
}

.sidebar-user-menu .dropdown-item:hover,
.sidebar-user-menu summary.dropdown-item:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-user-menu .dropdown-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 4px 0;
}

/* My Organization nested submenu */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-submenu>ul {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

.sidebar-submenu>summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.sidebar-submenu>summary::-webkit-details-marker {
  display: none;
}

.sidebar-submenu>summary .bi-chevron-down {
  transition: transform 0.15s;
}

.sidebar-submenu[open]>summary .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.core-font {
  font-family: "Klamp 205";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.toxigenesis {
  font-family: "Toxigenesis";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.core-subtitle {
  color: #FFF;
  font-family: "Klamp 205";
  font-size: clamp(14px, 2.5vw, 25px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.core-p {
  color: #FFF;
  font-family: "URW DIN";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* used to limit the description to a certain amount of lines while also adding ellipses if the text overflows. Bootstrap can do one or the other so we have ot use webkit extensions */
.truncate-description {
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.avatar-container {
  margin-left: 200px;
}

.company-avatar {
  transition: opacity 0.3s ease;
  /* Transition for opacity */
}

.company-avatar:hover {
  opacity: 0.7;
}

.avatar-container:hover .company-icon i {
  visibility: visible;
}

.company-icon {
  visibility: hidden;
  color: #fff;
}

.image-placeholder {
  border: 3px dashed #B0B0B0;
  background: rgba(217, 217, 217, 0.10);
}

.header-company {
  border-radius: 11px;
  border: 2px solid #A1A1A1;
  background: #222832;
}

.header-company-title {
  font-family: "Klamp 205";
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
}

.header-company-subtitle {
  font-family: "Toxigenesis";
  font-style: normal;
  font-weight: 700;
  font-size: clamp(0.9rem, 4vw, 2rem);
  line-height: normal;
  text-transform: uppercase;
}

.klamp {
  font-family: "Klamp 205";
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
}

.home-card-title {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.barlow {
  font-family: "Barlow";
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
}

.header-underline::after {
  content: " ";
  display: block;
  height: 5px;
  background-color: #222832;
}

.active::after {
  background-color: var(--bs-primary);
  border-radius: 10px;
}

.capability-title {
  color: #FFFFFF;
  text-align: center;
  text-transform: uppercase;
  font-family: "Klamp 205";
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.capability-card-img-wrap {
  flex-shrink: 0;
  border-right: 1px solid var(--bs-border-color);
  overflow: hidden;
  width: clamp(80px, 15vw, 150px);
  height: clamp(60px, 10vw, 100px);
}

.capability-card-logo {
  width: clamp(28px, 5vw, 50px);
  height: clamp(28px, 5vw, 50px);
  flex-shrink: 0;
}

.rhombus {
  margin: 0.5rem;
  border: 2px solid var(--bs-warning);
  height: 40px;
  min-width: 150px;
  transform: skewX(-30deg);
}

.rhombus-text-correction {
  transform: skewX(30deg);
}

.rhombus-btn {
  cursor: pointer;
  border-color: var(--bs-secondary-color) !important;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rhombus-btn:hover {
  border-color: var(--bs-emphasis-color) !important;
  color: var(--bs-emphasis-color);
}

.btn-check:checked+.rhombus-btn {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary) !important;
  color: var(--bs-emphasis-color);
}

.company-card-start {
  width: 100px;
  height: 100px;
}

.company-banner-img {
  width: 150px;
  height: 100px;
  transition: opacity 0.2s ease-in-out;
}

.company-banner-img:hover {
  opacity: 0.8;
}

.tree-sidebar {
  width: 60px;
}

.tree-elbow {
  position: absolute;
  top: 10%;
  bottom: 50%;
  left: 50%;
  width: 30%;
  border-left: 2px solid var(--bs-secondary);
  border-bottom: 2px solid var(--bs-secondary);
  border-bottom-left-radius: 15px;
}

.file-card {
  height: 100%;
  position: relative;
  transition: box-shadow 0.2s ease-in-out;
}

.file-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hover-btn {
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.file-card:hover .hover-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Due to differences in Firefox and Safari,
rendering requires modifying height of quill text editor */
.vLargeTextField .ql-container,
.vLargeTextField .ql-container .ql-editor {
  height: unset;
}

.vLargeTextField .ql-container .ql-editor {
  min-height: 150px;
  max-height: 540px;
  overflow: auto;

}

.unread-message {
  box-shadow: 0 0 8px #942a35;
}

.hidden-checkbox {
  position: absolute;
  transform: scale(2);
  cursor: pointer;
  opacity: 0;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.08);
}

.project-card-title {
  color: #ffffff;
  font-family: "Klamp 205";
  font-size: clamp(18px, 3vw, 38px);
  font-style: bold;
  font-weight: 700;
  line-height: normal;
}

.project-card-subtitle {
  color: #D9D9D9;
  font-family: "Klamp 205";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.project-card-due {
  color: var(--bs-warning);
  font-family: "Klamp 205";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.back-btn {
  text-decoration: none;
  text-transform: uppercase !important;
  font-size: 16px;
  color: #FFF;
  font-family: "Klamp 205";
  font-weight: 700;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  color: #B0B0B0;
  position: relative;
  cursor: pointer;
}

.tab-button.active {
  color: #29BAB2;
}

.nav-pills .nav-link {
  color: #adb5bd;
  transition: all 0.2s;
}

.nav-pills .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-pills .nav-link.active {
  background-color: #29bab2;
  color: #fff;
}

/* Thumbnail container for Dropzone */
.dz-image {
  width: 100px;
  height: 100px;
  overflow: hidden;
}

/* Thumbnail image for Dropzone */
.dz-image img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  transition: filter 0.2s ease-in-out;
  position: static !important;
}

#id_banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.upload-box.drag-active {
  border-color: #57b7a6 !important;
  background-color: rgba(87, 183, 166, 0.1);
}

.gradient-header {
  height: 40vh;
  border-bottom: 2px solid rgba(255, 255, 255, 1);
  background: linear-gradient(94.53deg, #1D5657 -10.88%, #01031A 42.17%);
  display: flex;
  align-items: end;
  justify-content: center;
}

.core-logo-login {
  width: 381px;
  height: 150px;
  max-width: 80%;
  opacity: 1;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.login-card-frame {
  border: 2px solid rgba(255, 255, 255, 1);
  width: 534px;
  max-width: 100%;
  height: fit-content;
  opacity: 1;
}

@media (max-width: 576px) {
  .gradient-header {
    height: 30vh;
  }

  .core-logo-login {
    height: auto;
  }
}

.input-login {
  font-family: "Barlow";
  font-weight: 400;
  font-size: 16px;
  scroll-margin-top: 16px;
}

/* company select cards */
.select-card {
  cursor: pointer;
}

.select-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.select-card .icon-dash {
  display: none;
}

/* When checked: swap + -> - */
.select-card input[type="checkbox"]:checked~.action-btn .icon-plus {
  display: none;
}

.select-card input[type="checkbox"]:checked~.action-btn .icon-dash {
  display: inline-block;
}

.select-card:hover .card {
  border-color: var(--bs-primary) !important;
}

.select-card .action-btn {
  background: var(--bs-primary);
  border: 2px solid var(--bs-primary);
}

.select-card input[type="checkbox"]:checked~.action-btn {
  background: transparent;
  border: 2px solid var(--bs-primary);
}

.custom-tooltip {
  --bs-tooltip-bg: var(--bs-primary-bg-subtle);
  --bs-tooltip-color: var(--bs-dark-text-emphasis);
}

#cropperModal {
  z-index: 1070 !important;
}

.cropper-circle .cropper-view-box,
.cropper-circle .cropper-face {
  border-radius: 50%;
}

.cropper-modal {
  opacity: 0.8;
}

#cropperModal {
  z-index: 1070 !important;
}

.cropper-circle .cropper-view-box,
.cropper-circle .cropper-face {
  border-radius: 50%;
}

.cropper-modal {
  opacity: 0.8;
}

/* Phones: the cropper modal is full-screen (modal-fullscreen-sm-down), so the
   image area fills the space between the pinned header and footer instead of
   the fixed desktop cap. Cropper.js sizes its container to .img-container's
   offsetHeight, and Bootstrap's .modal-body already flex-grows here. */
@media (max-width: 575.98px) {
  #cropperModal .img-container {
    height: 100%;
    max-height: none;
  }
}

.locked-milestone-card {
  min-height: 10rem;
  overflow: hidden;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

.locked-milestone-content {
  position: relative;
  z-index: 2;
  min-height: 10rem;
  color: rgba(255, 255, 255, 0.9);
}

.milestone-form label {
  font-family: "Klamp 205";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.coin-avatar {
  width: 100%;
  max-width: 174px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  z-index: 10;
  flex-shrink: 0;
  border: 6px solid #b9982a;
  outline: 13px solid #ffdd6f;
  box-shadow:
    0 0 0 1px #8a701e,
    3px 3px 10px rgba(0, 0, 0, 0.5);
  background-color: #333;
}

.project-complete-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(176, 176, 176, 1);
  border-radius: 8px;
  flex-grow: 1;
  color: white;
  padding: 25px 25px 25px 30px;
  height: 200px;
}

@media (max-width: 1200px) {
  .project-complete-card {
    height: auto;
    min-height: 160px;
    align-items: center;
    text-align: center;
  }

  .card-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .project-card-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (max-width: 980px) {
  .project-card-wrapper {
    flex-direction: column;
    align-items: center;
    padding-left: 0 !important;
  }

  .coin-avatar {
    display: none;
  }

  .project-complete-card {
    margin-left: 0;
    width: 100%;
    height: auto;
    min-height: 140px;
  }

  .card-top-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .project-card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.status-pill {
  border: 2px solid var(--bs-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: "Klamp 205";
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.project-complete-header {
  background-color: rgba(34, 40, 50, 1);
  padding: 30px 10px 30px 30px;
}

.project-description {
  font-family: "URW DIN";
  font-weight: 500;
  font-size: 18px;
  color: rgba(255, 255, 255, 1);
  width: 70%;
}

.accordion-button::after {
  filter: invert(1) grayscale(100%) brightness(200%);
  margin-right: 20px;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: white;
}

.accordion-button:not(.collapsed) {
  background-color: #212529;
  color: white;
  box-shadow: none;
}

.accordion-button:hover {
  background-color: #2c3034;
}

.btn-reactivate {
  background-color: transparent;
  border: 2px solid var(--bs-primary);
  color: white;
  padding: 10px 24px;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-reactivate:hover {
  background-color: rgba(94, 234, 212, 0.1);
  box-shadow: 0 0 15px rgba(94, 234, 212, 0.4);
  color: #ffffff;
  border-color: var(--bs-primary);
}

.btn-reactivate:active {
  background-color: rgba(94, 234, 212, 0.2);
  transform: translateY(1px);
}

.btn-modal-filled {
  background-color: var(--bs-primary);
  border: 2px solid var(--bs-primary);
  color: #1f2329;
  font-weight: bold;
  padding: 8px 30px;
  min-width: 100px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-modal-filled:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  transform: translateY(-1px);
}

.btn-modal-outline {
  background: transparent;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  color: white;
  font-weight: bold;
  padding: 8px 30px;
  min-width: 100px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-modal-outline:hover {
  background-color: rgba(94, 234, 212, 0.1);
  color: #fff;
  border-color: #fff;
}

.deliverable-table-list .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
}

.text-primary {
  color: var(--bs-primary);
}

.deliverable-table-list thead th {
  font-family: "Klamp 205";
  font-size: 20px;
  font-style: bold;
  font-weight: 700;
}

.deliverable-table-list tbody tr {
  font-family: "Klamp 205";
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
}

.bg-primary {
  background-color: var(--bs-primary);
}

.bold-icon {
  -webkit-text-stroke-width: 1px;
}

.icon-wrapper {
  width: 35px;
  height: 35px;
  background-color: #0b0f14;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.milestone-title {
  font-family: "Klamp 205";
  font-size: 27px;
  font-style: bold;
  font-weight: 700;
  line-height: 100%;
}

.milestone-detail {
  font-family: "Barlow";
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
}

.member-avatar {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  object-fit: scale-down;
  background-color: #ffffff;
  filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.25));
  border: 1px solid #ffffff;
}

.member-link {
  transition: background-color 0.2s ease, transform 0.2s ease;
  color: inherit;
}

.member-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transform: translateX(5px);
}

.toggle-icon {
  transition: transform 0.2s ease;
  display: inline-block;
}

button[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.member-row-hover {
  transition: background-color 0.2s ease;
}

.member-row-hover:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.milestone-card {
  scroll-margin-top: 100px;
  transition: all 0.5s ease-in-out;
}

.milestone-card:target {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgb(125, 212, 208);
  background-color: rgba(146, 198, 202, 0.05);
  transform: scale(1.01);
}

.table-dark-preview {
  background: rgba(34, 40, 50, 1);
}

.action-btn {
  width: 40px;
  height: 40px;
}

.skip-button {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  border: none;
}

.sidebar-title {
  font-family: "Klamp 205";
  font-size: 18px;
  font-weight: 700;
  font-style: bold;
  text-transform: uppercase;
}

.conversation-sidebar-title {
  font-family: "Barlow";
  font-size: 18px;
  font-weight: 700;
  font-style: bold;
  text-transform: uppercase;
}

.chat-text {
  font-family: "Barlow";
  font-weight: 400;
}

.full-height-container {
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

.chat-list-btn {
  transition: background-color 0.2s ease;
}

.chat-list-btn:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
}

.active-chat {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-title {
  font-family: "Klamp 205";
  font-size: 25px;
  font-weight: 700;
  font-style: bold;
  text-transform: uppercase;
}

.chat-box-content {
  background-color: rgba(255, 255, 255, 0.05);
}

.chat-box-company {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 6px 6px;
}

#member-sidebar-content .card {
  border-color: white;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#member-sidebar-content .card::-webkit-scrollbar {
  width: 6px;
}

#member-sidebar-content .card::-webkit-scrollbar-track {
  background: transparent;
}

#member-sidebar-content .card::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

#member-sidebar-content .card::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

#memberSidebar.collapsing {
  transition: width 0.35s ease-in-out;
}

#memberSidebar .custom-scrollbar {
  min-width: 300px;
}

.bg-table-header {
  background-color: rgba(255, 255, 255, 0.25) !important;
}

.bg-table-header th button,
.bg-table-header th button * {
  font: inherit !important;
  text-transform: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.table-header-cell {
  font-family: "Klamp 205";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-align: left !important;
  padding: 1rem !important;
}

.btn-table-header {
  padding: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: white;
}

.btn-invite-action {
  background-color: var(--bs-primary);
  border: 0;
  border-left: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 72px;
}

.asteriskField {
  color: var(--bs-danger);
}

.company-checkbox:not(:checked)+.card .btn-added-text,
.company-checkbox:not(:checked)+.card .btn-hover-remove-text {
  display: none;
}

.company-checkbox:checked+.card .btn-add-text,
.company-checkbox:checked+.card .btn-hover-remove-text {
  display: none;
}

.company-checkbox:checked+.card .btn-select-company:hover .btn-added-text {
  display: none;
}

.company-checkbox:checked+.card .btn-select-company:hover .btn-hover-remove-text {
  display: inline-block;
}

.company-checkbox:not(:checked)+.card .btn-select-company {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

.company-checkbox:checked+.card .btn-select-company {
  background-color: var(--bs-success);
  color: white;
  border-color: var(--bs-success);
}

.company-checkbox:checked+.card .btn-select-company:hover {
  background-color: var(--bs-danger);
  border-color: var(--bs-danger);
}

.btn-select-company {
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-align: center;
}

.chat-filter-btn {
  border-color: #ffffff;
}

.chat-filter-btn:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.active-tab {
  background-color: rgba(41, 186, 178, 1);
  color: #ffffff;
}

.active-tab:hover {
  background-color: rgba(41, 186, 178, 0.8);
  border-color: #ffffff;
  color: #ffffff;
}

.ql-editor.ql-view {
  height: auto;
  padding: 0;
}

#pillScroll {
  --node-size: 66px;
  --node-half: 33px;
  --bar-width: clamp(400px, 30vw, 500px);

  container-type: inline-size;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  height: 400px;
  padding-top: 50px;
}

#pillScroll::-webkit-scrollbar {
  display: none;
}

.scroll-arrow {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.scroll-arrow:hover {
  opacity: 1;
}

.milestone-node {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.9);
  filter: grayscale(1) brightness(0.7);
  z-index: 2;
}

.milestone-node.is-centered {
  transform: scale(1.3);
  filter: grayscale(0) brightness(1.1);
  z-index: 10;
}

.milestone-node .core-subtitle {
  transition: opacity 0.3s;
  opacity: 0.5;
}

.milestone-node.is-centered .core-subtitle {
  opacity: 1;
  font-weight: bold;
}

/* Past-due milestone node — red highlight + persistent glow, stronger on hover */
.milestone-link-overdue {
  background: linear-gradient(180deg, #e05d6f 0%, #a52834 100%) !important;
  border-color: var(--bs-danger) !important;
  box-shadow: 0 0 12px 2px rgba(var(--bs-danger-rgb), 0.65);
}

.milestone-link-overdue:hover {
  box-shadow: 0 0 20px 5px rgba(var(--bs-danger-rgb), 0.95);
}

.dual-list {
  min-height: 150px;
  padding: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.dual-list option {
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 2px;
}

.dual-listbox-panel {
  flex: 1 1 0%;
  min-width: 250px;
  min-height: 250px;
  background-color: var(--bs-form-control-bg);
  border-color: var(--bs-border-color);
}

.dual-list option:checked {
  background: linear-gradient(0deg, var(--bs-primary) 0%, var(--bs-primary) 100%) !important;
}

.dual-list option:hover:not(:checked) {
  background-color: rgba(255, 255, 255, 0.05);
}

.errorlist {
  color: red;
  font-weight: bold;
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  margin-top: 0.25rem;
}

.status-filter-count {
  width: 1.25rem;
  height: 1.25rem;
}

.accordion-button,
.accordion-button:not(.collapsed) {
  background: transparent !important;
  box-shadow: none !important;
}

[data-bs-toggle="collapse"] .bi-chevron-down {
  display: inline-block;
  transition: transform 0.2s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.status-completed {
  background: rgba(34, 197, 94, 1);
}

.status-review {
  background: rgba(245, 158, 11, 1);
}

.status-changes {
  background: rgba(239, 68, 68, 1);
}

.status-todo {
  background: rgba(168, 170, 173, 1);
}

.status-swap {
  background: rgba(227, 115, 131);
}

.task-status-pill {
  min-width: auto;
  width: fit-content;
  padding: 0 10px;
  border: 1px solid;
  border-radius: 50px;
  height: 27px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-status-pill--todo {
  background-color: rgba(var(--bs-secondary-color-rgb), 0.3);
  border-color: var(--bs-secondary-color);
  border-width: 1px;
}

.task-status-pill--todo i {
  color: var(--bs-secondary-color);
}

.task-status-pill--changes {
  background-color: rgba(var(--bs-danger-rgb), 0.3);
  border-color: rgba(239, 68, 68, 1);
  border-width: 1px;
}

.task-status-pill--changes i {
  color: rgba(239, 68, 68, 1);
}

.task-status-pill--review {
  background-color: rgba(var(--bs-warning-rgb), 0.3);
  border-color: rgba(245, 158, 11, 1);
  border-width: 1px;
}

.task-status-pill--review i {
  color: rgba(245, 158, 11, 1);
}

.task-status-pill--completed {
  background-color: rgba(var(--bs-success-rgb), 0.3);
  border-color: rgba(34, 197, 94, 1);
  border-width: 1px;
}

.task-status-pill--completed i {
  color: rgba(34, 197, 94, 1);
}

.task-status-pill--swap {
  background-color: rgba(var(--bs-swap-rgb), 0.3);
  border-color: rgba(227, 115, 131, 1);
  border-width: 1px;
}

.circle-slash {
  color: rgba(var(--bs-primary-rgb), 1);
}

.filter-btn {
  width: 33px;
  height: 33px;
  border-radius: 6px;
}

.filter-dropdown-menu {
  min-width: 140px;
  height: 173px;
  overflow-y: auto;
}

.hover-message {
  transition: box-shadow 0.3s ease;
}

.hover-message:hover {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.hover-message .message-actions {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.hover-message:hover .message-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Matched-text highlight inside message search results */
#conversation-search-results mark {
  background-color: #1d5657;
  color: #fff;
  padding: 0 0.15em;
  border-radius: 0.15rem;
}

.message-highlight {
  border-radius: 0.5rem;
  animation: messageHighlightFade 2.5s ease;
}

@keyframes messageHighlightFade {
  0%,
  25% {
    background-color: rgba(29, 86, 87, 0.45);
  }
  100% {
    background-color: transparent;
  }
}

/* Drop the browser's native search clear cross — the eyeglass + bar (mobile) and
   the explicit close button (desktop) are the only affordances we want. */
#mobile-conversation-search::-webkit-search-cancel-button,
#desktop-conversation-search::-webkit-search-cancel-button {
  display: none;
}

.message-wrapper .ql-container {
  height: auto !important;
  border: 0;
}

.message-wrapper .ql-editor:not(.ql-view) {
  height: auto !important;
  min-height: 36px !important;
  max-height: 120px;
  overflow-y: hidden;
}

.message-wrapper .ql-toolbar {
  border: 0;
}

.transition-transform {
  transition: transform 0.2s ease-in-out;
}

.rotate-90 {
  transform: rotate(90deg);
}

.django-quill-widget-container>.ql-toolbar:not(:first-child) {
  display: none !important;
}

.django-quill-widget-container>.django-quill-widget.ql-container:not(:last-of-type) {
  display: none !important;
}

.smart-header {
  position: sticky;
  top: var(--header-h);
  z-index: 1020;
  background-color: var(--bs-body-bg);
  transition: transform 0.3s ease-in-out;
}

.smart-header--hidden {
  transform: translateY(-100%);
}

#event-form label {
  font-family: "Klamp 205";
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.three-dots-menu {
  width: 34px;
  height: 34px;
  border-top: 1px solid var(--bs-secondary-color);
  --bs-btn-bg: var(--bs-body-bg);
  --bs-btn-hover-bg: var(--bs-body-bg);
  --bs-btn-active-bg: var(--bs-body-bg);
}

.picker-item {
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.picker-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.picker-item.selected {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--bs-border-color);
}

.bucket-chip {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 0.15s, border-color 0.15s;
}

.bucket-chip:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.bucket-chip.selected {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--bs-border-color);
}


.email-tag-container {
  min-height: 32px;
  cursor: text;
}

.email-tag-input {
  min-width: 140px;
  flex: 1;
  outline: none;
  font-size: 0.85rem;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
}

.email-chip .remove-email {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 0;
  font-size: 0.65rem;
  cursor: pointer;
  line-height: 1;
}

.email-chip .remove-email:hover {
  color: #fff;
}

.tab-button.header-underline {
  background-color: transparent !important;
  border: none !important;
  color: var(--bs-secondary-color) !important;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.tab-button.header-underline.active {
  color: var(--bs-primary) !important;
}

.tab-button.header-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--bs-primary);
  border-radius: 10px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-button.header-underline.active::after {
  transform: scaleX(1);
}

.nav-link:focus,
.nav-link:hover {
  color: var(--bs-primary);
}

.form-check-input:checked {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.form-check-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

.btn-content-picker {
  background-color: var(--bs-card-cap-bg, rgba(var(--bs-body-color-rgb), 0.03)) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 12px;
  height: 220px;
  transition: all 0.2s ease;
}

.btn-content-picker:hover {
  background-color: rgba(var(--bs-body-color-rgb), 0.08) !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.custom-dot {
  width: 12px;
  height: 12px;
  background-color: var(--bs-secondary);
  transition: all 0.2s ease-in-out;
}

.custom-dot.active {
  background-color: white;
  border: 3px solid #5bc0be;
  transform: scale(1.3);
}

.timeline-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  z-index: 1;
}

.task-status-pill--sm {
  font-size: 0.72rem;
  text-transform: none;
}

.activity-name {
  font-family: "Barlow";
  font-size: 0.82rem;
  text-transform: none;
}

.activity-date {
  font-size: 0.75rem;
  text-transform: none;
}

.review-label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.status-banner-review {
  background-color: rgba(var(--bs-warning-rgb), 0.2);
  border-color: rgba(245, 158, 11, 1);
  border-style: solid;
  border-width: 1px;
}

.status-banner-changes {
  background-color: rgba(var(--bs-danger-rgb), 0.2);
  border-color: rgba(239, 68, 68, 1);
  border-style: solid;
  border-width: 1px;
}

.showcase-new-block-btn {
  font-size: 15px;
  border: 1px dashed var(--bs-primary);
  border-radius: 0.375rem;
  cursor: pointer;
  background-color: rgba(41, 186, 178, 0.03);
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.showcase-new-block-btn:hover {
  background-color: rgba(41, 186, 178, 0.08);
  border-color: var(--bs-link-hover-color);
}

.showcase-cancel-btn:hover {
  font-size: 15px;
  background-color: #5c2d33 !important;
  border-color: #7a3d44 !important;
  color: #d9a0a6 !important;
}

/* Carousel Filmstrip Styles */
.fs-slot {
  flex: 1 1 0;
  min-width: 68px;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.fs-slot.fs-filled {
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  cursor: grab;
}

.fs-slot.fs-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
  border-color: rgba(255, 255, 255, .25);
  z-index: 1;
}

.fs-slot.fs-filled:active {
  cursor: grabbing;
}

.fs-slot.fs-filled.fs-dragging {
  opacity: .3;
  transform: scale(.92);
  box-shadow: none;
}

.fs-slot.fs-filled.fs-drop-before {
  box-shadow: -3px 0 0 0 var(--bs-primary);
}

.fs-slot.fs-filled.fs-drop-after {
  box-shadow: 3px 0 0 0 var(--bs-primary);
}

.fs-slot.fs-empty {
  border: 1.5px dashed rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.fs-slot.fs-upload {
  border-color: var(--bs-primary);
  background: rgba(13, 110, 253, .05);
  cursor: pointer;
}

.fs-slot.fs-upload:hover,
.fs-slot.fs-upload:focus-visible {
  background: rgba(13, 110, 253, .12);
  outline: none;
}

.fs-slot.fs-upload.fs-dragover {
  background: rgba(13, 110, 253, .2);
  border-style: solid;
}

.fs-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border-radius: 4px;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 2;
}

.fs-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, .65);
  border: none;
  color: rgba(255, 255, 255, .85);
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s ease, background .1s ease;
  z-index: 3;
  padding: 0;
  line-height: 1;
}

.fs-slot.fs-filled:hover .fs-remove {
  opacity: 1;
}

.fs-remove:hover {
  background: rgba(220, 53, 69, .85);
}

.fs-drag-hint {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .4);
  font-size: .65rem;
  opacity: 0;
  transition: opacity .12s ease;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.fs-slot.fs-filled:hover .fs-drag-hint {
  opacity: 1;
}

.fs-slot-num {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: .28;
  color: #fff;
  pointer-events: none;
}

/* Static sidebar */
:root {
  --sidebar-w: 100px;
  --header-h: 36px;
  --tab-bar-h: 60px;
}

.main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--header-h);
}

/* Pending actions banners (shared component — company + PM home) */
.pending-action-row {
  transition: background 0.15s ease;
}

.pending-action-row:hover {
  background: rgba(var(--bs-primary-rgb), 0.07) !important;
}

.pending-action-row:hover .pending-action-review {
  background: rgba(var(--bs-primary-rgb), 0.2) !important;
}

.pending-actions-banner-toggle[aria-expanded="true"] .pending-action-chevron {
  transform: rotate(0deg);
}

.pending-actions-banner-toggle[aria-expanded="false"] .pending-action-chevron {
  transform: rotate(180deg);
}


#admin-company-list .list-group-item.active .selected-check {
  opacity: 1 !important;
}

.project-card-percent {
  font-size: clamp(0.8rem, 2.5vw, 1.5rem);
}

.badge.project-card-milestone {
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
}

.project-card-label {
  font-size: clamp(0.75rem, 2vw, 1rem);
}

.project-card-avatar {
  width: clamp(24px, 3vw, 35px);
  height: clamp(24px, 3vw, 35px);
  flex-shrink: 0;
}

.project-card-collab {
  min-width: 0;
}

.project-progress-bar {
  height: clamp(24px, 3vw, 35px);
  background-color: rgba(209, 213, 255, 0.20);
}

/* Project card image: fills the full card height (never shorter than the card) via
   object-fit cover. Absolutely positioned inside the media column so its height resolves
   against that column rather than a chain of percentage heights — Safari resolves
   height:100% on an in-flow flex-child <img> against the viewport, blowing the image up to
   ~100vh (Chrome/Firefox treat the flex-stretched column as a definite height and are fine).
   Taking the image out of flow fixes it cross-browser. Rounded-top when stacked,
   rounded-start when side-by-side. */
.project-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
  background-color: var(--bs-body-bg);
  animation: img-fade-in 0.2s ease-in;
  transition: transform 0.4s ease;
}

/* Media column: positions + clips the image (hover zoom stays within the rounded corners).
   Needs an explicit height when stacked (< xl) because the absolutely-positioned image no
   longer contributes any; side-by-side it stretches to the card height via flex (see xl). */
.project-card-media {
  position: relative;
  overflow: hidden;
  height: 220px;
}

/* Lift-and-zoom hover for the horizontal project cards. */
.project-card-modern {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.project-card-modern:hover .project-card-img {
  transform: scale(1.06);
}

@media (min-width: 1200px) {
  .project-card-media {
    height: auto;
  }

  .project-card-img {
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card-modern,
  .project-card-modern:hover,
  .project-card-img,
  .project-card-modern:hover .project-card-img {
    transition: none;
    transform: none;
  }
}

/* Event card heights (desktop) */
.event-card {
  min-height: 333px;
}

.event-card-image {
  height: 220px;
}

.event-card-body {
  min-height: 113px;
}

/* Mobile: hide sidebar, show bottom tab bar */
@media (max-width: 767.98px) {
  :root {
    --header-h: 42px;
    /* Number of WHOLE bottom-nav tabs that fit the viewport; each tab is
       100vw / this. Extra tabs overflow and are reached by scroll + snap.
       Fixed at 4 across all mobile widths so the tab size is consistent. */
    --tabs-visible: 4;
  }

  .sidebar {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding-top: var(--header-h) !important;
    padding-bottom: calc(var(--tab-bar-h) + 4px + env(safe-area-inset-bottom));
  }

  .bottom-tab-bar {
    display: flex;
  }

  .mobile-header {
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
  }

  .body,
  body {
    padding-top: 0;
    overflow-x: hidden;
  }

  .btn-reactivate {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .invite-action-btn {
    font-size: 0.75rem;
    padding: 8px 16px;
    min-height: 36px;
  }

  .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }

  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .card-body {
    padding: 0.65rem;
  }

  .full-height-container {
    height: calc(100vh - var(--header-h) - (var(--tab-bar-h) + env(safe-area-inset-bottom)));
    overflow: hidden !important;
  }

  .plus-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .rhombus-btn {
    font-size: 0.8rem;
  }

  .tab-container .nav {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  #project-tabs .nav {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .event-card {
    height: auto;
    min-height: 280px;
  }

  .event-card-image {
    height: 180px;
  }

  .event-card-body {
    height: auto;
    min-height: 80px;
  }

  .collection-card {
    height: auto;
    min-height: 280px;
  }

  .collection-card-banner {
    height: 180px;
  }

  .conversation-sidebar-title {
    font-size: 14px;
  }
}

/* Horizontal scroll utility */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tablet: consistent container gutter */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Bottom tab bar */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tab-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--bs-dark);
  border-top: 1px solid var(--bs-border-color);
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  z-index: 1030;
}

.bottom-tab-bar::-webkit-scrollbar {
  display: none;
}

/* Horizontal scroll indicator for bottom nav */
.bottom-tab-bar-scroll-indicator {
  position: absolute;
  bottom: 18px;
  right: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  font-size: 18px;
  color: var(--bs-primary);
  cursor: pointer;
}

.bottom-tab-bar-scroll-indicator::before {
  content: "›";
  display: block;
  line-height: 1;
  animation: pulse-scroll-arrow 1.5s ease-in-out infinite;
}

.bottom-tab-bar-scroll-indicator.visible {
  opacity: 0.9;
}

@keyframes pulse-scroll-arrow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.bottom-tab-bar-scroll-indicator-left {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  font-size: 18px;
  color: var(--bs-primary);
  cursor: pointer;
}

.bottom-tab-bar-scroll-indicator-left::before {
  content: "‹";
  display: block;
  line-height: 1;
  animation: pulse-scroll-arrow-left 1.5s ease-in-out infinite;
}

.bottom-tab-bar-scroll-indicator-left.visible {
  opacity: 0.9;
}

@keyframes pulse-scroll-arrow-left {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}


.bottom-tab {
  /* Width derives from the viewport so a whole number of tabs (--tabs-visible)
     exactly fills the bar; any extra tab sits fully off-screen until scrolled to.
     --tabs-visible is fixed at 4 in the mobile media query above. */
  flex: 0 0 auto;
  width: calc(100vw / var(--tabs-visible, 4));
  min-width: 64px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.6rem;
  font-family: "Klamp 205";
  text-transform: uppercase;
  gap: 3px;
  padding: 6px 2px 4px;
  transition: color 0.15s;
}

.bottom-tab.active {
  color: var(--bs-primary);
}

.bottom-tab:hover {
  color: var(--bs-link-hover-color);
}

/* Single source of truth for every count-inside notification pill:
   color, fill, size, and padding all live here so they match everywhere. */
.notification-count-badge {
  background-color: var(--bs-primary);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}

/* HTMX indicator: make elements visible while a request is in flight.
   Relies on the element having its own opacity transition for timing/delay. */
.htmx-request.htmx-indicator {
  opacity: 1;
}

#search-results.htmx-swapping,
#project-list-content.htmx-swapping,
#conversation-search-results.htmx-swapping,
#user-search-results.htmx-swapping,
#member-table-body.htmx-swapping {
  opacity: 0;
  transition: opacity 150ms ease-out;
}

#search-results .htmx-added,
#project-list-content .htmx-added,
#conversation-search-results .htmx-added,
#user-search-results .htmx-added,
#member-table-body .htmx-added {
  opacity: 0;
  transition: opacity 20ms ease-in;
}

.media-preview-trigger .preview-expand-icon {
  opacity: 0;
  transition: opacity 0.15s;
}

.media-preview-trigger:hover .preview-expand-icon {
  opacity: 1;
}

#media-preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#media-preview-body img,
#media-preview-body video {
  max-width: 100%;
  max-height: 80vh;
}

.modal .card {
  transition: none;
  transform: none;
  box-shadow: none;
}

.event-section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.event-empty-icon {
  font-size: 50px;
}

.sc-drag-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  cursor: grab;
  color: rgba(255, 255, 255, .4);
  font-size: .9rem;
  z-index: 11;
  user-select: none;
  -webkit-user-select: none;
}

.sc-block:hover .sc-drag-handle {
  opacity: 1;
  pointer-events: auto;
}

.sc-drag-handle:active {
  cursor: grabbing;
}

.sc-block.sc-dragging {
  opacity: 0.25;
}

.sc-drop-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--bs-primary);
  pointer-events: none;
  z-index: 20;
}

@keyframes img-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Save-to-Collection "manage collections" modal (collection/partials/add_to_collection_modal.html) */
#add-to-collection-modal .atc-row:has(input:checked) {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--bs-primary) !important;
}

/* Per-collection note: only shown once the row's checkbox is ticked (a note on an
   un-ticked collection is ignored on save, so hide it to avoid dead input). */
#add-to-collection-modal .atc-note-wrapper { display: none; }
#add-to-collection-modal .atc-row:has(input:checked) .atc-note-wrapper { display: block; }

/* Collection detail note card (collection/partials/collection_item_row.html): pin the
   accordion chevron flush to the right edge — drop the global 20px trailing margin. */
.collection-note-accordion .accordion-button::after { margin-right: 0; }


/* CSS-only "Create a new collection" toggle: a visually-hidden checkbox
   driven by its <label>; the field wrapper is its sibling, revealed on
   :checked. No inline JS. When the user has no collections the toggle
   isn't rendered, so the wrapper has no preceding checkbox and stays
   visible by default (the only way to save). */
#add-to-collection-modal .atc-new-toggle ~ .atc-new-wrapper { display: none; }
#add-to-collection-modal .atc-new-toggle:checked ~ .atc-new-wrapper { display: block; }
/* Home-page collections rail widget (collection/partials/home_widget.html).
   Non-scrolling: the panel grows to fit its cards; HOME_WIDGET_LIMIT (3) keeps it
   compact, with a "View all" link carrying any overflow to the Collections page. */
/* Keeps the home-page right rail in view as the main column scrolls. */
.home-rail-sticky { position: sticky; top: 16px; }

.home-widget .collection-card {
  height: 240px !important;
  min-height: 0;
  flex-shrink: 0;
}
.home-widget .collection-card-banner { height: 140px; }

/* Full-width pages (e.g. the stakeholder home) that should still span the viewport
   on standard monitors but stop stretching on ultrawides: full width up to the cap,
   then centered. Pairs with `container-fluid` on the page's content wrapper. */
.content-fluid-capped { max-width: 2300px; margin-inline: auto; }

/* Icon-only guide-tour trigger buttons (search, messaging, project, event,
   capability, showcase guides) — a circle question-mark icon with no visible
   text. No hover/focus color or scale effect. */
