/* ══════════════════════════════════════════════════════════
   FEATURES — deadline banner · notes timeline · resume tag
   ══════════════════════════════════════════════════════════ */

/* ── Deadline banner ────────────────────────────────────── */
.deadline-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--yellow);
  line-height: 1.6;
}

.deadline-banner-icon {
  font-size: 16px;
  margin-top: 2px;
}

.deadline-urgent {
  color: var(--red);
  font-weight: 700;
}

.deadline-soon {
  color: var(--yellow);
  font-weight: 600;
}

.deadline-ok {
  color: var(--green);
}

/* ── Notes timeline ─────────────────────────────────────── */
.notes-timeline-wrapper {
  margin-top: 1rem;
}

.notes-timeline-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.notes-timeline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.note-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.note-entry:last-child {
  border-bottom: none;
}

.note-ts {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
  padding-top: 2px;
  flex-shrink: 0;
}

.note-text {
  font-size: 13px;
  color: var(--text);
  flex: 1;
  line-height: 1.5;
}

.note-entry-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  padding: 0 2px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.note-entry:hover .note-entry-delete {
  opacity: 1;
}

.notes-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 12px;
  background: var(--surface);
}

.note-expand-btn {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.note-add-row {
  display: flex;
  gap: 8px;
}

.note-add-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.note-add-input:focus {
  border-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   NEW FEATURES
   ══════════════════════════════════════════════════════════ */

/* ── Benefits clickable chips & view-all button ─────────── */
.benefit-chip--clickable {
  cursor: pointer;
  transition: opacity 0.15s;
}

.benefit-chip--clickable:hover {
  opacity: 0.75;
}

.benefit-view-all {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 3px 10px;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}

.benefit-view-all:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Skill badge dismiss button ─────────────────────────── */
.skill-badge-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 0 0 0 4px;
  opacity: 0.45;
  vertical-align: middle;
  font-family: inherit;
}

.skill-badge-dismiss:hover {
  opacity: 1;
}

.skill-badge-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 0 0 4px;
  opacity: 0.55;
  vertical-align: middle;
  font-family: inherit;
  transition: opacity .15s, color .15s;
}

.skill-badge-remove:hover {
  opacity: 1;
  color: var(--red);
}

.skill-badge-add {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 0 0 4px;
  opacity: 0.55;
  vertical-align: middle;
  font-family: inherit;
  transition: opacity .15s, color .15s;
}

.skill-badge-add:hover {
  opacity: 1;
  color: var(--green);
}

/* ── JD Keyword Highlight ────────────────────────────────── */
.kw-match {
  background: rgba(63, 185, 80, .22);
  color: var(--green);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

.kw-gap {
  background: rgba(255, 77, 109, .18);
  color: var(--red);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

.detail-desc-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 11px;
}

.detail-desc-legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

.detail-desc-legend-dot span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ── Weekly Dashboard Summary ────────────────────────────── */
.dash-week-summary {
  grid-column: 1 / -1;
  margin-top: 0;
}

.week-summary-body {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 0 !important;
}

.week-stat {
  flex: 1;
  min-width: 90px;
  padding: 14px 18px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.week-stat:last-child {
  border-right: none;
}

.week-stat-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.week-stat-val.accent {
  color: var(--accent);
}

.week-stat-val.yellow {
  color: var(--yellow);
}

.week-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.week-goals-section {
  flex: 2;
  min-width: 180px;
  padding: 10px 18px;
  border-left: 1px solid var(--border);
}

.week-goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 12px;
}

.week-goal-label {
  color: var(--text-muted);
}

.week-goal-val {
  font-weight: 700;
  font-size: 13px;
}

/* ── Thank-You Sent badge in milestone strip ─────────────── */
.milestone-ty-sent {
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Linked Contacts in detail modal ────────────────────── */
.detail-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.detail-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
}

.detail-contact-name {
  font-weight: 600;
  color: var(--text);
}

.detail-contact-meta {
  color: var(--text-muted);
  margin-left: 6px;
  font-size: 11px;
}

.detail-contact-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Email Templates (profile section) ──────────────────── */
.template-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.template-input-row .text-input {
  flex: 1;
}

.template-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.template-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.template-card-name {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

.template-type-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: capitalize;
}

.tpl-thank-you {
  background: rgba(63, 185, 80, .15);
  color: var(--green);
}

.tpl-follow-up {
  background: rgba(0, 212, 170, .15);
  color: var(--accent);
}

.tpl-withdrawal {
  background: rgba(251, 191, 36, .15);
  color: var(--yellow);
}

.tpl-custom {
  background: rgba(167, 139, 250, .15);
  color: #a78bfa;
}

.template-card-body {
  font-size: 12px;
  color: var(--text-muted);
  white-space: pre-wrap;
  max-height: 80px;
  overflow: hidden;
  line-height: 1.5;
  position: relative;
}

.template-card-body.expanded {
  max-height: none;
}

.template-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.template-edit-area {
  width: 100%;
  font-family: inherit;
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  resize: vertical;
  outline: none;
  transition: border-color .15s;
  line-height: 1.5;
}

.template-edit-area:focus {
  border-color: var(--accent);
}

/* ── Job Comparison modal ────────────────────────────────── */
.compare-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.compare-count-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.compare-selected-counter {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: .04em;
}

.compare-selected-counter.ready {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

.compare-picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
}

.compare-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
  user-select: none;
}

.compare-picker-item:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.compare-picker-item.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.compare-picker-item input[type="checkbox"] {
  display: none;
}

.compare-picker-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
  font-size: 12px;
  font-weight: 700;
  color: transparent;
}

.compare-picker-item.selected .compare-picker-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.compare-picker-info {
  flex: 1;
}

.compare-picker-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.compare-picker-company {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.compare-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.compare-search-row .text-input {
  flex: 1;
}

/* ── Result grid ──────────────────────────────────────────── */
.compare-grid {
  display: grid;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.compare-col {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 210px;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}

/* Color accent bar at top */
.compare-col::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--col-accent, var(--accent));
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.compare-col.is-winner {
  border-color: var(--col-accent, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--col-accent, var(--accent)) 18%, transparent);
}

.compare-col-header {
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}

.compare-col-winner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2));
}

.compare-col-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding-right: 28px;
}

.compare-col-company {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.compare-col-body {
  padding: 2px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.compare-row {
  font-size: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.compare-row-value {
  color: var(--text);
  font-weight: 500;
}

/* Circular fit gauge */
.compare-fit-ring {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
  display: block;
  flex-shrink: 0;
}

.compare-fit-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 5;
}

.compare-fit-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.compare-fit-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.compare-fit-number {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.compare-fit-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Salary bar */
.compare-salary-bar-wrap {
  margin-top: 5px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.compare-salary-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--col-accent, var(--accent));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.compare-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* Load-template inline picker */
.tpl-load-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tpl-load-select {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.tpl-load-select:focus {
  border-color: var(--accent);
}