/* ============================================
   LIP Design System Overrides
   Teal palette + Lora serif titles
   (Matching profilanalys-LIP)
   ============================================ */

/* === Container: flush hero/footer === */
.container {
  padding-top: 0;
  padding-bottom: 0;
}

/* === Tool Hero === */
.tool-hero {
  margin-bottom: var(--space-6);
}

.tool-hero-bg {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-signature);
  border-bottom: 1px solid rgba(0, 160, 155, 0.15);
}

.tool-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-6);
}

.tool-hero-title {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.tool-hero-tagline {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2);
}

.tool-hero-tagline:last-child {
  margin-bottom: 0;
}

.tool-hero-sub {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: var(--space-4);
}

@media (max-width: 600px) {
  .tool-hero-inner {
    padding: var(--space-6) var(--space-3) var(--space-4);
  }
  .tool-hero-title {
    font-size: 1.3rem;
  }
}

/* === Tool Instructions Link === */
.tool-instructions-link {
  display: flex;
  justify-content: flex-start;
}

.tool-instructions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: var(--space-1) 0;
  cursor: pointer;
  font-family: var(--font-family);
  transition: color 0.15s;
  color: var(--color-text-muted);
}

.tool-instructions-btn:hover {
  color: var(--color-secondary-teal);
}

.tool-instructions-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #00a09b;
  background: #00a09b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.tool-instructions-text {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
}

/* === Typography: Lora serif === */
p {
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  color: rgba(0, 0, 0, 0.7);
}

/* Reset for hero (white text) */
.tool-hero p,
.tool-hero-bg p {
  color: rgba(255, 255, 255, 0.92);
}

/* Reset for overlay */
.intro-overlay p {
  color: var(--color-text-primary);
}

/* Reset for coach-box */
.coach-box p {
  color: var(--color-text-primary);
}

h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.tool-hero-inner h2 {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 700;
}

.step-collapse-title {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

/* === Step Collapse overrides === */
.step-collapse {
  margin-bottom: var(--space-3);
}

.step-collapse-header {
  background: #f9f9f970;
  padding: var(--space-3) var(--space-4);
}

.step-collapse-body {
  background: #f9f9f970;
  padding: 0 var(--space-4) var(--space-4);
}

/* === Button overrides: #458f85 palette === */
.btn {
  font-size: 14px;
  padding: 10px 15px;
  text-transform: none;
}

.btn-primary {
  background: #458f85;
  border: none;
}

.btn-primary:hover {
  background: #3a7a71;
  border: none;
  opacity: 1;
  box-shadow: 0px 2px 8px 0px rgba(69, 143, 133, 0.35);
}

.btn-secondary {
  color: #458f85;
  border-color: #458f85;
}

.btn-secondary:hover {
  background: #458f85;
  border-color: #458f85;
  color: #fff;
}

/* === Header accent: dashed border === */
.app-header-accent {
  height: 0;
  background: none;
  border-bottom: 1.5px dashed #d4d0c8;
}

/* === Loader color override === */
.loader {
  border-color: rgba(69, 143, 133, 0.15);
  border-top-color: #458f85;
}

/* === Dropzone hover override (teal) === */
.v2-dropzone:hover,
.v2-dropzone.drag-over {
  border-color: rgba(69, 143, 133, 0.4);
  background: rgba(69, 143, 133, 0.03);
}

/* === File btn hover override === */
.v2-file-btn:hover {
  border-color: #458f85;
  color: #458f85;
  background: rgba(69, 143, 133, 0.04);
}
/* === v2-file-info: teal override (replaces pink from v2-input.css) === */
.v2-file-info {
  background: rgba(69, 143, 133, 0.04);
  border: 1px solid rgba(69, 143, 133, 0.15);
}

.v2-file-info-name {
  color: #458f85;
}

/* === "välj fil" link in dropzone: neutral (matching profilanalys-LIP) === */
.v2-dropzone-text strong {
  color: inherit;
  font-weight: inherit;
}

/* === btn-expand: teal override === */
.btn-expand {
  color: #458f85;
  border-color: rgba(69, 143, 133, 0.3);
}

.btn-expand:hover {
  color: #3a7a71;
  border-color: rgba(69, 143, 133, 0.5);
  background: rgba(69, 143, 133, 0.04);
}

/* === Intro Overlay === */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: overlayFadeIn 0.3s ease;
}

