/* General Styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 20px;
  overflow-wrap: break-word;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.candidate-header {
  background-color: #e9ecef;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.add-brief-modal {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}
.add-brief-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.add-brief-modal__body {
  flex: 1;
  overflow: auto;
}
.add-brief-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.add-brief-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.add-brief-status {
  min-height: 1.5rem;
  font-size: 0.9rem;
}
.candidate-header h1 {
  font-size: 1.5rem;
  margin: 0;
}
.candidate-header .header-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.candidate-header .header-links .header-icon-button {
  border: none;
  background: transparent;
  color: #0d6efd;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.candidate-header .header-links .header-icon-button:hover {
  color: #0b5ed7;
}
.candidate-header .header-links .header-icon-button:disabled {
  color: #6c757d;
  cursor: default;
}
.candidate-header .header-links .header-icon-button:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}
.candidate-header .header-links a,
.candidate-header .header-links span {
  font-size: 1.25rem;
}
.candidate-header .header-links .recruiter-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.candidate-header .header-links .icon-disabled .recruiter-icon {
  filter: grayscale(1);
  opacity: 0.5;
}
.candidate-header .header-links .btn {
  font-size: 0.9rem;
  padding: 0.25rem 0.6rem;
  line-height: 1.2;
}
.candidate-header .header-links a {
  color: #0d6efd;
  text-decoration: none;
}
.candidate-header .header-links a:hover {
  color: #0b5ed7;
}
.candidate-header .header-links .icon-disabled {
  color: #6c757d;
  cursor: default;
}
.brief-header {
  row-gap: 0.75rem;
}
.brief-header__title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.brief-header__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #495057;
}
.brief-header__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.brief-header__meta-primary {
  font-weight: 600;
}
.brief-header__meta-secondary {
  font-size: 0.8rem;
  color: #6c757d;
}
.brief-header__links .disabled {
  pointer-events: none;
  opacity: 0.6;
}
.brief-highlights {
  border-radius: 10px;
  padding: 1rem;
}
.brief-highlights__header {
  margin-bottom: 0.75rem;
}
.brief-highlights__grid {
  display: grid;
  gap: 0.75rem;
}
.brief-highlights__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brief-highlights__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}
.brief-highlights__value {
  font-size: 1.1rem;
  font-weight: 600;
}
.brief-highlights__hint {
  font-size: 0.85rem;
  color: #6c757d;
}
.brief-pipeline-overview {
  border-radius: 10px;
  padding: 1rem;
}
.brief-pipeline-overview__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.due-date-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.due-date-control .label-group {
  margin-bottom: 0;
}

.due-date-control .label-group-labels {
  align-items: center;
  gap: 0.75rem;
}

.due-date-control [data-role="due-date-input"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
}

.due-date-display {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #212529;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.due-date-display__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background-color: rgba(13, 110, 253, 0.12);
  color: inherit;
  font-size: 0.85rem;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.due-date-display__icon::before {
  content: "\f073";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.due-date-display__text {
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
}

.due-date-display--empty {
  color: #0d6efd;
  gap: 0;
}

.due-date-display--empty .due-date-display__icon {
  border: none;
  background-color: #e0e0e0;
  color: #333;
  font-size: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.due-date-display--empty .due-date-display__icon::before {
  content: "\f067";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.due-date-display--empty .due-date-display__text {
  display: none;
}

.due-date-display--overdue {
  color: #dc3545;
}

.due-date-display--overdue .due-date-display__icon {
  background-color: rgba(220, 53, 69, 0.12);
}

.due-date-display--soon {
  color: #fd7e14;
}

.due-date-display--soon .due-date-display__icon {
  background-color: rgba(253, 126, 20, 0.12);
}

.due-date-display--future {
  color: #1f2937;
}

.due-date-display--future .due-date-display__icon {
  background-color: rgba(15, 23, 42, 0.12);
}

.due-date-display--complete {
  color: #0f5132;
}

.due-date-display--complete .due-date-display__icon {
  background-color: rgba(25, 135, 84, 0.2);
  color: #198754;
}

.due-date-display:hover {
  opacity: 0.85;
}

.due-date-display:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}

body.dark-mode .due-date-display {
  color: #e9ecef;
}

body.dark-mode .due-date-display__icon {
  background-color: rgba(13, 110, 253, 0.28);
}

body.dark-mode .due-date-display--empty {
  color: #cbd5f5;
}

body.dark-mode .due-date-display--empty .due-date-display__icon {
  background-color: #555;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

body.dark-mode .due-date-display--empty .due-date-display__text {
  display: none;
}

body.dark-mode .due-date-display--overdue {
  color: #ff6b6b;
}

body.dark-mode .due-date-display--overdue .due-date-display__icon {
  background-color: rgba(220, 53, 69, 0.35);
}

body.dark-mode .due-date-display--soon {
  color: #ffb86c;
}

body.dark-mode .due-date-display--soon .due-date-display__icon {
  background-color: rgba(253, 126, 20, 0.32);
}

body.dark-mode .due-date-display--future {
  color: #e2e8f0;
}

body.dark-mode .due-date-display--future .due-date-display__icon {
  background-color: rgba(148, 163, 184, 0.32);
}

body.dark-mode .pipeline-card-meta__stage-heading,
body.dark-mode .pipeline-card-meta__field-label,
body.dark-mode .pipeline-card-meta__value-placeholder {
  color: #adb5bd;
}

body.dark-mode .pipeline-card-meta__input {
  border-bottom-color: rgba(173, 181, 189, 0.35);
  color: #e9ecef;
}

body.dark-mode .pipeline-card-meta__input::placeholder {
  color: rgba(173, 181, 189, 0.75);
}

body.dark-mode .pipeline-card-meta__input:disabled {
  border-bottom-color: rgba(173, 181, 189, 0.25);
  color: rgba(173, 181, 189, 0.65);
}

body.dark-mode .pipeline-card-meta__input-wrapper--pending .pipeline-card-meta__input {
  border-bottom-color: #66b2ff;
  opacity: 0.85;
}

body.dark-mode .pipeline-card-meta__input-wrapper--error .pipeline-card-meta__input {
  border-bottom-color: #ff6b6b;
}

body.dark-mode .pipeline-card-meta__input-wrapper--success .pipeline-card-meta__input {
  border-bottom-color: #5cd29d;
}

body.dark-mode .pipeline-card-meta__field--value .pipeline-card-meta__field-label {
  color: #9ec5fe;
}

body.dark-mode .pipeline-card-meta__field--support .pipeline-card-meta__field-label {
  color: rgba(222, 226, 230, 0.75);
}

body.dark-mode .pipeline-card-meta__input-wrapper--value {
  background: rgba(13, 110, 253, 0.25);
  border-color: rgba(108, 168, 255, 0.65);
  color: #cfe2ff;
}

body.dark-mode .pipeline-card-meta__input-wrapper--support {
  background: rgba(222, 226, 230, 0.08);
  border-color: rgba(222, 226, 230, 0.18);
  color: #dee2e6;
}

body.dark-mode .pipeline-card-meta__input-wrapper--badge.pipeline-card-meta__input-wrapper--pending {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

body.dark-mode .pipeline-card-meta__input-wrapper--badge.pipeline-card-meta__input-wrapper--error {
  border-color: rgba(220, 53, 69, 0.7);
  color: #f1aeb5;
}

body.dark-mode .pipeline-card-meta__input-wrapper--badge.pipeline-card-meta__input-wrapper--success {
  border-color: rgba(25, 135, 84, 0.7);
  color: #a3cfbb;
}

body.dark-mode .pipeline-card-meta__input--badge::placeholder {
  color: rgba(222, 226, 230, 0.6);
}

body.dark-mode .pipeline-card-meta__value-prefix {
  color: inherit;
}

body.dark-mode .pipeline-card-meta__display-text--placeholder {
  color: rgba(233, 236, 239, 0.65);
}

body.dark-mode .pipeline-card-meta__input-wrapper--empty .pipeline-card-meta__value-prefix {
  opacity: 0.55;
}

body.dark-mode .pipeline-card-meta__input-wrapper--estimate {
  background: rgba(40, 167, 69, 0.18);
  border-color: rgba(40, 167, 69, 0.45);
  color: #8fd19e;
}

body.dark-mode .pipeline-card-meta__display:focus-visible {
  outline-color: rgba(173, 181, 189, 0.55);
}

body.dark-mode .due-date-display--complete {
  color: #4ade80;
}

body.dark-mode .due-date-display--complete .due-date-display__icon {
  background-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.brief-pipeline-overview__milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}
.brief-pipeline-overview__milestone {
  background-color: rgba(13, 110, 253, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #0d6efd;
}
.brief-pipeline-overview__milestone.has-cards {
  background-color: rgba(25, 135, 84, 0.12);
  color: #198754;
}
.brief-pipeline-overview__milestone-name {
  font-weight: 600;
}
.brief-pipeline-overview__milestone-count {
  font-variant-numeric: tabular-nums;
}
.brief-pipeline-overview__milestone-metrics {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brief-pipeline-overview__milestone-percentage {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
.brief-pipeline-overview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.brief-pipeline-overview__item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.75rem;
}
.brief-pipeline-overview__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.brief-pipeline-overview__item-header a {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.brief-pipeline-overview__item-header a:hover {
  text-decoration: underline;
}
.brief-pipeline-overview__item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.brief-pipeline-overview__item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.due-date-display.disabled,
.due-date-display[disabled] {
  color: #adb5bd;
  pointer-events: none;
  cursor: not-allowed;
}

.date-picker__overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10500;
}

.date-picker-popover {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.75);
  pointer-events: auto;
}

.date-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.date-picker__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.date-picker__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.date-picker__nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: #1f2933;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.date-picker__nav-btn:hover {
  background: rgba(30, 64, 175, 0.12);
  transform: translateY(-1px);
}

.date-picker__nav-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.date-picker__month-label {
  min-width: 130px;
  text-align: center;
  font-weight: 600;
  color: #0f172a;
}

.date-picker__calendar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-picker__weekdays,
.date-picker__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.date-picker__weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.date-picker__day {
  border: none;
  border-radius: 12px;
  padding: 0.35rem 0;
  background: transparent;
  color: #1f2933;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.date-picker__day:hover {
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.date-picker__day:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.date-picker__day--muted {
  color: #9aa5b1;
  font-weight: 500;
}

.date-picker__day--today {
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.date-picker__day--selected {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.date-picker__time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
}

.date-picker__time-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.date-picker__time-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.date-picker__select {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.date-picker__select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.date-picker__time-separator {
  font-weight: 700;
  color: #1f2933;
}

.date-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.date-picker__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.date-picker__actions--left .btn {
  white-space: nowrap;
}

.date-picker__clear {
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
}

.date-picker__clear:hover {
  color: #dc2626;
  text-decoration: underline;
}

body.dark-mode .date-picker-popover {
  background: rgba(17, 24, 39, 0.92);
  border-color: rgba(59, 130, 246, 0.16);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
}

body.dark-mode .date-picker__title {
  color: #94a3b8;
}

body.dark-mode .date-picker__nav-btn {
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
}

body.dark-mode .date-picker__nav-btn:hover {
  background: rgba(96, 165, 250, 0.25);
}

body.dark-mode .date-picker__month-label {
  color: #e2e8f0;
}

body.dark-mode .date-picker__weekday {
  color: #64748b;
}

body.dark-mode .date-picker__day {
  color: #e2e8f0;
}

body.dark-mode .date-picker__day--muted {
  color: #94a3b8;
}

body.dark-mode .date-picker__day--today {
  border-color: rgba(96, 165, 250, 0.35);
}

body.dark-mode .date-picker__time {
  background: rgba(148, 163, 184, 0.12);
}

body.dark-mode .date-picker__time-label {
  color: #94a3b8;
}

body.dark-mode .date-picker__select {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

body.dark-mode .date-picker__time-separator {
  color: #e2e8f0;
}

body.dark-mode .date-picker__clear {
  color: #f87171;
}

body.dark-mode .date-picker__clear:hover {
  color: #ef4444;
}

.custom-field-date-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-field-date-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.custom-field-date-button--empty {
  color: #2563eb;
  border-style: dashed;
}

.custom-field-date-button--pending,
.custom-field-date-button:disabled {
  pointer-events: none;
  opacity: 0.65;
  box-shadow: none;
}

body.dark-mode .custom-field-date-button {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.45);
}

body.dark-mode .custom-field-date-button--empty {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.6);
}
.brief-pipeline-overview__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
@media (max-width: 600px) {
  .brief-highlights__grid {
    grid-template-columns: 1fr;
  }
  .brief-pipeline-overview__milestones {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}
.header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-contact {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  width: 100%;
  margin-top: 0.5rem;
}
.header-contact.header-contact--active {
  display: flex;
}
.contact-field {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.contact-field.contact-field--active {
  display: flex;
}
.contact-edit-actions {
  display: flex;
  gap: 0.25rem;
}
.contact-edit-actions .btn {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
}
.header-contact .contact-edit-actions {
  flex-basis: 100%;
  margin-top: 0.25rem;
}
.contact-label {
  font-weight: 600;
}
.contact-value {
  min-width: 140px;
}
.contact-input,
.card-title-input {
  min-width: 200px;
}
.placeholder {
  color: #6c757d;
  font-style: italic;
}
.header-title h1.editable:hover {
  text-decoration: none;
}
.description-body {
  cursor: pointer;
  padding: 0.25rem 0;
  border-radius: 4px;
}
.description-body:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}
.description-body.editing {
  cursor: default;
}
.description-body.saving::after {
  content: "Saving…";
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.35rem;
}
body.dark-mode .description-body.saving::after {
  color: #adb5bd;
}
.description-edit-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}
.description-editor {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}
.trello-summary-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
}
.trello-summary-container.drag-over {
  border: 2px dashed #0d6efd;
}

#drop-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 110, 253, 0.75);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
}

#drop-overlay.success {
  background: rgba(40, 167, 69, 0.75);
}

.add-comment-box {
  background-color: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
  padding: 1rem;
}

.add-comment-box.is-hidden {
  display: none;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.comments-header .comments-title {
  margin: 0;
}

.add-comment-trigger {
  background: #0d6efd;
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex: 0 0 auto;
}

.add-comment-trigger:hover {
  transform: translateY(-1px);
  background: #0c63e4;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.add-comment-trigger:active {
  transform: translateY(0);
  background: #0b5ed7;
  box-shadow: 0 1px 3px rgba(13, 110, 253, 0.35);
}

.add-comment-trigger:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.45);
  outline-offset: 2px;
}

.add-comment-trigger.is-active {
  background: #0b5ed7;
  box-shadow: 0 2px 6px rgba(11, 94, 215, 0.35);
}

.add-comment-trigger-icon {
  display: block;
  line-height: 1;
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}

.add-comment-trigger.is-active .add-comment-trigger-icon {
  transform: rotate(45deg);
}

.add-comment-box textarea {
  min-height: 120px;
  resize: vertical;
}

.add-comment-box .form-text {
  color: #6c757d;
}

.mention-pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mention-pill-placeholder {
  color: #6c757d;
  font-size: 0.9rem;
}

.mention-pill {
  border: 1px solid rgba(13, 110, 253, 0.35);
  background-color: #fff;
  color: #0d6efd;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mention-pill .mention-pill-name {
  font-weight: 600;
}

.mention-pill .mention-pill-username {
  font-size: 0.8rem;
  opacity: 0.9;
}

.mention-pill:hover {
  background-color: #e7f1ff;
  border-color: rgba(13, 110, 253, 0.55);
  color: #0a58ca;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.mention-pill.is-selected {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0b5ed7;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.4);
}

.mention-pill.is-selected .mention-pill-username {
  color: inherit;
  opacity: 1;
}

.mention-pill:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.55);
  outline-offset: 2px;
}

.comment-template-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-template-pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-template-pill {
  border: 1px solid rgba(13, 110, 253, 0.4);
  background-color: #fff;
  color: #0d6efd;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-template-pill:hover {
  background-color: #e7f1ff;
  color: #0a58ca;
  border-color: rgba(13, 110, 253, 0.55);
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.comment-template-pill.is-active {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0b5ed7;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.35);
}

.comment-template-pill.is-active:hover {
  background-color: #0b5ed7;
  color: #fff;
}

.comment-template-pill:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.55);
  outline-offset: 2px;
}

.comment-mode-fields.is-hidden {
  display: none;
}

.comment-template-fields .is-hidden {
  display: none;
}

.comment-template-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-template-section {
  background-color: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.comment-template-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.comment-template-inline-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.comment-template-field-label {
  margin-bottom: 0.35rem;
}

.comment-template-inline-field .comment-template-field-label {
  margin-bottom: 0;
  flex: 0 0 auto;
  min-width: 160px;
}

.comment-template-inline-field .comment-template-input {
  flex: 1 1 auto;
}

.comment-template-input,
.comment-template-textarea {
  width: 100%;
}

.comment-template-textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-template-empty {
  color: #6c757d;
  font-style: italic;
}

body.dark-mode .add-comment-box {
  background-color: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8f9fa;
}

body.dark-mode .comments-header .comments-title {
  color: #f8f9fa;
}

body.dark-mode .add-comment-trigger {
  background: #4263eb;
  box-shadow: 0 2px 8px rgba(66, 99, 235, 0.45);
}

body.dark-mode .add-comment-trigger:hover {
  background: #3b5bdb;
  box-shadow: 0 4px 14px rgba(66, 99, 235, 0.55);
}

body.dark-mode .add-comment-trigger:active {
  background: #364fc7;
  box-shadow: 0 1px 4px rgba(66, 99, 235, 0.45);
}

body.dark-mode .add-comment-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
}

body.dark-mode .add-comment-trigger.is-active {
  background: #364fc7;
  box-shadow: 0 2px 8px rgba(54, 79, 199, 0.55);
}

@media (max-width: 576px) {
  .add-comment-trigger {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.2rem;
  }
}

body.dark-mode .add-comment-box .form-label {
  color: #f8f9fa;
}

body.dark-mode .add-comment-box .form-text {
  color: #ced4da;
}

body.dark-mode .add-comment-box .form-control,
body.dark-mode .add-comment-box .form-select,
body.dark-mode .add-comment-box textarea {
  background-color: #2b3035;
  color: #f8f9fa;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .mention-pill-placeholder {
  color: #ced4da;
}

body.dark-mode .mention-pill {
  background-color: rgba(66, 99, 235, 0.15);
  border-color: rgba(66, 99, 235, 0.45);
  color: #dbe4ff;
  box-shadow: none;
}

body.dark-mode .mention-pill:hover {
  background-color: rgba(66, 99, 235, 0.25);
  border-color: rgba(66, 99, 235, 0.6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(66, 99, 235, 0.45);
}

body.dark-mode .mention-pill.is-selected {
  background-color: #4263eb;
  border-color: #364fc7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(66, 99, 235, 0.55);
}

body.dark-mode .mention-pill:focus-visible {
  outline: 2px solid rgba(219, 228, 255, 0.65);
}

body.dark-mode .comment-template-pill {
  background-color: rgba(66, 99, 235, 0.15);
  border-color: rgba(66, 99, 235, 0.45);
  color: #dbe4ff;
  box-shadow: none;
}

body.dark-mode .comment-template-pill:hover {
  background-color: rgba(66, 99, 235, 0.25);
  border-color: rgba(66, 99, 235, 0.6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(66, 99, 235, 0.45);
}

body.dark-mode .comment-template-pill.is-active {
  background-color: #4263eb;
  border-color: #364fc7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(66, 99, 235, 0.55);
}

body.dark-mode .comment-template-pill:focus-visible {
  outline: 2px solid rgba(219, 228, 255, 0.65);
}

body.dark-mode .comment-template-section {
  background-color: #1f2933;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .comment-template-input,
body.dark-mode .comment-template-textarea {
  background-color: #2b3035;
  color: #f8f9fa;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .comment-template-empty {
  color: #adb5bd;
}

body.dark-mode .add-comment-box .btn-outline-secondary {
  color: #f8f9fa;
  border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .add-comment-box .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f8f9fa;
}

/* Shortlist modal */
.shortlist-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  color: #212529;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body.dark-mode .shortlist-modal {
  background: #16181c;
  color: #f8f9fa;
}

