/* Keep each rendered page at A4 preview height so pagination has a stable visual boundary. */
#editor-resume.is-paged-document {
  display: block !important;
  grid-template-columns: none !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#editor-resume .paged-resume-page {
  width: 794px !important;
  min-height: 1123px !important;
  height: 1123px !important;
  max-height: 1123px !important;
  overflow: hidden !important;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

#editor-resume .paged-page-content {
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#editor-resume .paged-document {
  display: block;
}

#editor-resume .paged-page-divider {
  height: 40px;
  background: transparent;
}

/* Use padding so first li on a new page keeps spacing even without a preceding sibling. */
#editor-resume .t1-text li,
#editor-resume .t3-text li,
#editor-resume .t4-text li,
#editor-resume .t5-text li,
#editor-resume .t6-text li,
#editor-resume .t7-text li,
#editor-resume .t8-text li,
#editor-resume .resume-item-desc li {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Force content font-size slider to win over template-hardcoded sizes.
   Intentionally excludes module titles (h2 / *-sec-title / t5-title). */
#editor-resume .resume-item,
#editor-resume .resume-item-header,
#editor-resume .resume-item-header *,
#editor-resume .resume-item-desc,
#editor-resume .resume-item-desc *,
#editor-resume .resume-section p,
#editor-resume .resume-section li,
#editor-resume .resume-contact,
#editor-resume .resume-contact *,
#editor-resume .resume-meta,
#editor-resume .resume-meta *,
#editor-resume .t1-info-line,
#editor-resume .t1-info-line *,
#editor-resume .t1-skill-detail,
#editor-resume .t1-skill-detail *,
#editor-resume .t1-skill-bar-item,
#editor-resume .t2-skill-name,
#editor-resume .hobby-tag,
#editor-resume .t3-text,
#editor-resume .t3-text *,
#editor-resume .t3-row3,
#editor-resume .t3-row3 *,
#editor-resume .t3-basic-item,
#editor-resume .t3-basic-item *,
#editor-resume .t4-text,
#editor-resume .t4-text *,
#editor-resume .t4-row3,
#editor-resume .t4-row3 *,
#editor-resume .t4-job,
#editor-resume .t4-job *,
#editor-resume .t5-text,
#editor-resume .t5-text *,
#editor-resume .t5-row3,
#editor-resume .t5-row3 *,
#editor-resume .t5-info-grid > span,
#editor-resume .t5-info-grid > span *,
#editor-resume .t7-text,
#editor-resume .t7-text *,
#editor-resume .t7-self,
#editor-resume .t7-list,
#editor-resume .t7-list *,
#editor-resume .t7-row3,
#editor-resume .t7-row3 *,
#editor-resume .t7-basic-grid,
#editor-resume .t7-basic-grid :where(div, span, b, strong, em),
#editor-resume .t7-bars,
#editor-resume .t7-bars * {
  font-size: var(--resume-font-size, 12px) !important;
}

.settings-hint {
  margin: 0;
  color: #888;
  font-size: 13px;
  line-height: 1.6;
}

#font-panel .font-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Module titles follow title font/size controls (not content font-size). */
#editor-resume.resume-paper .resume-section > h2,
#editor-resume.resume-paper .resume-side-section > h3,
#editor-resume.resume-paper .t3-sec-title > span,
#editor-resume.resume-paper .t3-sec-title .t3-title-label,
#editor-resume.resume-paper .t3-title-label,
#editor-resume.resume-paper .t4-sec-title,
#editor-resume.resume-paper .t4-sec-bar > span,
#editor-resume.resume-paper .t5-title,
#editor-resume.resume-paper .t5-sec-wrap > h2,
#editor-resume.resume-paper .t7-sec-title,
#editor-resume.resume-paper .t7-sec-title span,
#editor-resume.resume-paper[data-tpl="tpl-3"] .t3-title-label,
#editor-resume.resume-paper[data-tpl="tpl-4"] .t4-sec-bar > span,
#editor-resume.resume-paper[data-tpl="tpl-5"] .t5-sec-wrap > h2 {
  font-family: var(--resume-title-font-family, var(--resume-font-family, "Microsoft YaHei", "PingFang SC", sans-serif)) !important;
  font-size: var(--resume-title-font-size, 15px) !important;
}

