.resume-app {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.resume-layout {
  display: flex;
  height: 100%;
}

/* ── Sidebar ── */
.resume-sidebar {
  width: 240px;
  min-width: 240px;
  background: #282A35;
  overflow-y: auto;
  flex-shrink: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.rs-group { padding: 4px 0; }
.rs-group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px 16px 4px;
  font-weight: 600;
}

.rs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  font-family: inherit;
}

.rs-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.rs-item.active {
  background: #04AA6D;
  color: #fff;
  border-left-color: #059862;
}

.rs-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rs-item.active .rs-item-icon {
  background: rgba(255, 255, 255, 0.2);
}

.rs-item-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.rs-item-title { font-size: 13px; font-weight: 500; }
.rs-item-desc { font-size: 10px; color: rgba(255, 255, 255, 0.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-item.active .rs-item-desc { color: rgba(255, 255, 255, 0.7); }

.rs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: all 0.2s;
}

.rs-dot.filled {
  background: #04AA6D;
  border-color: #04AA6D;
}

.rs-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 12px;
}

/* ── Main area ── */
.resume-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.resume-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e7e9eb;
  flex-shrink: 0;
}

.rt-btn {
  background: none;
  border: 1px solid #e7e9eb;
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.rt-btn:hover { background: #f5f5f5; }
.rt-btn.active {
  background: #04AA6D;
  color: #fff;
  border-color: #04AA6D;
}

.rt-spacer { flex: 1; }
.rt-template-label { font-size: 12px; color: #888; }

/* ── Form panel ── */
.resume-body {
  flex: 1;
  overflow-y: auto;
}

.resume-form-panel {
  padding: 24px 32px;
}

/* ── Form styles ── */
.rf-section { }
.rf-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #282A35;
  margin: 0 0 16px;
}

.rf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rf-section-header h3 { margin: 0; }

.rf-add-btn {
  background: #04AA6D;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.rf-add-btn:hover { background: #059862; }

.rf-empty {
  color: #999;
  font-size: 14px;
  padding: 20px 0;
}

.rf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
  width: 100%;
}

.rf-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #555;
}

.rf-grid input,
.rf-grid select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dde1e6;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.rf-grid input:focus,
.rf-grid select:focus {
  outline: none;
  border-color: #04AA6D;
  box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.08);
}

.rf-full {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-bottom: 16px;
}

.rf-full textarea {
  padding: 8px 10px;
  border: 1px solid #dde1e6;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s;
}

.rf-full textarea:focus {
  outline: none;
  border-color: #04AA6D;
  box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.08);
}

.rf-card {
  border: 1px solid #e7e9eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
}

.rf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #282A35;
}

.rf-remove-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
}

