/*
 * Candidate activity content.
 *
 * Owns feed content, menus, attachments, visibility controls, attendee
 * details, and file rows. Structural card/tab/row geometry is owned by
 * candidate-activity-layout.css.
 */
.mid-feed__empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 18px 0 6px;
  padding: 28px 20px;
  border: var(--app-surface-border);
  border-radius: var(--app-surface-radius);
  background: var(--hh-surface-subtle);
}
.mid-feed__empty-state strong {
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-body);
  font-weight: var(--hh-weight-title);
}
.mid-feed__empty-state p {
  max-width: 440px;
  margin: 0;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}
.mid-feed__empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.mid-feed__empty-actions button {
  min-height: 30px;
  padding: 0 12px;
  border: var(--app-surface-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--hh-color-text-secondary);
  font: inherit;
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-title);
  cursor: pointer;
}
.mid-feed__empty-actions button:hover {
  background: var(--hh-hover-bg);
  color: var(--hh-color-text-primary);
}
.mid-feed__load-more {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--hh-color-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-title);
}
.mid-feed__load-more:hover,
.mid-feed__load-more:focus-visible {
  background: var(--hh-hover-bg);
  color: var(--hh-color-text-primary);
  outline: 0;
}

.mid-delivery-status {
  color: var(--hh-paint-text-secondary);
  font-weight: var(--hh-weight-regular);
}
.mid-delivery-status.is-failed {
  color: var(--danger-700);
}
.mid-time-info {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: var(--hh-color-text-secondary);
  vertical-align: -1px;
}
.mid-time-info svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mid-act-body--transcript {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mid-act-body--rich {
  white-space: normal;
}
.mid-act-body--rich > :first-child {
  margin-top: 0;
}
.mid-act-body--rich > :last-child {
  margin-bottom: 0;
}
.mid-act-body--rich p,
.mid-act-body--rich blockquote {
  margin: 0 0 10px;
}
.mid-act-body--rich ul,
.mid-act-body--rich ol {
  margin: 6px 0 10px;
  padding-left: 22px;
}
.mid-act-body--rich li + li {
  margin-top: 3px;
}
.mid-act-body--rich a {
  color: var(--semantic-blue-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mid-act-body--rich blockquote {
  padding-left: 12px;
  border-left: 1px solid var(--hh-ui-border);
  color: var(--hh-color-text-secondary);
}
.mid-act--compact-message .mid-act-body {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.candidate-detail-tabs-surface
  .mid-feed[aria-label='Timeline']
  .mid-act--review
  .mid-act-rating {
  color: var(--hh-color-text-secondary);
  font-weight: var(--hh-weight-title);
}













.candidate-detail-tabs-surface
  .mid-feed[aria-label='Timeline']
  .candidate-timeline-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-hover);
  color: var(--semantic-text-muted);
  font-size: var(--hh-font-compact);
  font-weight: var(--hh-weight-label);
  line-height: 20px;
}

.candidate-detail-tabs-surface
  .mid-feed[aria-label='Timeline']
  .candidate-timeline-invitation-due {
  margin-top: 7px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}

.mid-act-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.mid-act-artifacts a,
.mid-act-artifacts span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--hh-ui-border);
  border-radius: var(--radius-pill);
  background: var(--surface-75);
}
.mid-act-artifacts a {
  color: var(--exact-text-007aff);
}
.mid-act-artifacts a,
.mid-act-artifacts span {
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-label);
  line-height: 1;
  text-decoration: none;
}
.mid-act-artifacts a:hover {
  background: var(--hh-hover-bg);
  border-color: var(--exact-border-9ac4ff);
}
.mid-act-artifacts span {
  color: var(--hh-color-text-secondary);
}
.mid-act-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.mid-act-attachments li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--hh-ui-border);
  border-radius: var(--radius-pill);
  background: var(--surface-75);
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-caption);
  line-height: 1;
}
.mid-act-attachments a {
  color: var(--accent-blue-strong);
  text-decoration: none;
}
.mid-act-attachments a:hover,
.mid-act-attachments a:focus-visible {
  text-decoration: underline;
}
.mid-act-attachments em {
  color: var(--hh-color-text-secondary);
  font-style: normal;
}
.mid-act-visible {
  margin-top: 10px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}