.intro-overlay.hidden {
  display: none;
}

.intro-overlay.closing {
  animation: overlayFadeOut 0.35s ease forwards;
}

.intro-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.intro-overlay-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  animation: panelSlideUp 0.35s ease;
}

.intro-overlay.closing .intro-overlay-panel {
  animation: panelSlideDown 0.3s ease forwards;
}

.intro-overlay-header {
  text-align: center;
  padding: var(--space-6) var(--space-5) var(--space-4);
  border-bottom: var(--border-subtle);
}

.intro-overlay-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-1);
}

.intro-overlay-tagline {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2);
}

.intro-overlay-body {
  padding: var(--space-5);
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
}

.intro-overlay-body p {
  margin-bottom: var(--space-3);
}

.intro-overlay-body p:last-of-type {
  margin-bottom: 0;
}

.intro-overlay-cta {
  padding: var(--space-4) var(--space-5) var(--space-6);
  text-align: center;
}

.intro-overlay-cta .btn-primary {
  padding: 10px 15px;
  font-size: 14px;
}

/* === Info examples === */
.info-examples {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-card);
}

.info-examples-label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-3);
}

.info-example-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.info-example-list li {
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  padding-left: var(--space-4);
  position: relative;
  line-height: var(--line-height-relaxed);
}

.info-example-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary-teal);
  font-weight: var(--font-weight-bold);
  line-height: 1.75;
}

/* === Service link === */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-family);
}

.service-link:hover {
  color: var(--color-secondary-teal);
}

.service-link-external {
  font-size: 11px;
  opacity: 0.5;
}

/* === Overlay animations === */
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes panelSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panelSlideDown {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(16px) scale(0.98); }
}

@media (max-width: 640px) {
  .intro-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .intro-overlay-panel {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
}

/* === Footer === */
.lip-footer {
  margin-top: 0;
  background: #fbfbfb;
  border-top: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
}

.lip-footer .lip-footer-copyright {
  font-size: 14px;
  color: var(--color-text-muted);
  order: 1;
}

.lip-footer .lip-footer-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  max-width: none;
  order: 2;
}

/* === Sticky-to-bottom layout === */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-tools-shortcut {
  margin-top: auto;
  padding: var(--space-6) var(--space-4);
}

.landing-tools-inner {
  max-width: 760px;
  margin: 0 auto;
}

.landing-tools-label {
  color: var(--color-text-secondary);
}


/* =============================================
   CV-skaparen 2 — Component-specific styles
   Step structure comes from tool-layout.css
   ============================================= */
/* === Coach box === */
.coach-box {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(0, 160, 155, 0.04) 0%, rgba(218, 165, 32, 0.04) 100%);
  border: none;
  border-radius: var(--radius-card);
  position: relative;
}

.coach-box-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.coach-box-label {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary-teal);
}

.coach-box .coach-box-text {
  font-size: 14px;
  line-height: var(--line-height-relaxed);
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
}
/* === Coach box variants === */
/* "Guide" boxes — warm yellow tint */
.coach-box.coach-box-guide {
  background: #fefff3;
}

/* "Tankar från AI-coachen" keeps default gradient bg */

/* Coach box inline (inside entries) */
.coach-box.coach-box-inline {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
  padding: var(--space-3);
}

/* Coach box actions */
.coach-box-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.coach-box-actions-right {
  display: flex;
  gap: var(--space-2);
}

.coach-box-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s ease;
}

.coach-box-btn-dismiss {
  background: transparent;
  border: var(--border-subtle);
  color: var(--color-text-muted);
}

.coach-box-btn-dismiss:hover {
  border-color: rgba(0, 0, 0, 0.25);
  color: var(--color-text-secondary);
}

