/* ============================================================================
   ADVOKE CV — editor.css
   The three-pane editor workspace. Mobile-first: on small screens the
   editor becomes a stacked, tabbed experience; on desktop it becomes a
   two-column workspace with a sticky preview.
   ============================================================================ */

/* ── 1. Shell ──────────────────────────────────────────────────────────── */

.app--editor {
  min-height: 100dvh;
  background: var(--paper-2);
}

.editor {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--header-h));
  padding-bottom: 68px; /* space for the mobile tab bar */
}

@media (min-width: 1024px) {
  .editor { padding-bottom: 0; }
}

/* ── 2. Mobile tab bar ────────────────────────────────────────────────── */

.editor__tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line-2);
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0));
  gap: 2px;
}

@media (min-width: 1024px) {
  .editor__tabs { display: none; }
}

.editor__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem 0.2rem;
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  color: var(--ink-3);
  min-height: 46px;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.editor__tab svg {
  width: 20px;
  height: 20px;
}

.editor__tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--y-50);
}

.editor__tab[aria-selected="true"] svg {
  color: var(--y-800);
}

.editor__tab:hover {
  color: var(--ink);
}

/* ── 3. Workspace grid ────────────────────────────────────────────────── */

.editor__workspace {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
}

@media (min-width: 1024px) {
  .editor__workspace {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    height: calc(100dvh - var(--header-h));
    overflow: hidden;
  }
}

@media (min-width: 1280px) {
  .editor__workspace {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  }
}

/* ── 4. Panels column ─────────────────────────────────────────────────── */

.editor__panels {
  display: block;
  min-width: 0;
  background: var(--paper);
  border-right: 1px solid var(--line-2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (min-width: 1024px) {
  .editor__panels {
    display: block;
    height: 100%;
  }
}

.editor__panel {
  display: block;
  padding: clamp(14px, 3vw, 24px);
  min-width: 0;
}

.editor__panel[hidden] { display: none; }

@media (min-width: 1024px) {
  /* On desktop only one panel shows at a time anyway, but we hide the
   * mobile-only preview tab entirely. */
  .editor__panel--preview-mobile { display: none !important; }
}

.editor__panel-head {
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-2);
}

.editor__panel-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  margin: 0 0 0.35rem;
}

.editor__panel-desc {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

.editor__panel-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
}

/* ── 5. Fieldsets ────────────────────────────────────────────────────── */

.ed-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}

.ed-fieldset__legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.55rem;
  margin-inline-start: -0.55rem;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--ink-3);
}

.ed-fieldset__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 0.35rem;
  border-radius: var(--r-pill);
  background: var(--y-100);
  color: var(--y-800);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.ed-fieldset__desc {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

.ed-fieldset__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ── 6. Field grid ───────────────────────────────────────────────────── */

.ed-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .ed-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ed-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ed-field--full {
  grid-column: 1 / -1;
}

.ed-field__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--ink-2);
  letter-spacing: var(--ls-wide);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ed-field__req {
  color: var(--danger);
  font-weight: var(--fw-bold);
}

.ed-field__value {
  color: var(--y-800);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-2xs);
  margin-left: 0.35rem;
}

.ed-field__hint {
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}

.ed-field__inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ed-field.has-error .input,
.ed-field.has-error .textarea,
.ed-field.has-error .select {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.ed-field .error-msg {
  font-size: var(--fs-2xs);
  color: var(--danger);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.ed-field .error-msg svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── 7. Repeatable entries ───────────────────────────────────────────── */

.ed-entries {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.ed-entry {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.ed-entry:focus-within {
  border-color: var(--y-400);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.14);
}

.ed-entry__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem 0.6rem 0.5rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
  min-width: 0;
}

.ed-entry__handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.ed-entry__handle:hover { background: var(--paper-4); color: var(--ink); }
.ed-entry__handle:active { cursor: grabbing; }

.ed-entry__handle svg { width: 18px; height: 18px; }

.ed-entry__toggle {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--r-sm);
  text-align: left;
  transition: background-color var(--t-fast);
  cursor: pointer;
}

.ed-entry__toggle:hover { background: var(--paper-4); }

.ed-entry__toggle::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid var(--ink-3);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform var(--t-base);
  flex-shrink: 0;
  margin-left: 0.15rem;
}

.ed-entry.is-open .ed-entry__toggle::before {
  transform: rotate(90deg) translateX(1px);
}