.mid-act-visible strong {
  color: var(--hh-color-text-secondary);
}
.mid-act-visible--inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 6px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
  white-space: nowrap;
}
.mid-act-visible--inline::before {
  color: var(--hh-color-text-secondary);
  content: '·';
}
.mid-act-visible--inline .mid-act-visible__control {
  margin-left: 0;
}
.mid-act-visible__control {
  position: relative;
  display: inline-flex;
  margin-left: 3px;
}
.mid-act-visible__control > button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hh-color-text-secondary);
  cursor: pointer;
  font: inherit;
  font-weight: var(--hh-weight-label);
}
.mid-act-visible__control > button:hover:not(:disabled),
.mid-act-visible__control > button:focus-visible {
  color: var(--hh-color-text-primary);
  outline: 0;
}
.mid-act-visible__control > button:disabled {
  cursor: progress;
  opacity: 0.62;
}
.mid-act-visible__menu {
  position: absolute;
  z-index: var(--z-dropdown, 1000);
  top: calc(100% + 7px);
  left: -8px;
  display: grid;
  width: 224px;
  padding: 6px;
  gap: 2px;
  border: var(--app-menu-border);
  border-radius: var(--radius-12);
  background: var(--color-white);
  box-shadow: var(--app-menu-shadow);
}
.mid-act-visible__menu button {
  appearance: none;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--hh-color-text-primary);
  cursor: pointer;
  font: inherit;
  font-size: var(--hh-font-caption);
  text-align: left;
  white-space: normal;
}
.mid-act-visible__menu button:hover,
.mid-act-visible__menu button:focus-visible {
  background: var(--hh-hover-bg);
  outline: 0;
}
.mid-act__actions {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 2px;
}
.mid-act__actions button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--hh-color-text-secondary);
  border-radius: var(--radius-xs);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.mid-act__actions button:hover {
  background: var(--hh-hover-bg);
}
.mid-act-replying {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
  line-height: 18px;
  white-space: nowrap;
}
.mid-act__actions--review {
  justify-content: flex-end;
  margin-top: 6px;
  padding-top: 0;
}
.mid-act__actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mid-mention {
  display: inline;
  border: 0;
  color: var(--text-link);
  text-decoration: none;
  background: var(--info-surface);
  border-radius: var(--radius-2xs);
  padding: 0 3px;
  font: inherit;
  cursor: pointer;
}
.mid-mention:hover {
  text-decoration: underline;
}
.mid-mention:disabled {
  cursor: default;
  opacity: 1;
}
.mid-act-inline-link {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: var(--ink-500);
  vertical-align: -2px;
}
.mid-act-inline-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Shared candidate file table; document access remains on the original links. */
.candidate-detail-tabs-surface .mid-files {
  margin: 8px 0 0;
  padding: 0 30px 24px;
  overflow-x: auto;
}

.candidate-detail-tabs-surface .mid-files__table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
  text-align: start;
}

.candidate-detail-tabs-surface .mid-files__table :is(th, td) {
  padding: 14px 10px;
  border-bottom: var(--app-surface-border);
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-body);
  vertical-align: middle;
  text-align: start;
}

.candidate-detail-tabs-surface .mid-files__table th {
  color: var(--hh-color-text-primary);
  font-weight: var(--hh-weight-label);
  white-space: nowrap;
}

.candidate-detail-tabs-surface .mid-files__table td:first-child {
  width: 44%;
}

.candidate-detail-tabs-surface .candidate-files__name {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.candidate-detail-tabs-surface .candidate-files__name a {
  width: fit-content;
  margin-top: 0;
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-label);
  font-weight: var(--hh-weight-title);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.candidate-detail-tabs-surface .mid-files__table td strong {
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-label);
  line-height: 1.35;
  font-weight: var(--hh-weight-label);
}

.candidate-detail-tabs-surface .mid-files__table small {
  display: block;
  margin-block-start: 3px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-regular);
  line-height: 17px;
}

.mid-files__download {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius-8);
  color: var(--hh-color-text-primary);
}