.coach-box-btn-check {
  background: rgba(0, 160, 155, 0.08);
  border: 1px solid rgba(0, 160, 155, 0.25);
  color: var(--color-secondary-teal);
}

.coach-box-btn-check:hover {
  background: rgba(0, 160, 155, 0.14);
  border-color: rgba(0, 160, 155, 0.4);
}
.coach-box-btn-example {
  background: transparent;
  border: var(--border-subtle);
  color: var(--color-secondary-teal);
}

.coach-box-btn-example:hover {
  border-color: rgba(0, 160, 155, 0.3);
  background: rgba(0, 160, 155, 0.04);
}

/* Dismissed state */
.coach-box.coach-box-dismissed {
  display: none;
}

/* Approved state */
.coach-box.coach-box-approved {
  background: linear-gradient(135deg, rgba(0, 160, 155, 0.06) 0%, rgba(0, 160, 155, 0.02) 100%);
}

.coach-box.coach-box-approved .coach-box-label {
  color: var(--color-secondary-teal);
}

/* Improvement hint done state */
.cv2-improvement-hint.cv2-improvement-done {
  color: var(--color-secondary-teal);
}


/* === Field wrapper === */
.cv2-field {
  margin-bottom: var(--space-4);
}

.cv2-field:last-child {
  margin-bottom: 0;
}

.cv2-label {
  display: block;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  color: var(--color-text-heading);
  margin-bottom: var(--space-2);
}

.cv2-field-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-1);
}

/* === Text input (v2 dashed style) === */
.cv2-input {
  width: 100%;
  background: var(--color-bg-page);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-card);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cv2-input:hover {
  border-color: rgba(69, 143, 133, 0.4);
  background: rgba(69, 143, 133, 0.02);
}

.cv2-input:focus {
  outline: none;
  border-color: #458f85;
  background: rgba(69, 143, 133, 0.03);
  box-shadow: 0 0 0 3px rgba(69, 143, 133, 0.08);
}

.cv2-input::placeholder {
  color: var(--color-text-muted);
}

/* === Textarea (v2 dashed style) === */
.cv2-textarea {
  width: 100%;
  background: var(--color-bg-page);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-card);
  color: var(--color-text-primary);
  padding: var(--space-4);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: var(--line-height-relaxed);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cv2-textarea:hover {
  border-color: rgba(69, 143, 133, 0.4);
  background: rgba(69, 143, 133, 0.02);
}

.cv2-textarea:focus {
  outline: none;
  border-color: #458f85;
  background: rgba(69, 143, 133, 0.03);
  box-shadow: 0 0 0 3px rgba(69, 143, 133, 0.08);
}

.cv2-textarea::placeholder {
  color: var(--color-text-muted);
}

/* === Skip / Undo === */
.cv2-skip-link {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s;
}

.cv2-skip-link:hover {
  color: var(--color-text-secondary);
}

.cv2-skipped-pill {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  background: var(--color-bg-input);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  margin-top: var(--space-2);
}

.cv2-undo-link {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  color: #458f85;
  text-decoration: underline;
  cursor: pointer;
  margin-left: var(--space-2);
  padding: 0;
  font-weight: var(--font-weight-medium);
}

/* === Extra material section === */
.cv2-extras {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border-subtle);
}

/* === Expandable === */
.cv2-expandable {
  border-bottom: 1px solid var(--color-border);
}

.cv2-expandable:last-child {
  border-bottom: none;
}

.cv2-expandable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-3) var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
  text-align: left;
  transition: color 0.15s;
}

.cv2-expandable-header:hover {
  color: var(--color-secondary-teal);
}

.cv2-expand-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--color-secondary-teal);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.cv2-expandable.open .cv2-expand-icon {
  transform: rotate(45deg);
}

.cv2-expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-1);
}

.cv2-expandable.open .cv2-expandable-content {
  max-height: 500px;
  padding: 0 var(--space-1) var(--space-4);
}

/* === Builder sections === */
.cv2-builder-section {
  margin-bottom: var(--space-6);
}

.cv2-builder-section:last-child {
  margin-bottom: 0;
}

.cv2-builder-heading {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: var(--border-subtle);
}