.ed-entry__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-entry__title.is-empty {
  color: var(--ink-4);
  font-style: italic;
  font-weight: var(--fw-regular);
}

.ed-entry__count {
  flex-shrink: 0;
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--paper-4);
}

.ed-entry__actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.ed-entry__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  transition: background-color var(--t-fast), color var(--t-fast);
}

.ed-entry__action:hover {
  background: var(--paper-4);
  color: var(--ink);
}

.ed-entry__action--danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.ed-entry__action svg {
  width: 15px;
  height: 15px;
}

.ed-entry__body {
  padding: var(--s-4) var(--s-4) var(--s-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .ed-entry__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ed-entry__body[hidden] { display: none; }

.ed-entry__body > .ed-field--full { grid-column: 1 / -1; }

/* Drag state */
.ed-entry.is-dragging {
  opacity: 0.55;
  border-style: dashed;
  border-color: var(--y-500);
}

.ed-entry.is-drop-target {
  border-color: var(--y-500);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.22);
}

/* ── 8. Add-entry button ─────────────────────────────────────────────── */

.ed-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 46px;
  border: 1.5px dashed var(--line-3);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: border-color var(--t-base), background-color var(--t-base), color var(--t-base);
}

.ed-add:hover {
  border-color: var(--y-500);
  background: var(--y-50);
  color: var(--ink);
}

.ed-add svg {
  width: 16px;
  height: 16px;
  color: var(--y-700);
}

/* ── 9. Skills grid quick-add ────────────────────────────────────────── */

.ed-skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 34px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-2);
}

.ed-skill-row:last-child { border-bottom: 0; }

.ed-skill-row .input,
.ed-skill-row .select {
  min-height: 38px;
  padding-block: 0.4rem;
  font-size: var(--fs-sm);
}

@media (max-width: 520px) {
  .ed-skill-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-rows: auto auto;
  }
  .ed-skill-row .select { grid-column: 1 / -1; grid-row: 2; }
}

/* ── 10. Bullets textarea ────────────────────────────────────────────── */

.ed-bullets {
  font-family: var(--font-body);
}

.ed-bullets-count {
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
  margin: 0.15rem 0 0;
}

/* ── 11. Sections panel list ─────────────────────────────────────────── */

.ed-sections__group {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ed-sections__group-title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.35rem;
}

.ed-sections__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.ed-sections__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-2);
  min-width: 0;
}

.ed-sections__row:last-child { border-bottom: 0; }

.ed-sections__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-sections__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 0.35rem;
  border-radius: var(--r-pill);
  background: var(--paper-4);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

.ed-sections__badge.has-content {
  background: var(--y-100);
  color: var(--y-800);
}

.ed-sections__toggle { margin: 0; }

/* ── 12. Design panel ────────────────────────────────────────────────── */

.design-tpl__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.design-tpl__group { display: flex; flex-direction: column; gap: 0.35rem; }

.design-tpl__group-title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.design-tpl__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.design-tpl {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  text-align: left;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 46px;
}

.design-tpl:hover { border-color: var(--y-400); background: var(--y-50); }

.design-tpl[aria-pressed="true"] {
  border-color: var(--y-500);
  background: var(--y-50);
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.22);
}

.design-tpl__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.design-tpl__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.design-tpl__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-tpl__meta {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: var(--ls-wide);
}

.design-empty {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  text-align: center;
  padding: var(--s-4);
  margin: 0;
}

.design-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.design-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--swatch, var(--y-500));
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.design-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--y-500);
}

.design-swatch[aria-pressed="true"],
.design-swatch.is-active {
  box-shadow: 0 0 0 2px var(--ink);
}

/* ── 13. Photo row ───────────────────────────────────────────────────── */

.photo-row {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

.photo-preview {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: var(--r-md);
  background: var(--paper-3);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-preview.has-photo {
  border-color: var(--y-500);
}

.photo-empty__mark {
  color: var(--ink-4);
}

.photo-empty__mark svg {
  width: 32px;
  height: 32px;
}

.photo-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.photo-controls .btn { align-self: flex-start; }

/* ── 14. Resumes panel ───────────────────────────────────────────────── */

.resumes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

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

.resumes-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.resumes-row:hover {
  border-color: var(--y-300);
}

.resumes-row.is-active {
  border-color: var(--y-500);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.14);
}

.resumes-row__pick {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  text-align: left;
  transition: background-color var(--t-fast);
}

.resumes-row__pick:hover { background: var(--paper-2); }

.resumes-row__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resumes-row__meta {
  font-size: var(--fs-2xs);
  color: var(--ink-3);
}

.resumes-row__actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-inline: 0.35rem;
  flex-shrink: 0;
}