.summarise-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  color: #212529;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

body.dark-mode .summarise-modal {
  background: #16181c;
  color: #f8f9fa;
}

.summarise-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
}

.summarise-result {
  flex: 1 1 auto;
  min-height: 0;
}

.summarise-description-preview {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fa;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.95rem;
}

body.dark-mode .summarise-description-preview {
  border-color: #2b3035;
  background: #1f2328;
}

.summarise-description-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.shortlist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  background: #f8f9fa;
}

body.dark-mode .shortlist-toolbar {
  border-color: #2b3035;
  background: #1f2328;
}

.shortlist-toolbar__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shortlist-toolbar__heading {
  font-size: 1.1rem;
  font-weight: 600;
}

.shortlist-toolbar__subtitle {
  font-size: 0.85rem;
  color: #6c757d;
}

body.dark-mode .shortlist-toolbar__subtitle {
  color: #cfd3da;
}

.shortlist-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex: 1 1 260px;
  min-width: 240px;
}

.shortlist-search {
  flex: 1 1 240px;
  min-width: 200px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  background: #ffffff;
  color: inherit;
}

.shortlist-search:focus {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}

body.dark-mode .shortlist-search {
  border-color: #3a3f44;
  background: #202327;
}

.shortlist-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background: #ffffff;
  color: #495057;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
}