/* Resume assistant panel: one content column, even spacing */
.editor-ai-panel {
  padding: 16px 14px 18px !important;
  box-sizing: border-box;
}
.editor-ai-panel h3 {
  margin: 0 0 12px !important;
  padding: 0 2px;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.45;
  color: #1f2a37 !important;
  text-align: left;
}
.editor-ai-panel .ai-buttons {
  display: flex !important;
  justify-content: stretch !important;
  align-items: center;
  gap: 0 !important;
  margin: 0 0 14px !important;
}
.editor-ai-panel .ai-buttons button[data-ai-write-resume] {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 4px !important;
  background: #ff8c2a !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.editor-ai-panel .faq-card {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid #e8edf3 !important;
  border-bottom: 0 !important;
}
.editor-ai-panel .faq-card .faq-item {
  padding: 11px 2px !important;
  border-bottom: 1px solid #e8edf3 !important;
  line-height: 1.5 !important;
}
.editor-ai-panel .faq-card .faq-item:last-child {
  border-bottom: 0 !important;
}
.editor-ai-panel .faq-card .faq-question {
  font-size: 12.5px !important;
  color: #3a4656 !important;
}
.editor-ai-panel .faq-card .faq-answer {
  margin-top: 6px !important;
  padding-right: 2px;
  font-size: 12px !important;
  line-height: 1.65 !important;
}
.editor-ai-panel .side-color-card {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e8edf3 !important;
}
.editor-ai-panel .side-color-card strong {
  margin-bottom: 12px !important;
  padding: 0 2px;
  font-size: 13px !important;
  font-weight: 700;
  color: #1f2a37 !important;
}
.editor-ai-panel .side-color-dots {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 8px 6px !important;
  width: 100%;
  justify-items: center;
}
.editor-ai-panel .side-color-dot {
  width: 20px !important;
  height: 20px !important;
}
.editor-ai-panel .side-custom-color {
  margin-top: 12px !important;
  padding: 0 2px;
  font-size: 12.5px !important;
  color: #3a4656 !important;
}