.rf-remove-btn:hover { background: #fee; color: #e33; }

.rf-bullets { margin-top: 12px; }
.rf-bullets-label { font-size: 12px; font-weight: 500; color: #555; display: block; margin-bottom: 6px; }
.rf-bullet-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.rf-bullet-row input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #dde1e6;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

.rf-bullet-row input:focus {
  outline: none;
  border-color: #04AA6D;
}

.rf-bullet-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
}

.rf-bullet-remove:hover { color: #e33; }

.rf-add-bullet {
  background: none;
  border: 1px dashed #dde1e6;
  color: #888;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
}

.rf-add-bullet:hover { border-color: #04AA6D; color: #04AA6D; }

.rf-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rf-skill-card {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9eb;
  border-radius: 8px;
  padding: 8px 12px;
}

.rf-skill-card input {
  flex: 1;
  border: none;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}

.rf-skill-card input:focus { outline: none; }

.rf-skill-card select {
  border: 1px solid #dde1e6;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 6px;
  font-family: inherit;
}

/* ── Preview wrapper ── */
.rp-wrapper {
  padding: 20px 0;
}

.rp-paper {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

/* ── Classic template ── */
.rt-classic { padding: 36px 40px; font-size: 13px; color: #333; line-height: 1.5; }
.rtc-header { text-align: center; margin-bottom: 24px; }
.rtc-header h1 { font-size: 26px; margin: 0 0 4px; color: #1a1a1a; }
.rtc-title { font-size: 15px; color: #04AA6D; margin: 0 0 10px; font-weight: 500; }
.rtc-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; color: #666; }
.rtc-section { margin-bottom: 20px; }
.rtc-section h2 { font-size: 15px; font-weight: 700; color: #1a1a1a; border-bottom: 2px solid #04AA6D; padding-bottom: 4px; margin: 0 0 10px; }
.rtc-entry { margin-bottom: 14px; }
.rtc-entry-header { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 4px; }
.rtc-date { font-size: 12px; color: #888; white-space: nowrap; }
.rtc-entry p { margin: 2px 0 4px; color: #555; }
.rtc-entry ul { margin: 4px 0; padding-left: 18px; }
.rtc-entry li { margin-bottom: 2px; }
.rtc-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.rtc-skill { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.rtc-skill-expert { background: #04AA6D; color: #fff; }
.rtc-skill-advanced { background: #e3f2fd; color: #1565C0; }
.rtc-skill-intermediate { background: #fff3e0; color: #E65100; }
.rtc-skill-beginner { background: #f5f5f5; color: #888; }

/* ── Modern template ── */
.rt-modern { display: flex; min-height: 600px; }
.rtm-side { width: 200px; background: #282A35; color: #fff; padding: 28px 20px; flex-shrink: 0; }
.rtm-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.rtm-title { font-size: 13px; color: #04AA6D; margin-bottom: 16px; }
.rtm-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 16px 0; }
.rtm-contact { font-size: 12px; line-height: 1.8; color: rgba(255,255,255,0.8); }
.rtm-side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #04AA6D; margin: 0 0 12px; }
.rtm-skills { display: flex; flex-direction: column; gap: 8px; }
.rtm-skill-row { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: rgba(255,255,255,0.8); }
.rtm-bar { height: 4px; border-radius: 2px; }
.rtm-main { flex: 1; padding: 28px 32px; }
.rtm-section { margin-bottom: 24px; }
.rtm-section h2 { font-size: 16px; font-weight: 700; color: #282A35; border-bottom: 2px solid #04AA6D; padding-bottom: 4px; margin: 0 0 12px; }
.rtm-section p { font-size: 13px; color: #555; line-height: 1.6; margin: 0 0 8px; }
.rtm-entry { margin-bottom: 14px; }
.rtm-entry-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 2px; }
.rtm-date { font-size: 11px; color: #888; }
.rtm-entry ul { margin: 4px 0; padding-left: 16px; font-size: 12px; color: #555; }
.rtm-entry li { margin-bottom: 2px; }

/* ── Minimal template ── */
.rt-minimal { padding: 40px 48px; font-size: 13px; color: #333; line-height: 1.6; }
.rtm-header { margin-bottom: 20px; }
.rtm-header h1 { font-size: 28px; font-weight: 300; margin: 0 0 4px; color: #1a1a1a; letter-spacing: -0.5px; }
.rtm-subtitle { font-size: 15px; color: #888; margin: 0 0 8px; }
.rtm-meta { font-size: 12px; color: #aaa; }
.rtm-summary { font-size: 13px; color: #555; line-height: 1.7; margin: 0; }
.rtm-section { margin-bottom: 20px; }
.rtm-section h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: #04AA6D; margin: 0 0 12px; }
.rtm-exp { margin-bottom: 14px; }
.rtm-exp-h { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-bottom: 2px; }
.rtm-exp-role { font-weight: 600; color: #1a1a1a; }
.rtm-exp-company { color: #555; }
.rtm-exp-date { font-size: 11px; color: #aaa; }
.rtm-exp p { margin: 2px 0 4px; color: #555; font-size: 12px; }
.rtm-exp ul { margin: 4px 0; padding-left: 16px; font-size: 12px; color: #555; }
.rtm-exp li { margin-bottom: 2px; }
.rtm-skills-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rtm-skill-tag { padding: 3px 12px; border: 1px solid #e7e9eb; border-radius: 14px; font-size: 12px; color: #555; }

/* ── Technical template ── */
.rt-technical { }
.rtt-header { background: #1a1a2e; color: #fff; padding: 28px 32px; }
.rtt-header h1 { font-size: 24px; margin: 0 0 4px; }
.rtt-title { font-size: 14px; color: #04AA6D; margin: 0; }
.rtt-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rtt-badge { padding: 3px 10px; border-radius: 4px; background: rgba(4, 170, 109, 0.2); color: #04AA6D; font-size: 11px; font-weight: 600; }
.rtt-body { display: flex; }
.rtt-left { flex: 1; padding: 24px 28px; }
.rtt-right { width: 200px; background: #f8f9fa; padding: 24px 20px; flex-shrink: 0; }
.rtt-block { margin-bottom: 20px; }
.rtt-block h2 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #04AA6D; margin: 0 0 10px; }
.rtt-block p { font-size: 13px; color: #555; line-height: 1.6; margin: 0; }
.rtt-exp { margin-bottom: 14px; }
.rtt-exp-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 2px; }
.rtt-date { font-size: 11px; color: #888; white-space: nowrap; }
.rtt-exp ul { margin: 4px 0; padding-left: 16px; font-size: 12px; color: #555; }
.rtt-exp li { margin-bottom: 2px; }
.rtt-contact { font-size: 12px; line-height: 1.8; color: #555; }
.rtt-skill { padding: 4px 10px; margin-bottom: 4px; border-radius: 4px; font-size: 12px; }
.rtt-skill.expert { background: #04AA6D; color: #fff; }
.rtt-skill.advanced { background: #e3f2fd; color: #1565C0; }
.rtt-skill.intermediate { background: #fff3e0; color: #E65100; }
.rtt-skill.beginner { background: #f5f5f5; color: #888; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .resume-layout { flex-direction: column; }
  .resume-sidebar {
    width: 100%; min-width: 0; display: flex; flex-wrap: nowrap;
    overflow-x: auto; max-height: 120px; padding: 4px 0;
    flex-direction: row;
  }
  .rs-group { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
  .rs-group-label { display: none; }
  .rs-divider { display: none; }
  .rs-item { width: auto; border-left: none; border-bottom: 3px solid transparent; padding: 8px 12px; flex-shrink: 0; white-space: nowrap; }
  .rs-item.active { border-left: none; border-bottom-color: #04AA6D; }
  .rs-item-icon { width: 20px; height: 20px; font-size: 9px; }
  .rs-item-desc { display: none; }
  .rs-dot { display: none; }
  .resume-form-panel { padding: 16px; }
  .rf-grid { grid-template-columns: 1fr; }
  .rf-skills-grid { grid-template-columns: 1fr; }
  .rp-paper { box-shadow: none; border: 1px solid #e7e9eb; }
  .rt-modern { flex-direction: column; }
  .rtm-side { width: 100%; padding: 20px; }
  .rtt-body { flex-direction: column; }
  .rtt-right { width: 100%; }
}
/*$vite$:1*/