.shortlist-close:hover {
  background: #f1f3f5;
  transform: translateY(-1px);
}

.shortlist-close:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.4);
  outline-offset: 2px;
}

body.dark-mode .shortlist-close {
  border-color: #3a3f44;
  background: #2b3035;
  color: #f8f9fa;
}

body.dark-mode .shortlist-close:hover {
  background: #373c42;
}

body.dark-mode .shortlist-close:focus-visible {
  outline-color: rgba(80, 170, 255, 0.55);
}

.shortlist-label-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shortlist-filter-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 4px;
}

body.dark-mode .shortlist-filter-divider {
  background: rgba(255, 255, 255, 0.12);
}

.shortlist-label-chip {
  border: 1px solid var(--chip-color, #adb5bd);
  background: transparent;
  color: var(--chip-color, #495057);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.shortlist-label-chip:hover {
  transform: translateY(-1px);
}

.shortlist-label-chip.is-active {
  background: var(--chip-color, #495057);
  color: #ffffff;
  border-color: transparent;
}

body.dark-mode .shortlist-label-chip {
  border-color: var(--chip-color, #6c757d);
  color: var(--chip-color, #dee2e6);
}

body.dark-mode .shortlist-label-chip.is-active {
  color: #0d1117;
}

.shortlist-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 36px;
  position: relative;
  min-height: 28px;
}

.shortlist-member-chip::before {
  content: attr(data-initials);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--member-avatar, #dee2e6);
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #495057;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
}

.shortlist-member-chip--has-avatar::before {
  content: "";
  color: transparent;
}

body.dark-mode .shortlist-member-chip::before {
  background: var(--member-avatar, #495057);
  color: #f8f9fa;
}

body.dark-mode .shortlist-member-chip--has-avatar::before {
  color: transparent;
}

.shortlist-label-empty {
  color: #6c757d;
  font-size: 0.85rem;
}

body.dark-mode .shortlist-label-empty {
  color: #adb5bd;
}

.shortlist-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.shortlist-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.shortlist-section__title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #343a40;
  margin-bottom: 4px;
}

.shortlist-section__description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 12px;
}

body.dark-mode .shortlist-section__title {
  color: #e9ecef;
}

body.dark-mode .shortlist-section__description {
  color: #cfd3da;
}

.shortlist-board-group {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .shortlist-board-group {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.shortlist-board {
  display: contents;
}

.shortlist-column {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 240px;
  min-height: 0;
}

.shortlist-column__header {
  font-weight: 600;
  color: #343a40;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.dark-mode .shortlist-column__header {
  color: #e9ecef;
}

.shortlist-column__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.shortlist-column__board {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
}

body.dark-mode .shortlist-column__board {
  color: #adb5bd;
}

.shortlist-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #f8f9fa;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  box-sizing: border-box;
  height: auto;
}

.shortlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

body.dark-mode .shortlist-card {
  border-color: #2f3439;
  background: #21262d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.shortlist-card--with-cover {
  color: #ffffff;
  overflow: hidden;
}

.shortlist-card--with-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--shortlist-card-cover);
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  z-index: 0;
}

.shortlist-card--with-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 1;
}

.shortlist-card--with-cover > * {
  position: relative;
  z-index: 2;
}

.shortlist-card--with-cover .shortlist-label {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.shortlist-card--with-cover .shortlist-card__salary {
  color: #ffffff;
}

.shortlist-card--with-cover .shortlist-card__status {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.shortlist-card__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.shortlist-card__status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
}

.shortlist-card__status::before {
  content: "\2713";
  font-weight: 700;
  margin-right: 6px;
}

body.dark-mode .shortlist-card__status {
  background: rgba(110, 168, 254, 0.18);
  color: #9ec5fe;
}

.shortlist-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.shortlist-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: 999px;
  background: var(--badge-color, #adb5bd);
  color: #ffffff;
}

.shortlist-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shortlist-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.shortlist-card__detail,
.shortlist-card__salary {
  font-weight: 600;
  font-size: 0.8rem;
}

.shortlist-card__salary {
  color: #343a40;
}

body.dark-mode .shortlist-card__salary {
  color: #f8f9fa;
}

.shortlist-card__pill--detail {
  background: rgba(248, 249, 250, 0.95);
  color: #1f2328;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body.dark-mode .shortlist-card__pill--detail {
  background: rgba(33, 37, 41, 0.82);
  color: #f8f9fa;
  border-color: rgba(248, 249, 250, 0.15);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

.shortlist-card--with-cover .shortlist-card__pill--detail {
  background: rgba(248, 249, 250, 0.92);
  color: #16191d;
  backdrop-filter: blur(2px);
}

body.dark-mode .shortlist-card--with-cover .shortlist-card__pill--detail {
  background: rgba(15, 23, 42, 0.75);
  color: #f8f9fa;
}

.shortlist-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.shortlist-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #e9ecef;
  color: #495057;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.shortlist-card__pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
}

.shortlist-card__pill--upcoming {
  background: #e7f1ff;
  color: #084298;
}

.shortlist-card__pill--overdue {
  background: #f8d7da;
  color: #842029;
}

.shortlist-card__pill--complete {
  background: #d1e7dd;
  color: #0f5132;
}

.shortlist-card__pill--updated {
  background: #e2e3e5;
  color: #343a40;
}

.shortlist-card__members {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shortlist-card__member {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dee2e6;
  color: #495057;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  background-size: cover;
  background-position: center;
}

.shortlist-card__member--with-avatar {
  background-image: var(--member-avatar);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .shortlist-card__pill {
  background: #495057;
  color: #f8f9fa;
  box-shadow: none;
}

body.dark-mode .shortlist-card__pill--upcoming {
  background: #1d3b68;
  color: #e7f1ff;
}

body.dark-mode .shortlist-card__pill--overdue {
  background: #5c2b2b;
  color: #f8d7da;
}

body.dark-mode .shortlist-card__pill--complete {
  background: #1f5132;
  color: #d1e7dd;
}

body.dark-mode .shortlist-card__pill--updated {
  background: #343a40;
  color: #e9ecef;
}

body.dark-mode .shortlist-card__member {
  background: #495057;
  color: #f1f3f5;
}

.shortlist-card--loading {
  opacity: 0.65;
}

.shortlist-card__spinner {
  display: inline-flex;
  margin-left: 8px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(13, 110, 253, 0.25);
  border-top-color: rgba(13, 110, 253, 0.8);
  animation: spin 0.75s linear infinite;
  vertical-align: middle;
}

body.dark-mode .shortlist-card__spinner {
  border-color: rgba(158, 197, 254, 0.25);
  border-top-color: rgba(158, 197, 254, 0.85);
}

.shortlist-card--completed {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.shortlist-column--hidden {
  display: none;
}

.shortlist-empty-state {
  font-size: 0.9rem;
  color: #6c757d;
  padding: 12px;
  border: 1px dashed #ced4da;
  border-radius: 10px;
  text-align: center;
}

body.dark-mode .shortlist-empty-state {
  color: #cfd3da;
  border-color: #3a3f44;
}

body.shortlist-card-modal-open {
  overflow: hidden;
}

.shortlist-card-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 12000;
}

.shortlist-card-modal {
  width: min(960px, 100%);
  height: min(85vh, 720px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shortlist-card-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
  gap: 12px;
}

.shortlist-card-modal__title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shortlist-card-modal__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shortlist-card-modal__button {
  border: none;
  background: none;
  color: #495057;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.shortlist-card-modal__button:hover,
.shortlist-card-modal__button:focus-visible {
  background-color: rgba(52, 58, 64, 0.12);
  color: #212529;
  outline: none;
}

.shortlist-card-modal__frame {
  flex: 1 1 auto;
  border: none;
  width: 100%;
  background: #f1f3f5;
}

body.dark-mode .shortlist-card-modal-overlay {
  background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .shortlist-card-modal {
  background: #1f242a;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
}

body.dark-mode .shortlist-card-modal__header {
  border-bottom-color: #2f3439;
  background: #1f242a;
}

body.dark-mode .shortlist-card-modal__title {
  color: #e9ecef;
}

body.dark-mode .shortlist-card-modal__button {
  color: #cfd3da;
}

body.dark-mode .shortlist-card-modal__button:hover,
body.dark-mode .shortlist-card-modal__button:focus-visible {
  background-color: rgba(207, 211, 218, 0.16);
  color: #ffffff;
}

body.dark-mode .shortlist-card-modal__frame {
  background: #101418;
}

@media (max-width: 767px) {
  .shortlist-card-modal-overlay {
    padding: 12px;
  }

  .shortlist-card-modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .shortlist-card-modal__header {
    padding: 10px 12px;
  }
}

#drop-overlay.uploading {
  flex-direction: column;
}

#drop-overlay .spinner {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.member .avatar,
.action-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
.description ul,
.action-item ul {
  padding-left: 1.2em;
  list-style: disc;
}

.description ol,
.action-item ol {
  padding-left: 1.2em;
  list-style: decimal;
}

.description li,
.action-item li {
  margin-bottom: 0.4rem;
}
.description-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.description-header > strong,
.description-header > .description-title {
  margin-bottom: 0;
}
.description-header .btn {
  margin-left: 0;
}
.description,
.action-item,
.actions-section,
.checklist,
.attachments {
  font-size: 0.9rem;
}

.glass-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
}

.glass-panel--raised {
  z-index: 2000;
}

.attachments-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attachments-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.attachments-panel__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attachments-panel p {
  margin-bottom: 0;
}

.checklists {
  position: relative;
}

.checklists-header .checklist-create-toggle,
.checklist-item-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checklists-header .checklist-create-toggle {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.checklists-header .checklist-create-toggle:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.22);
}

.checklist-item-toggle {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

.checklists-header .checklist-create-toggle .checklist-toggle-icon,
.checklist-item-toggle .checklist-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.checklist .list-group-item.checklist-item {
  display: block;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  transition: opacity 0.2s ease;
}

.checklist-item label.form-check {
  gap: 0.6rem;
}

.checklist-item-checkbox {
  margin-top: 0.125rem;
}

.checklist-item-label {
  flex: 1 1 auto;
  word-break: break-word;
}

.checklist-item-label--complete {
  text-decoration: line-through;
  color: var(--bs-secondary-color, #6c757d);
}

.checklist-item--complete .checklist-item-label {
  color: var(--bs-secondary-color, #6c757d);
}

.checklist-item--loading {
  opacity: 0.6;
  pointer-events: none;
}

.checklists-header .checklist-create-toggle.is-active .checklist-toggle-icon,
.checklist-item-toggle.is-active .checklist-toggle-icon {
  transform: rotate(45deg);
}

.checklist-create-panel {
  margin-top: 0.75rem;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.65);
  padding: 0.75rem 1rem;
}

.checklist-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.checklist-suggestion {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.checklist-custom-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.25rem 0.5rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.checklist-custom-pill .form-control {
  border: none;
  box-shadow: none;
  background: transparent;
  min-width: 140px;
  padding: 0.25rem 0.5rem;
}

.checklist-custom-pill .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.checklist-custom-pill .btn {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.checklist-add-item-form {
  margin-top: 0.75rem;
}

.checklist-add-item-input-group {
  align-items: stretch;
}

.checklist-add-item-input-group .form-control {
  border-radius: 999px 0 0 999px;
  resize: none;
}

.checklist-add-item-input-group .btn {
  border-radius: 0 999px 999px 0;
  padding-inline: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: auto;
  min-height: 100%;
}

.checklist-add-item-form .form-text {
  margin-top: 0.5rem;
  color: #64748b;
}

.checklist-add-item-form .invalid-feedback {
  display: block;
}

.attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

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

.attachment__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.attachment__actions:empty {
  display: none;
}

.attachment__timestamp {
  font-size: 0.8rem;
  color: #6c757d;
}

.attachment--latest-dest-cv {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(209, 250, 229, 0.65);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.18);
}

.attachment__latest-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f5132;
  background-color: rgba(209, 250, 229, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.6);
  border-radius: 999px;
}

.attachment__actions-dropdown .dropdown-toggle {
  min-width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}

.attachment__actions-dropdown {
  position: relative;
}

.attachment__actions-dropdown .dropdown-toggle::after {
  display: none;
}

.attachment__actions-dropdown .dropdown-menu {
  min-width: 9rem;
  z-index: 1200;
}

.pipeline-summary.glass-panel {
  padding: 1.25rem;
  margin-top: 0.75rem;
}

.pipeline-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pipeline-summary__header h4 {
  margin-bottom: 0;
}

.pipeline-summary .pipeline-board {
  border-radius: 12px;
}
.actions-section { margin-top: 20px; }
.action-item { border-bottom: 1px solid #eee; padding: 10px 0; }
#comments-container .comment-body {
  position: relative;
  overflow: hidden;
  transition: max-height 0.25s ease;
  --comment-collapsed-max-height: 12rem;
}

#comments-container .comment-body[data-collapsed="true"] {
  max-height: var(--comment-collapsed-max-height);
}

#comments-container .comment-body[data-collapsed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92)
  );
  pointer-events: none;
}

#comments-container .comment-body > :first-child {
  margin-top: 0;
}

#comments-container .comment-body > :last-child {
  margin-bottom: 0;
}

.collapsible-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  color: #0d6efd;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
}