/* Form zone: slightly lower default height; right-side drag resize handle */
.editor-form-zone {
  height: 40vh;
  max-height: 40vh;
  /* Reserve scrollbar space so appearing/disappearing scrollbars don't shift content sideways */
  scrollbar-gutter: stable;
  overflow-y: scroll !important;
  transition: height .45s cubic-bezier(.4, 0, .2, 1), max-height .45s cubic-bezier(.4, 0, .2, 1) !important;
}
.editor-form-zone.collapsed:not(.is-animating-height) {
  /* Must fit toggle-on-top + label-below tab row (~84px), not the old single-line 46px */
  height: 88px !important;
  max-height: 88px !important;
  overflow: hidden !important;
  scrollbar-gutter: auto;
}
.editor-form-zone.is-animating-height {
  overflow: hidden !important;
  /* Height driven by inline style during expand/collapse animation */
}
/* Keep collapse/expand control above the form zone hit area */
.preview-toggle-btn {
  z-index: 220 !important;
  pointer-events: auto !important;
}
.editor-tabs {
  /* Sticky tab bar; content group is centered in flex (no far-right absolute handle) */
  position: sticky !important;
  padding-right: 16px !important;
}
.form-zone-resize-handle {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  z-index: 100;
  width: 44px;
  height: 44px;
  margin: 0 0 0 8px;
  padding: 0;
  border: 1px solid #c8e8df;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fffc 0%, #e9faf4 100%);
  color: #19c9a5;
  cursor: ns-resize;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  touch-action: none;
  user-select: none;
  box-shadow: 0 1px 3px rgba(25, 201, 165, 0.14);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.form-zone-resize-tip {
  position: fixed;
  z-index: 5000;
  min-width: 0;
  max-width: min(420px, calc(100vw - 24px));
  padding: 28px 36px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(145deg, #1fd6b0 0%, #12a88a 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
  box-shadow:
    0 16px 40px rgba(18, 168, 138, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.22) inset;
  box-sizing: border-box;
  margin: 0;
}
.form-zone-resize-tip::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -10px;
  width: 20px;
  height: 20px;
  background: #12a88a;
  transform: rotate(45deg);
  border-radius: 3px;
  box-shadow: 3px 3px 12px rgba(18, 168, 138, 0.25);
}
.form-zone-resize-tip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.form-zone-resize-tip.is-fading {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity .45s ease, transform .45s ease;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}
.form-zone-resize-handle:hover,
.form-zone-resize-handle.is-dragging {
  border-color: #19c9a5;
  background: linear-gradient(180deg, #eefbf7 0%, #d9f5ec 100%);
  color: #0f9e82;
  box-shadow: 0 4px 12px rgba(25, 201, 165, 0.22);
}
.form-zone-resize-grip {
  display: block;
  width: 18px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 1px / 100% 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5.5px / 100% 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 100% 2.5px no-repeat;
  opacity: 0.9;
}
.editor-form-zone.collapsed .form-zone-resize-handle {
  display: inline-flex !important;
  align-self: center !important;
  /* Stay visible on the right when the tab row scrolls horizontally */
  position: sticky !important;
  right: 8px !important;
  z-index: 6 !important;
  margin-left: 12px !important;
  background: linear-gradient(180deg, #f8fffc 0%, #e9faf4 100%) !important;
  box-shadow: -8px 0 12px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(25, 201, 165, 0.14) !important;
}
.editor-form-zone.is-resizing {
  transition: none !important;
  user-select: none;
}
@media (max-width: 768px) {
  .form-zone-resize-handle {
    display: none !important;
  }
  .editor-tabs {
    padding: 8px 12px !important;
  }
}

/* Basic info: extra fields + custom rows */
.basic-more-block {
  margin-top: 14px;
  padding-top: 4px;
}
.basic-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #19c9a5;
  font-size: 13px;
  cursor: pointer;
}
.basic-more-toggle::before {
  content: "▲";
  font-size: 10px;
  line-height: 1;
}
.basic-more-toggle[aria-expanded="false"]::before {
  content: "▼";
}
.basic-more-body.is-collapsed {
  display: none;
}
.basic-custom-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.basic-custom-item,
.basic-custom-composer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.basic-custom-item input,
.basic-custom-composer input {
  height: 34px;
  min-width: 140px;
  flex: 1 1 160px;
  padding: 0 10px;
  border: 1px solid #d9e0ea;
  border-radius: 3px;
  background: #f7f8fa;
  color: #333;
  font-size: 13px;
  box-sizing: border-box;
}
.basic-custom-item input:focus,
.basic-custom-composer input:focus {
  outline: none;
  border-color: #19c9a5;
  background: #fff;
}
.basic-custom-sep {
  color: #98a2b3;
  font-size: 14px;
  flex: 0 0 auto;
}
.basic-custom-remove {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #e5eaf0;
  border-radius: 3px;
  background: #fff;
  color: #667085;
  font-size: 12px;
  cursor: pointer;
}
.basic-custom-remove:hover {
  color: #d92d20;
  border-color: #f3c6c2;
  background: #fff5f5;
}
/* Richtext bold/italic/underline in preview (tpl-1/tpl-2 force font-weight:400 on desc *) */
.resume-paper[data-tpl="tpl-1"] .resume-item-desc b,
.resume-paper[data-tpl="tpl-1"] .resume-item-desc strong,
.resume-paper[data-tpl="tpl-1"] .resume-section p b,
.resume-paper[data-tpl="tpl-1"] .resume-section p strong,
.resume-paper[data-tpl="tpl-1"] .resume-section li b,
.resume-paper[data-tpl="tpl-1"] .resume-section li strong,
.resume-paper[data-tpl="tpl-1"] .t1-skill-detail b,
.resume-paper[data-tpl="tpl-1"] .t1-skill-detail strong,
.resume-paper[data-tpl="tpl-1"] .resume-item-desc span[style*="font-weight"],
.resume-paper[data-tpl="tpl-1"] .resume-section p span[style*="font-weight"],
.resume-paper[data-tpl="tpl-1"] .resume-section li span[style*="font-weight"],
.resume-paper[data-tpl="tpl-1"] .t1-skill-detail span[style*="font-weight"],
.resume-paper[data-tpl="tpl-2"] .resume-item-desc b,
.resume-paper[data-tpl="tpl-2"] .resume-item-desc strong,
.resume-paper[data-tpl="tpl-2"] .resume-section p b,
.resume-paper[data-tpl="tpl-2"] .resume-section p strong,
.resume-paper[data-tpl="tpl-2"] .resume-section li b,
.resume-paper[data-tpl="tpl-2"] .resume-section li strong,
.resume-paper[data-tpl="tpl-2"] .resume-item-desc span[style*="font-weight"],
.resume-paper[data-tpl="tpl-2"] .resume-section p span[style*="font-weight"],
.resume-paper[data-tpl="tpl-2"] .resume-section li span[style*="font-weight"] {
  font-weight: 700 !important;
}
.resume-paper[data-tpl="tpl-1"] .resume-item-desc i,
.resume-paper[data-tpl="tpl-1"] .resume-item-desc em,
.resume-paper[data-tpl="tpl-1"] .resume-section p i,
.resume-paper[data-tpl="tpl-1"] .resume-section p em,
.resume-paper[data-tpl="tpl-1"] .resume-section li i,
.resume-paper[data-tpl="tpl-1"] .resume-section li em,
.resume-paper[data-tpl="tpl-1"] .t1-skill-detail i,
.resume-paper[data-tpl="tpl-1"] .t1-skill-detail em,
.resume-paper[data-tpl="tpl-2"] .resume-item-desc i,
.resume-paper[data-tpl="tpl-2"] .resume-item-desc em,
.resume-paper[data-tpl="tpl-2"] .resume-section p i,
.resume-paper[data-tpl="tpl-2"] .resume-section p em,
.resume-paper[data-tpl="tpl-2"] .resume-section li i,
.resume-paper[data-tpl="tpl-2"] .resume-section li em {
  font-style: italic !important;
}
.resume-paper[data-tpl="tpl-1"] .resume-item-desc u,
.resume-paper[data-tpl="tpl-1"] .resume-section p u,
.resume-paper[data-tpl="tpl-1"] .resume-section li u,
.resume-paper[data-tpl="tpl-1"] .t1-skill-detail u,
.resume-paper[data-tpl="tpl-2"] .resume-item-desc u,
.resume-paper[data-tpl="tpl-2"] .resume-section p u,
.resume-paper[data-tpl="tpl-2"] .resume-section li u {
  text-decoration: underline !important;
}

/* Skill duplicate toast: fade in 1s → hold 1s → fade out */
.skill-dup-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  z-index: 5200;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}
.skill-dup-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.skill-dup-toast.is-fading {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px) scale(0.98);
  transition: opacity .55s ease, transform .55s ease;
}
.skill-dup-toast-card {
  min-width: 220px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 20px 28px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff8a4c 0%, #f05a28 100%);
  color: #fff;
  text-align: center;
  box-shadow:
    0 16px 40px rgba(240, 90, 40, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.2) inset;
  box-sizing: border-box;
}
.skill-dup-toast-card strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.skill-dup-toast-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.4;
}

