.cv-container {
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 14mm;
  max-width: 210mm; margin: 0 auto;
  position: relative;
}

.cv-header {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.photo-wrap {
  width: 100px; height: 132px; flex-shrink: 0;
  border-radius: var(--radius-md); overflow: hidden;
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-bg) 0%, #fff 100%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: var(--transition);
}
.photo-wrap:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-placeholder {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; width: 100%; height: 100%;
  color: var(--primary-light); text-align: center; gap: 6px; padding: 8px;
}
.photo-wrap.no-photo .photo-placeholder { display: flex; }
.photo-wrap.no-photo img { display: none; }

.cv-header-content { flex: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cv-name { font-size: 22pt; font-weight: 700; color: var(--primary); line-height: 1; margin: 0 0 6px; }
.cv-title { font-size: 11pt; font-weight: 600; color: var(--primary-light); }
.cv-contact { text-align: right; font-size: 8.5pt; line-height: 1.5; color: var(--text-soft); }
.cv-contact > div { white-space: nowrap; }

.expertise-bar {
  background: var(--primary-bg); border-left: 3px solid var(--primary);
  padding: 6px 12px; margin-bottom: 12px;
  font-size: 8.8pt; line-height: 1.5; color: var(--primary-light);
}

.cv-doc h2 {
  font-size: 11pt; text-transform: uppercase; color: var(--primary);
  letter-spacing: 1px; margin: 18px 0 8px;
  padding: 0 0 4px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; position: relative;
}
.cv-doc h2::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 4px; height: 12px;
  background: var(--primary); border-radius: 1px;
}
.cv-doc p { margin: 0 0 5px; text-align: justify; line-height: 1.42; }
.cv-doc ul { list-style: none; padding-left: 0; margin: 6px 0 10px; }
.cv-doc ul li {
  padding-left: 14px; position: relative;
  margin-bottom: 4px; font-size: 9pt; line-height: 1.35;
}
.cv-doc ul li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
}

.job { margin-bottom: 14px; padding: 4px 0 6px 12px; border-left: 2px solid var(--border-soft); }
.job-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.job-company { font-size: 10.5pt; font-weight: 700; color: var(--primary); }
.job-dates { font-size: 8.5pt; color: var(--text-muted); font-style: italic; white-space: nowrap; }
.job-role { font-size: 9pt; font-style: italic; color: var(--primary-light); margin-top: 2px; }
.job-body { margin-top: 6px; }
.project-label { font-style: italic; font-weight: 600; color: var(--primary-light); margin: 5px 0 3px; font-size: 9pt; }
.meta { font-size: 8.3pt; line-height: 1.45; color: var(--text-soft); margin: 4px 0 0; }
.meta b { color: var(--primary); font-size: 7.5pt; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 5px; }

.current-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--success); border-radius: 50%;
  margin-right: 5px; vertical-align: 1px;
}

body.edit-mode [contenteditable="true"] {
  outline: 1px dashed rgba(74,123,167,0.45);
  outline-offset: 2px; border-radius: 3px;
  transition: var(--transition);
}
body.edit-mode [contenteditable="true"]:focus {
  outline: 2px solid var(--primary);
  background: rgba(74,123,167,0.06);
}

@media print {
  .cv-container { box-shadow: none !important; padding: 0 !important; max-width: none; }
  body.edit-mode [contenteditable="true"] { outline: none !important; background: none !important; }
}