.collapsible-toggle::after {
  content: "\25BC";
  font-size: 0.75em;
  transition: transform 0.2s ease;
}

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

.collapsible-toggle:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.attachments-list {
  position: relative;
}

.attachments-list[data-collapsed="true"] {
  overflow: hidden;
}

.attachments-list[data-collapsed="true"] > .attachment:nth-of-type(n + 4) {
  display: none;
}

.attachments-list[data-collapsed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92)
  );
  pointer-events: none;
}

.description-content {
  position: relative;
}

.description-content .description-body {
  transition: max-height 0.25s ease;
}

.description-content[data-collapsed="true"] .description-body {
  overflow: hidden;
  max-height: var(--description-collapsed-max-height, 24rem);
}

.description-content[data-collapsed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92)
  );
  pointer-events: none;
}
#toggle-activity-btn { margin-top: 10px; }
.call-history-container {
  min-height: 1.5rem;
}

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

.card-details-grid > * {
  min-width: 0;
}

.card-details-grid__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.pipeline-card-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.pipeline-card-meta__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.pipeline-card-meta__stage {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pipeline-card-meta__stage-heading {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #6c757d;
}

.pipeline-card-meta__stage .brief-list-controls {
  width: 100%;
}

.pipeline-card-meta__stage .brief-list-controls__current-label {
  display: none;
}

.pipeline-card-meta__due {
  flex: 1 1 220px;
  min-width: 220px;
}

.pipeline-card-meta__due .due-date-control {
  margin-bottom: 0;
}

.pipeline-card-meta__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.pipeline-card-meta__actions .btn {
  white-space: nowrap;
}

.pipeline-card-meta__fields {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: flex-start;
  justify-items: start;
}

.pipeline-card-meta__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pipeline-card-meta__field--value {
  grid-column: 1 / -1;
}

.pipeline-card-meta__field--value .pipeline-card-meta__field-label {
  color: #0b5ed7;
}

.pipeline-card-meta__field--support .pipeline-card-meta__field-label {
  color: #495057;
}

.pipeline-card-meta__field-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
}