/* T1 denser default layout: sample content fits one A4 page (no content cut). */
#editor-resume[data-tpl="tpl-1"] .t1-header-block,
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-header-block {
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  gap: 20px !important;
}
#editor-resume[data-tpl="tpl-1"] .resume-section,
#editor-resume.resume-paper[data-tpl="tpl-1"] .resume-section {
  padding-top: 0 !important;
}
#editor-resume[data-tpl="tpl-1"] .t1-header-block + .resume-section,
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-header-block + .resume-section,
.paged-page-content > .t1-header-block + .resume-section {
  margin-top: 0 !important;
}
#editor-resume[data-tpl="tpl-1"] .resume-item,
#editor-resume.resume-paper[data-tpl="tpl-1"] .resume-item {
  margin-bottom: 6px !important;
}
#editor-resume[data-tpl="tpl-1"] .t1-skill-bars,
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-skill-bars {
  margin-top: 6px !important;
  row-gap: 6px !important;
}
#editor-resume[data-tpl="tpl-1"] .t1-skill-detail p,
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-skill-detail p {
  margin: 2px 0 !important;
}

/* Skill bars: 2 equal columns; fixed name width (78px) so bars align; short bar */
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-skill-bars,
#editor-resume[data-tpl="tpl-1"] .t1-skill-bars,
#editor-resume.resume-paper[data-tpl="tpl-3"] .t3-skill-bars,
#editor-resume[data-tpl="tpl-3"] .t3-skill-bars,
#editor-resume.resume-paper[data-tpl="tpl-4"] .t4-bars,
#editor-resume[data-tpl="tpl-4"] .t4-bars,
#editor-resume.resume-paper[data-tpl="tpl-5"] .t5-bars,
#editor-resume[data-tpl="tpl-5"] .t5-bars,
#editor-resume.resume-paper[data-tpl="tpl-7"] .t7-bars,
#editor-resume[data-tpl="tpl-7"] .t7-bars {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  width: 100% !important;
  max-width: none !important;
  column-gap: 32px !important;
  row-gap: 8px !important;
  box-sizing: border-box !important;
}
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-skill-bar-item,
#editor-resume[data-tpl="tpl-1"] .t1-skill-bar-item,
#editor-resume.resume-paper[data-tpl="tpl-3"] .t3-skill-bars > div,
#editor-resume[data-tpl="tpl-3"] .t3-skill-bars > div,
#editor-resume.resume-paper[data-tpl="tpl-4"] .t4-bars > div,
#editor-resume[data-tpl="tpl-4"] .t4-bars > div,
#editor-resume.resume-paper[data-tpl="tpl-5"] .t5-bars > div,
#editor-resume[data-tpl="tpl-5"] .t5-bars > div,
#editor-resume.resume-paper[data-tpl="tpl-7"] .t7-bars > div,
#editor-resume[data-tpl="tpl-7"] .t7-bars > div,
#editor-resume.resume-paper[data-tpl="tpl-2"] .t2-skill-item,
#editor-resume[data-tpl="tpl-2"] .t2-skill-item {
  display: grid !important;
  grid-template-columns: 78px 64px max-content !important;
  column-gap: 8px !important;
  align-items: center !important;
  justify-content: start !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-skill-bar-item > span,