.mid-files__download:hover {
  background: var(--hh-hover-bg);
}

.candidate-detail-tabs-surface .mid-files__table time {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .candidate-detail-tabs-surface .mid-files {
    padding-inline: 20px;
  }
}

@media (max-width: 760px) {
  .candidate-detail-tabs-surface .mid-act-visible--inline {
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
  }

  .candidate-detail-tabs-surface :is(
    .mid-act-visible__control,
    .mid-act-visible__control > button
  ) {
    min-width: 0;
    max-width: 100%;
  }

  .candidate-detail-tabs-surface .mid-act-visible__control > button {
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }
}

/* Shared Comment / Evaluate composer in both candidate profile entry points. */
.candidate-feedback-composer {
  margin: 20px 24px;
  border: 0;
  background: transparent;
}
.candidate-feedback-editor-card {
  min-width: 0;
  border: 1px solid var(--hh-palette-e7e7e7);
  border-radius: var(--radius-8);
  background: var(--color-white);
}
.candidate-feedback-editor-card:focus-within {
  border-color: var(--hh-palette-bfc0c8);
}
.candidate-feedback-form__body {
  min-width: 0;
  min-height: 0;
}
.candidate-feedback-form .candidate-feedback-editor-card > .wf-filter-drawer__section,
.candidate-feedback-form .candidate-feedback-editor-card > .video-evaluation-drawer__body {
  margin: 0;
  padding: 12px;
}
.candidate-feedback-composer__modes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  min-height: 42px;
  margin: 0 12px;
  padding: 0;
  border-bottom: 1px solid var(--hh-ui-border);
}
.candidate-feedback-composer__modes > button {
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hh-color-text-secondary);
  font: inherit;
  font-size: var(--hh-font-caption);
  cursor: pointer;
}
.candidate-feedback-composer__modes > button[aria-pressed="true"] {
  border-bottom-color: var(--hh-color-text-primary);
  color: var(--hh-color-text-primary);
  font-weight: var(--hh-weight-title, 500);
}
.candidate-feedback-composer__prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0 0 var(--radius-8) var(--radius-8);
  background: transparent;
  color: var(--hh-color-text-secondary);
  font: inherit;
  text-align: start;
  cursor: text;
}
.candidate-feedback-form {
  min-width: 0;
  padding: 0;
  border: 0;
}
.candidate-feedback-form .wf-filter-drawer__section,
.candidate-feedback-form .video-evaluation-drawer__body {
  padding: 0;
  margin: 0 0 12px;
  border: 0;
  background: transparent;
}
.candidate-feedback-form .ev-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: auto 0 0;
}
.candidate-feedback-form textarea {
  width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  font: inherit;
  resize: vertical;
}
.candidate-feedback-form .wf-filter-label {
  display: block;
  margin-bottom: 8px;
  font-weight: var(--hh-weight-title, 500);
}
.candidate-feedback-form .wf-vis-box .workflow-select__visibility-value > strong {
  color: var(--hh-color-text-primary);
}
.candidate-feedback-form svg {
  width: 18px;
  height: 18px;
}
.candidate-feedback-form .evaluation-rating-input svg {
  width: 15px;
  height: 15px;
}
.candidate-feedback-form .evaluation-rating-input button[aria-checked='false']:hover:not(:disabled) {
  background: var(--hh-hover-bg);
  color: var(--hh-color-text-primary);
}
.candidate-feedback-form .evaluation-rating-input button[aria-checked='true'] {
  border-color: var(--hh-palette-bfc0c8);
  background: var(--hh-interaction-bg);
  color: var(--hh-color-text-primary);
}
.candidate-feedback-form .mid-toolbar__cta {
  width: auto;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
}
.candidate-feedback-form .mid-toolbar__cta::after {
  display: none;
}
.candidate-feedback-form .video-evaluation-overall {
  padding: 0;
  margin: 0;
  border: 0;
}
.candidate-feedback-form .video-evaluation-stage {
  max-width: 240px;
  margin-bottom: 16px;
}
.candidate-feedback-composer__surface {
  min-width: 0;
}
.candidate-feedback-composer__spacer {
  flex: 1 1 auto;
  min-width: 0;
}
.candidate-feedback-composer__stage {
  --app-menu-border: 0;
  --focus-ring-color: var(--hh-color-text-secondary);
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  align-self: center;
}
.candidate-feedback-composer__stage .workflow-select__control {
  min-height: 32px;
  width: max-content;
  max-width: 100%;
  padding: 4px 10px;
  gap: 6px;
  border: 0;
  border-radius: var(--hh-control-radius, 10px);
  background: transparent;
  color: var(--hh-color-text-primary);
  box-shadow: none;
  outline: 0;
  font-size: var(--app-menu-font-size, 13px);
  font-weight: var(--hh-weight-body);
}
.candidate-feedback-composer__stage .workflow-select__value {
  flex: 0 1 auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.candidate-feedback-composer__stage svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.candidate-feedback-composer__stage .workflow-select__control:is(:hover, [aria-expanded='true'], :focus-visible) {
  background: var(--hh-interaction-bg);
}
.candidate-feedback-composer__stage .workflow-select__menu {
  z-index: var(--z-dropdown);
  border: 1px solid var(--attached-select-border, var(--hh-palette-dedee4));
}
.candidate-feedback-composer__stage .workflow-select__option > span {
  word-break: normal;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.candidate-feedback-composer__modes .candidate-feedback-composer__side-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-8);
}
.candidate-feedback-composer__side-toggle svg {
  width: 16px;
  height: 16px;
}
.candidate-feedback-form .wf-file-input-hidden {
  display: none;
}
.candidate-feedback-attachments {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.candidate-feedback-form .candidate-feedback-attachments li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--hh-ui-border);
  border-radius: var(--radius-8);
  background: var(--color-white);
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-caption);
}
.candidate-feedback-form .candidate-feedback-attachments span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
.candidate-feedback-attachments small {
  color: var(--hh-color-text-secondary);
  white-space: nowrap;
}
.candidate-feedback-form .candidate-feedback-attachments .candidate-feedback-icon-button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-8);
  background: transparent;
  text-decoration: none;
}
.candidate-feedback-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--hh-ui-control);
}
.candidate-feedback-avatar > * {
  width: 32px;
  height: 32px;
  object-fit: cover;
}
.candidate-feedback-composer__prompt > span:not(.candidate-feedback-avatar) {
  flex: 1 1 auto;
}
.candidate-feedback-composer__prompt > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--hh-color-text-secondary);
}
.candidate-feedback-composer__prompt-copy {
  min-width: 0;
  font-size: var(--hh-font-body);
  line-height: 20px;
}
.candidate-feedback-composer__prompt:focus-visible,
.candidate-feedback-form.is-compact textarea:focus {
  border-color: var(--hh-color-text-secondary);
  outline: 2px solid color-mix(in srgb, var(--hh-color-text-primary) 14%, transparent);
  outline-offset: 2px;
}
.candidate-feedback-entry {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.candidate-feedback-form.is-compact {
  padding: 0;
}
.candidate-feedback-form.is-compact textarea {
  min-height: 48px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--hh-font-body);
  line-height: 20px;
}
.candidate-feedback-form.is-compact .video-evaluation-editor {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.candidate-feedback-form .candidate-feedback-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin: 6px 0 0;
  padding: 0;
}
.candidate-feedback-icon-button {
  appearance: none;
  box-sizing: border-box;
  font: inherit;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-8);
  background: transparent;
  color: var(--hh-color-text-secondary);
  cursor: pointer;
}
.candidate-feedback-icon-button:hover,
.candidate-feedback-composer__side-toggle:hover {
  background: var(--hh-hover-bg);
  color: var(--hh-color-text-primary);
}
.candidate-feedback-icon-button:focus-visible,
.candidate-feedback-form .candidate-feedback-attachments .candidate-feedback-icon-button:focus-visible {
  outline: 2px solid var(--hh-color-text-secondary);
  outline-offset: 2px;
}
.candidate-feedback-actions .mid-toolbar__cta.candidate-feedback-submit {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-8);
  background: var(--hh-color-text-primary);
  color: var(--color-white);
}
.candidate-feedback-actions button:disabled,
.candidate-feedback-composer__modes > button:disabled {
  opacity: 0.45;
  cursor: default;
}
.candidate-feedback-actions .evaluation-rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: calc(100% - 44px);
}
.candidate-feedback-actions .video-evaluation-draft-status {
  min-width: 0;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}