/* === Builder entry === */
.cv2-entry {
  background: var(--color-bg-subtle);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

/* Entry display mode (confirmed) */
.cv2-entry-display {
  display: none;
}

.cv2-entry.is-confirmed .cv2-entry-form {
  display: none;
}

.cv2-entry.is-confirmed .cv2-entry-display {
  display: block;
}

.cv2-display-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.cv2-display-main {
  display: flex;
  flex-direction: column;
}

.cv2-display-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
}

.cv2-display-subtitle {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

.cv2-display-dates {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.cv2-display-description {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-3);
}

.cv2-entry-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cv2-improvement-hint {
  font-size: var(--font-size-small);
  color: var(--color-secondary-teal);
  font-weight: var(--font-weight-medium);
  margin-right: auto;
  opacity: 0.85;
}

.cv2-btn-edit {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  color: #458f85;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Entry form mode */
.cv2-entry-form label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
  margin-bottom: var(--space-1);
  margin-top: var(--space-3);
}

.cv2-entry-form label:first-child {
  margin-top: 0;
}

.cv2-date-fields {
  display: flex;
  gap: var(--space-3);
}

.cv2-date-fields label {
  flex: 1;
}

.cv2-date-fields .cv2-input {
  margin-top: var(--space-1);
}

/* Progressive reveal of fields */
.cv2-entry .cv2-group-dates,
.cv2-entry .cv2-group-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.cv2-entry.show-dates .cv2-group-dates {
  max-height: 200px;
  opacity: 1;
}

.cv2-entry.show-description .cv2-group-description {
  max-height: 500px;
  opacity: 1;
}

/* Generate button row */
.cv2-description-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}

.cv2-description-header label {
  margin: 0;
}

.cv2-btn-generate {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 14px;
  background: var(--color-bg-page);
  border: var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.cv2-btn-generate:hover {
  border-color: var(--color-secondary-teal);
  color: var(--color-secondary-teal);
}

/* Confirm button */
.cv2-btn-confirm {
  margin-top: var(--space-4);
}

/* === Modal (generator) === */
.cv2-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 52, 52, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 1000;
}

/* Contact overlay */
.cv2-modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: none;
  border: none;
  font-size: 18px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.cv2-modal-close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--color-text-heading);
}

.cv2-contact-modal {
  position: relative;
  max-width: 560px;
}

.cv2-contact-intro {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.cv2-contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cv2-contact-row {
  display: flex;
  gap: var(--space-3);
}

.cv2-contact-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv2-contact-field-full {
  flex: 1 1 100%;
}

.cv2-contact-field label {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
}

.cv2-optional {
  font-weight: normal;
  color: var(--color-text-muted);
  font-size: 12px;
}

.cv2-contact-field input {
  padding: 10px 12px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  background: var(--color-bg-main);
  color: var(--color-text-body);
  transition: border-color 0.15s;
}

.cv2-contact-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0,160,155,0.12);
}

.cv2-contact-field input::placeholder {
  color: rgba(0,0,0,0.3);
}

.cv2-backdrop.open {
  display: flex;
}

.cv2-modal {
  max-width: 720px;
  width: 100%;
  background: var(--color-bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cv2-modal-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
  margin-bottom: var(--space-4);
}

.cv2-modal-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  margin-top: var(--space-4);
}

.cv2-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: var(--border-subtle);
}

.cv2-suggestion:last-child {
  border-bottom: none;
}

.cv2-suggestion p {
  margin: 0;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  flex: 1;
}

/* === Responsive === */
@media (max-width: 640px) {
  .cv2-date-fields {
    flex-direction: column;
    gap: 0;
  }

  .cv2-display-header {
    flex-direction: column;
    gap: var(--space-1);
  }
}

/* === Skip step link (step 2) === */
.cv2-skip-step-link {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: var(--space-3);
  transition: color 0.15s;
}

.cv2-skip-step-link:hover {
  color: var(--color-text-secondary);
}

/* === Structure list (Step 5) === */
.cv2-structure-list {
  margin-bottom: var(--space-5);
}