.resumes-empty {
  padding: var(--s-6) var(--s-4);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px dashed var(--line-3);
  border-radius: var(--r-md);
  margin: 0;
}

.resumes-quota {
  margin-top: var(--s-4);
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  line-height: 1.55;
  text-align: center;
}

.resumes-quota b {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

/* ── 15. Save indicator ──────────────────────────────────────────────── */

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  color: var(--ink-3);
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  white-space: nowrap;
}

.save-indicator[data-state="saving"] {
  background: var(--y-50);
  border-color: var(--y-200);
  color: var(--y-800);
}

.save-indicator[data-state="error"] {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger);
}

.save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink-4);
}

.save-dot--ok { background: var(--success); }
.save-dot--err { background: var(--danger); }
.save-dot--pulse {
  background: var(--y-500);
  animation: save-pulse 1s ease-in-out infinite;
}

@keyframes save-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

@media (max-width: 720px) {
  .save-indicator { display: none; }
}

/* ── 16. Preview column ──────────────────────────────────────────────── */

.editor__preview {
  display: none; /* hidden on mobile — preview is a tab */
  min-width: 0;
}

@media (min-width: 1024px) {
  .editor__preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper-3);
    min-width: 0;
    overflow: hidden;
  }
}

.editor__preview-toolbar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.6rem var(--s-4);
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.editor__completeness {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 200px;
  max-width: 260px;
  flex: 1 1 200px;
}

.ed-completeness__text {
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  margin: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

@media (max-width: 1080px) {
  .editor__completeness { display: none; }
}

.editor__preview-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: clamp(14px, 2.5vw, 28px);
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.editor__preview-frame {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  aspect-ratio: 210 / 297;
  background: var(--paper);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.08),
    0 20px 40px -18px rgba(15, 23, 42, 0.20);
  border-radius: 3px;
  overflow: hidden;
  transform: scale(var(--ed-zoom, 1));
  transform-origin: top center;
  transition: transform var(--t-base);
}

.editor__preview-frame > .resume {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--ed-zoom, 1));
  min-height: calc(100% / var(--ed-zoom, 1));
  transform: scale(var(--ed-zoom, 1));
  transform-origin: top left;
  box-shadow: none;
  border-radius: 0;
}

/* ── 17. Mobile preview tab ──────────────────────────────────────────── */

.editor__panel-body--preview-mobile {
  display: block;
}

.editor__panel-body--preview-mobile .editor__preview-scroll {
  padding: 0;
  overflow: visible;
}

.editor__panel-body--preview-mobile .editor__preview-frame {
  margin-inline: auto;
}

/* ── 18. Empty/hint states ───────────────────────────────────────────── */

.ed-hint {
  padding: var(--s-4);
  background: var(--y-50);
  border: 1px solid var(--y-200);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--y-900);
  line-height: 1.55;
}

.ed-hint strong { color: var(--y-900); }

/* ── 19. Field validation summary ────────────────────────────────────── */

.ed-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.5;
  border: 1px solid var(--line-2);
}

.ed-summary--info { background: var(--info-bg); border-color: var(--info-line); color: #1E3A8A; }
.ed-summary--warning { background: var(--warning-bg); border-color: var(--warning-line); color: #78350F; }
.ed-summary--error { background: var(--danger-bg); border-color: var(--danger-line); color: #7F1D1D; }

.ed-summary svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── 20. Print: hide the editor entirely ─────────────────────────────── */

@media print {
  .editor,
  .editor__tabs,
  .editor__panels,
  .editor__preview-toolbar,
  .save-indicator,
  .site-header .site-nav,
  .site-header .header-actions .btn {
    display: none !important;
  }
  .app--editor main.editor { display: block; padding: 0; }
  .editor__workspace { display: block; height: auto; }
  .editor__preview {
    display: block !important;
    height: auto;
    background: transparent;
  }
  .editor__preview-scroll { padding: 0; overflow: visible; }
  .editor__preview-frame {
    max-width: none;
    aspect-ratio: auto;
    box-shadow: none;
    transform: none !important;
  }
  .editor__preview-frame > .resume {
    position: static;
    width: 100%;
    min-height: 0;
    transform: none !important;
  }
}

/* ── 21. Reduced motion ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .editor__preview-frame { transition: none; }
  .save-dot--pulse { animation: none; }
}