.candidate-feedback-form .wf-vis-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-top: 10px;
  background: transparent;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}
.candidate-feedback-form .wf-vis-box .workflow-select {
  order: 2;
  width: auto;
  min-width: 0;
  max-width: 100%;
}
.candidate-feedback-form .wf-vis-box .workflow-select__control {
  min-height: 24px;
  width: auto;
  max-width: 100%;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--hh-font-caption);
}
.candidate-feedback-form.is-compact .wf-vis-hidden-audience {
  order: 1;
  margin: 0;
  padding: 0;
  font-size: var(--hh-font-caption);
}
.candidate-feedback-scorecard-link {
  display: block;
  margin: 0 0 8px auto;
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-caption);
}
.candidate-feedback-scorecard-link:is(:hover, :focus-visible) {
  color: var(--hh-color-text-primary);
}
.candidate-feedback-composer__surface.is-side {
  z-index: var(--z-drawer, 2100);
}
.candidate-feedback-composer__surface.is-side > .candidate-feedback-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: 24px;
}
.candidate-feedback-composer__surface.is-side .candidate-feedback-form__body {
  flex: 1 1 auto;
  overflow-y: auto;
}
.candidate-feedback-composer__surface.is-side .candidate-feedback-editor-card textarea {
  min-height: 72px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.candidate-feedback-composer__surface.is-side .video-evaluation-editor {
  padding: 0;
  border: 0;
  background: transparent;
}
.candidate-feedback-composer__surface.is-side .candidate-feedback-footer {
  flex: 0 0 auto;
  align-items: center;
}
.candidate-feedback-composer__surface.is-side .candidate-feedback-draft-status {
  flex: 1 1 auto;
  margin: 0;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}
.candidate-feedback-form .video-evaluation-callout {
  justify-content: flex-end;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}
.candidate-feedback-form .video-evaluation-callout button {
  color: var(--hh-color-text-primary);
}
.candidate-feedback-form .candidate-feedback-scorecard,
.candidate-feedback-form .candidate-feedback-criteria {
  display: grid;
  gap: 0;
}
.candidate-feedback-form .candidate-feedback-scorecard .candidate-feedback-scorecard-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.candidate-feedback-form .candidate-feedback-scorecard-heading {
  margin: 0 -12px;
  padding: 10px 12px;
  border-block: 1px solid var(--hh-ui-border);
  background: var(--hh-surface-subtle);
}
.candidate-feedback-form .candidate-feedback-criterion {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--hh-ui-border);
  border-radius: 0;
  background: transparent;
}
.candidate-feedback-form .candidate-feedback-criterion-note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--hh-color-text-secondary);
  font: inherit;
  font-size: var(--hh-font-caption);
}
.candidate-feedback-criterion-note-toggle > span {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.candidate-feedback-composer__detached {
  margin: 0;
  padding: 12px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}

@media (max-width: 600px) {
  .candidate-feedback-composer__modes {
    gap: 10px;
  }
  .candidate-feedback-composer__stage {
    max-width: 100%;
  }
  .candidate-feedback-actions {
    flex-wrap: wrap;
  }
  .candidate-feedback-actions .video-evaluation-draft-status {
    flex-basis: 100%;
  }
}
.candidate-feedback-date,
.candidate-feedback-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 24px 8px;
  gap: 12px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}