.pipeline-card-meta__field-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.pipeline-card-meta__field--value .pipeline-card-meta__field-value {
  display: flex;
  align-items: center;
}

.pipeline-card-meta__field-value .custom-field-date-button {
  width: 100%;
  justify-content: flex-start;
}

.pipeline-card-meta__input-wrapper {
  width: 100%;
}

.pipeline-card-meta__input-wrapper--editing {
  position: relative;
}

.pipeline-card-meta__display {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  line-height: 1.1;
}

.pipeline-card-meta__display--badge {
  width: auto;
}

.pipeline-card-meta__display--value {
  font-size: 1.35rem;
  font-weight: 700;
}

.pipeline-card-meta__display--support {
  font-size: 0.85rem;
  font-weight: 600;
}

.pipeline-card-meta__display-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  min-width: 0;
  white-space: nowrap;
}

.pipeline-card-meta__display-text--placeholder {
  font-style: italic;
  font-weight: 400;
  color: #6c757d;
}

.pipeline-card-meta__display-text--estimate {
  font-weight: 700;
}

.pipeline-card-meta__input-wrapper--editing .pipeline-card-meta__display {
  display: none;
}

.pipeline-card-meta__display:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
  border-radius: 999px;
}

.pipeline-card-meta__display[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.pipeline-card-meta__input-wrapper--empty .pipeline-card-meta__value-prefix {
  opacity: 0.5;
}

.pipeline-card-meta__input-wrapper--estimate {
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.35);
  color: #0f5132;
}