#editor-resume[data-tpl="tpl-1"] .t1-skill-bar-item > span,
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-skill-bar-item > strong,
#editor-resume[data-tpl="tpl-1"] .t1-skill-bar-item > strong,
#editor-resume.resume-paper[data-tpl="tpl-3"] .t3-skill-bars > div > span,
#editor-resume[data-tpl="tpl-3"] .t3-skill-bars > div > span,
#editor-resume.resume-paper[data-tpl="tpl-4"] .t4-bars > div > span,
#editor-resume[data-tpl="tpl-4"] .t4-bars > div > span,
#editor-resume.resume-paper[data-tpl="tpl-5"] .t5-bars > div > span,
#editor-resume[data-tpl="tpl-5"] .t5-bars > div > span,
#editor-resume.resume-paper[data-tpl="tpl-7"] .t7-bars > div > span,
#editor-resume[data-tpl="tpl-7"] .t7-bars > div > span,
#editor-resume.resume-paper[data-tpl="tpl-2"] .t2-skill-name,
#editor-resume[data-tpl="tpl-2"] .t2-skill-name {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.35 !important;
}
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-skill-meter,
#editor-resume[data-tpl="tpl-1"] .t1-skill-meter,
#editor-resume.resume-paper[data-tpl="tpl-2"] .skill-line,
#editor-resume[data-tpl="tpl-2"] .skill-line,
#editor-resume.resume-paper[data-tpl="tpl-3"] .t3-skill-bars b,
#editor-resume[data-tpl="tpl-3"] .t3-skill-bars b,
#editor-resume.resume-paper[data-tpl="tpl-4"] .t4-bars b,
#editor-resume[data-tpl="tpl-4"] .t4-bars b,
#editor-resume.resume-paper[data-tpl="tpl-5"] .t5-bars b,
#editor-resume[data-tpl="tpl-5"] .t5-bars b,
#editor-resume.resume-paper[data-tpl="tpl-7"] .t7-bars b,
#editor-resume[data-tpl="tpl-7"] .t7-bars b {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  justify-self: start !important;
}
#editor-resume.resume-paper[data-tpl="tpl-1"] .t1-skill-bar-item em,
#editor-resume[data-tpl="tpl-1"] .t1-skill-bar-item em,
#editor-resume.resume-paper[data-tpl="tpl-2"] .t2-skill-item em,
#editor-resume[data-tpl="tpl-2"] .t2-skill-item em,
#editor-resume.resume-paper[data-tpl="tpl-3"] .t3-skill-bars em,
#editor-resume[data-tpl="tpl-3"] .t3-skill-bars em,
#editor-resume.resume-paper[data-tpl="tpl-4"] .t4-bars em,
#editor-resume[data-tpl="tpl-4"] .t4-bars em,
#editor-resume.resume-paper[data-tpl="tpl-5"] .t5-bars em,
#editor-resume[data-tpl="tpl-5"] .t5-bars em,
#editor-resume.resume-paper[data-tpl="tpl-7"] .t7-bars em,
#editor-resume[data-tpl="tpl-7"] .t7-bars em {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: left !important;
  font-style: normal !important;
  white-space: nowrap !important;
  padding-left: 2px !important;
  justify-self: start !important;
}