.candidate-feedback-date::before,
.candidate-feedback-date::after {
  flex: 1;
  height: 1px;
  background: var(--hh-ui-separator);
  content: '';
}

.candidate-feedback-date > time {
  flex: 0 0 auto;
  padding: 4px 12px;
  border: var(--app-surface-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-label);
  line-height: 18px;
}

.candidate-detail-tabs-surface .mid-feed--timeline .mid-act__actions:empty { display: none; }

/* Original-message action control shared by timeline and communication tabs. */
.candidate-detail-tabs-surface
  .mid-feed[aria-label='Timeline']
  .mid-act-original-message {
  margin-top: 8px;
}

.candidate-detail-tabs-surface .mid-act-original-message {
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-link);
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-label);
  line-height: 20px;
  text-align: left;
}

.candidate-detail-tabs-surface .mid-act-original-message:hover {
  text-decoration: underline;
}

.candidate-detail-tabs-surface .mid-act-original-message:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--text-link);
  outline-offset: 3px;
}

.candidate-db-autocomplete > label.sr-only {
  position: absolute;
}

.candidate-db-autocomplete__control {
  display: flex;
  align-items: center;
  gap: var(--app-filter-control-gap, 8px);
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hh-ui-border);
  border-radius: var(--app-filter-control-radius, var(--radius-pill));
  box-sizing: border-box;
}

