/* ================================================================
   FREE RESUME MAKER — Deecliq
   ================================================================ */

.rm-scope { max-width: 1440px; margin: 0 auto; padding: 0 1rem 3rem; }

.rm-hero { text-align: center; padding: 2rem 1rem 1.25rem; margin-top: 1rem; }
.rm-hero h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 .4rem; }
.rm-hero p  { color: var(--muted-text, #6b7280); font-size: .92rem; margin: 0; }

/* ── Top Bar ── */
.rm-topbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: .7rem 1rem;
    margin-bottom: 1rem;
}
html[data-theme="dark"] .rm-topbar { background: #1e2130; border-color: rgba(255,255,255,.08); }
.rm-topbar-left { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.rm-tpl-pick-btn {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem;
    border-radius: 9px;
    border: 2px solid #2563eb;
    background: rgba(37,99,235,.06);
    color: #2563eb;
    font-size: .83rem; font-weight: 700;
    cursor: pointer; transition: all .18s;
    font-family: inherit;
}
.rm-tpl-pick-btn:hover { background: rgba(37,99,235,.13); }
.rm-tpl-pick-btn i:first-child { font-size: .9rem; }

.rm-upload-btn {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem;
    border-radius: 9px;
    border: 1.5px solid var(--border-color, #d1d5db);
    background: var(--bg-secondary, #f3f4f6);
    color: var(--body-text, #374151);
    font-size: .83rem; font-weight: 600;
    cursor: pointer; transition: all .18s;
}
html[data-theme="dark"] .rm-upload-btn { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: #d1d5db; }
.rm-upload-btn:hover { border-color: #10b981; color: #10b981; background: rgba(16,185,129,.06); }

/* ── Layout ── */
.rm-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1rem;
    align-items: start;
}
@media (max-width: 960px) { .rm-layout { grid-template-columns: 1fr; } }

/* ── Form Panel ── */
.rm-form-panel {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    position: sticky; top: 80px;
}
html[data-theme="dark"] .rm-form-panel { background: #1e2130; border-color: rgba(255,255,255,.08); }

.rm-steps {
    display: flex;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-secondary, #f8fafc);
    overflow-x: auto; scrollbar-width: none;
}
.rm-steps::-webkit-scrollbar { display: none; }
html[data-theme="dark"] .rm-steps { background: rgba(255,255,255,.03); border-bottom-color: rgba(255,255,255,.07); }

.rm-step {
    flex: 1; min-width: 60px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: .6rem .3rem;
    border: none; background: none; cursor: pointer;
    color: var(--muted-text, #9ca3af);
    font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 2.5px solid transparent;
    transition: all .18s; position: relative; top: 1px;
}
.rm-step i { font-size: .88rem; }
.rm-step:hover { color: #2563eb; }
.rm-step.rm-step-active { color: #2563eb; border-bottom-color: #2563eb; background: rgba(37,99,235,.04); }
html[data-theme="dark"] .rm-step.rm-step-active { background: rgba(37,99,235,.12); }

.rm-section { display: none; padding: 1.1rem; }
.rm-section.rm-section-active { display: block; }

.rm-section-title {
    font-size: .95rem; font-weight: 700; margin: 0 0 .9rem;
    display: flex; align-items: center; gap: .45rem;
    color: var(--body-text, #111827);
}
html[data-theme="dark"] .rm-section-title { color: #f3f4f6; }
.rm-section-title i { color: #2563eb; font-size: .9rem; }

.rm-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.rm-field { display: flex; flex-direction: column; gap: .28rem; }
.rm-field.rm-field-full { grid-column: 1 / -1; }

.rm-field label {
    font-size: .7rem; font-weight: 700;
    color: var(--muted-text, #6b7280);
    text-transform: uppercase; letter-spacing: .05em;
}
.rm-field input, .rm-field textarea, .rm-field select {
    padding: .48rem .7rem;
    border-radius: 7px;
    border: 1.5px solid var(--border-color, #d1d5db);
    background: var(--input-bg, #fff);
    color: var(--body-text, #111827);
    font-size: .85rem; font-family: inherit;
    transition: border-color .15s; width: 100%; box-sizing: border-box;
}
html[data-theme="dark"] .rm-field input,
html[data-theme="dark"] .rm-field textarea,
html[data-theme="dark"] .rm-field select {
    background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #f3f4f6;
}
.rm-field input:focus, .rm-field textarea:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.rm-field textarea { resize: vertical; min-height: 76px; }
.rm-char-count { font-size: .7rem; color: var(--muted-text, #9ca3af); text-align: right; margin-top: .2rem; }

.rm-hint {
    font-size: .76rem; color: var(--muted-text, #6b7280);
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 7px; padding: .38rem .6rem; margin-bottom: .7rem;
}
html[data-theme="dark"] .rm-hint { background: rgba(255,255,255,.06); }
.rm-hint kbd {
    background: var(--card-bg, #fff); border: 1px solid var(--border-color, #d1d5db);
    border-radius: 3px; padding: 1px 5px; font-size: .7rem; font-family: monospace;
}

.rm-step-nav {
    display: flex; gap: .5rem; justify-content: flex-end;
    margin-top: 1rem; padding-top: .9rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}
html[data-theme="dark"] .rm-step-nav { border-top-color: rgba(255,255,255,.07); }

/* ── Entries ── */
.rm-entry {
    background: var(--bg-secondary, #f8fafc);
    border: 1.5px solid var(--border-color, #e5e7eb);
    border-radius: 10px; padding: .85rem; margin-bottom: .65rem;
}
html[data-theme="dark"] .rm-entry { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); }
.rm-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.rm-entry-title { font-size: .8rem; font-weight: 700; color: var(--body-text, #374151); }
html[data-theme="dark"] .rm-entry-title { color: #d1d5db; }
.rm-remove-btn { border: none; background: none; cursor: pointer; color: #ef4444; font-size: .85rem; padding: 3px 6px; border-radius: 5px; transition: background .15s; }
.rm-remove-btn:hover { background: rgba(239,68,68,.1); }
.rm-entry .rm-field-grid { gap: .5rem; }

.rm-add-btn {
    width: 100%; padding: .55rem;
    border: 2px dashed var(--border-color, #d1d5db);
    border-radius: 9px; background: none; cursor: pointer;
    color: #2563eb; font-size: .82rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    transition: all .18s;
}
.rm-add-btn:hover { border-color: #2563eb; background: rgba(37,99,235,.05); }

/* ── Tags ── */
.rm-tag-input-wrap {
    display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
    border: 1.5px solid var(--border-color, #d1d5db);
    border-radius: 8px; padding: .4rem .6rem;
    cursor: text; min-height: 42px;
    background: var(--input-bg, #fff); transition: border-color .15s;
}
html[data-theme="dark"] .rm-tag-input-wrap { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.rm-tag-input-wrap:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.rm-tag-input-wrap input { border: none; background: none; outline: none; font-size: .83rem; color: var(--body-text, #111827); flex: 1; min-width: 100px; padding: 0; font-family: inherit; }
html[data-theme="dark"] .rm-tag-input-wrap input { color: #f3f4f6; }

.rm-tag {
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(37,99,235,.1); color: #2563eb;
    border-radius: 5px; padding: 2px 7px;
    font-size: .76rem; font-weight: 600;
}
html[data-theme="dark"] .rm-tag { background: rgba(37,99,235,.22); color: #93c5fd; }
.rm-tag-del { cursor: pointer; font-size: .7rem; border: none; background: none; padding: 0; color: inherit; opacity: .7; }
.rm-tag-del:hover { opacity: 1; }

/* ── Preview Panel ── */
.rm-preview-panel {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
}
html[data-theme="dark"] .rm-preview-panel { background: #1e2130; border-color: rgba(255,255,255,.08); }

.rm-preview-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-secondary, #f8fafc);
}
html[data-theme="dark"] .rm-preview-toolbar { background: rgba(255,255,255,.03); border-bottom-color: rgba(255,255,255,.07); }
.rm-preview-label { font-size: .76rem; font-weight: 700; color: var(--muted-text, #6b7280); display: flex; align-items: center; gap: .4rem; }
.rm-preview-label i { color: #2563eb; }
.rm-preview-actions { display: flex; align-items: center; gap: .3rem; }
.rm-zoom-btn { width: 28px; height: 28px; border-radius: 7px; border: 1.5px solid var(--border-color, #d1d5db); background: var(--input-bg, #fff); cursor: pointer; font-size: .75rem; display: flex; align-items: center; justify-content: center; color: var(--body-text, #374151); transition: all .15s; }
html[data-theme="dark"] .rm-zoom-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #d1d5db; }
.rm-zoom-btn:hover { border-color: #2563eb; color: #2563eb; }
.rm-zoom-level { font-size: .72rem; font-weight: 600; color: var(--muted-text, #6b7280); min-width: 36px; text-align: center; }

.rm-preview-scroll {
    flex: 1; overflow: auto;
    background: #e5e7eb;
    min-height: 640px;
    padding: 1.5rem;
}
html[data-theme="dark"] .rm-preview-scroll { background: #111318; }

.rm-preview-page-wrap { display: flex; justify-content: center; }
.rm-preview-page {
    background: #fff;
    width: 794px; min-height: 1123px;
    box-shadow: 0 4px 28px rgba(0,0,0,.18);
    border-radius: 2px;
    transform-origin: top center;
    transform: scale(.85);
    margin-bottom: calc(-15% * 1);
    flex-shrink: 0;
    transition: transform .2s;
}

.rm-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 420px; color: #9ca3af; gap: .8rem; text-align: center; }
.rm-empty-state i { font-size: 3rem; opacity: .3; }
.rm-empty-state p { font-size: .88rem; line-height: 1.5; }

/* ── Toast ── */
.rm-toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #1e293b; color: #fff;
    padding: .55rem 1.2rem; border-radius: 30px;
    font-size: .82rem; font-weight: 600;
    opacity: 0; pointer-events: none;
    transition: all .28s; z-index: 99999;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.rm-toast.rm-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.rm-toast.rm-toast-success { background: #10b981; }
.rm-toast.rm-toast-error   { background: #ef4444; }

/* ================================================================
   TEMPLATE MODAL
   ================================================================ */
.rm-modal-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    z-index: 9998;
}
.rm-modal-backdrop.rm-open { display: block; }

.rm-modal {
    display: none; position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(860px, 96vw); max-height: 90vh;
    background: var(--card-bg, #fff);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    z-index: 9999;
    overflow: hidden; flex-direction: column;
}
.rm-modal.rm-open { display: flex; }
html[data-theme="dark"] .rm-modal { background: #1a1d2e; }

.rm-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    flex-shrink: 0;
}
html[data-theme="dark"] .rm-modal-header { border-bottom-color: rgba(255,255,255,.08); }
.rm-modal-header h2 { font-size: 1.05rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .5rem; }
.rm-modal-header h2 i { color: #2563eb; }
.rm-modal-close { border: none; background: none; cursor: pointer; font-size: 1.1rem; color: var(--muted-text, #6b7280); padding: 4px 8px; border-radius: 7px; transition: background .15s; }
.rm-modal-close:hover { background: var(--bg-secondary, #f3f4f6); }

.rm-modal-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    padding: 1.2rem; overflow-y: auto;
}
@media (max-width: 640px) { .rm-modal-grid { grid-template-columns: 1fr 1fr; } }

.rm-tpl-card {
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 12px; overflow: hidden; cursor: pointer;
    transition: all .2s; position: relative;
}
html[data-theme="dark"] .rm-tpl-card { border-color: rgba(255,255,255,.1); }
.rm-tpl-card:hover { border-color: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.15); }
.rm-tpl-card.rm-tpl-card-active { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.rm-tpl-card.rm-tpl-card-active::after {
    content: '✓'; position: absolute; top: 8px; right: 8px;
    background: #2563eb; color: #fff;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 900;
}

.rm-tpl-preview {
    height: 160px; overflow: hidden; position: relative;
}
.rm-tpl-preview-inner {
    width: 794px; height: 420px;
    transform: scale(.22); transform-origin: top left;
    pointer-events: none;
}
.rm-tpl-card-label {
    padding: .55rem .8rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
    background: var(--card-bg, #fff);
}
html[data-theme="dark"] .rm-tpl-card-label { background: #1a1d2e; border-top-color: rgba(255,255,255,.07); }
.rm-tpl-card-label strong { display: block; font-size: .82rem; font-weight: 700; color: var(--body-text, #111827); }
html[data-theme="dark"] .rm-tpl-card-label strong { color: #f3f4f6; }
.rm-tpl-card-label span { font-size: .72rem; color: var(--muted-text, #6b7280); }

/* ================================================================
   RESUME TEMPLATES (inside .rm-resume)
   ================================================================ */

/* ── CLASSIC ── */
.rm-resume.tpl-classic { font-family: 'Georgia', serif; color: #1a1a1a; }
.tpl-classic .rm-res-header { background: #2563eb; color: #fff; padding: 1.8rem 2.2rem 1.4rem; }
.tpl-classic .rm-res-name { font-size: 1.9rem; font-weight: bold; margin: 0 0 .15rem; }
.tpl-classic .rm-res-jobtitle { font-size: .95rem; opacity: .85; margin: 0 0 .75rem; font-style: italic; }
.tpl-classic .rm-res-contacts { display: flex; flex-wrap: wrap; gap: .25rem .85rem; font-size: .76rem; opacity: .9; }
.tpl-classic .rm-res-contacts a { color: #fff; text-decoration: none; }
.tpl-classic .rm-res-body { padding: 1.4rem 2.2rem; }
.tpl-classic .rm-res-section { margin-bottom: 1.3rem; }
.tpl-classic .rm-res-section-title { font-size: .76rem; font-weight: bold; text-transform: uppercase; letter-spacing: .1em; color: #2563eb; border-bottom: 2px solid #2563eb; padding-bottom: .28rem; margin: 0 0 .7rem; }
.tpl-classic .rm-res-summary { font-size: .86rem; line-height: 1.65; color: #374151; }
.tpl-classic .rm-res-entry { margin-bottom: .85rem; }
.tpl-classic .rm-res-entry-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: .15rem; }
.tpl-classic .rm-res-company { font-size: .88rem; font-weight: bold; color: #111; }
.tpl-classic .rm-res-dates   { font-size: .76rem; color: #6b7280; }
.tpl-classic .rm-res-role    { font-size: .8rem; color: #374151; font-style: italic; margin: .08rem 0; }
.tpl-classic .rm-res-desc    { font-size: .8rem; color: #4b5563; line-height: 1.55; white-space: pre-wrap; margin-top: .2rem; }
.tpl-classic .rm-res-skills-grid { display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.tpl-classic .rm-res-skill-tag { background: rgba(37,99,235,.1); color: #1d4ed8; border-radius: 4px; padding: 2px 8px; font-size: .76rem; font-weight: 600; }

/* ── MODERN ── */
.rm-resume.tpl-modern { font-family: 'Segoe UI', system-ui, sans-serif; color: #1a1a1a; display: grid; grid-template-columns: 210px 1fr; min-height: 1123px; }
.tpl-modern .rm-res-sidebar { background: #1e293b; color: #f1f5f9; padding: 1.6rem 1.1rem; display: flex; flex-direction: column; gap: 1.1rem; }
.tpl-modern .rm-res-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 .12rem; line-height: 1.2; }
.tpl-modern .rm-res-jobtitle { font-size: .74rem; color: #94a3b8; font-weight: 500; margin: 0 0 .5rem; }
.tpl-modern .rm-res-contacts { display: flex; flex-direction: column; gap: .3rem; font-size: .72rem; color: #cbd5e1; }
.tpl-modern .rm-res-contacts span { display: flex; align-items: flex-start; gap: .3rem; word-break: break-all; }
.tpl-modern .rm-res-contacts a { color: #93c5fd; text-decoration: none; }
.tpl-modern .rm-res-sidebar-section-title { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #64748b; margin: 0 0 .45rem; }
.tpl-modern .rm-res-skills-grid { display: flex; flex-wrap: wrap; gap: .28rem; }
.tpl-modern .rm-res-skill-tag { background: rgba(148,163,184,.12); color: #cbd5e1; border-radius: 4px; padding: 2px 7px; font-size: .7rem; font-weight: 600; }
.tpl-modern .rm-res-main { padding: 1.6rem 1.4rem; background: #fff; }
.tpl-modern .rm-res-section { margin-bottom: 1.2rem; }
.tpl-modern .rm-res-section-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #1e293b; display: flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; }
.tpl-modern .rm-res-section-title::after { content: ''; flex: 1; height: 1.5px; background: #e2e8f0; }
.tpl-modern .rm-res-summary { font-size: .84rem; line-height: 1.65; color: #374151; }
.tpl-modern .rm-res-entry { margin-bottom: .8rem; }
.tpl-modern .rm-res-entry-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.tpl-modern .rm-res-company { font-size: .86rem; font-weight: 700; color: #1e293b; }
.tpl-modern .rm-res-dates   { font-size: .72rem; color: #94a3b8; font-weight: 500; }
.tpl-modern .rm-res-role    { font-size: .78rem; color: #2563eb; font-weight: 600; margin: .08rem 0; }
.tpl-modern .rm-res-desc    { font-size: .78rem; color: #4b5563; line-height: 1.55; white-space: pre-wrap; margin-top: .18rem; }

/* ── MINIMAL ── */
.rm-resume.tpl-minimal { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #1a1a1a; padding: 2.2rem 2.8rem; }
.tpl-minimal .rm-res-header { margin-bottom: 1.3rem; border-bottom: 1px solid #1a1a1a; padding-bottom: .9rem; }
.tpl-minimal .rm-res-name { font-size: 1.9rem; font-weight: 900; margin: 0 0 .18rem; letter-spacing: -.02em; }
.tpl-minimal .rm-res-jobtitle { font-size: .86rem; color: #555; margin: 0 0 .5rem; }
.tpl-minimal .rm-res-contacts { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .75rem; color: #555; }
.tpl-minimal .rm-res-contacts a { color: #1a1a1a; }
.tpl-minimal .rm-res-section { margin-bottom: 1.1rem; }
.tpl-minimal .rm-res-section-title { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: #1a1a1a; margin: 0 0 .55rem; border-bottom: 1px solid #ccc; padding-bottom: .25rem; }
.tpl-minimal .rm-res-summary { font-size: .84rem; line-height: 1.6; color: #333; }
.tpl-minimal .rm-res-entry { margin-bottom: .7rem; }
.tpl-minimal .rm-res-entry-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.tpl-minimal .rm-res-company { font-size: .86rem; font-weight: 700; }
.tpl-minimal .rm-res-dates   { font-size: .76rem; color: #888; }
.tpl-minimal .rm-res-role    { font-size: .8rem; color: #555; font-style: italic; margin: .08rem 0; }
.tpl-minimal .rm-res-desc    { font-size: .78rem; color: #444; line-height: 1.55; white-space: pre-wrap; margin-top: .18rem; }
.tpl-minimal .rm-res-skills-grid { display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.tpl-minimal .rm-res-skill-tag::before { content: '· '; }
.tpl-minimal .rm-res-skill-tag:first-child::before { content: ''; }
.tpl-minimal .rm-res-skill-tag { font-size: .78rem; }

/* ── EXECUTIVE ── */
.rm-resume.tpl-executive { font-family: 'Georgia', Times, serif; color: #1a1a1a; }
.tpl-executive .rm-res-header { background: #0f172a; padding: 2rem 2.5rem; text-align: center; }
.tpl-executive .rm-res-name { font-size: 2.1rem; font-weight: bold; color: #fff; letter-spacing: .04em; margin: 0 0 .2rem; }
.tpl-executive .rm-res-jobtitle { font-size: .95rem; color: #94a3b8; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; }
.tpl-executive .rm-res-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1rem; font-size: .76rem; color: #94a3b8; }
.tpl-executive .rm-res-contacts a { color: #93c5fd; text-decoration: none; }
.tpl-executive .rm-res-accent-bar { height: 4px; background: linear-gradient(90deg, #0f172a, #2563eb, #0f172a); }
.tpl-executive .rm-res-body { padding: 1.5rem 2.5rem; }
.tpl-executive .rm-res-section { margin-bottom: 1.4rem; }
.tpl-executive .rm-res-section-title { font-size: .78rem; font-weight: bold; text-transform: uppercase; letter-spacing: .14em; color: #0f172a; display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; }
.tpl-executive .rm-res-section-title::after { content: ''; flex: 1; height: 1px; background: #0f172a; }
.tpl-executive .rm-res-summary { font-size: .88rem; line-height: 1.7; color: #374151; font-style: italic; }
.tpl-executive .rm-res-entry { margin-bottom: .95rem; }
.tpl-executive .rm-res-entry-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.tpl-executive .rm-res-company { font-size: .9rem; font-weight: bold; color: #0f172a; }
.tpl-executive .rm-res-dates   { font-size: .76rem; color: #6b7280; font-style: italic; }
.tpl-executive .rm-res-role    { font-size: .82rem; color: #2563eb; font-style: italic; margin: .1rem 0; }
.tpl-executive .rm-res-desc    { font-size: .82rem; color: #4b5563; line-height: 1.6; white-space: pre-wrap; margin-top: .22rem; }
.tpl-executive .rm-res-skills-grid { display: flex; flex-wrap: wrap; gap: .3rem .7rem; }
.tpl-executive .rm-res-skill-tag { font-size: .78rem; color: #374151; border: 1px solid #cbd5e1; border-radius: 3px; padding: 2px 8px; }

/* ── CREATIVE ── */
.rm-resume.tpl-creative { font-family: 'Segoe UI', system-ui, sans-serif; color: #1a1a1a; }
.tpl-creative .rm-res-header { background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%); color: #fff; padding: 2rem 2.4rem 1.4rem; position: relative; overflow: hidden; }
.tpl-creative .rm-res-header::before { content: ''; position: absolute; top: -30px; right: -30px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.tpl-creative .rm-res-name { font-size: 2rem; font-weight: 900; margin: 0 0 .18rem; }
.tpl-creative .rm-res-jobtitle { font-size: .9rem; opacity: .88; margin: 0 0 .75rem; font-weight: 500; }
.tpl-creative .rm-res-contacts { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .76rem; opacity: .9; }
.tpl-creative .rm-res-contacts a { color: #fff; text-decoration: none; }
.tpl-creative .rm-res-body { padding: 1.4rem 2.4rem; }
.tpl-creative .rm-res-section { margin-bottom: 1.3rem; }
.tpl-creative .rm-res-section-title { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #7c3aed; display: flex; align-items: center; gap: .4rem; margin: 0 0 .7rem; }
.tpl-creative .rm-res-section-title::before { content: ''; width: 16px; height: 3px; background: linear-gradient(90deg, #7c3aed, #2563eb); border-radius: 2px; }
.tpl-creative .rm-res-summary { font-size: .86rem; line-height: 1.65; color: #374151; }
.tpl-creative .rm-res-entry { margin-bottom: .88rem; padding-left: .9rem; border-left: 2.5px solid #ede9fe; }
.tpl-creative .rm-res-entry-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.tpl-creative .rm-res-company { font-size: .88rem; font-weight: 700; color: #1e1b4b; }
.tpl-creative .rm-res-dates   { font-size: .74rem; color: #7c3aed; font-weight: 600; background: #ede9fe; border-radius: 4px; padding: 1px 7px; }
.tpl-creative .rm-res-role    { font-size: .8rem; color: #374151; font-weight: 500; margin: .08rem 0; }
.tpl-creative .rm-res-desc    { font-size: .8rem; color: #4b5563; line-height: 1.55; white-space: pre-wrap; margin-top: .2rem; }
.tpl-creative .rm-res-skills-grid { display: flex; flex-wrap: wrap; gap: .3rem .4rem; }
.tpl-creative .rm-res-skill-tag { background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(37,99,235,.1)); color: #5b21b6; border-radius: 5px; padding: 2px 9px; font-size: .76rem; font-weight: 700; }

/* ── ATS PRO (plain for applicant tracking systems) ── */
.rm-resume.tpl-ats { font-family: Arial, Helvetica, sans-serif; color: #000; padding: 1.8rem 2rem; }
.tpl-ats .rm-res-name { font-size: 1.7rem; font-weight: bold; margin: 0 0 .12rem; }
.tpl-ats .rm-res-jobtitle { font-size: .88rem; color: #333; margin: 0 0 .5rem; }
.tpl-ats .rm-res-contacts { display: flex; flex-wrap: wrap; gap: .15rem .7rem; font-size: .78rem; color: #333; margin-bottom: .9rem; }
.tpl-ats .rm-res-contacts a { color: #000; }
.tpl-ats .rm-res-section { margin-bottom: 1.1rem; }
.tpl-ats .rm-res-section-title { font-size: .82rem; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; color: #000; border-bottom: 1.5px solid #000; padding-bottom: .22rem; margin: 0 0 .6rem; }
.tpl-ats .rm-res-summary { font-size: .86rem; line-height: 1.6; }
.tpl-ats .rm-res-entry { margin-bottom: .75rem; }
.tpl-ats .rm-res-entry-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.tpl-ats .rm-res-company { font-size: .86rem; font-weight: bold; }
.tpl-ats .rm-res-dates   { font-size: .78rem; }
.tpl-ats .rm-res-role    { font-size: .82rem; font-weight: bold; color: #333; margin: .06rem 0; }
.tpl-ats .rm-res-desc    { font-size: .82rem; line-height: 1.55; white-space: pre-wrap; margin-top: .18rem; }
.tpl-ats .rm-res-skills-grid { display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.tpl-ats .rm-res-skill-tag { font-size: .8rem; }
.tpl-ats .rm-res-skill-tag::after { content: ' ·'; }
.tpl-ats .rm-res-skill-tag:last-child::after { content: ''; }

/* ── Print ── */
@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    body > * { display: none !important; }
    #rmPrintContent { display: block !important; }
    @page { margin: 0; size: A4; }
}

/* ── Mobile ── */
@media (max-width: 960px) {
    .rm-form-panel { position: static; }
    .rm-preview-page { margin-bottom: 0; }
}
@media (max-width: 600px) {
    .rm-hero h1 { font-size: 1.3rem; }
    .rm-field-grid { grid-template-columns: 1fr; }
    .rm-field.rm-field-full { grid-column: 1; }
    .rm-modal-grid { grid-template-columns: 1fr 1fr; }
}