/* tpl-2: show skill description text above skill bars in sidebar */
#editor-resume.resume-paper[data-tpl="tpl-2"] .t2-skill-desc,
#editor-resume[data-tpl="tpl-2"] .t2-skill-desc,
#editor-resume .t2-page .t2-skill-desc {
  display: block !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
}
#editor-resume.resume-paper[data-tpl="tpl-2"] .t2-skill-desc p,
#editor-resume[data-tpl="tpl-2"] .t2-skill-desc p,
#editor-resume .t2-page .t2-skill-desc p {
  margin: 0 0 8px !important;
  color: inherit !important;
}
#editor-resume.resume-paper[data-tpl="tpl-2"] .t2-skill-desc p:last-child,
#editor-resume[data-tpl="tpl-2"] .t2-skill-desc p:last-child,
#editor-resume .t2-page .t2-skill-desc p:last-child {
  margin-bottom: 0 !important;
}
#editor-resume.resume-paper[data-tpl="tpl-2"] .t2-skill-desc strong,
#editor-resume[data-tpl="tpl-2"] .t2-skill-desc strong,
#editor-resume.resume-paper[data-tpl="tpl-2"] .t2-skill-desc b,
#editor-resume[data-tpl="tpl-2"] .t2-skill-desc b,
#editor-resume .t2-page .t2-skill-desc strong,
#editor-resume .t2-page .t2-skill-desc b {
  font-weight: 700 !important;
  color: #fff !important;
}

.basic-custom-composer .form-add-custom-btn {
  flex: 0 0 auto;
}