.candidate-db-autocomplete__control > input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--hh-color-text-primary);
  font-family: inherit;
  outline: none;
  box-shadow: none;
}

.candidate-db-autocomplete__toggle {
  display: inline-flex;
  flex: 0 0 15px;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--hh-color-text-secondary);
  cursor: pointer;
}

.candidate-db-autocomplete__toggle svg {
  width: 15px;
  height: 15px;
}

.candidate-db-autocomplete__menu[popover] {
  position: fixed;
  inset: auto;
  top: var(--attached-select-top);
  left: var(--attached-select-left);
  width: var(--attached-select-width);
  max-height: var(--attached-select-max-height);
  margin: 0;
  overflow-y: auto;
  box-sizing: border-box;
}

.candidate-db-autocomplete__menu .loc-list {
  max-height: none;
}

.candidate-db-autocomplete__control > input::placeholder {
  color: var(--hh-paint-text-secondary);
  opacity: 1;
}

.candidate-db-autocomplete__option-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-db-autocomplete__menu .loc-opt svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--hh-color-text-primary);
}

.candidate-db-autocomplete__menu .loc-opt.is-keyboard-active {
  background: var(--hh-hover-bg);
}

.candidate-db-autocomplete__empty {
  padding: 10px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption, 12px);
  line-height: 1.5;
}

@layer components.toolbars {
  :root .candidate-db-autocomplete .candidate-db-autocomplete__control {
    height: var(--hh-directory-control-height, 34px);
    min-height: var(--hh-directory-control-height, 34px);
    max-height: var(--hh-directory-control-height, 34px);
    padding: 0 12px;
    background: var(--app-toolbar-background, var(--color-white));
  }

  :root .candidate-db-autocomplete .candidate-db-autocomplete__control > input {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 0;
    background: transparent;
  }
}

/* Standalone person lists use the same surface as the Jobs filter menu. */
@layer components.selects {
  .hh-person-picker-menu {
    box-sizing: border-box;
    padding: var(--app-menu-padding);
    border: var(--app-menu-border);
    border-radius: var(--app-menu-radius);
    background: var(--app-menu-bg);
    box-shadow: var(--app-menu-shadow);
  }
}

@layer components.typography {
  :is(button, a, label, [role='option']):has(> .hh-person-picker-row) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    inline-size: 100%;
    min-inline-size: 0;
    block-size: auto;
    min-block-size: 44px;
    padding: 5px var(--app-menu-option-padding-x);
    border: 0;
    border-radius: var(--app-menu-option-radius);
    background: transparent;
    color: var(--hh-color-text-primary);
    box-shadow: none;
    text-align: start;
  }

  :is(button, a, label, [role='option']):has(> .hh-person-picker-row):is(:focus-visible, .is-active, .is-keyboard-active, .is-selected, [aria-selected='true'], :has(> input:checked)) {
    background: var(--hh-interaction-bg);
  }

  :is(button, a, label, [role='option']):has(> .hh-person-picker-row):hover:not(:disabled, [aria-disabled='true'], :has(> input:disabled)) {
    background: var(--hh-hover-bg);
  }

  .hh-person-picker-row.hh-person-picker-row {
    display: flex;
    flex: 1 1 auto;
    order: -1;
    align-items: center;
    gap: 10px;
    min-inline-size: 0;
    text-align: start;
  }

  .hh-person-picker-row > .hh-person-picker-copy {
    display: grid;
    flex: 1;
    gap: 1px;
    min-inline-size: 0;
  }

  .hh-person-picker-copy > :is(.hh-person-picker-name, .hh-person-picker-position, .hh-person-picker-note) {
    display: block;
    min-inline-size: 0;
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
  }

  .hh-person-picker-copy > .hh-person-picker-name {
    color: var(--hh-color-text-primary);
    font-size: var(--hh-font-label);
    font-weight: var(--hh-weight-label);
    line-height: 1.3;
  }

  .hh-person-picker-copy > :is(.hh-person-picker-position, .hh-person-picker-note) {
    color: var(--hh-color-text-secondary);
    font-size: var(--hh-font-caption, 12px);
    font-weight: 400;
    line-height: 1.3;
  }

  .hh-person-picker-copy > .hh-person-picker-note {
    white-space: normal;
  }
  .hh-person-picker-group {
    display: block;
    padding: 6px 10px 2px;
    color: var(--hh-color-text-secondary);
    font-size: var(--hh-font-caption);
  }
}