.pipeline-card-meta__input-wrapper--badge {
  width: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.pipeline-card-meta__input-wrapper--value {
  background: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.4);
  color: #0b5ed7;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.pipeline-card-meta__input-wrapper--support {
  background: rgba(33, 37, 41, 0.06);
  border-color: rgba(33, 37, 41, 0.15);
  color: #495057;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
}

.pipeline-card-meta__input-wrapper--badge.pipeline-card-meta__input-wrapper--pending {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  border-color: #0d6efd;
}

.pipeline-card-meta__input-wrapper--badge.pipeline-card-meta__input-wrapper--error {
  border-color: #dc3545;
  color: #dc3545;
}

.pipeline-card-meta__input-wrapper--badge.pipeline-card-meta__input-wrapper--success {
  border-color: #198754;
  color: #146c43;
}

.pipeline-card-meta__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background-color: transparent;
  padding: 0.125rem 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pipeline-card-meta__input:focus {
  outline: none;
  border-bottom-color: #0d6efd;
}

.pipeline-card-meta__input--badge {
  border: 0;
  padding: 0;
  width: auto;
  min-width: 0;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: right;
}

.pipeline-card-meta__input--badge:focus {
  outline: none;
  box-shadow: none;
}

.pipeline-card-meta__input--badge::placeholder {
  color: rgba(73, 80, 87, 0.65);
  font-weight: 400;
}

.pipeline-card-meta__input--badge:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pipeline-card-meta__input--value {
  min-width: 5ch;
}

.pipeline-card-meta__input--support {
  min-width: 4ch;
}