.cv2-structure-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-2);
  cursor: grab;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.cv2-structure-item:hover {
  border-color: rgba(0, 160, 155, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cv2-structure-item:active {
  cursor: grabbing;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--color-secondary-teal);
}

.cv2-structure-handle {
  font-size: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  line-height: 1;
}

.cv2-structure-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.cv2-structure-label {
  flex: 1;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
}

.cv2-structure-pos {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  background: var(--color-bg-subtle);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* === Custom sections (Step 4) === */
.cv2-custom-section {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-subtle);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
}

.cv2-custom-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.cv2-custom-section-title {
  flex: 1;
}

.cv2-custom-section-remove {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
  flex-shrink: 0;
  transition: color 0.15s;
}

.cv2-custom-section-remove:hover {
  color: var(--color-text-primary);
}

/* === Step 2: button spacing === */
#step2 .step-continue {
  gap: var(--space-5);
}

/* =============================================
   Template picker (Step 8)
   ============================================= */

.cv2-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.cv2-template-option {
  cursor: pointer;
}

.cv2-template-option input[type="radio"] {
  display: none;
}

.cv2-template-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-bg-card);
}

.cv2-template-option:hover .cv2-template-card {
  border-color: var(--color-teal);
}

.cv2-template-option.selected .cv2-template-card {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 160, 155, 0.15);
}

.cv2-template-preview {
  width: 100%;
  aspect-ratio: 210 / 297;
  border-radius: 4px;
  margin-bottom: var(--space-2);
  position: relative;
  overflow: hidden;
}

.cv2-template-preview-klassisk {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.cv2-template-preview-klassisk::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 10%;
  right: 10%;
  height: 8%;
  background: #333;
  border-radius: 2px;
}

.cv2-template-preview-klassisk::after {
  content: '';
  position: absolute;
  top: 28%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: repeating-linear-gradient(
    to bottom,
    #ccc 0px, #ccc 3px,
    transparent 3px, transparent 10px
  );
}

.cv2-template-preview-modern {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.cv2-template-preview-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(135deg, #00a09b, #1a7a77);
}

.cv2-template-preview-modern::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 38%;
  right: 8%;
  bottom: 10%;
  background: repeating-linear-gradient(
    to bottom,
    #ccc 0px, #ccc 3px,
    transparent 3px, transparent 10px
  );
}

.cv2-template-preview-kompakt {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.cv2-template-preview-kompakt::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  height: 6%;
  background: #555;
  border-radius: 2px;
}

.cv2-template-preview-kompakt::after {
  content: '';
  position: absolute;
  top: 16%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  background: repeating-linear-gradient(
    to bottom,
    #ccc 0px, #ccc 2px,
    transparent 2px, transparent 7px
  );
  columns: 2;
}

.cv2-template-name {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
}

/* ── Template teaser (step 1) ── */
.cv2-template-teaser {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-app);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  margin-top: var(--space-4);
}

.cv2-template-teaser-thumb {
  flex-shrink: 0;
}

.cv2-template-mini {
  width: 52px;
  height: 68px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 3px;
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cv2-template-mini-header {
  height: 6px;
  background: #2c3e50;
  border-radius: 1px;
  margin-bottom: 2px;
}

.cv2-template-mini-line {
  height: 2px;
  background: rgba(0,0,0,0.15);
  border-radius: 1px;
}

.cv2-template-mini-line.w80 { width: 80%; }
.cv2-template-mini-line.w60 { width: 60%; }
.cv2-template-mini-line.w90 { width: 90%; }
.cv2-template-mini-line.w70 { width: 70%; }
.cv2-template-mini-line.w85 { width: 85%; }
.cv2-template-mini-line.w75 { width: 75%; }
.cv2-template-mini-line.w50 { width: 50%; }

.cv2-template-mini-gap {
  height: 3px;
}

.cv2-template-teaser-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv2-template-teaser-label {
  font-size: 14px;
  color: var(--color-text-body);
}

.cv2-template-teaser-label strong {
  font-weight: var(--font-weight-medium);
}

.cv2-template-teaser-hint {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}
