/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bs-body-bg: #f8fafc;
  --bs-body-color: #1f2933;
  --bs-primary: #3a6ea5;
  --bs-primary-rgb: 58, 110, 165;
  --bs-warning: #ffcf49;
  --bs-warning-rgb: 255, 207, 73;
  --bs-link-color: #2f5a87;
  --bs-link-hover-color: #24486a;
  --bs-border-color: #e2e8f0;
  --bs-focus-ring-color: rgba(58, 110, 165, 0.35);
  --color-card-default: oklch(57.02% 0.1895 260.46);
  --color-card-1: oklch(66% 0.008 258);
  --color-card-2: oklch(66% 0.0944 71.46);
  --color-card-3: oklch(74% 0.184 70);
  --color-card-4: oklch(68% 0.176 113.11);
  --color-card-5: oklch(66% 0.152 208);
  --color-card-6: oklch(66% 0.206 285.52);
  --color-card-7: oklch(66% 0.258 308);
  --color-card-8: oklch(71.8% 0.2008 342);
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background-color: #0d6efd;
  color: #ffffff;
  z-index: 1000;
  border-radius: 0 0 0.25rem 0.25rem;
  text-decoration: none;
}

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

.card-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.card-panel.panel-open {
  max-height: 2000px;
}

.agreement-editor-body {
  min-height: 320px;
}

.agreement-preview__logo {
  display: block;
  max-width: 2.8in;
  max-height: 1.1in;
  width: auto;
  height: auto;
  object-fit: contain;
}

.agreement-editor-body .tpl-var,
.agreement-editor-text .tpl-var {
  position: relative;
  transition: border-color 0.15s ease-in-out;
  border-bottom: 1px dashed transparent;
}

.agreement-editor-body.show-hints .tpl-var {
  border-bottom-color: var(--bs-primary);
}

.agreement-editor-body.show-hints .tpl-var::after {
  content: attr(data-key);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -0.25rem);
  background: rgba(15, 118, 255, 0.9);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-in-out;
}

.agreement-editor-body.show-hints .tpl-var:hover::after {
  opacity: 1;
}

.field-tooltip-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.field-tooltip-icon:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
  border-radius: 50%;
}

.bookmark-preview__tooltip:focus {
  outline: none;
  border-radius: 0;
}

.bookmark-note-tooltip .tooltip-inner {
  max-width: min(32rem, 80vw);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
}

.template-preview-body .tpl-var {
  border-bottom: 1px dotted #6c757d;
  position: relative;
  cursor: help;
}

.template-preview-body .tpl-var::after {
  content: attr(data-key);
  position: absolute;
  left: 0;
  bottom: 100%;
  transform: translateY(-0.25rem);
  background: #fff;
  color: #495057;
  border: 1px solid #dee2e6;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  z-index: 10;
}

.template-preview-body .tpl-var:hover::after {
  opacity: 1;
}

.template-variable-panel {
  position: sticky;
  top: 1rem;
}

.template-side-panel .template-variable-panel {
  position: static;
}

.template-version-history {
  position: sticky;
  top: 1rem;
}

.template-variable-panel .template-variable-list {
  max-height: 60vh;
  overflow-y: auto;
}

.templates-index__usage-toggle {
  font-size: 0.75em;
  line-height: 1;
  padding: 0.35em 0.65em;
}

.templates-index__icon-action {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 2rem;
}

.templates-index__icon-action--edit {
  color: var(--bs-primary);
}

.templates-index__icon-action--archive {
  color: var(--bs-secondary);
}

.template-form__actions {
  position: sticky;
  bottom: 0;
  background-color: #ffffff;
  border-top: 1px solid #dee2e6;
  padding-top: 0.75rem;
  z-index: 2;
}

.template-form__editor {
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  overflow: hidden;
}

