.calls-workflow .call-grid {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  align-items: start;
}

.call-sidebar {
  position: sticky;
  top: calc(var(--calls-header-height, 120px) + 12px);
  max-height: calc(100dvh - var(--calls-header-height, 120px) - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.call-sidebar .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.call-sidebar .field:has(#callBlock) { grid-column: 1 / -1; }
.call-sidebar h3 { font-size: 1.15rem; }
.call-sidebar textarea { min-height: 110px; font-size: 0.95rem; line-height: 1.5; }
.call-sidebar #callMailBody { min-height: 200px; }
.call-sidebar .actions { flex-wrap: wrap; }
.call-right-column { min-width: 0; }
.call-recipient { overflow-wrap: anywhere; font-size: 0.875rem; }
.call-registration-editor { padding: 16px 0; border-bottom: 1px solid #ddd; }
.call-right-column .list-panel { overflow: visible; }
.call-right-column .table-wrap { overflow-x: auto; }
.call-list-search { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.call-list-search input { flex: 1 1 240px; width: 100%; min-width: 0; }
.call-list-search span { flex: 0 0 auto; font-size: 0.875rem; color: #555; }
.candidate-detail-header { top: calc(var(--calls-header-height, 120px) + 8px); }
.candidate-detail-header > div:first-child { min-width: 0; flex: 1; }
.audition-checkin-note { margin: 12px 0; padding: 12px 16px; border-left: 4px solid #ac7b24; background: #fff6d9; overflow-wrap: anywhere; }
.audition-checkin-note h3 { margin: 0 0 6px; font-size: 1rem; }
.candidate-detail-header .audition-checkin-note p { margin: 0; white-space: pre-wrap; color: #242424; }
.calls-workflow tr.is-selected { background: #eef7f0; outline: 2px solid #4e8760; outline-offset: -2px; }
.call-select { border: 0; background: transparent; padding: 4px 0; color: inherit; font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.call-select:hover, .call-select:focus-visible { text-decoration: underline; }
.calls-workflow .mini-action { margin: 3px 2px; white-space: normal; }
.call-status-modtaget { background: #fff0a8 !important; color: #665000 !important; border-color: #cda91b !important; }
.call-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0; border-bottom: 1px solid #ccc; }
.calls-workflow .pill.white { background: #fff !important; color: #242424 !important; border: 1px solid #727272 !important; }
.call-status-selftape { background: #eddef9 !important; color: #622685 !important; border: 1px solid #ad7acb !important; }
.calls-workflow .pill.pink { background: #fce0eb !important; color: #822448 !important; border: 1px solid #d89bb2 !important; }
.selftape-series { font-weight: 700; color: #622685; }
.call-mode button { border: 0; border-bottom: 3px solid transparent; padding: 10px; background: transparent; font: inherit; cursor: pointer; }
.call-mode button[aria-pressed="true"] { border-bottom-color: #111; font-weight: 700; }
.call-delete { border-top: 1px solid #ddd; padding-top: 12px; margin-top: 18px; }
.button.danger, .mini-action.danger { color: #9e2424; background: #fff; border: 1px solid #b94747; }
.button.danger:hover, .mini-action.danger:hover { color: #fff; background: #9e2424; }
.call-review { margin-top: 28px; padding-top: 20px; border-top: 2px solid #222; scroll-margin-top: calc(var(--calls-header-height, 120px) + 16px); }
.call-review .section-title { align-items: start; }
.call-review-photo { width: 130px; max-height: 180px; object-fit: contain; }
.call-cv { margin-top: 24px; }
.call-cv-preview { display: block; width: 100%; height: 75dvh; min-height: 460px; overflow-y: auto; border: 1px solid #aaa; background: #e8e8e8; padding: 12px; box-sizing: border-box; }
.call-cv-preview canvas { display: block; width: 100%; max-width: 820px; height: auto; margin: 0 auto 12px; background: #fff; }
.call-cv-image { display: block; max-width: 100%; height: auto; }
.candidate-action-dialog { width: min(92vw, 44rem); max-height: 90dvh; overflow-y: auto; border: 1px solid #aaa; border-radius: 8px; padding: 24px; }
.candidate-action-dialog h2 { font-size: 1.35rem; }
.candidate-action-dialog h3 { font-size: 1rem; }
.candidate-action-dialog::backdrop { background: rgb(0 0 0 / 40%); }
.candidate-mail-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.5; border-top: 1px solid #ddd; padding-top: 14px; }

@media (max-width: 1000px) {
  .calls-workflow .call-grid { grid-template-columns: minmax(0, 1fr); }
  .call-sidebar { position: static; max-height: none; overflow: visible; }
  .call-cv-preview { min-height: 360px; }
}