.pipeline-card-meta__value-prefix {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.pipeline-card-meta__input::placeholder {
  color: #6c757d;
  font-style: italic;
  opacity: 0.85;
}

.pipeline-card-meta__input:disabled {
  border-bottom-style: dashed;
  border-bottom-color: rgba(108, 117, 125, 0.6);
  color: #6c757d;
  cursor: not-allowed;
}

.pipeline-card-meta__input-wrapper--pending .pipeline-card-meta__input {
  border-bottom-color: #0d6efd;
  opacity: 0.75;
}

.pipeline-card-meta__input-wrapper--error .pipeline-card-meta__input {
  border-bottom-color: #dc3545;
}

.pipeline-card-meta__input-wrapper--success .pipeline-card-meta__input {
  border-bottom-color: #198754;
}

.pipeline-card-meta__value-placeholder {
  color: #6c757d;
  font-style: italic;
}

.card-details-grid__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.card-section {
  width: 100%;
  min-width: 0;
}

.card-section--notes .actions-section {
  margin-top: 0;
}

@media (min-width: 992px) {
  .card-details-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .card-details-grid__main {
    flex: 2 1 0;
  }

  .card-details-grid__sidebar {
    flex: 1 1 0;
    align-self: stretch;
  }
}

.call-history-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.call-history-entry {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
}

.call-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.call-history-time {
  font-weight: 600;
}

.call-history-duration {
  color: #6c757d;
}

.call-history-line {
  font-size: 0.9rem;
  color: #495057;
}

.call-history-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.call-history-link-item {
  display: inline-flex;
  align-items: center;
}

.call-history-links strong {
  margin-right: 0.25rem;
}

.call-history-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.call-history-link:hover,
.call-history-link:focus {
  text-decoration: underline;
}

.call-history-transcript {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.call-history-transcript summary {
  cursor: pointer;
  font-weight: 600;
}

.call-history-transcript-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.call-history-transcript-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  row-gap: 0.125rem;
  align-items: start;
}

.call-history-transcript-time {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.85rem;
  color: #6c757d;
}

.call-history-transcript-speaker {
  grid-column: 2;
  font-weight: 600;
  color: #0d6efd;
}

.call-history-transcript-text {
  grid-column: 2;
  white-space: pre-line;
}

.call-history-ai-recap {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  white-space: pre-line;
}

.call-history-ai-summary {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  white-space: pre-line;
}

.call-history-json {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.call-history-json summary {
  cursor: pointer;
  color: #0d6efd;
  font-weight: 600;
}

.call-history-json pre {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre;
}

.call-history-error {
  margin-top: 0.5rem;
  color: #dc3545;
  font-weight: 600;
}
.cover-polaroid {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cover-polaroid .polaroid-stack,
.candidate-image-stack .polaroid-stack {
  margin: 0;
}

.candidate-image-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.candidate-meta-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
}

.candidate-meta-panel__section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.candidate-meta-panel .labels-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.candidate-meta-panel .label-group-labels {
  gap: 0.35rem;
}

.candidate-meta-panel .label-group-labels .badge {
  margin-right: 0;
  margin-bottom: 0;
}

.linked-briefs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.linked-briefs__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.linked-briefs__content {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.linked-briefs-kanban {
  display: flex;
  gap: 1rem;
  min-height: 4rem;
}

.linked-briefs-column {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(13, 110, 253, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
  border: 1px solid rgba(13, 110, 253, 0.15);
}

.linked-briefs-column__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.linked-briefs-column__name {
  color: #0d1b2a;
}

.linked-briefs-column__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(13, 110, 253, 0.16);
  color: #0d6efd;
  font-size: 0.8rem;
  font-weight: 600;
}

.linked-briefs-column__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.linked-briefs-card {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background-color: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.linked-briefs-card:hover,
.linked-briefs-card:focus-visible {
  background-color: rgba(13, 110, 253, 0.22);
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(13, 110, 253, 0.15);
  transform: translateY(-1px);
}

.linked-briefs-card:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.4);
  outline-offset: 3px;
}

.linked-briefs-card:active {
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .candidate-meta-panel {
    margin-top: 1rem;
  }
}

.candidate-image-placeholder {
  margin: 1rem 0 1.5rem;
}
.polaroid-stack {
  display: grid;
  justify-items: center;
  align-items: center;
  margin: 1rem 0 1.5rem;
  position: relative;
  gap: 0;
  z-index: 0;
}
.polaroid-card {
  grid-area: 1 / 1;
  position: relative;
  transform: translate(
      calc(var(--stack-depth, 0) * -4px),
      calc(var(--stack-depth, 0) * -4px)
    )
    rotate(var(--stack-rotation, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  z-index: calc(-1 * (var(--stack-depth, 0) + 1));
}
.polaroid-card__main {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}
.polaroid-card__frame {
  background: #fff;
  border-radius: 8px;
  padding: 10px 10px 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  width: clamp(170px, 42vw, 240px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.polaroid-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
.polaroid-card__caption {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.polaroid-card__meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: #868e96;
}
.polaroid-card--top .polaroid-card__frame {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}
.polaroid-card__link {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.polaroid-card:hover .polaroid-card__link,
.polaroid-card:focus-within .polaroid-card__link,
.polaroid-card--top .polaroid-card__link {
  opacity: 1;
}
.polaroid-card__main:focus-visible .polaroid-card__frame {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 4px;
}
.polaroid-card__main:active .polaroid-card__frame {
  transform: translateY(2px);
}
body.dark-mode .polaroid-card__frame {
  background: #212529;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}
body.dark-mode .polaroid-card--top .polaroid-card__frame {
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45);
}
body.dark-mode .polaroid-card__name {
  color: #e9ecef;
}
body.dark-mode .polaroid-card__meta {
  color: #adb5bd;
}
.editable { cursor: pointer; }
.editable:hover { text-decoration: underline; }
strong.editable:hover,
.label-group-heading.editable:hover {
  text-decoration: none;
}
.label-group {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.label-group-heading {
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 0;
}
.label-group-labels {
  display: flex;
  flex-wrap: wrap;
}

.brief-list-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.brief-list-controls__nav {
  appearance: none;
  border: none;
  background: #ffffff;
  color: #0d6efd;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.2);
  transition: background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.brief-list-controls__nav:hover:not(:disabled) {
  background: rgba(13, 110, 253, 0.08);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.35);
}

.brief-list-controls__nav:active:not(:disabled) {
  transform: translateY(1px);
}

.brief-list-controls__nav:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.4);
  outline-offset: 2px;
}

.brief-list-controls__nav:disabled {
  color: rgba(15, 23, 42, 0.4);
  background: #f3f4f6;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
  cursor: not-allowed;
}

.brief-list-controls__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.brief-list-controls__nav-text {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brief-list-controls__current {
  appearance: none;
  border: none;
  background: #0d6efd;
  color: #ffffff;
  border-radius: 0.9rem;
  padding: 0.45rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  cursor: pointer;
}

.brief-list-controls__current:hover {
  background: #0b5ed7;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.32);
}

.brief-list-controls__current:active {
  transform: translateY(1px);
}

.brief-list-controls__current:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.4);
  outline-offset: 3px;
}

.brief-list-controls__current-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.brief-list-controls__current-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.brief-list-controls__current-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.brief-list-controls__current-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

body.dark-mode .brief-list-controls {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.6);
}

body.dark-mode .brief-list-controls__nav {
  background: rgba(15, 23, 42, 0.9);
  color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4);
}

body.dark-mode .brief-list-controls__nav:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
}

body.dark-mode .brief-list-controls__nav:disabled {
  background: rgba(15, 23, 42, 0.6);
  color: rgba(148, 163, 184, 0.5);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

body.dark-mode .brief-list-controls__current {
  background: #1d4ed8;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.65);
}

body.dark-mode .brief-list-controls__current:hover {
  background: #2563eb;
}

body.dark-mode .brief-list-controls__current-label {
  color: rgba(226, 232, 240, 0.85);
}

body.dark-mode .brief-list-controls__current-name {
  color: #f8fafc;
}

body.dark-mode .brief-list-controls__current-caret {
  color: #e2e8f0;
  opacity: 0.9;
}

.label-group-labels .badge {
  cursor: pointer;
  margin-right: 4px;
  margin-bottom: 4px;
  padding: 4px 6px;
}
.label-group-labels .badge.selected { outline: 2px solid #000; }
.prompt-list .list-group-item {
  cursor: pointer;
}

body.dark-mode .prompt-list .list-group-item {
  background-color: #2c2c2c;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode .prompt-list .list-group-item.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}
.label-menu-toggle {
  cursor: pointer;
  background-color: #e0e0e0;
  color: #333;
}
.label-menu {
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  z-index: 11000;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
  max-width: min(320px, 90vw);
  max-height: min(340px, 70vh);
  overflow-y: auto;
}
.label-menu .badge {
  cursor: pointer;
  margin: 4px 4px 0 0;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.label-menu .badge.selected { outline: 2px solid #000; }

.list-switcher-menu {
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  z-index: 11000;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  padding: 4px 0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
  min-width: 180px;
  max-width: min(320px, 92vw);
  max-height: min(360px, 75vh);
  overflow-y: auto;
}

.list-switcher-option {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.3;
  color: #111827;
  cursor: pointer;
  transition: background 0.2s ease;
}

.list-switcher-option:hover,
.list-switcher-option:focus {
  background: rgba(59, 130, 246, 0.12);
  outline: none;
}

.list-switcher-option.is-active {
  background: rgba(59, 130, 246, 0.2);
  font-weight: 600;
}

.list-switcher-option__name {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-switcher-option__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.list-switcher-option.is-active .list-switcher-option__badge {
  background: #1d4ed8;
  color: #fff;
}

.summarise-section {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.summarise-heading,
.label-group-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 4px;
}

body.dark-mode .summarise-heading,
body.dark-mode .label-group-heading {
  color: #b0b0b0;
}

body.dark-mode .candidate-meta-panel {
  background: rgba(18, 18, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
}

body.dark-mode .linked-briefs-column {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(147, 197, 253, 0.4);
}

body.dark-mode .linked-briefs-column__name {
  color: #e2e8f0;
}

body.dark-mode .linked-briefs-column__count {
  background-color: rgba(59, 130, 246, 0.3);
  color: #f8fafc;
}

body.dark-mode .linked-briefs-card {
  background-color: rgba(59, 130, 246, 0.28);
  color: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.55);
}

body.dark-mode .linked-briefs-card:hover,
body.dark-mode .linked-briefs-card:focus-visible {
  background-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.65);
}

body.dark-mode .glass-panel {
  background: rgba(18, 18, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
  color: #e9ecef;
}

body.dark-mode .checklists-header .checklist-create-toggle,
body.dark-mode .checklist-item-toggle {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

body.dark-mode .checklists-header .checklist-create-toggle:not(:disabled):hover,
body.dark-mode .checklist-item-toggle:hover {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(147, 197, 253, 0.55);
  color: #f8fafc;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.6);
}

body.dark-mode .checklist-create-panel {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
}

body.dark-mode .checklist-suggestion {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(96, 165, 250, 0.45);
  color: #dbeafe;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.6);
}

body.dark-mode .checklist-suggestion:hover,
body.dark-mode .checklist-suggestion:focus-visible {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(147, 197, 253, 0.6);
  color: #f8fafc;
}

body.dark-mode .checklist-item-label--complete,
body.dark-mode .checklist-item--complete .checklist-item-label {
  color: rgba(226, 232, 240, 0.75);
}

body.dark-mode .checklist-item--loading {
  opacity: 0.5;
}

body.dark-mode .checklist-custom-pill {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  color: #e2e8f0;
}

body.dark-mode .checklist-custom-pill .form-control {
  color: #e2e8f0;
}

body.dark-mode .checklist-custom-pill .form-control::placeholder {
  color: #94a3b8;
}

body.dark-mode .checklist-add-item-input-group .form-control {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

body.dark-mode .checklist-add-item-input-group .form-control::placeholder {
  color: #94a3b8;
}

body.dark-mode .checklist-add-item-input-group .btn {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.6);
}

body.dark-mode .checklist-add-item-form .form-text {
  color: #94a3b8;
}

body.dark-mode .checklist .list-group-item {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

body.dark-mode .checklist .list-group-item.text-muted,
body.dark-mode .checklist .list-group-item .text-muted {
  color: #94a3b8 !important;
}

body.dark-mode .attachment {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

body.dark-mode .attachment__timestamp {
  color: #cbd5f5;
}

body.dark-mode .attachment--latest-dest-cv {
  background: rgba(15, 118, 110, 0.35);
  border-color: rgba(94, 234, 212, 0.6);
  box-shadow: 0 6px 18px rgba(45, 212, 191, 0.35);
}

body.dark-mode .attachment__latest-indicator {
  color: #ccfbf1;
  background-color: rgba(15, 118, 110, 0.55);
  border-color: rgba(94, 234, 212, 0.55);
}

body.dark-mode .candidate-meta-panel .label-group-heading {
  color: #dee2e6;
}

body.dark-mode .candidate-meta-panel .labels-section {
  gap: 0.4rem;
}

body.dark-mode .summarise-section {
  background-color: #2c2c2c;
  border-color: #555;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dark Mode */
html.dark-mode,
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
body.dark-mode .candidate-header {
  background-color: #1f1f1f;
}
body.dark-mode .trello-summary-container {
  background-color: #1f1f1f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
body.dark-mode .label-menu {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.55);
}
body.dark-mode .label-menu-toggle {
  background-color: #555;
  color: #fff;
}
body.dark-mode .list-switcher-menu {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.6);
}
body.dark-mode .list-switcher-option {
  color: #e2e8f0;
}
body.dark-mode .list-switcher-option:hover,
body.dark-mode .list-switcher-option:focus {
  background: rgba(59, 130, 246, 0.25);
  color: #f8fafc;
}
body.dark-mode .list-switcher-option__badge {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.3);
}
body.dark-mode .list-switcher-option.is-active .list-switcher-option__badge {
  background: #3b82f6;
  color: #0f172a;
}
body.dark-mode .action-item {
  border-bottom: 1px solid #555;
}
body.dark-mode #comments-container .comment-body[data-collapsed="true"]::after {
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0),
    rgba(18, 18, 18, 0.85)
  );
}

body.dark-mode .attachments-list[data-collapsed="true"]::after,
body.dark-mode .description-content[data-collapsed="true"]::after {
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0),
    rgba(18, 18, 18, 0.85)
  );
}

body.dark-mode .collapsible-toggle {
  color: #93c5fd;
}

body.dark-mode .collapsible-toggle:focus-visible {
  outline-color: #bfdbfe;
}
body.dark-mode .call-history-entry {
  background-color: #1f1f1f;
  border-color: #333;
}
body.dark-mode .call-history-duration {
  color: #adb5bd;
}
body.dark-mode .call-history-line {
  color: #ced4da;
}
body.dark-mode .call-history-transcript {
  color: #e9ecef;
}
body.dark-mode .call-history-ai-recap,
body.dark-mode .call-history-ai-summary {
  color: #e9ecef;
}
body.dark-mode .call-history-json summary {
  color: #66b0ff;
}
body.dark-mode .call-history-json pre {
  background-color: #1f2533;
  border-color: #39404d;
  color: #f1f3f5;
}
body.dark-mode .call-history-error {
  color: #f28b82;
}
body.dark-mode .call-history-link {
  color: #9ec5fe;
}
body.dark-mode .call-history-link:hover,
body.dark-mode .call-history-link:focus {
  color: #6ea8fe;
}
body.dark-mode .label-menu .badge.selected {
  outline: 2px solid #fff;
}
body.dark-mode .label-group-labels .badge.selected {
  outline: 2px solid #fff;
}

body.dark-mode .summarise-section .form-control {
  background-color: #2c2c2c;
  color: #e0e0e0;
  border-color: #555;
}

html.dark-mode a,
body.dark-mode a {
  color: #9ec5fe;
}
html.dark-mode a:hover,
body.dark-mode a:hover {
  color: #6ea8fe;
}
html.dark-mode .candidate-header .header-links a,
body.dark-mode .candidate-header .header-links a {
  color: #9ec5fe;
}
html.dark-mode .candidate-header .header-links a:hover,
body.dark-mode .candidate-header .header-links a:hover {
  color: #6ea8fe;
}

#pdfEditorModal .modal-body {
  min-height: 70vh;
  padding: 0;
}

.pdf-editor-frame-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 70vh;
  background-color: #f8f9fa;
}

.pdf-editor-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.2s ease;
  z-index: 2;
}

.pdf-editor-loading.pdf-editor-loading--hidden {
  opacity: 0;
  visibility: hidden;
}

#pdfEditorFrame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #ffffff;
}

body.dark-mode #pdfEditorModal .modal-content {
  background-color: #1f1f1f;
  color: #f8f9fa;
}

body.dark-mode .pdf-editor-frame-container {
  background-color: #1a1a1a;
}

body.dark-mode .pdf-editor-loading {
  background-color: rgba(33, 37, 41, 0.85);
}