.template-form__editor.is-invalid {
  border-color: var(--bs-danger, #dc3545);
}

.template-form__editor lexxy-editor {
  block-size: clamp(28rem, 72vh, 52rem);
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.template-form__editor lexxy-editor lexxy-toolbar {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.template-form__editor lexxy-editor .lexxy-editor__content {
  max-block-size: none;
  overflow: visible;
}

.template-form__editor lexxy-editor .lexxy-content__table-wrapper {
  margin-block: 1rem;
  max-inline-size: 100%;
  overflow-x: auto;
  padding: 0.125rem;
}

.template-form__editor lexxy-editor[data-pdf-page-breaks-enabled="true"] .template-page-break-marker {
  border: 0;
  border-top: 2px dashed rgba(13, 110, 253, 0.6);
  color: #0d6efd;
  margin: 1.5rem 0;
  overflow: visible;
  position: relative;
  text-align: center;
}

.template-form__editor lexxy-editor[data-pdf-page-breaks-enabled="true"] .template-page-break-marker lexxy-node-delete-button {
  inset-block-start: 50%;
  inset-inline-end: 2.75rem;
  inset-inline-start: auto;
  transform: translateY(-50%);
  z-index: 3;
}

.template-form__editor lexxy-editor[data-pdf-page-breaks-enabled="true"] .template-page-break-marker::after {
  background: #ffffff;
  content: "Page break";
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 0.5rem;
  position: relative;
  text-transform: uppercase;
  top: -0.55rem;
}

.template-form__editor lexxy-editor table {
  background-color: #ffffff;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 0 0 1px rgba(33, 37, 41, 0.22);
  inline-size: 100%;
  min-inline-size: 22rem;
  table-layout: fixed;
}

.template-form__editor lexxy-editor table th,
.template-form__editor lexxy-editor table td {
  background-clip: padding-box;
  border: 0;
  box-shadow:
    1px 0 0 rgba(33, 37, 41, 0.22),
    0 1px 0 rgba(33, 37, 41, 0.22),
    inset 0 0 0 9999px rgba(13, 110, 253, 0.025);
  min-inline-size: 6rem;
  overflow-wrap: anywhere;
  padding: 0.75rem;
  vertical-align: top;
}

.template-form__editor lexxy-editor table th {
  background-color: #f8f9fa;
}

.template-form__editor lexxy-editor table td:empty::before,
.template-form__editor lexxy-editor table th:empty::before {
  color: rgba(33, 37, 41, 0.35);
  content: "\00a0";
}

.template-form__editor lexxy-editor table td.lexxy-content__table-cell--focus,
.template-form__editor lexxy-editor table th.lexxy-content__table-cell--focus {
  box-shadow:
    1px 0 0 rgba(33, 37, 41, 0.22),
    0 1px 0 rgba(33, 37, 41, 0.22),
    inset 0 0 0 2px rgba(13, 110, 253, 0.75);
}

.template-form__editor lexxy-editor table td.lexxy-content__table-cell--selected,
.template-form__editor lexxy-editor table th.lexxy-content__table-cell--selected {
  background-color: rgba(13, 110, 253, 0.12);
}

.template-form__editor lexxy-editor lexxy-table-tools {
  filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.2));
  transform: translate(-50%, 0.375rem);
  z-index: 4;
}

.template-form__editor lexxy-editor .lexxy-floating-controls .lexxy-floating-controls__group {
  background-color: #212529;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.template-form__editor lexxy-editor .lexxy-floating-controls button,
.template-form__editor lexxy-editor .lexxy-floating-controls summary {
  color: #ffffff;
}

.template-form__editor lexxy-editor .lexxy-editor__content ul,
.template-form__editor lexxy-editor .lexxy-editor__content ol {
  margin-block: 0 1rem;
  padding-inline-start: 2rem;
}

.template-form__editor lexxy-editor .lexxy-editor__content ul {
  list-style-type: disc;
}

.template-form__editor lexxy-editor .lexxy-editor__content ol {
  list-style-type: decimal;
}

.template-form__editor lexxy-editor .lexxy-editor__content li {
  display: list-item;
}

.template-form__editor lexxy-editor .lexxy-editor__content li.lexxy-nested-listitem {
  list-style-type: none;
}

.template-form__editor lexxy-editor .lexxy-editor__content li.lexxy-nested-listitem > ol,
.template-form__editor lexxy-editor .lexxy-editor__content li.lexxy-nested-listitem > ul {
  margin-block-end: 0;
}

.agreement-preview.agreement-variable-hints--on .tpl-var {
  background-color: #fff200; // soft yellow highlight
  padding: 0 2px;            // tiny padding so the highlight doesn’t crash into text
  border-radius: 2px;
  cursor: help;
}

/* Make form inputs and selects clearly visible everywhere */
.form-control,
.form-select {
  background-color: #ffffff !important;
  border: 1px solid #ced4da !important;
  color: #212529;
}

.form-control:focus,
.form-select:focus {
  background-color: #ffffff;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Limit edit assignment picker lists to ~5 visible rows. */
.edit-assignments-drawer {
  width: min(560px, 100%);
}

.edit-assignments__status-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edit-assignments__current-access {
  flex: 0 0 auto;
}

.edit-assignments__picker {
  max-height: clamp(18rem, 42dvh, 30rem);
  overflow-y: auto;
  padding: 0;
}

.edit-assignments__picker .form-check {
  margin-bottom: 0.25rem;
}

.edit-assignments__picker .form-check-input {
  margin-top: 0.2rem;
}

.edit-assignments__group--bulk-disabled {
  background-color: #f8f9fa;
}

.edit-assignments__group-checkbox--disabled {
  opacity: 1;
  accent-color: #adb5bd;
  background-color: #e9ecef;
  border-color: #adb5bd;
  box-shadow: none;
  filter: grayscale(1);
  cursor: not-allowed;
}

.edit-assignments__group--minimized .form-check-input {
  opacity: 1;
  accent-color: #adb5bd;
  background-color: #e9ecef;
  border-color: #adb5bd;
  box-shadow: none;
  filter: grayscale(1);
  cursor: not-allowed;
}

.edit-assignments__researcher-menu {
  position: static;
  transform: none !important;
  float: none;
  margin-top: 0.35rem;
}

/* Force consistent select styling across browsers for single selects */
.form-select:not([multiple]):not([size]),
.form-select:not([multiple])[size="1"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: var(
    --bs-form-select-bg-img,
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")
  ) !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.25rem;
}

/* CKEditor alignment classes (used instead of inline styles) */
.tpl-align-left {
  text-align: left;
}

.tpl-align-center {
  text-align: center;
}

.tpl-align-right {
  text-align: right;
}

.tpl-align-justify {
  text-align: justify;
}

.overview-summary-card {
  font-size: 0.9rem;
}

.overview-summary-card .overview-stat {
  padding: 0.5rem 0.75rem;
  background-color: #fff;
}

.overview-summary-card .overview-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.overview-summary-card .overview-stat-value.small {
  font-size: 0.95rem;
}

.overview-summary-card .overview-stat-label {
  font-size: 0.75rem;
  line-height: 1.25;
}

.bookmark-filter__control button {
  text-align: left;
}

.bookmark-filter__dropdown {
  overflow: visible;
}

/* Overlay dropdown positioning is applied inline in MultiSelect to avoid CSS ordering issues. */

.bookmark-filter__options {
  max-height: 18rem;
  overflow-y: auto;
}

.bookmark-filter__dropdown-panel {
  width: clamp(12rem, 80vw, 18rem);
  max-width: 90vw;
}

.bookmark-filter-summary__layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.bookmark-filter-summary-stack {
  position: relative;
}

.bookmark-saved-filter-sets-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  width: min(30rem, 100%);
  background-color: #ffffff;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.bookmark-saved-filter-sets-popover .list-group {
  max-height: min(24rem, 60vh);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .bookmark-filter-summary__layout {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .bookmark-filter-summary__trailing {
    justify-self: end;
  }
}

.bookmark-filter__details > summary {
  list-style: none;
}

.bookmark-filter__details > summary::-webkit-details-marker {
  display: none;
}

.updates-export-modal__body {
  overflow: visible;
  max-height: min(78vh, 44rem);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.updates-export-modal__body .form-label,
.updates-export-modal__body .form-check-label,
.updates-export-modal__body .btn,
.updates-export-modal__body .form-control {
  font-size: 0.9375rem;
}

.updates-export-modal__body .h6,
.updates-export-modal__body .fw-semibold.d-block {
  font-size: 0.95rem;
}

.updates-export-modal__body .small,
.updates-export-modal__body .form-text,
.updates-export-modal__footer .small {
  font-size: 0.78rem;
  line-height: 1.3;
}

.updates-export-modal__body .text-uppercase.small {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.updates-export-refine {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.updates-export-refine__panel {
  min-height: 0;
}

.updates-export-impact-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
}

.updates-export-impact-filter .h6 {
  white-space: nowrap;
}

.updates-export-impact-filter .form-switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-left: 0;
  min-height: 0;
}

.updates-export-impact-filter .form-check-input {
  float: none;
  margin: 0;
}

.updates-export-refine__toggle {
  width: 100%;
}

.updates-export-refine__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

.updates-export-refine__collapse {
  text-decoration: none;
}

.updates-export-refine__collapse:hover,
.updates-export-refine__collapse:focus {
  text-decoration: none;
}

.updates-export-date-field {
  width: min(100%, 11.5rem);
}

.updates-export-date-picker {
  width: 100%;
}

.updates-export-date-picker__group {
  width: auto;
}

.updates-export-date-picker__input {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  min-height: calc(1.5em + 0.5rem + 2px);
}

.updates-export-date-picker__segment {
  border-radius: 0.25rem;
  outline: 0;
  padding: 0 0.0625rem;
}

.updates-export-date-picker__segment--focused {
  background: var(--bs-primary);
  color: #fff;
}

.updates-export-date-picker__button {
  display: inline-flex;
  align-items: center;
}

.updates-export-date-picker__popover {
  z-index: 1080;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.12);
  display: inline-block;
  margin-top: 0.375rem;
  padding: 0.5rem;
}

.updates-export-date-picker__popover .h6 {
  font-size: 0.875rem;
}

.updates-export-date-picker__popover .btn-sm {
  --bs-btn-padding-y: 0.125rem;
  --bs-btn-padding-x: 0.375rem;
  --bs-btn-font-size: 0.75rem;
}

.updates-export-date-picker__calendar-grid {
  border-collapse: collapse;
}

.updates-export-date-picker__calendar-grid th,
.updates-export-date-picker__calendar-grid td {
  padding: 0.125rem;
  text-align: center;
}

.updates-export-date-picker__calendar-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  min-height: 1.65rem;
  border-radius: 0.25rem;
  cursor: default;
  font-size: 0.8125rem;
}

.updates-export-date-picker__calendar-cell[data-hovered],
.updates-export-date-picker__calendar-cell[data-focused] {
  background: rgba(var(--bs-primary-rgb), 0.12);
}

.updates-export-date-picker__calendar-cell[data-selected] {
  background: var(--bs-primary);
  color: #fff;
}

.updates-export-date-picker__calendar-cell[data-disabled],
.updates-export-date-picker__calendar-cell[data-unavailable] {
  color: var(--bs-secondary-color);
  opacity: 0.55;
}

.updates-export-date-picker__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.updates-export-saved-filters {
  padding-top: 0;
}

.updates-export-saved-filters__controls {
  position: relative;
  width: 100%;
}

.updates-export-saved-filters__actions {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.updates-export-saved-filters__controls .bookmark-filter__details {
  width: 100%;
}

.updates-export-saved-filters__controls .bookmark-filter__details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.updates-export-saved-filters__summary {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.updates-export-saved-filters__summary:hover,
.updates-export-saved-filters__summary:focus-visible {
  background-color: #f8f9fa;
  border-color: #ced4da;
}

.updates-export-saved-filters__details[open] .updates-export-saved-filters__summary {
  border-color: #adb5bd;
}

.updates-export-saved-filters__summary[data-state="active"] {
  border-color: #3d7edb;
  background-color: #edf5ff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.16);
}

.updates-export-saved-filters__summary[data-state="modified"] {
  border-color: var(--bs-border-color);
  background-color: #ffffff;
  box-shadow: none;
}

.updates-export-saved-filters__summary[data-state="active"]:hover,
.updates-export-saved-filters__summary[data-state="active"]:focus-visible {
  border-color: #2563c9;
  background-color: #e5f0ff;
}

.updates-export-saved-filters__summary[data-state="modified"]:hover,
.updates-export-saved-filters__summary[data-state="modified"]:focus-visible {
  border-color: #ced4da;
  background-color: #f8f9fa;
}

.updates-export-saved-filters__summary[data-state="active"] .fw-semibold {
  color: #124a90;
}

.updates-export-saved-filters__summary[data-state="modified"] .fw-semibold {
  color: inherit;
}

.updates-export-saved-filters__menu {
  width: 100%;
  max-width: none;
}

.updates-export-saved-filters__value {
  color: var(--bs-secondary-color);
}

.updates-export-saved-filters__value[data-state="active"] {
  color: #124a90;
}

.updates-export-saved-filters__value[data-state="modified"] {
  color: var(--bs-secondary-color);
}

.updates-export-refine__caret[data-state="active"] {
  background: #cfe3ff;
  color: #0d6efd;
}

.updates-export-refine__caret[data-state="modified"] {
  background: #f8f9fa;
  color: #6c757d;
}

.updates-export-saved-filters__save-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.updates-export-saved-filters__save-action:hover,
.updates-export-saved-filters__save-action:focus-visible {
  text-decoration: underline;
}

.updates-export-modal__footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.updates-export-modal__summary {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}

.updates-export-modal__actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  white-space: nowrap;
}

.updates-export-modal__footer .btn {
  --bs-btn-font-size: 0.875rem;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: var(--bs-primary);
  color: #ffffff;
}

/* Global dropdown theming to match Bookmark admin controls. */
.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--bs-primary);
  --bs-dropdown-link-active-color: #ffffff;
  --bs-dropdown-link-hover-bg: rgba(var(--bs-primary-rgb), 0.22);
  --bs-dropdown-link-hover-color: var(--bs-primary);
}

.app-top-bar__user .dropdown-menu {
  --bs-dropdown-link-hover-color: #0f5a89;
}

.btn-outline-secondary.dropdown-toggle {
  --bs-btn-focus-shadow-rgb: 108, 117, 125;
  --bs-btn-focus-border-color: #6c757d;
  --bs-btn-active-border-color: #6c757d;
  --bs-btn-active-bg: #ffffff;
  --bs-btn-active-color: inherit;
}

.bookmark-filter__option input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.bookmark-filter__option--select-all input[type="checkbox"] {
  margin-top: 0;
}

.bookmark-filter__option input[type="checkbox"]:focus:not(:focus-visible) {
  box-shadow: none;
}


.bookmark-preview__search {
  width: 16rem;
  max-width: 100%;
}

.bookmark-preview__toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e9ecef;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
}

