.resume-editor-toolbar,
.resume-editor-toast,
.resume-image-input,
.resume-editor-help {
  display: none;
}

body.resume-editor-mode {
  padding-top: calc(var(--editor-toolbar-height, 18mm) + 8mm);
}

.resume-editor-mode .resume-editor-toolbar {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 18mm;
  padding: 3mm 5mm;
  gap: 2mm;
  color: #f6f6f4;
  background: #171717;
  border-bottom: 0.35mm solid #f2a900;
  box-shadow: 0 2mm 8mm rgba(0, 0, 0, 0.18);
  font-family: "Microsoft YaHei", Arial, sans-serif;
  overflow: visible;
}

.resume-editor-brand {
  display: grid;
  gap: 0.6mm;
  min-width: 46mm;
  margin-right: auto;
  flex: 1 1 42mm;
}

.resume-editor-brand strong {
  font-size: 11pt;
  line-height: 1;
}

.resume-editor-status {
  color: #bdbdbd;
  font-size: 7.5pt;
  line-height: 1.1;
}

.resume-editor-toolbar button,
.resume-editor-toolbar label {
  height: 9mm;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.3mm;
  border: 0.28mm solid #4b4b4b;
  border-radius: 1.5mm;
  color: #f4f4f4;
  background: #292929;
  font: 700 8pt/1 "Microsoft YaHei", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.resume-font-control {
  height: 9mm;
  display: inline-flex;
  align-items: center;
  gap: 1mm;
  padding: 0 1.2mm;
  border: 0.28mm solid #4b4b4b;
  border-radius: 1.5mm;
  background: #222;
  flex: 0 0 auto;
}

.resume-letter-control {
  height: 9mm;
  display: inline-flex;
  align-items: center;
  gap: 1mm;
  padding: 0 1.2mm;
  border: 0.28mm solid #4b4b4b;
  border-radius: 1.5mm;
  background: #222;
  flex: 0 0 auto;
}

.resume-letter-control > span {
  padding-left: 1mm;
  color: #d0d0d0;
  font-size: 7.5pt;
  white-space: nowrap;
}

.resume-editor-toolbar .resume-letter-control button {
  width: 7mm;
  height: 6.5mm;
  padding: 0;
  border: 0;
  border-radius: 1mm;
}

.resume-editor-toolbar .resume-letter-control [data-action="letter-reset"] {
  width: auto;
  padding: 0 1.8mm;
  font-size: 7pt;
}

.resume-letter-control input {
  width: 13mm;
  height: 6.5mm;
  padding: 0 1mm;
  border: 0.28mm solid #555;
  border-radius: 1mm;
  color: #111;
  background: #fff;
  font: 700 8pt/1 Arial, sans-serif;
  text-align: center;
}

.resume-letter-control input:disabled {
  color: #777;
  background: #d8d8d8;
}

.resume-font-control > span {
  padding-left: 1mm;
  color: #d0d0d0;
  font-size: 7.5pt;
  white-space: nowrap;
}

.resume-editor-toolbar .resume-font-control button {
  width: 7mm;
  height: 6.5mm;
  padding: 0;
  border: 0;
  border-radius: 1mm;
}

.resume-font-control input {
  width: 13mm;
  height: 6.5mm;
  padding: 0 1mm;
  border: 0.28mm solid #555;
  border-radius: 1mm;
  color: #111;
  background: #fff;
  font: 700 8pt/1 Arial, sans-serif;
  text-align: center;
}

.resume-font-control input:disabled {
  color: #777;
  background: #d8d8d8;
}

.resume-editor-toolbar .resume-font-reset {
  width: auto !important;
  padding: 0 1.8mm !important;
  color: #d8d8d8;
  font-size: 7pt;
}

.resume-format-control,
.resume-style-control,
.resume-align-control,
.resume-row-control,
.resume-module-control,
.resume-position-control {
  height: 9mm;
  display: inline-flex;
  align-items: center;
  gap: 0.8mm;
  padding: 0 1.2mm;
  border: 0.28mm solid #4b4b4b;
  border-radius: 1.5mm;
  background: #222;
  flex: 0 0 auto;
}

.resume-format-control > span,
.resume-style-control > span,
.resume-align-control > span,
.resume-row-control > span,
.resume-module-control > span,
.resume-position-control > span {
  padding: 0 0.8mm;
  color: #d0d0d0;
  font-size: 7.5pt;
  white-space: nowrap;
}

.resume-editor-toolbar .resume-format-control button,
.resume-editor-toolbar .resume-style-control button,
.resume-editor-toolbar .resume-align-control button,
.resume-editor-toolbar .resume-row-control button,
.resume-editor-toolbar .resume-module-control button,
.resume-editor-toolbar .resume-position-control button {
  min-width: 7mm;
  height: 6.5mm;
  padding: 0 1.2mm;
  border: 0;
  border-radius: 1mm;
}

@media (min-width: 1700px) {
  .resume-editor-mode .resume-editor-toolbar {
    flex-wrap: wrap;
    gap: 1.3mm;
    padding: 2.2mm 3mm;
  }

  .resume-editor-brand {
    min-width: 34mm;
    flex: 0 0 34mm;
    margin-right: 0;
  }

  .resume-editor-toolbar button,
  .resume-editor-toolbar label {
    height: 8.2mm;
    padding: 0 2.2mm;
    font-size: 7.5pt;
  }

  .resume-font-control,
  .resume-letter-control,
  .resume-format-control,
  .resume-style-control,
  .resume-align-control,
  .resume-row-control,
  .resume-module-control,
  .resume-position-control {
    height: 8.2mm;
    gap: 0.55mm;
    padding: 0 0.8mm;
  }

  .resume-style-control select {
    width: 24mm;
  }
}

@media (max-width: 1699px) {
  .resume-editor-brand {
    flex: 1 1 100%;
    margin-right: 0;
  }
}

.resume-editor-mode .resume-page.has-editor-overflow {
  box-shadow: 0 0 0 1.2mm #d62828, 0 16px 48px rgba(0, 0, 0, 0.16);
}

.resume-style-control select {
  width: 28mm;
  height: 6.5mm;
  padding: 0 1.5mm;
  border: 0.28mm solid #555;
  border-radius: 1mm;
  color: #111;
  background: #fff;
  font: 700 7.5pt/1 "Microsoft YaHei", Arial, sans-serif;
}

.resume-style-control input[type="color"] {
  width: 8mm;
  height: 6.5mm;
  padding: 0.6mm;
  border: 0.28mm solid #555;
  border-radius: 1mm;
  background: #fff;
  cursor: pointer;
}

.resume-style-control select:disabled,
.resume-style-control input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.resume-editor-toolbar button.is-active {
  color: #111;
  background: #f2a900;
}

.resume-editor-toolbar [data-action="education-add"]:not(:disabled) {
  color: #111;
  border-color: #f2a900;
  background: #f2a900;
}

.resume-editor-toolbar [data-action="education-delete"]:not(:disabled) {
  color: #fff;
  border-color: #a83c3c;
  background: #7a2929;
}

.resume-editor-toolbar button:disabled {
  color: #777;
  background: #242424;
  cursor: not-allowed;
  opacity: 0.65;
}

.resume-editor-mode .is-editor-selected {
  outline-color: #f2a900 !important;
  outline-style: solid !important;
}

.resume-editor-mode .is-editor-module-selected {
  outline: 0.45mm dashed rgba(242, 169, 0, 0.95);
  outline-offset: 1.2mm;
}

.resume-editor-toolbar button:hover,
.resume-editor-toolbar label:hover {
  border-color: #f2a900;
  background: #333;
}

.resume-editor-toolbar .resume-editor-primary {
  color: #111;
  border-color: #f2a900;
  background: #f2a900;
}

.resume-editor-toolbar .resume-editor-danger:hover {
  color: #fff;
  border-color: #d14d4d;
  background: #7a2929;
}

.resume-editor-mode .resume-editable-text {
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.6mm;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  outline: 0.35mm dashed transparent;
  outline-offset: 0.5mm;
  cursor: text;
  transition: background 120ms ease, outline-color 120ms ease;
}

.resume-editor-mode .resume-editable-text:hover {
  background: rgba(242, 169, 0, 0.12);
  outline-color: rgba(242, 169, 0, 0.72);
}

.resume-editor-mode .resume-editable-text:focus {
  background: rgba(242, 169, 0, 0.18);
  outline: 0.55mm solid #f2a900;
}

.resume-editor-mode .resume-editable-image {
  cursor: pointer;
  outline: 0.55mm dashed rgba(242, 169, 0, 0.85);
  outline-offset: 0.7mm;
}

.resume-editor-mode .resume-editable-image:hover {
  filter: brightness(0.88);
}

.resume-editor-mode .resume-editable-visual {
  cursor: pointer;
  outline: 0.55mm dashed rgba(242, 169, 0, 0.85);
  outline-offset: 0.7mm;
}

.resume-editor-mode .resume-editable-visual:hover {
  filter: brightness(0.88);
}

.resume-editor-mode .skill-row b {
  cursor: pointer;
  outline: 0.35mm dashed transparent;
  outline-offset: 0.8mm;
}

.resume-editor-mode .skill-row b:hover {
  outline-color: #f2a900;
}

.resume-editor-mode .resume-editor-toast {
  position: fixed;
  z-index: 10001;
  right: 5mm;
  bottom: 5mm;
  display: block;
  max-width: 72mm;
  padding: 3mm 4mm;
  border-radius: 1.5mm;
  color: #fff;
  background: rgba(17, 17, 17, 0.94);
  box-shadow: 0 2mm 7mm rgba(0, 0, 0, 0.2);
  font: 8pt/1.45 "Microsoft YaHei", Arial, sans-serif;
  opacity: 0;
  transform: translateY(3mm);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.resume-editor-mode .resume-editor-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  body.resume-editor-mode {
    padding-top: calc(var(--editor-toolbar-height, 34mm) + 8mm);
  }

  .resume-editor-brand {
    flex-basis: 100%;
  }
}

@media print {
  body.resume-editor-mode {
    padding: 0;
  }

  .resume-editor-toolbar,
  .resume-editor-toast,
  .resume-image-input {
    display: none !important;
  }

  .resume-editor-mode .resume-editable-text,
  .resume-editor-mode .resume-editable-image,
  .resume-editor-mode .resume-editable-visual,
  .resume-editor-mode .skill-row b,
  .resume-editor-mode .is-editor-module-selected {
    outline: none !important;
    background: transparent !important;
    filter: none !important;
  }

  .resume-editor-mode .resume-page.has-editor-overflow {
    box-shadow: none !important;
  }
}