.ev-type { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.ev-type__btn { border: 1px solid var(--hh-ui-border); background: var(--ink-100); color: var(--hh-color-text-primary); border-radius: var(--radius-sm); min-height: 32px; padding: 0 8px; font-size: var(--hh-font-caption); font-weight: var(--hh-weight-title); cursor: pointer; }
.ev-type__btn:hover { background: var(--hh-hover-bg); }
.ev-type__btn.is-active {
  background: color-mix(in srgb, var(--accent-blue-strong) 10%, var(--color-white));
  border-color: color-mix(in srgb, var(--accent-blue-strong) 42%, var(--color-white));
  color: var(--accent-blue-strong);
  box-shadow: none;
}

.ev-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-key { display: block; font-size: var(--hh-font-caption); color: var(--hh-color-text-secondary); margin-bottom: 6px; font-weight: var(--hh-weight-title); }
.ev-time { display: grid; grid-template-columns: 1fr 160px; gap: 10px; }

.ev-attendees { display: grid; gap: 6px; margin-top: 6px; }
.ev-attendee { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; min-height: 34px; padding: 2px 0; border: 0; border-radius: 0; background: transparent; font-size: var(--hh-font-caption); }
.ev-attendee img { width: 20px; height: 20px; border-radius: 50%; }
.ev-attendee svg { width: 20px; height: 20px; border-radius: 50%; display: block; }
.ev-attendee em { color: var(--hh-color-text-secondary); font-style: normal; }
.ev-attendee .ev-x { border: 0; background: transparent; color: var(--hh-color-text-secondary); font-size: var(--hh-font-subtitle); line-height: 1; cursor: pointer; }

.ev-add { display: grid; grid-template-columns: 1fr auto; gap: 6px; }

.ev-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.ev-time-fields > label {
  display: grid;
  gap: 4px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}

.ev-time-fields > label .wf-filter-input {
  width: 100%;
  min-height: 30px;
}

.ev-time-fields > span {
  align-self: end;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: var(--hh-color-text-secondary);
}

.ev-slots {
  display: grid;
  gap: 8px;
}

.ev-slot {
  display: grid;
  gap: 8px;
  border: 1px solid var(--hh-ui-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  padding: 9px;
}

.ev-slot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ev-slot__head strong {
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-compact);
  font-weight: var(--hh-weight-strong);
}

.ev-slot__head button,
.ev-add-slot {
  border: 0;
  background: transparent;
}

.ev-add-slot {
  color: var(--hh-color-text-primary);
}

.ev-slot__head button,
.ev-add-slot {
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-title);
  cursor: pointer;
}

.ev-slot__head button {
  color: var(--danger-700);
}

.ev-slot__topic,
.ev-location {
  display: grid;
  gap: 4px;
  color: var(--hh-color-text-secondary);
  font-size: var(--hh-font-caption);
}

.ev-location b {
  color: var(--danger-700);
  font-weight: var(--hh-weight-strong);
}

.ev-add-slot {
  justify-self: start;
  min-height: 30px;
  padding: 0 2px;
}