/* Tab layout: toggle on top with arrows flanking; bold name below */
#editor-tabs.editor-tabs {
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 6px 20px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  box-sizing: border-box !important;
}
.editor-form-zone.collapsed #editor-tabs.editor-tabs {
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-bottom: none !important;
}
.editor-form-zone.collapsed #editor-tabs .tab-item {
  min-height: 0 !important;
  height: auto !important;
  padding: 4px 6px !important;
  gap: 4px !important;
  justify-content: center !important;
}
.editor-form-zone.collapsed #editor-tabs .tab-name-row {
  min-height: 18px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.editor-form-zone.collapsed #editor-tabs .tab-label {
  font-size: 15px !important;
  line-height: 1.2 !important;
}
.editor-form-zone.collapsed .editor-form {
  display: none !important;
}
#editor-tabs .global-save-resume-btn {
  height: 36px !important;
  padding: 0 18px !important;
  margin: 0 4px 0 0 !important;
  border-radius: 10px !important;
  border: 1.5px solid #19c9a5 !important;
  background: #fff !important;
  color: #12a88a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  align-self: center !important;
  box-shadow: 0 1px 4px rgba(25, 201, 165, 0.12);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}
#editor-tabs .global-save-resume-btn:hover {
  background: #effffb !important;
  box-shadow: 0 4px 12px rgba(25, 201, 165, 0.2);
}
#editor-tabs .tab-item {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 64px !important;
  gap: 6px !important;
  padding: 6px 8px !important;
  flex: 0 0 auto !important;
}
#editor-tabs .tab-ctrl-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  order: 0;
}
#editor-tabs .tab-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 22px;
  max-width: 100%;
  order: 1;
}
#editor-tabs .tab-label {
  font-weight: 700 !important;
  color: #333 !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em;
}
#editor-tabs .tab-item:hover:not(.is-off) .tab-label,
#editor-tabs .tab-item.active:not(.is-off) .tab-label {
  color: #ff8c2a !important;
}
#editor-tabs .tab-item.is-off .tab-label,
#editor-tabs .tab-item.is-off:hover .tab-label,
#editor-tabs .tab-item.is-off.active .tab-label {
  color: #bdbdbd !important;
}
#editor-tabs .tab-toggle {
  width: 36px !important;
  height: 20px !important;
  border-radius: 10px !important;
  cursor: pointer;
  flex-shrink: 0 !important;
}
#editor-tabs .tab-toggle::after {
  width: 16px !important;
  height: 16px !important;
  top: 2px !important;
  left: 2px !important;
}
#editor-tabs .tab-toggle.on::after {
  transform: translateX(16px) !important;
}
#editor-tabs .tab-move-btn {
  display: inline-flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #19c9a5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: opacity .15s ease;
  /* Keep layout slot so showing arrows does not shift neighbors */
}
#editor-tabs .tab-move-btn .tab-move-icon {
  display: block;
  line-height: 1;
  height: 1em;
  /* Optical center: chevron glyphs sit low in the em box */
  transform: translateY(-1.5px);
}
#editor-tabs .tab-item.active:not([data-section="basic"]) .tab-move-btn.is-visible {
  visibility: visible;
  opacity: 0.5;
  pointer-events: auto;
}
#editor-tabs .tab-move-btn:disabled {
  cursor: default;
}
#editor-tabs .tab-item.active:not([data-section="basic"]) .tab-move-btn.is-visible:disabled {
  opacity: 0.25;
  pointer-events: none;
}
#editor-tabs .tab-item.active:not([data-section="basic"]) .tab-move-btn.is-visible:not(:disabled):hover {
  opacity: 1;
}
#editor-tabs .form-zone-resize-handle {
  position: sticky !important;
  top: auto !important;
  right: 8px !important;
  transform: none !important;
  width: 44px !important;
  height: 44px !important;
  margin-left: 8px !important;
  align-self: center !important;
  z-index: 5 !important;
  flex-shrink: 0 !important;
}