.bookmark-preview__search-row {
  margin-left: auto;
}

/* Inactive membership types should read as de-emphasized at a glance. */
.inactive-card {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.inactive-card .card-header {
  background-color: #e2e8f0;
}

.membership-type__pricing-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.membership-type__pricing-field {
  min-width: 0;
}

.membership-type__pricing-field--full-width {
  grid-column: 1 / -1;
}

.membership-type__price-field--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.membership-type__price-label {
  margin-bottom: 0.5rem;
}

.membership-type__price-field--inline .membership-type__price-label {
  margin-bottom: 0;
}

.membership-type__price-input {
  width: 100%;
}

.membership-type__price-input--fixed {
  width: min(100%, 13.5rem);
  margin-left: auto;
}

.membership-type__invoicing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.membership-type__invoicing-field {
  display: grid;
  gap: 0.25rem;
}

.membership-type__invoicing-label {
  margin-bottom: 0;
  line-height: 1.25;
}

@media (min-width: 420px) {
  .membership-type__pricing-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  }
}

.membership-type__pricing-grid .form-label {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .membership-types__toolbar {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767.98px) {
  .bookmark-preview__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .bookmark-preview__search-row {
    margin-left: 0;
    width: 100%;
  }
}

.bookmark-preview__pager-link {
  display: inline-flex;
  align-items: center;
  color: var(--bs-secondary-color, #6c757d);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.2;
}

.bookmark-preview__pager-link:hover,
.bookmark-preview__pager-link:focus {
  color: var(--bs-body-color, #212529);
}

.bookmark-preview__pager-link--disabled {
  color: var(--bs-secondary-color, #6c757d);
  text-decoration: none;
}

.bookmark-preview__pager-status {
  padding: 0;
  background-color: transparent;
  border: 0;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.2;
}

.bookmark-preview__savebar {
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.bookmark-confirm-modal .modal-header,
.bookmark-confirm-modal .modal-footer {
  border: 0;
}

.bookmark-preview__value :where(p, ul, ol) {
  margin-bottom: 0.5rem;
}

.bookmark-preview__content {
  overflow-x: hidden;
}

.bookmark-preview__value-content {
  overflow-x: hidden;
}

.bookmark-preview__value-content--collapsed {
  max-height: calc(1.5em * var(--bookmark-preview-lines, 3));
  overflow: hidden;
}

.bookmark-preview__value-toggle {
  padding: 0;
  margin-top: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bookmark-inline-action {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--bs-link-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4;
}

.bookmark-inline-action--muted {
  color: #495057;
  font-weight: 400;
}

.bookmark-filter-summary__trailing .bookmark-filter-summary__action {
  font-family: var(--bs-body-font-family);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.bookmark-inline-action:hover {
  color: var(--bs-link-hover-color);
}

.bookmark-inline-action:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.35);
  outline-offset: 2px;
  border-radius: 2px;
}

.bookmark-updates-export-btn,
.bookmark-updates-export-btn.btn {
  background-color: var(--bs-warning);
  border: 1px solid var(--bs-warning);
  color: #0f5a89;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  font-weight: 700;
}

.bookmark-updates-export-btn:hover,
.bookmark-updates-export-btn:focus,
.bookmark-updates-export-btn:active,
.bookmark-updates-export-btn.btn:hover,
.bookmark-updates-export-btn.btn:focus,
.bookmark-updates-export-btn.btn:active {
  background-color: var(--bs-warning);
  border-color: var(--bs-warning);
  color: #0f5a89;
  text-decoration: none;
}

.bug-report-trigger.btn-warning {
  color: #0f5a89;
}

.bookmark-preview__content :where(p, ul, ol, div, span, td, th) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bookmark-preview__value :where(p, ul, ol):last-child {
  margin-bottom: 0;
}

.bookmark-preview__value a {
  word-break: break-word;
}

.bookmark-preview__heading:focus-visible {
  outline: 2px solid #0f5a89;
  outline-offset: 3px;
}

.bookmark-results__list {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0;
  border-radius: 0;
}

.bookmark-results__pane {
  background-color: var(--bs-card-bg, #fff);
  position: relative;
  border-radius: var(--bs-card-border-radius, 0.375rem);
  overflow: hidden;
}

.bookmark-results__pane::after {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--bs-card-border-width, 1px) solid #b8c1cc;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.bookmark-results__pane-header {
  padding: 1rem 1rem 0;
}

.bookmark-results__pane-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #dee2e6;
  background-color: var(--bs-card-bg, #fff);
}

.bookmark-results__pane-meta > .bookmark-results__pager-inline-wrap {
  flex: 1 1 100%;
}

.bookmark-results__empty-state {
  padding: 1rem;
}

.bookmark-results__pane-meta + .bookmark-results__list > :first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.bookmark-results__list > :first-child {
  border-top-left-radius: calc(var(--bs-card-border-radius, 0.375rem) - var(--bs-card-border-width, 1px));
  border-top-right-radius: calc(var(--bs-card-border-radius, 0.375rem) - var(--bs-card-border-width, 1px));
}

.bookmark-results__list > :last-child {
  border-bottom-left-radius: calc(var(--bs-card-border-radius, 0.375rem) - var(--bs-card-border-width, 1px));
  border-bottom-right-radius: calc(var(--bs-card-border-radius, 0.375rem) - var(--bs-card-border-width, 1px));
}

.bookmark-results__list--has-pager > :last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.bookmark-results__list .text-muted {
  font-size: 0.875rem;
}

.bookmark-results__item {
  box-shadow: inset 0 1px 0 #dee2e6;
}

.bookmark-results__item:focus-visible {
  outline: 2px solid #0f5a89;
  outline-offset: -2px;
  box-shadow: inset 0 1px 0 #dee2e6;
}

.bookmark-results__item--selected {
  box-shadow: inset 0 1px 0 #dee2e6;
}

.bookmark-results__item--selected:focus-visible {
  outline: 2px solid #0f5a89;
  outline-offset: -2px;
  box-shadow: inset 0 1px 0 #dee2e6;
}

.bookmark-results__list .bookmark-results__item--alt {
  background-color: #f3f6f9;
}

.bookmark-results__list .list-group-item.bg-primary-subtle {
  background-color: var(--bs-primary-bg-subtle);
}

.bookmark-editor-entries__duplicate-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--bs-secondary-color);
  display: inline-flex;
  justify-content: center;
  min-width: 2rem;
  opacity: 0.6;
  padding: 0;
}

.bookmark-editor-entries__duplicate-action:hover,
.bookmark-editor-entries__duplicate-action:focus-visible {
  color: var(--bs-primary);
  opacity: 1;
}

.bookmark-results__group {
  padding: 0.4rem 0.75rem;
  background-color: #eef1f4;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 2;
}

.bookmark-results__pager-row {
  position: static;
  top: auto;
  z-index: 1;
}

.bookmark-results__group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #495057;
}

.bookmark-results__subgroup {
  padding: 0.4rem 0.75rem 0.35rem 1.05rem;
  background-color: #f8f9fa;
  border-top: 1px solid #eef1f4;
}

.bookmark-results__subgroup-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #495057;
}

.bookmark-customer-surface .btn-outline-secondary,
.bookmark-customer-surface .bookmark-export-dropdown .btn-outline-secondary,
.bookmark-customer-surface .bookmark-results__pane .btn-outline-secondary,
.bookmark-customer-surface .bookmark-results__pane a.btn-outline-secondary {
  --bs-btn-color: #495057;
  --bs-btn-border-color: #5c636a;
  --bs-btn-hover-bg: #495057;
  --bs-btn-hover-border-color: #495057;
  --bs-btn-active-bg: #495057;
  --bs-btn-active-border-color: #495057;
}

/* This non-interactive heading receives programmatic focus for screen readers on page load. */
.bookmark-customer-surface .bookmark-page-heading:focus {
  outline: 0;
}

.bookmark-export-dropdown__menu:focus,
.bookmark-export-dropdown__menu:focus-visible,
.bookmark-export-dropdown__menu [role="menu"]:focus,
.bookmark-export-dropdown__menu [role="menu"]:focus-visible {
  outline: 0;
}

.bookmark-customer-surface .modal-content {
  background-color: #ffffff;
  color: #212529;
}

.bookmark-customer-surface .modal-content .text-muted {
  color: #495057 !important;
}

.bookmark-customer-surface .modal-content .btn-primary {
  --bs-btn-bg: #0f5f93;
  --bs-btn-border-color: #0f5f93;
  --bs-btn-hover-bg: #0b4f7a;
  --bs-btn-hover-border-color: #0b4f7a;
  --bs-btn-active-bg: #0b4f7a;
  --bs-btn-active-border-color: #0b4f7a;
}


.bookmark-results__pager {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 0.35rem 0 !important;
  font-size: 0.875rem;
}

.bookmark-results__pager--inline {
  width: 100%;
}

.bookmark-results__pager-slot {
  display: inline-flex;
  align-items: center;
}

.bookmark-results__pager-slot {
  justify-self: center;
}

.bookmark-results__pager-row {
  position: static;
  top: auto;
  z-index: 1;
  padding: 0.6rem 0.75rem;
  background-color: var(--bs-card-bg, #fff);
  border-top: 1px solid #dee2e6;
  border-bottom: 0;
}

.bookmark-results__pager-link {
  display: inline-flex;
  align-items: center;
  color: var(--bs-secondary-color, #6c757d);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 400;
  line-height: 1.2;
}

.bookmark-results__pager-link:hover,
.bookmark-results__pager-link:focus {
  color: var(--bs-body-color, #212529);
}

.bookmark-results__pager-link--disabled {
  color: var(--bs-secondary-color, #6c757d);
  opacity: 0.55;
  text-decoration: none;
}

.bookmark-results__pager-select {
  min-height: calc(1.5em + 0.35rem + 2px);
  padding-top: 0.175rem;
  padding-bottom: 0.175rem;
  padding-left: 0.5rem;
  padding-right: 1.75rem;
}

@media (max-width: 767.98px) {
  .bookmark-results__pager {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.bookmark-results__pager-status {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  font-weight: 600;
}

.bookmark-results__pager .text-muted,
.bookmark-results__pager .small {
  font-size: inherit;
}

.bookmark-results__header {
  display: grid;
  gap: 0.25rem 0.75rem;
  align-items: start;
}

.bookmark-results__title,
.bookmark-results__disclaimer,
.bookmark-results__chooser-actions,
.bookmark-results__export-actions {
  min-width: 0;
}

.bookmark-results__export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  justify-content: flex-start;
}

.bookmark-results__redline-toggle {
  display: inline-flex;
  align-items: center;
  min-height: calc(1.5em + 0.5rem + 2px);
  padding-left: 2.25em;
}

.bookmark-results__redline-toggle .form-check-input {
  margin-top: 0;
  margin-left: -2.25em;
}

.bookmark-results__redline-toggle .form-check-label {
  line-height: 1;
  margin-left: 0.25rem;
}

@media (min-width: 768px) {
  .bookmark-results__header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title chooser-actions"
      "disclaimer export-actions";
  }

  .bookmark-results__title {
    grid-area: title;
  }

  .bookmark-results__disclaimer {
    grid-area: disclaimer;
    align-self: center;
  }

  .bookmark-results__chooser-actions {
    grid-area: chooser-actions;
    justify-self: end;
  }

  .bookmark-results__export-actions {
    grid-area: export-actions;
    align-self: center;
    justify-content: flex-end;
    justify-self: end;
  }
}

@media (min-width: 992px) {
  .bookmark-results__list {
    padding-right: 0;
  }

  .bookmark-preview-pane {
    position: sticky;
    top: var(--app-header-height);
    align-self: flex-start;
  }

  .bookmark-preview__header {
    position: sticky;
    top: var(--app-header-height);
    z-index: 3;
    margin-bottom: 0;
    padding-bottom: 0;
    background-color: #fff;
  }

  .bookmark-preview__header > header {
    margin-bottom: 0;
    padding-top: 0.1rem;
  }
}

.bookmark-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.bookmark-edit-grid__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bookmark-entry-edit__container {
  /* Keep content from being covered by the fixed action bar. */
  padding-bottom: calc(clamp(6.5rem, 14vh, 10rem) + env(safe-area-inset-bottom, 0px));
}

.bookmark-entry-edit__context-bar {
  position: sticky;
  top: var(--app-header-height, 72px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.bookmark-entry-edit__context-label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bookmark-entry-edit__context-main {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.bookmark-entry-edit__context-title {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-entry-edit__context-meta {
  min-width: 0;
  color: var(--bs-secondary-color);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-entry-edit__actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1029;
  border-top: 1px solid var(--bs-border-color);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.bookmark-entry-edit__actionbar-inner {
  padding: 0.75rem 0;
}

.bookmark-entry-edit__status {
  font-size: 0.875rem;
  line-height: 1.3;
}

.bookmark-entry-edit__hint {
  font-size: 0.75rem;
  line-height: 1.35;
}

.bookmark-entry-edit__save-draft {
  min-width: 8.5rem;
}

.bookmark-entry-edit__save-draft--ready {
  box-shadow: 0 0.35rem 0.9rem rgba(108, 117, 125, 0.18);
}

.bookmark-entry-edit__save-draft--disabled:disabled {
  color: #98a1a9;
  border-color: #cfd4da;
  background-color: #f8f9fa;
  opacity: 1;
}

.bookmark-entry-edit__row--changed {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  border-left: 4px solid rgba(var(--bs-primary-rgb), 0.35);
}

.bookmark-entry-edit__row + .bookmark-entry-edit__row {
  border-top: 1px solid #e9ecef;
}

.bookmark-master-review__impact-radio:not(:checked) {
  border-color: #7b8794;
}

@media (min-width: 1200px) {
  .bookmark-master-summary {
    top: calc(var(--app-header-height) + 1rem) !important;
  }
}

.bookmark-master-current-values {
  display: grid;
  gap: 0.375rem;
}

.bookmark-master-current-values__group {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  background: var(--bs-body-bg);
}

.bookmark-master-current-values__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.bookmark-master-current-values__label {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  min-width: 0;
  flex: 1 1 auto;
}

.bookmark-master-current-values__chevron {
  flex: 0 0 auto;
  margin-top: 0.125rem;
  color: var(--bs-secondary-color);
  transform: rotate(0deg);
  transition: transform 0.15s ease-in-out;
}

.bookmark-master-current-values__group[open] .bookmark-master-current-values__chevron {
  transform: rotate(90deg);
}

.bookmark-master-current-values__value {
  display: -webkit-box;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bookmark-master-current-values__group[open] .bookmark-master-current-values__value {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.bookmark-master-current-values__body {
  padding: 0 0.625rem 0.625rem;
}

.bookmark-master-current-values__license-types,
.bookmark-master-current-values__entries {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.bookmark-master-current-values__entries {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
}

.bookmark-master-current-values__entry-value {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.bookmark-entry-edit__section {
  overflow: hidden;
}

.bookmark-master-edit {
  max-width: 1536px;
}

.bookmark-master-edit__fields > h2 {
  margin-bottom: 0.5rem;
}

.bookmark-master-edit__fields .bookmark-entry-edit__row {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.bookmark-master-edit__fields .bookmark-entry-edit__row > :first-child {
  padding-left: 0;
}

.bookmark-master-edit__fields .bookmark-entry-edit__row > :last-child {
  padding-right: 0;
}

.bookmark-master-edit__fields
  .bookmark-entry-edit__section-group--headingless
  .bookmark-entry-edit__row:first-child {
  padding-top: 0 !important;
  --bs-gutter-y: 0;
}

.bookmark-master-edit__fields .bookmark-entry-edit__section-heading {
  margin-bottom: 0 !important;
}

.bookmark-entry-edit__revert,
.bookmark-entry-edit__save-field,
.bookmark-entry-edit__edit-toggle {
  text-decoration: none;
  font-weight: 600;
}

.bookmark-entry-edit__revert:hover,
.bookmark-entry-edit__save-field:hover,
.bookmark-entry-edit__edit-toggle:hover {
  text-decoration: underline;
}

.bookmark-entry-edit__save-field:disabled {
  color: #6c757d;
  opacity: 0.65;
  cursor: default;
  text-decoration: none;
}

.bookmark-entry-edit__save-field:disabled:hover {
  text-decoration: none;
}

.bookmark-entry-edit__value-preview {
  min-width: 0;
  color: inherit;
  line-height: 1.5;
  max-height: calc(1.5em * 3);
  white-space: pre-wrap;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.bookmark-entry-edit__value-preview--expanded {
  max-height: none;
  overflow: visible;
}

.bookmark-entry-edit__input--date {
  width: min(100%, 13rem);
}

.bookmark-entry-edit__summary-title {
  font-weight: 700;
}

.bookmark-entry-edit__summary-card {
  display: grid;
  gap: 0.5rem;
}

.bookmark-entry-edit__summary-label {
  margin: 0;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25;
}

.bookmark-entry-edit__summary-help {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.bookmark-entry-edit__summary-meta-grid {
  display: grid;
  row-gap: 0.5rem;
  column-gap: 0.5rem;
  margin-top: 0.125rem;
}

.bookmark-entry-edit__summary-meta-item {
  display: grid;
  gap: 0.125rem;
  align-content: start;
}

.bookmark-entry-edit__choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.bookmark-entry-edit__choice,
.bookmark-entry-edit__check-option {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  color: var(--bs-body-color);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.3;
}

.bookmark-entry-edit__choice .form-check-input,
.bookmark-entry-edit__check-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.bookmark-entry-edit__check-option {
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .bookmark-entry-edit__context-bar {
    padding: 0.625rem 0.75rem;
  }

  .bookmark-entry-edit__context-title {
    font-size: 0.9rem;
  }

  .bookmark-entry-edit__context-meta {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .bookmark-entry-edit__summary-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.875rem;
  }
}

@media (min-width: 992px) {
  .bookmark-entry-edit__summary-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .bookmark-entry-edit__summary-meta-item--impact {
    transform: translateX(0.5rem);
  }
}

.bookmark-entry-edit__changes {
  position: relative;
}

.bookmark-entry-edit__changes-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  width: min(36rem, 92vw);
  max-height: min(50vh, 22rem);
  overflow: auto;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .bookmark-entry-edit__changes-panel {
    left: 0;
    right: 0;
    width: auto;
  }
}

#bookmark-results-anchor {
  scroll-margin-top: 160px;
}

#nursing-results-anchor {
  scroll-margin-top: 160px;
}

.bookmark-search-hero {
  background: linear-gradient(
    135deg,
    rgba(var(--bs-primary-rgb), 0.1) 0%,
    rgba(var(--bs-primary-rgb), 0.04) 55%,
    rgba(255, 255, 255, 0.98) 100%
  );
  border: 1px solid rgba(var(--bs-primary-rgb), 0.16) !important;
  box-shadow: none !important;
}

.bookmark-search-hero__eyebrow {
  color: rgba(var(--bs-primary-rgb), 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bookmark-search-hero__copy {
  width: 100%;
}

.bookmark-search-hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.bookmark-search-hero__text {
  flex: 1 1 auto;
  min-width: 0;
}

.bookmark-search-hero__description {
  width: 100%;
  max-width: 90ch;
}

@media (min-width: 992px) {
  .bookmark-search-hero__main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }

  .bookmark-search-hero__text {
    flex: 0 1 auto;
  }

  .bookmark-search-hero__actions {
    align-self: center;
  }
}

.bookmark-search-hero__actions {
  --bookmark-search-action-width: 13.5rem;
  display: grid;
  gap: 0.5rem;
  width: min(100%, var(--bookmark-search-action-width));
  flex-shrink: 0;
}

.bookmark-search-hero__actions > * {
  min-width: 0;
}

.bookmark-search-btn.btn {
  min-height: 48px;
  padding-inline: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0.5rem 1rem rgba(var(--bs-primary-rgb), 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bookmark-search-btn--secondary.btn {
  min-height: 48px;
  padding-inline: 1.5rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.92);
  border-color: rgba(var(--bs-primary-rgb), 0.24);
  color: var(--bs-primary);
  box-shadow: none;
}

.bookmark-search-hero__actions .bookmark-filter__details {
  width: 100%;
}

.bookmark-search-hero__actions .bookmark-filter__details > summary.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bookmark-search-hero__actions .bookmark-filter__dropdown-panel {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.bookmark-search-btn.btn.btn-primary:hover,
.bookmark-search-btn.btn.btn-primary:active {
  color: var(--bs-white) !important;
  border-color: var(--bs-primary);
  background-color: var(--bs-primary);
  transform: translateY(-1px);
}

.bookmark-search-btn--secondary.btn:hover,
.bookmark-search-btn--secondary.btn:active {
  color: var(--bs-primary);
  border-color: rgba(var(--bs-primary-rgb), 0.42);
  background-color: #ffffff;
  transform: translateY(-1px);
}

.bookmark-search-btn.btn:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.35),
    0 0.5rem 1rem rgba(var(--bs-primary-rgb), 0.22);
}

@media (min-width: 576px) {
  .bookmark-search-hero__actions {
    width: fit-content;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(var(--bookmark-search-action-width), var(--bookmark-search-action-width)));
  }

  .bookmark-search-hero__actions--single {
    grid-template-columns: minmax(var(--bookmark-search-action-width), var(--bookmark-search-action-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bookmark-search-btn.btn {
    transition: none;
  }

  .bookmark-search-btn.btn.btn-primary:hover,
  .bookmark-search-btn.btn.btn-primary:active,
  .bookmark-search-btn--secondary.btn:hover,
  .bookmark-search-btn--secondary.btn:active {
    transform: none;
  }
}

/* Pipelines: focus layout (Fizzy-like collapsed rails) */
.pipeline-page--compact {
  --pipeline-focus-column-width: 416px;
  --pipeline-potential-column-width: 350px;
  --pipeline-provisioning-column-width: 350px;
  --pipeline-complete-column-width: 350px;
  --pipeline-focus-rail-width: 36px;

  max-width: min(1680px, calc(100% - 1.5rem));
}

.pipeline-page--compact .pipeline-board {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.75rem;
}

.pipeline-page--compact .pipeline-control-strip {
  align-items: start;
  column-gap: 0.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  row-gap: 0.5rem;
}

.pipeline-page--compact .pipeline-dashboard-panel {
  display: flex;
  grid-column: 1;
  justify-content: end;
  min-width: 0;
}

.pipeline-page--compact .pipeline-dashboard-controls {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.pipeline-page--compact .pipeline-membership-controls {
  grid-column: 2;
  justify-self: start;
  min-width: 0;
}

.pipeline-page--compact .quarterly-membership-details,
.pipeline-page--compact .quarterly-membership-details .btn,
.pipeline-page--compact .quarterly-membership-details .h6 {
  font-size: 0.7rem;
}

.pipeline-page--compact .quarterly-member-groups {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pipeline-page--compact .quarterly-member-group {
  min-width: 0;
}

.pipeline-page--compact .quarterly-member-button:focus-visible {
  outline: 3px solid var(--bs-orange);
  outline-offset: 2px;
}

.pipeline-page--compact .quarterly-membership-detail-row > td {
  background: var(--bs-tertiary-bg);
}

@media (max-width: 991.98px) {
  .pipeline-page--compact .pipeline-control-strip {
    display: flex;
    flex-wrap: wrap;
  }

  .pipeline-page--compact .pipeline-dashboard-panel,
  .pipeline-page--compact .pipeline-membership-controls {
    grid-column: auto;
  }

  .pipeline-page--compact .pipeline-dashboard-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .pipeline-page--compact .quarterly-member-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pipeline-page--compact {
  --pipeline-column-header-height: 2.0625rem;
}

.pipeline-page--compact .pipeline-board > .col > .card > .card-header,
.pipeline-page--compact .pipeline-focus-column--open > .card > .card-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--pipeline-column-header-height);
  padding: 0.25rem 0.6rem;
}

.pipeline-page--compact .pipeline-column-body {
  padding: 0.5rem;
}

.pipeline-page--compact .pipeline-column-card-list {
  gap: 0.4rem !important;
}

.pipeline-page--compact .pipeline-card__body {
  padding: 0.35rem 0.45rem !important;
}

.pipeline-page--compact .pipeline-card__content {
  font-size: 0.68rem !important;
}

.pipeline-page--compact .pipeline-card__name {
  font-size: 0.8125rem !important;
}

.pipeline-column-body[data-pipeline-column-key] .pipeline-column-card-list {
  gap: 0.125rem !important;
}

.pipeline-column-body[data-pipeline-column-key] .pipeline-card__body {
  padding-block: 0.42rem !important;
}

.pipeline-column-body[data-pipeline-column-key] .pipeline-card {
  background: transparent;
  border-bottom: 1px solid var(--bs-border-color);
  border-left: 0 !important;
  border-radius: 0;
  border-right: 0;
  border-top: 0;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.pipeline-column-body[data-pipeline-column-key] .pipeline-card::before {
  background: var(--pipeline-renewal-outline-color);
  border-radius: 999px;
  content: "";
  height: 60%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0.2rem;
}

.pipeline-column-body[data-pipeline-column-key] .pipeline-card:last-child {
  border-bottom: 0;
}

.pipeline-column-body[data-pipeline-column-key] .pipeline-card:hover,
.pipeline-column-body[data-pipeline-column-key] .pipeline-card:focus-within {
  background: rgba(var(--bs-primary-rgb), 0.12);
}

.pipeline-column-body[data-pipeline-column-key] .pipeline-card:focus-within {
  box-shadow: inset 0 0 0 2px rgba(var(--bs-primary-rgb), 0.5);
}

.pipeline-card__name--email-review,
.pipeline-dashboard__email-review-label {
  text-decoration-color: var(--bs-danger);
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.pipeline-card__task-workers {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 0.15rem;
}

.pipeline-card__task-worker {
  align-items: center;
  background: var(--pipeline-task-worker-color, #2563eb);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  height: 1.18rem;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-width: 1.18rem;
  padding: 0 0.18rem;
}

.pipeline-column__admin-filters {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
  min-width: 0;
}

.pipeline-column__admin-filter {
  flex: 0 0 auto;
}

.pipeline-email-activity-indicator {
  display: inline-flex;
  line-height: 1;
  vertical-align: middle;
}

.pipeline-email-activity-dot {
  background: var(--bs-danger);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.42rem;
  width: 0.42rem;
}

.pipeline-page--compact .pipeline-column-label,
.pipeline-page--compact .pipeline-column-count,
.pipeline-page--compact .pipeline-column-amount {
  font-size: 0.72rem !important;
}

.pipeline-page--compact .pipeline-column-mode-selector {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  background: #f8fafc;
}

.pipeline-page--compact .pipeline-column-mode-segment {
  border: 0;
  border-radius: 0;
  color: #64748b !important;
  padding: 0.0625rem 0.38rem;
}

.pipeline-page--compact .pipeline-column-mode-segment + .pipeline-column-mode-segment {
  border-left: 1px solid #cbd5e1;
}

.pipeline-page--compact .pipeline-column-mode-switch {
  font-size: 0.72rem !important;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.pipeline-page--compact .pipeline-column-mode-switch--active {
  background: var(--bs-primary);
  color: #fff !important;
}

.pipeline-page--compact .pipeline-column-collapse-toggle {
  line-height: 1;
}

.pipeline-page--compact .pipeline-column-new-member {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.pipeline-page--compact .pipeline-focus-board {
  gap: 0.5rem;
}

.pipeline-page--compact .pipeline-focus-side {
  gap: 0.5rem;
}

.pipeline-page--compact .pipeline-focus-rail {
  padding-top: 0;
}

.pipeline-page--compact .pipeline-focus-rail__count {
  align-items: center;
  border-top: var(--bs-border-width) solid transparent;
  display: flex;
  flex: 0 0 var(--pipeline-column-header-height);
  font-size: 0.72rem;
  justify-content: center;
  line-height: 1.5;
  color: var(--bs-secondary-color);
  width: 100%;
}

.pipeline-page--compact .pipeline-focus-rail__label {
  font-size: 0.72rem;
  letter-spacing: 0;
}

.pipeline-board > .col {
  align-self: flex-start;
}

.pipeline-board > .col > .card {
  height: auto;
}

.pipeline-focus-board {
  --pipeline-focus-column-width: 520px;
  --pipeline-focus-rail-width: 44px;
  --pipeline-drawer-max-width: 420px;

  display: grid;
  gap: 0.75rem;
  align-items: start;
  grid-template-columns: 1fr var(--pipeline-focus-column-width) 1fr;
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

.pipeline-search-input::-webkit-search-cancel-button,
.pipeline-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.pipeline-focus-board[data-in-progress-hidden="true"] {
  grid-template-columns: auto var(--pipeline-focus-rail-width) auto;
  column-gap: 0.75rem;
}

@media (min-width: 992px) {
  .pipeline-focus-board[data-in-progress-hidden="true"] {
    max-width: calc(100% - var(--pipeline-drawer-max-width));
  }

  .pipeline-focus-board[data-drawer-shift="true"] {
    max-width: calc(100% - var(--pipeline-drawer-max-width));
  }
}

.pipeline-focus-side {
  align-self: stretch;
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
}

.pipeline-focus-side--left {
  justify-content: flex-end;
}

.pipeline-focus-side--right {
  justify-content: flex-start;
}

.pipeline-focus-center {
  display: flex;
  justify-content: center;
}

.pipeline-focus-column {
  flex: 0 0 auto;
  display: flex;
  align-self: flex-start;
}

.pipeline-focus-column > .card {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
}

.pipeline-focus-column--open {
  width: min(var(--pipeline-focus-column-width), 92vw);
}

.pipeline-focus-column--potential.pipeline-focus-column--open {
  width: min(var(--pipeline-potential-column-width), 92vw);
}

.pipeline-focus-column--provisioning.pipeline-focus-column--open {
  width: min(var(--pipeline-provisioning-column-width), 92vw);
}

.pipeline-focus-column--complete.pipeline-focus-column--open,
.pipeline-focus-column--complete-renewal.pipeline-focus-column--open,
.pipeline-focus-column--complete-current.pipeline-focus-column--open {
  width: min(var(--pipeline-complete-column-width), 92vw);
}

.pipeline-focus-column--rail {
  width: var(--pipeline-focus-rail-width);
  align-self: stretch;
}

.pipeline-focus-column--rail > .card {
  background: transparent;
  border: 0;
  box-shadow: none !important;
  height: 100%;
}

.pipeline-focus-column--rail > .card .card-header,
.pipeline-focus-column--rail > .card .card-body {
  display: none;
}

.pipeline-focus-rail {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
  padding: 0.25rem 0;
  text-align: center;
  width: 100%;
}

.pipeline-focus-rail:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.pipeline-focus-rail:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.pipeline-focus-rail[disabled] {
  cursor: default;
  opacity: 0.7;
}

.pipeline-focus-rail[disabled]:hover {
  background-color: transparent;
}

.pipeline-focus-rail__count {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bs-secondary-color);
}

.pipeline-focus-rail__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--bs-secondary-color);
  user-select: none;
}

.pipeline-focus-rail__line {
  flex: 1 1 auto;
  width: 1px;
  background: var(--bs-border-color);
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Pipelines: expanded marketing board within the membership focus layout */
.pipeline-marketing-focus-layout {
  align-items: start;
  display: grid;
  gap: 0.75rem;
  grid-template-areas: "board rails";
  grid-template-columns: minmax(0, 1fr) auto;
}

.pipeline-marketing-expand {
  height: 1.5rem;
  width: 1.5rem;
}

.pipeline-marketing-board {
  grid-area: board;
  min-width: 0;
}

.pipeline-marketing-columns {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-padding-inline: 0.125rem;
}

.pipeline-marketing-columns:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.pipeline-marketing-column {
  flex: 0 0 18rem;
  max-height: min(48rem, calc(100vh - 14rem));
  min-width: 18rem;
  overflow: hidden;
}

.pipeline-marketing-column > .card-body {
  min-height: 0;
  overflow-y: auto;
}

.pipeline-marketing-membership-rails {
  align-items: stretch;
  display: flex;
  gap: 0.5rem;
  grid-area: rails;
}

.pipeline-marketing-membership-rails .pipeline-focus-column--rail {
  min-height: 12rem;
  width: var(--pipeline-focus-rail-width);
}

.pipeline-marketing-column.is-drag-over {
  background-color: var(--bs-primary-bg-subtle);
  box-shadow: inset 0 0 0 2px currentColor;
}

.pipeline-marketing-add-column {
  flex: 0 0 2rem;
  width: 2rem;
}

.pipeline-marketing-add-column > .btn {
  font-size: 0;
  height: 2rem;
  padding-inline: 0;
}

.pipeline-marketing-add-column > .btn > i {
  font-size: 0.875rem;
  margin-right: 0 !important;
}

.pipeline-marketing-back {
  height: 2rem;
  padding: 0;
  width: 2rem;
}

.pipeline-marketing-board .dropdown-menu,
.pipeline-marketing-menu,
.pipeline-marketing-board .modal-content {
  border-radius: 0.5rem;
  max-width: calc(100vw - 2rem);
  overflow-wrap: anywhere;
}

.pipeline-marketing-board .modal-dialog {
  margin-left: auto;
  margin-right: auto;
  max-width: min(31.25rem, calc(100vw - 2rem));
}

@media (max-width: 991.98px) {
  .pipeline-marketing-focus-layout {
    grid-template-areas:
      "rails"
      "board";
    grid-template-columns: minmax(0, 1fr);
  }

  .pipeline-marketing-membership-rails {
    overflow-x: auto;
  }
}

/* Pipelines: de-emphasize non-active cards when drawer open (without changing active card surface) */
[data-pipeline-card-active="true"] {
  background-color: #ffffff;
  border-color: var(--bs-border-color);
  box-shadow: var(--bs-box-shadow-sm);
  opacity: 1;
  filter: none;
}

[data-pipeline-card-dimmed="true"] {
  position: relative;
}

[data-pipeline-card-dimmed="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(1px);
  pointer-events: none;
  transition: opacity 160ms ease;
}

.timesheet-hours-card,
.timesheet-hours-card > .card-body,
.timesheet-hours-table-wrapper {
  overflow: visible;
}

.timesheet-hours-table {
  min-width: 56rem;
}

@media (max-width: 767.98px) {
  .timesheet-hours-card,
  .timesheet-hours-card > .card-body {
    overflow: hidden;
  }

  .timesheet-hours-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0.25rem;
  }

  .timesheet-hours-table {
    min-width: 62rem;
  }
}
/* Unmatched email admin workspace */
.unmatched-email-workspace {
  min-width: 0;
  padding: 1.5rem;
}

.unmatched-email-workspace__page-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto 1rem;
  max-width: 100rem;
}

.unmatched-email-workspace__page-header h1 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
}

.unmatched-email-workspace__page-header p {
  color: var(--bs-secondary-color);
  margin: 0;
}

.unmatched-email-workspace__columns {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  display: grid;
  grid-template-columns: minmax(19rem, 26rem) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 100rem;
  min-height: min(48rem, calc(100vh - 12rem));
  overflow: clip;
}

.unmatched-email-workspace__list-pane {
  border-right: 1px solid var(--bs-border-color);
  max-height: calc(100vh - 8rem);
  min-width: 0;
  overflow: auto;
  position: sticky;
  top: 5rem;
}

.unmatched-email-workspace__list-controls {
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 2;
}

.unmatched-email-workspace__review-filters {
  border: 0;
  display: flex;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
  padding: 0;
}

.unmatched-email-workspace__review-filters legend {
  float: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  width: 100%;
}

.unmatched-email-workspace__review-filters label {
  align-items: center;
  display: flex;
  font-size: 0.875rem;
  gap: 0.375rem;
}

.unmatched-email-workspace__result-count {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
}

.unmatched-email-workspace__thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.unmatched-email-workspace__list-item {
  border-bottom: 1px solid var(--bs-border-color);
}

.unmatched-email-workspace__thread-row {
  background: transparent;
  border: 0;
  color: inherit;
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  text-align: left;
  width: 100%;
}

.unmatched-email-workspace__thread-row:hover,
.unmatched-email-workspace__thread-row:focus-visible {
  background: var(--bs-tertiary-bg);
}

.unmatched-email-workspace__thread-row.is-selected {
  background: #e7f1ff;
  color: #052c65;
}

.unmatched-email-workspace__review-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.unmatched-email-workspace__review-label--needs_review {
  color: #9a3412;
}

.unmatched-email-workspace__review-label--reviewed {
  color: #166534;
}

.unmatched-email-workspace__thread-subject {
  font-weight: 650;
}

.unmatched-email-workspace__participant,
.unmatched-email-workspace__row-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.unmatched-email-workspace__participant,
.unmatched-email-workspace__row-meta {
  color: var(--bs-secondary-color);
  font-size: 0.8125rem;
}

.unmatched-email-workspace__preview {
  color: var(--bs-secondary-color);
  display: -webkit-box;
  font-size: 0.875rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.unmatched-email-workspace__loading,
.unmatched-email-workspace__empty,
.unmatched-email-workspace__detail-empty {
  color: var(--bs-secondary-color);
  padding: 1.25rem;
}

.unmatched-email-workspace__load-more {
  margin: 1rem;
  width: calc(100% - 2rem);
}

.unmatched-email-workspace__detail-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.unmatched-email-workspace__matched-notice {
  border-radius: 0;
  margin: 0;
}

.unmatched-email-workspace__conversation-toolbar {
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.3rem 0.75rem;
}

.unmatched-email-workspace__conversation-toolbar .pipeline-email-workspace__header-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.unmatched-email-workspace__conversation-toolbar .pipeline-email-workspace__thread-actions {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.unmatched-email-workspace__conversation-toolbar .pipeline-email-workspace__thread-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.unmatched-email-workspace__reader {
  flex: 1;
  min-height: 30rem;
  min-width: 0;
}

.unmatched-email-workspace__reader.is-stale {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.unmatched-email-member-dialog__backdrop {
  align-items: center;
  background: rgb(15 23 42 / 55%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 1080;
}

.unmatched-email-member-dialog {
  background: var(--bs-body-bg);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgb(15 23 42 / 25%);
  display: grid;
  gap: 1rem;
  max-height: min(42rem, calc(100vh - 2rem));
  max-width: 34rem;
  overflow: auto;
  padding: 1.25rem;
  width: 100%;
}

.unmatched-email-member-dialog > header,
.unmatched-email-member-dialog > footer {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.unmatched-email-member-dialog h2 {
  font-size: 1.25rem;
  margin: 0;
}

.unmatched-email-member-dialog__status {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.unmatched-email-member-dialog__options {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  display: grid;
  max-height: 14rem;
  overflow: auto;
}

.unmatched-email-member-dialog__options label {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
}

.unmatched-email-member-dialog__options label + label {
  border-top: 1px solid var(--bs-border-color);
}

.unmatched-email-member-dialog__options small {
  color: var(--bs-secondary-color);
  display: block;
}

.unmatched-email-workspace__stale-detail {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0.75rem;
}

.unmatched-email-workspace__reader .pipeline-email-workspace--page {
  border: 0;
  border-radius: 0;
  height: 100%;
}

@media (max-width: 767.98px) {
  .unmatched-email-workspace {
    padding: 0;
  }

  .unmatched-email-workspace__page-header {
    align-items: flex-start;
    padding: 1rem;
  }

  .unmatched-email-workspace__columns {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    display: block;
    min-height: calc(100vh - 8rem);
  }

  .unmatched-email-workspace__list-pane {
    border-right: 0;
    max-height: none;
    position: static;
  }

  .unmatched-email-workspace__list-pane[aria-hidden="true"] {
    display: none;
  }

  .unmatched-email-workspace__detail-pane[hidden] {
    display: none;
  }

  .unmatched-email-workspace__reader {
    min-height: calc(100vh - 15rem);
  }

  .unmatched-email-workspace__conversation-toolbar .pipeline-email-workspace__header-actions {
    flex: 1 1 100%;
    width: 100%;
  }

  .unmatched-email-workspace__conversation-toolbar,
  .unmatched-email-workspace__conversation-toolbar .pipeline-email-workspace__thread-actions {
    flex-wrap: wrap;
  }
}
