:root {
  --navy: #1e3c72;
  --navy-dark: #162e59;
  --green: #2ecc71;
  --orange: #f39c12;
  --ink: #333333;
  --muted: #6f7782;
  --line: #dce0e5;
  --surface: #ffffff;
  --background: #f4f7f6;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
}

button, input, textarea, select { font: inherit; }
button, label[for], input[type="color"] { cursor: pointer; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(30, 60, 114, 0.2);
  outline-offset: 2px;
}

.app-shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 18px;
}

.main-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.main-header h1 {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

.main-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(30, 60, 114, 0.15); }
.btn:disabled,
.btn:disabled:hover {
  background: #c8ced5;
  color: #f7f8f9;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn.compact { min-height: 38px; padding: 9px 16px; font-size: 0.85rem; }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: #25b963; }
.btn-danger { background: #e5484d; color: white; }
.btn-danger:hover { background: #ca353a; }
.btn-light { border: 1px solid #dce0e5; background: #f0f2f5; color: #333; }

.progress-bar {
  display: flex;
  align-items: center;
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #999;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.step-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 2px solid #d8dde4;
  border-radius: 50%;
  background: white;
  color: #8d96a1;
  font-weight: 700;
}

.step-indicator.active { color: var(--navy); }
.step-indicator.active .step-number { border-color: var(--navy); background: var(--navy); color: white; }
.step-indicator:hover { color: var(--navy); }
.step-indicator:disabled { color: #b1b7bf; cursor: not-allowed; }
.step-indicator:disabled:hover { color: #b1b7bf; }
.step-indicator:disabled .step-number { border-color: #d8dde4; background: #e4e7eb; color: #a5acb5; }
.progress-line { width: clamp(24px, 5vw, 70px); height: 2px; margin: 0 12px; background: #dce0e5; }

.workspace {
  display: grid;
  grid-template-columns: minmax(410px, 0.9fr) minmax(540px, 1.25fr);
  align-items: start;
  gap: 24px;
}

.card-container {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.editor-card { overflow: hidden; }
.form-panel { display: none; padding: 32px 34px 24px; }
.form-panel.active { display: block; animation: panelIn 0.22s ease; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; }
.section-heading h2 { margin: 0 0 4px; color: #222; font-size: 1.15rem; }
.section-heading p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.section-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 14px; background: #f0f4ff; font-size: 1.3rem; }

.photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 16px; border: 1px solid #e6e9ed; border-radius: 14px; background: #fafbfc; }
.photo-picker { display: grid; width: 88px; height: 88px; flex: 0 0 88px; place-items: center; overflow: hidden; border: 2px dashed #b9c3d1; border-radius: 50%; background: #edf1f6; color: #7a8798; text-align: center; font-size: 0.72rem; font-weight: 600; }
.photo-picker img { width: 100%; height: 100%; object-fit: cover; }
.photo-row .helper { max-width: 330px; margin: 7px 0 0; }
.text-button { margin-left: 10px; border: 0; background: transparent; color: #a33b3b; font-size: 0.78rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; color: #505963; font-size: 0.76rem; font-weight: 600; }
.field input, .field textarea, .field select, select {
  width: 100%;
  border: 1px solid #dce0e5;
  border-radius: 8px;
  background: #fff;
  color: #272c32;
  padding: 11px 12px;
  font-size: 0.85rem;
  font-weight: 400;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus, select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.09); outline: none; }
.helper { color: #8b949f; font-size: 0.69rem; line-height: 1.45; }

.editor-section { margin-top: 24px; }
.editor-section + .editor-section { padding-top: 22px; border-top: 1px solid #eaedf0; }
.editor-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.editor-section-title h3 { margin: 0; color: #2b3138; font-size: 0.92rem; }
.mini-btn { border: 1px solid #ccd6e5; border-radius: 7px; background: #f0f4ff; color: var(--navy); padding: 7px 10px; font-size: 0.72rem; font-weight: 600; }
.mini-btn:hover { border-color: var(--navy); }

.repeat-list { display: grid; gap: 12px; }
.repeat-card { position: relative; border: 1px solid #e0e4e8; border-radius: 12px; background: #fafbfc; padding: 16px 16px 2px; }
.repeat-card .form-grid { gap: 12px; }
.repeat-card .field { margin-bottom: 12px; }
.remove-btn { position: absolute; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 7px; background: #fbeaea; color: #b63838; font-weight: 700; }
.repeat-card-title { margin: 0 36px 12px 0; color: #66717d; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.compact-list .repeat-card { padding-bottom: 4px; }

.choice-group { margin: 0 0 24px; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 10px; color: #505963; font-size: 0.76rem; font-weight: 600; }
.layout-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.radio-card { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; min-height: 56px; border: 2px solid #e0e0e0; border-radius: 9px; padding: 8px 10px; color: #333; font-size: 0.74rem; }
.radio-card input { accent-color: var(--navy); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card.selected { border-color: var(--navy); background: #f0f4ff; color: var(--navy); font-weight: 600; }
.layout-thumb { position: relative; display: block; width: 30px; height: 40px; overflow: hidden; border: 1px solid #c7cdd4; background: white; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.layout-thumb::before, .layout-thumb::after, .layout-thumb i, .layout-thumb b { content: ""; position: absolute; display: block; }
.layout-thumb::before { left: 3px; top: 4px; width: 16px; height: 2px; background: #44505e; box-shadow: 0 5px #c2c8cf, 0 10px #c2c8cf, 0 15px #c2c8cf, 0 20px #c2c8cf; }
.thumb-classic i { inset: 0 auto 0 0; width: 10px; background: var(--navy); }
.thumb-classic::before { left: 13px; width: 13px; }
.thumb-clean i { inset: 0 0 auto; height: 9px; background: var(--navy); }
.thumb-clean::before { top: 13px; }
.thumb-minimal::before { left: 5px; top: 7px; width: 20px; box-shadow: 0 6px #c2c8cf, 0 12px #c2c8cf, 0 18px #c2c8cf; }
.thumb-minimal i { left: 5px; right: 5px; top: 3px; height: 1px; background: var(--navy); }
.thumb-timeline i { inset: 0 0 auto; height: 11px; background: #334155; }
.thumb-timeline b { inset: 11px auto 0 0; width: 10px; background: #e1e3e6; }
.thumb-timeline::before { left: 13px; top: 15px; width: 13px; }
.thumb-sidebar b { inset: 0 0 0 auto; width: 10px; background: #e7f0f4; }
.thumb-sidebar i { inset: 0 10px auto 0; height: 7px; background: var(--navy); }
.thumb-sidebar::before { left: 3px; top: 11px; width: 14px; }
.thumb-aqua i { left: 3px; top: 3px; width: 6px; height: 6px; background: var(--navy); }
.thumb-aqua b { inset: 12px 0 auto auto; width: 10px; height: 28px; background: #eefafa; }
.thumb-aqua::before { top: 12px; width: 14px; }
.thumb-split i { inset: 0 0 0 auto; width: 12px; background: #d5b82b; }
.thumb-split::before { width: 12px; }
.thumb-teal i { inset: 0 0 0 auto; width: 11px; background: #116b78; }
.thumb-teal::before { width: 12px; }

.swatches { display: flex; align-items: center; gap: 11px; }
.swatch, .custom-color { display: grid; width: 36px; height: 36px; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #ccd2da; }
.swatch.selected { box-shadow: 0 0 0 3px var(--navy); }
.custom-color { position: relative; overflow: hidden; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444); color: white; font-size: 1.1rem; font-weight: 700; }
.custom-color input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }

.toggle-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 20px; padding: 13px; border-radius: 9px; background: #f7f8fa; color: #505963; font-size: 0.82rem; font-weight: 500; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--navy); }
.pdf-note { display: flex; gap: 12px; border: 1px solid #bfe8cf; border-radius: 12px; background: #effbf4; padding: 14px; color: #276b43; font-size: 0.78rem; line-height: 1.5; }
.pdf-note span { font-weight: 700; }
.pdf-note p { margin: 0; }

.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e8ebef; padding: 18px 34px; background: #fbfcfd; }
.editor-footer p { margin: 0; color: #7d8792; font-size: 0.69rem; }
.save-status { display: grid; gap: 4px; }
.export-actions, .preview-actions { display: flex; align-items: center; gap: 9px; }
.editor-footer .validation-message { color: #b05252; }
.editor-footer .validation-message.ready { color: #23804d; }
.save-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--green); }

.preview-column { position: sticky; top: 16px; overflow: hidden; min-width: 0; border-radius: var(--radius); background: #e2e6ea; box-shadow: var(--shadow); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 18px; background: #fff; }
.preview-toolbar strong { display: block; color: #29313a; font-size: 0.87rem; }
.preview-toolbar span { color: #84909c; font-size: 0.68rem; }
.paper-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
  padding: 28px;
}
.preview-scaler { position: relative; flex: 0 0 auto; }

.resume-paper {
  --accent: #1e3c72;
  --resume-font: "Poppins", sans-serif;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  overflow: hidden;
  background: white;
  color: #333;
  box-shadow: 0 12px 30px rgba(29, 40, 55, 0.2);
  font-family: var(--resume-font);
  font-size: 10pt;
  line-height: 1.5;
  transform-origin: top left;
}

.resume-paper * { box-sizing: border-box; }
.resume-paper h1, .resume-paper h2, .resume-paper h3, .resume-paper p { margin-top: 0; }
.resume-paper .resume-name { margin-bottom: 2mm; font-size: 24pt; line-height: 1.05; }
.resume-paper .resume-title { margin: 0; font-size: 10pt; letter-spacing: 0.08em; text-transform: uppercase; }
.resume-paper .resume-photo { width: 35mm; height: 35mm; flex: 0 0 35mm; border: 3px solid rgba(255,255,255,0.85); border-radius: 50%; object-fit: cover; }
.resume-paper .resume-section { margin-bottom: 6mm; break-inside: avoid; }
.resume-paper .resume-section-title { margin: 0 0 3mm; border-bottom: 1.5px solid var(--accent); padding-bottom: 1.5mm; color: var(--accent); font-size: 10.5pt; letter-spacing: 0.09em; text-transform: uppercase; }
.resume-paper .entry { margin-bottom: 4mm; break-inside: avoid; }
.resume-paper .entry:last-child { margin-bottom: 0; }
.resume-paper .entry-head { display: flex; justify-content: space-between; gap: 5mm; }
.resume-paper .entry h3 { margin-bottom: 0.7mm; color: #232a32; font-size: 10.5pt; }
.resume-paper .entry-role { margin-bottom: 1mm; color: var(--accent); font-size: 9pt; font-weight: 600; }
.resume-paper .entry-date { flex-shrink: 0; color: #7e8791; font-size: 8pt; }
.resume-paper .entry p, .resume-paper .summary { margin-bottom: 0; color: #505963; font-size: 9pt; white-space: pre-line; }
.resume-paper .contact-list { display: grid; gap: 2.2mm; margin: 0; padding: 0; list-style: none; font-size: 8.4pt; word-break: break-word; }
.resume-paper .contact-list li { position: relative; min-width: 0; max-width: 100%; padding-left: 5mm; overflow-wrap: anywhere; }
.resume-paper .contact-list li::before { content: "•"; position: absolute; left: 0; top: 0; color: currentColor; }
.resume-paper .tag-list { display: flex; flex-wrap: wrap; gap: 2mm; }
.resume-paper .tag { border: 1px solid color-mix(in srgb, var(--accent) 35%, white); border-radius: 99px; background: color-mix(in srgb, var(--accent) 8%, white); padding: 1.2mm 2.6mm; color: var(--accent); font-size: 8.2pt; font-weight: 600; }
.resume-paper .skill-row { margin-bottom: 3mm; }
.resume-paper .skill-label { display: flex; justify-content: space-between; margin-bottom: 1mm; font-size: 8.6pt; }
.resume-paper .skill-track { height: 1.5mm; overflow: hidden; border-radius: 99px; background: #e4e8ed; }
.resume-paper .skill-fill { height: 100%; border-radius: inherit; background: var(--accent); }
.resume-paper .empty-copy { color: #98a0a9; font-style: italic; }

.layout-classic { display: grid; grid-template-columns: 67mm 1fr; }
.layout-classic .resume-side { min-height: 297mm; padding: 18mm 9mm 13mm; background: var(--accent); color: white; }
.layout-classic .resume-main { padding: 17mm 15mm 14mm; }
.layout-classic .profile-wrap { margin-bottom: 9mm; text-align: center; }
.layout-classic .resume-photo { margin-bottom: 5mm; }
.layout-classic .resume-name { color: white; font-size: 16pt; text-transform: uppercase; }
.layout-classic .resume-title { color: rgba(255,255,255,0.8); font-size: 8pt; }
.layout-classic .side-title { margin: 7mm 0 3mm; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1.5mm; color: white; font-size: 9pt; letter-spacing: 0.1em; text-transform: uppercase; }
.layout-classic .contact-list { color: rgba(255,255,255,0.85); }
.layout-classic .skill-track { background: rgba(255,255,255,0.22); }
.layout-classic .skill-fill { background: white; }

.layout-clean .clean-header { display: flex; align-items: center; gap: 9mm; padding: 13mm 15mm; background: var(--accent); color: white; }
.layout-clean .resume-name { color: white; }
.layout-clean .resume-title { color: rgba(255,255,255,0.8); }
.layout-clean .clean-contact { padding: 4mm 15mm; background: color-mix(in srgb, var(--accent) 10%, white); color: #45505b; }
.layout-clean .clean-contact .contact-list { display: flex; flex-wrap: wrap; gap: 2mm 6mm; }
.layout-clean .clean-body { display: grid; grid-template-columns: 1fr 55mm; gap: 10mm; padding: 11mm 15mm 14mm; }

.layout-minimal { padding: 16mm 17mm; }
.layout-minimal .minimal-header { padding-bottom: 7mm; border-bottom: 2px solid var(--accent); text-align: center; }
.layout-minimal .resume-photo { width: 27mm; height: 27mm; margin-bottom: 4mm; border-color: var(--accent); }
.layout-minimal .resume-name { color: #222; }
.layout-minimal .resume-title { color: var(--accent); }
.layout-minimal .contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2mm 5mm; margin-top: 4mm; color: #5f6872; }
.layout-minimal .minimal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10mm; padding-top: 9mm; }
.layout-minimal .full-width { grid-column: 1 / -1; }

/* Reka bentuk 4: Garis Masa */
.layout-timeline .timeline-header { position: relative; display: flex; align-items: center; gap: 12mm; min-height: 50mm; padding: 10mm 16mm 8mm 74mm; background: #333e52; color: white; }
.layout-timeline .timeline-header .resume-photo { position: absolute; left: 11mm; bottom: -14mm; width: 47mm; height: 47mm; border-width: 2mm; }
.layout-timeline .timeline-header .resume-name { color: white; font-size: 24pt; text-transform: uppercase; }
.layout-timeline .timeline-header .resume-title { color: rgba(255,255,255,0.82); }
.layout-timeline .timeline-body { display: grid; grid-template-columns: 65mm 1fr; min-height: 247mm; }
.layout-timeline .timeline-side { padding: 25mm 10mm 12mm; background: #e7e8ea; }
.layout-timeline .timeline-main { position: relative; padding: 13mm 15mm 14mm 20mm; }
.layout-timeline .timeline-main::before { content: ""; position: absolute; left: 9mm; top: 15mm; bottom: 15mm; width: 0.5mm; background: #333e52; }
.layout-timeline .timeline-main .resume-section { position: relative; }
.layout-timeline .timeline-main .resume-section::before { content: ""; position: absolute; left: -12.5mm; top: 0; width: 5mm; height: 5mm; border-radius: 50%; background: #333e52; box-shadow: inset 0 0 0 1.4mm white; }
.layout-timeline .resume-section-title { color: #333e52; border-color: #333e52; }
.layout-timeline .timeline-side .resume-section-title { margin-top: 6mm; }

/* Reka bentuk 5: Usahawan */
.layout-sidebar .sidebar-banner { height: 24mm; padding: 5mm 8mm; background: linear-gradient(90deg, #f5f8f9 70%, var(--accent) 70%); color: var(--accent); font-size: 24pt; font-weight: 400; }
.layout-sidebar .sidebar-shell { display: grid; grid-template-columns: 1fr 62mm; min-height: 273mm; }
.layout-sidebar .sidebar-main { padding: 9mm 9mm 14mm 8mm; }
.layout-sidebar .sidebar-rail { padding: 9mm 8mm 12mm; background: color-mix(in srgb, var(--accent) 8%, #f5f8fa); }
.layout-sidebar .sidebar-rail .resume-photo { display: block; width: 32mm; height: 32mm; margin: 0 auto 8mm; border: 0; border-radius: 0; }
.layout-sidebar .sidebar-name { margin: 0 0 7mm; border-bottom: 1px solid #dde3e7; padding-bottom: 3mm; color: #2d343c; font-size: 15pt; font-weight: 500; text-transform: uppercase; }
.layout-sidebar .resume-section-title { border: 0; color: #111; font-size: 11pt; letter-spacing: 0; }
.layout-sidebar .sidebar-rail .resume-section-title { margin-top: 6mm; }
.layout-sidebar .skill-track { height: 2.5mm; background: repeating-linear-gradient(120deg, #d9e0e3 0 2mm, transparent 2mm 3mm); }
.layout-sidebar .skill-fill { background: repeating-linear-gradient(120deg, var(--accent) 0 2mm, transparent 2mm 3mm); }

/* Reka bentuk 6: Aqua */
.layout-aqua { padding: 10mm 9mm 13mm; }
.layout-aqua .aqua-header { display: flex; align-items: center; gap: 10mm; margin-bottom: 8mm; }
.layout-aqua .aqua-header .resume-photo { width: 31mm; height: 31mm; border: 0; border-radius: 0; }
.layout-aqua .resume-name { color: #26323a; font-size: 25pt; text-transform: uppercase; }
.layout-aqua .resume-title { color: var(--accent); font-size: 12pt; text-transform: none; }
.layout-aqua .aqua-contact { margin-top: 3mm; }
.layout-aqua .aqua-contact .contact-list { display: flex; flex-wrap: wrap; gap: 2mm 5mm; color: #59636d; }
.layout-aqua .aqua-body { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 9mm; }
.layout-aqua .resume-section-title { border-color: color-mix(in srgb, var(--accent) 28%, white); color: #30363c; font-size: 12pt; letter-spacing: 0; }
.layout-aqua .entry-role { color: var(--accent); }
.layout-aqua .aqua-rail { padding-left: 2mm; }
.layout-aqua .tag { border-radius: 2px; background: var(--accent); color: white; }

/* Reka bentuk 7: Dwiwarna */
.layout-split { display: grid; grid-template-columns: 128mm 82mm; }
.layout-split .split-main { min-height: 297mm; padding: 14mm 9mm 14mm 11mm; background: white; }
.layout-split .split-rail { min-height: 297mm; padding: 12mm 9mm; background: var(--accent); color: white; }
.layout-split .split-rail .resume-photo { display: block; width: 36mm; height: 36mm; margin: 0 auto 10mm; border-radius: 0; }
.layout-split .resume-name { color: #171717; font-size: 23pt; text-transform: uppercase; }
.layout-split .resume-title, .layout-split .entry-role { color: var(--accent); }
.layout-split .split-contact { margin: 5mm 0 10mm; }
.layout-split .split-contact .contact-list { display: flex; flex-wrap: wrap; gap: 2mm 5mm; }
.layout-split .resume-section-title { border-color: color-mix(in srgb, var(--accent) 35%, white); color: #222; }
.layout-split .split-rail .resume-section-title { border-color: rgba(0,0,0,0.24); color: #111; }
.layout-split .split-rail .skill-track { background: rgba(0,0,0,0.18); }
.layout-split .split-rail .skill-fill { background: #111; }
.layout-split .split-rail .tag { border-color: rgba(0,0,0,0.25); background: #111; color: white; }
.layout-split .split-rail .empty-copy, .layout-split .split-rail .entry p { color: rgba(0,0,0,0.7); }

/* Reka bentuk 8: Teal */
.layout-teal { display: grid; grid-template-columns: 132mm 78mm; }
.layout-teal .teal-main { min-height: 297mm; padding: 12mm 10mm 13mm 11mm; }
.layout-teal .teal-rail { min-height: 297mm; padding: 10mm 8mm; background: var(--accent); color: white; }
.layout-teal .teal-rail .resume-photo { display: block; width: 29mm; height: 29mm; margin: 0 auto 9mm; border: 0; border-radius: 0; }
.layout-teal .resume-name { color: #111; font-size: 21pt; text-transform: uppercase; }
.layout-teal .resume-title, .layout-teal .entry-role { color: color-mix(in srgb, var(--accent) 80%, #31dfd4); }
.layout-teal .teal-contact { margin: 4mm 0 8mm; }
.layout-teal .teal-contact .contact-list { display: flex; flex-wrap: wrap; gap: 2mm 5mm; }
.layout-teal .resume-section-title { border-color: color-mix(in srgb, var(--accent) 35%, white); color: #20262c; }
.layout-teal .teal-rail .resume-section-title { border-color: rgba(255,255,255,0.32); color: white; }
.layout-teal .teal-rail .skill-track { background: rgba(255,255,255,0.24); }
.layout-teal .teal-rail .skill-fill { background: white; }
.layout-teal .teal-rail .tag { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.12); color: white; }
.layout-teal .teal-rail .empty-copy, .layout-teal .teal-rail .entry p { color: rgba(255,255,255,0.78); }

.resume-paper.density-compact { font-size: 9.2pt; line-height: 1.4; }
.resume-paper.density-compact .resume-section { margin-bottom: 4.5mm; }
.resume-paper.density-compact .entry { margin-bottom: 3mm; }

.privacy-note { margin-top: 18px; color: #7d8792; text-align: center; font-size: 0.72rem; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: min(360px, calc(100% - 48px)); border-radius: 10px; background: #24364d; color: white; padding: 12px 16px; box-shadow: 0 12px 28px rgba(0,0,0,0.18); opacity: 0; transform: translateY(20px); pointer-events: none; transition: 0.22s ease; font-size: 0.8rem; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 1fr; }
  .preview-column { position: static; }
  .paper-stage { max-height: none; }
}

@media (max-width: 700px) {
  .app-shell { width: min(100% - 22px, 1500px); padding-top: 18px; }
  .main-header { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; padding-inline: 12px; }
  .progress-bar { justify-content: space-between; padding: 0; }
  .progress-line { display: none; }
  .step-indicator { flex-direction: column; gap: 4px; font-size: 0.66rem; }
  .form-panel { padding: 24px 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .photo-row { align-items: flex-start; }
  .editor-footer { align-items: stretch; flex-direction: column; padding: 16px 20px; }
  .export-actions { display: block; }
  .export-actions .btn { padding-inline: 10px; }
  .radio-card { display: flex; width: 100%; margin: 0 0 8px; }
  .preview-toolbar { position: sticky; top: 0; z-index: 2; }
  .paper-stage { padding: 16px; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { width: 210mm; margin: 0; padding: 0; background: white; }
  .main-header,
  .progress-bar,
  .editor-card,
  .preview-toolbar,
  .privacy-note,
  .toast { display: none !important; }
  .app-shell { width: 210mm; margin: 0; padding: 0; }
  .workspace { display: block; }
  .preview-column { position: static; overflow: visible; border-radius: 0; background: white; box-shadow: none; }
  .paper-stage { overflow: visible; max-height: none; padding: 0; }
  .preview-scaler { width: 210mm !important; height: auto !important; }
  #resumePreview {
    position: static;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    transform: none !important;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
