/* =============================================================
   section-ditto-override.css — RESPONSIVE REFACTOR
   Visual design 100% unchanged at 1830×896 and above.
   clamp() + vh/vw used throughout for fluid scaling.
   Mobile (max-width:768px) blocks untouched.
   Compact adjustments fire only below 895px viewport height.
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   TOAST NOTIFICATION
───────────────────────────────────────────────────────────── */
#toastContainer {
    position: fixed;
    bottom: clamp(10px, 2vh, 20px);
    right: clamp(10px, 1.5vw, 20px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-height: 40vh;
    overflow: hidden;
}
.toast {
    background: #4CAF50;
    color: #fff;
    padding: clamp(8px, 1.2vh, 12px) clamp(14px, 1.5vw, 20px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 500;
    pointer-events: auto;
    animation: toastFadeIn 0.3s ease, toastFadeOut 0.3s ease 2.7s forwards;
}
@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(8px); }
}

/* ─────────────────────────────────────────────────────────────
   FAB BUTTON
───────────────────────────────────────────────────────────── */
.fab-btn {
    position: fixed;
    bottom: clamp(16px, 3vh, 32px);
    right: clamp(16px, 2vw, 32px);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: clamp(12px, 1.8vh, 16px) clamp(16px, 1.8vw, 24px) clamp(12px, 1.8vh, 16px) clamp(14px, 1.6vw, 20px);
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    border-radius: 50px;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(16,185,129,0.45);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px;
}
.fab-btn--collapsed {
    padding: clamp(12px, 1.8vh, 16px);
    max-width: 54px;
    border-radius: 50%;
    gap: 0;
}
.fab-btn--collapsed .fab-label { opacity: 0; width: 0; margin: 0; }
.fab-label { opacity: 1; transition: opacity 0.2s ease, width 0.3s ease; width: auto; }
.fab-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 30px rgba(16,185,129,0.55);
    color: #fff;
}
.fab-btn--collapsed:hover {
    border-radius: 50px;
    max-width: 200px;
    padding: clamp(12px, 1.8vh, 16px) clamp(16px, 1.8vw, 24px) clamp(12px, 1.8vh, 16px) clamp(14px, 1.6vw, 20px);
    gap: 10px;
}
.fab-btn--collapsed:hover .fab-label { opacity: 1; width: auto; }
.fab-btn:active { transform: translateY(-1px) scale(1.02); }
.fab-btn svg { flex-shrink: 0; width: 22px; height: 22px; }
@media (max-width: 768px) { .fab-btn { display: none !important; } }

/* ─────────────────────────────────────────────────────────────
   INPUT ICON WRAPPER
───────────────────────────────────────────────────────────── */
.input-icon-wrapper { position: relative; }
.personal-info-input-icon {
    display: block;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    pointer-events: none;
    z-index: 9;
    color: #10b981;
}
.personal-info-input-icon svg { width: 16px; height: 16px; display: block; }

/* ─────────────────────────────────────────────────────────────
   EXPERIENCE ENTRY HELPERS
───────────────────────────────────────────────────────────── */
.entry-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(10px, 1.5vh, 15px);
}
.entry-title { margin: 0; font-size: clamp(14px, 1.1vw, 16px); }
.exp-char-count { text-align: right; margin-top: 4px; }
.ai-btn-row { display: flex; justify-content: flex-end; margin: 8px 0 12px; }

/* ─────────────────────────────────────────────────────────────
   EMPTY RESUME PREVIEW
───────────────────────────────────────────────────────────── */
.empty-resume-page { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.empty-page-grid { position: absolute; inset: 0; pointer-events: none; }
.empty-resume-body {
    display: flex; flex-direction: column; align-items: center;
    gap: 0; position: relative; z-index: 1;
    padding: clamp(32px, 5vh, 48px) clamp(24px, 3vw, 40px);
    text-align: center; max-width: 420px;
}
.empty-resume-icon-wrap {
    width: clamp(56px, 6vw, 72px); height: clamp(56px, 6vw, 72px);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    margin-bottom: clamp(16px, 2.5vh, 24px);
    box-shadow: 0 8px 24px rgba(16,185,129,0.15);
}
.empty-resume-heading { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; color: #111827; margin-bottom: 10px; }
.empty-resume-subtext { font-size: clamp(12px, 1vw, 14px); color: #6b7280; line-height: 1.6; margin-bottom: clamp(20px, 3vh, 32px); }
.empty-resume-features { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.empty-feature-item {
    display: flex; align-items: center; gap: 12px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: clamp(8px, 1.2vh, 11px) clamp(12px, 1.2vw, 16px); text-align: left;
}
.empty-feature-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.empty-feature-icon--green  { background: #ecfdf5; }
.empty-feature-icon--blue   { background: #eff6ff; }
.empty-feature-icon--purple { background: #f5f3ff; }
.empty-feature-title { display: block; font-size: clamp(11px, 0.95vw, 13px); font-weight: 600; color: #111827; margin-bottom: 1px; }
.empty-feature-desc  { font-size: clamp(10px, 0.85vw, 12px); color: #9ca3af; }
.empty-resume-cta { margin-top: clamp(18px, 2.5vh, 28px); display: flex; align-items: center; gap: 8px; color: #10b981; font-size: clamp(11px, 0.95vw, 13px); font-weight: 600; }
.empty-resume-arrow { animation: emptyArrowBounce 1.4s ease-in-out infinite; }
@keyframes emptyArrowBounce {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(-4px); }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE AUTH / LOGOUT BARS
───────────────────────────────────────────────────────────── */
.mobile-build-resume-cta {
    align-items: center; justify-content: center; gap: 8px;
    padding: 13px; background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff !important; border-radius: 10px; font-size: 15px; font-weight: 700;
    text-decoration: none; box-shadow: 0 4px 14px rgba(16,185,129,0.35);
    margin-top: 12px; margin-bottom: 4px;
}
.mobile-logout-bar { padding: 12px 16px; border-top: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.mobile-logout-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px; background: #fff; color: #ef4444;
    border: 1px solid #fca5a5; border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; box-sizing: border-box;
}
.mobile-menu-auth-buttons { padding: 12px 16px; border-top: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.mobile-auth-row { display: flex; gap: 8px; }
.mobile-auth-signin {
    flex: 1; text-align: center; padding: 11px;
    background: linear-gradient(135deg, #10b981, #34d399); color: #fff;
    border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.mobile-auth-signup {
    flex: 1; text-align: center; padding: 11px;
    background: #f3f4f6; color: #1f2937; border-radius: 8px;
    font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid #e5e7eb;
}

/* ─────────────────────────────────────────────────────────────
   REPEATER / CERT / EDU REMOVE BUTTONS
───────────────────────────────────────────────────────────── */
.repeater-item { position: relative; }
.cert-remove-btn, .edu-remove-btn { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 20px; padding: 0; }

/* ─────────────────────────────────────────────────────────────
   EDIT POPUP & BULLET EDITOR
───────────────────────────────────────────────────────────── */
.edit-popup-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55); display: none; align-items: center; justify-content: center;
    z-index: 9999; backdrop-filter: blur(4px); animation: ef-fadeIn 0.2s ease; padding: 20px;
}
.edit-popup-overlay.active { display: flex; }

.job-desc-edit-btn {
    position: absolute; top: 8px; right: 8px;
    display: flex !important; align-items: center; gap: 4px;
    padding: clamp(3px, 0.5vh, 4px) clamp(8px, 0.8vw, 10px);
    background: rgba(255,255,255,0.95); color: #64748b;
    border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: clamp(10px, 0.85vw, 11px); font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all 0.2s ease; z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); backdrop-filter: blur(8px);
}
.job-desc-edit-btn:hover {
    background: #fff; color: #6366f1; border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99,102,241,0.15); transform: translateY(-1px);
}

.edit-popup {
    background: white; border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    width: 100%; max-width: clamp(480px, 50vw, 700px);
    max-height: min(85vh, 700px); overflow: hidden;
    display: flex; flex-direction: column; animation: ef-slideUp 0.3s ease;
}
.edit-popup-header {
    padding: clamp(14px, 2vh, 20px) clamp(16px, 1.8vw, 24px);
    border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center;
}
.edit-popup-title { font-size: clamp(15px, 1.2vw, 18px); font-weight: 700; color: #0f172a; }
.edit-popup-close {
    background: transparent; border: none; color: #94a3b8; cursor: pointer;
    padding: 4px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.edit-popup-close:hover { background: #f1f5f9; color: #475569; }
.edit-popup-body { padding: clamp(14px, 2vh, 20px) clamp(16px, 1.8vw, 24px); overflow-y: auto; flex: 1; }

/* ── Bullet items ── */
.bullet-item {
    display: flex; gap: 12px; align-items: center;
    padding: clamp(8px, 1.2vh, 12px);
    border-radius: 10px; margin-bottom: 10px;
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    transition: background 0.2s, border-color 0.2s;
    cursor: grab; position: relative; user-select: none;
}
.bullet-item:active           { cursor: grabbing; }
.bullet-item.dragging         { opacity: 0.3; cursor: grabbing; background: #cbd5e1; }
.bullet-item:hover:not(.dragging) { background: #fafbff; border-color: #c7d2fe; }
.bullet-item.selected:not(.dragging) { background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-color: #6366f1; }
.bullet-item.deleted          { opacity: 0.4; text-decoration: line-through; }

.drag-handle { display: flex; align-items: center; color: #cbd5e1; cursor: grab; transition: color 0.2s; }
.drag-handle:hover { color: #94a3b8; }
.bullet-item:active .drag-handle { cursor: grabbing; }

.bullet-checkbox-wrapper { display: flex; align-items: center; }
.bullet-checkbox {
    appearance: none; width: 20px; height: 20px; border: 2px solid #cbd5e1;
    border-radius: 6px; cursor: pointer; transition: all 0.2s; position: relative; flex-shrink: 0;
}
.bullet-checkbox:hover { border-color: #6366f1; }
.bullet-checkbox:checked { background: #6366f1; border-color: #6366f1; }
.bullet-checkbox:checked::after {
    content: ''; position: absolute; top: 2px; left: 6px; width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.bullet-content { flex: 1; display: flex; }
.bullet-text-input {
    width: 100%; border: none; background: transparent;
    font-size: clamp(12px, 1vw, 14px); color: #1e293b; line-height: 1.6;
    padding: 4px 8px; border-radius: 6px; font-family: inherit; outline: none; transition: all 0.2s;
}
.bullet-text-input:focus { background: white; box-shadow: 0 0 0 2px rgba(99,102,241,0.2); }
.bullet-text-input::placeholder { color: #94a3b8; }

.bullet-actions { display: flex; gap: 6px; opacity: 0; transition: opacity 0.2s; }
.bullet-item:hover .bullet-actions { opacity: 1; }

.ai-action-btn {
    padding: clamp(3px, 0.4vh, 4px) clamp(8px, 0.8vw, 10px);
    background: white; border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: clamp(10px, 0.85vw, 11px); font-weight: 600; color: #64748b;
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.ai-action-btn:hover { background: #fafbff; border-color: #c7d2fe; color: #6366f1; }
.ai-action-btn.primary { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; border: none; }
.ai-action-btn.primary:hover { box-shadow: 0 4px 12px rgba(99,102,241,0.35); transform: translateY(-1px); }
.ai-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-action-btn.loading { position: relative; color: transparent; }
.ai-action-btn.loading::after {
    content: ''; position: absolute; width: 12px; height: 12px; top: 50%; left: 50%;
    margin: -6px 0 0 -6px; border: 2px solid #fff; border-radius: 50%;
    border-top-color: transparent; animation: ef-spin 0.6s linear infinite;
}

/* ── Popup footer ── */
.edit-popup-footer {
    padding: clamp(12px, 1.8vh, 16px) clamp(16px, 1.8vw, 24px);
    border-top: 1px solid #f1f5f9; display: flex; gap: 10px; flex-wrap: wrap;
    justify-content: space-between; align-items: center; background: #fafbfc;
}
.footer-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-right { display: flex; gap: 10px; }

.popup-btn { padding: clamp(9px, 1.2vh, 10px) clamp(16px, 1.5vw, 20px); border-radius: 8px; font-size: clamp(12px, 1vw, 13.5px); font-weight: 600; cursor: pointer; transition: all 0.15s; border: none; font-family: inherit; white-space: nowrap; }
.popup-btn-cancel { background: #fff; border: 1.5px solid #e5e7eb; color: #475569; }
.popup-btn-cancel:hover { border-color: #6366f1; color: #6366f1; background: #fafbff; }
.popup-btn-save   { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; font-weight: 700; box-shadow: 0 2px 8px rgba(99,102,241,0.25); }
.popup-btn-save:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,0.4); }
.popup-btn-regen { background: #fff; border: 1.5px solid #e5e7eb; color: #475569; display: inline-flex; align-items: center; gap: 6px; }
.popup-btn-regen:hover:not(:disabled) { border-color: #6366f1; color: #6366f1; background: #fafbff; }
.popup-btn-regen:disabled { opacity: .6; cursor: not-allowed; }
.popup-regen-spinner { width: 12px; height: 12px; border: 2px solid #c7d2fe; border-top-color: #6366f1; border-radius: 50%; animation: ef-spin .7s linear infinite; flex-shrink: 0; }

.selection-counter { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #eef2ff; color: #4338ca; border-radius: 6px; font-size: clamp(11px, 0.95vw, 13px); font-weight: 600; }
.drag-instruction { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: linear-gradient(135deg, #f5f3ff, #eef2ff); border: 1px solid #e0e7ff; border-radius: 8px; font-size: clamp(10px, 0.85vw, 12px); color: #4338ca; margin-bottom: 12px; }
.empty-state { text-align: center; padding: clamp(24px, 4vh, 40px) 20px; color: #64748b; }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: clamp(12px, 1vw, 14px); line-height: 1.6; }

/* ── Single-box bullet editor ── */
.jd-edit-hint {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin-bottom: 12px;
    background: linear-gradient(135deg, #f5f3ff, #eef2ff); border: 1px solid #e0e7ff;
    border-radius: 8px; font-size: clamp(11px, 0.9vw, 12.5px); color: #4338ca;
}
.jd-edit-hint svg { flex-shrink: 0; }
.jd-bullets-textarea {
    width: 100%; min-height: 240px; padding: 14px;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: clamp(13px, 1vw, 14px); line-height: 1.7;
    font-family: inherit; color: #0f172a; background: #fff;
    resize: vertical; transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.jd-bullets-textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.jd-bullets-textarea.is-generating { border-color: #c7d2fe; background: #fafbff; color: #475569; }

/* ── "Job title for AI" context block (mirrors the Summary modal) ── */
.jd-context-block {
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    border: 1px solid #e0e7ff; border-radius: 10px;
    padding: 12px 14px; margin-bottom: 16px;
}
.jd-context-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; color: #4338ca;
    text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px;
}
.jd-context-input {
    width: 100%; padding: 9px 12px; border: 1.5px solid #c7d2fe; border-radius: 7px;
    font-size: 13.5px; font-weight: 600; color: #0f172a; background: #fff;
    transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.jd-context-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

/* ── Per-row actions: regenerate-one + lock ── */
.bullet-row-actions { display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.bullet-item:hover .bullet-row-actions { opacity: 1; }
.bullet-item.locked .bullet-row-actions { opacity: 1; }
.bullet-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 7px;
    color: #94a3b8; cursor: pointer; transition: all .15s;
}
.bullet-icon-btn:hover:not(:disabled) { border-color: #6366f1; color: #6366f1; background: #fafbff; }
.bullet-icon-btn:disabled { opacity: .5; cursor: not-allowed; }
/* lock icon state swap */
.bullet-lock .lock-closed { display: none; }
.bullet-lock .lock-open   { display: block; }
.bullet-item.locked .bullet-lock { color: #6366f1; border-color: #c7d2fe; background: #eef2ff; }
.bullet-item.locked .bullet-lock .lock-open   { display: none; }
.bullet-item.locked .bullet-lock .lock-closed { display: block; }
/* a locked bullet can't be regenerated individually */
.bullet-item.locked .bullet-regen-one { display: none; }
.bullet-item.locked { border-color: #c7d2fe; }
.bullet-item.locked::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    background: #6366f1; border-radius: 0 3px 3px 0;
}
.bullet-kept-badge { font-size: 13px; padding: 0 6px; }

/* row busy state while a single bullet regenerates */
.bullet-item.bullet-regenerating .bullet-text-input { opacity: .5; }

/* ── Count selector in footer ── */
.regen-count { display: inline-flex; align-items: center; gap: 6px; }
.regen-count label { font-size: 12px; font-weight: 600; color: #64748b; }
.regen-count-select {
    appearance: none; -webkit-appearance: none;
    padding: 7px 26px 7px 10px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: #475569; background: #fff; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center;
    transition: border-color .15s, box-shadow .15s;
}
.regen-count-select:hover { border-color: #c7d2fe; }
.regen-count-select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

/* ── Streaming skeletons + fill ── */
.drag-instruction.regen-live { color: #4338ca; font-weight: 600; }
.bullet-item.bullet-skeleton { cursor: default; background: #f8fafc; }
.bullet-item.bullet-static   { cursor: default; }
.drag-handle.dim { color: #e2e8f0; cursor: default; }
.skeleton-lines { display: flex; flex-direction: column; gap: 7px; width: 100%; padding: 3px 0; }
.skeleton-line {
    height: 10px; border-radius: 5px; width: 100%;
    background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
    background-size: 400% 100%; animation: bullet-shimmer 1.3s ease infinite;
}
.skeleton-line.short { width: 62%; }
@keyframes bullet-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.bullet-filled-text {
    font-size: clamp(12px, 1vw, 14px); color: #1e293b; line-height: 1.6; padding: 4px 8px;
}
.bullet-item.bullet-appear { animation: bullet-pop-in .28s ease both; }
@keyframes bullet-pop-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ─────────────────────────────────────────────────────────────
   ACCORDION CARD
───────────────────────────────────────────────────────────── */
.accordion-card {
    background: #ffffff; border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important; margin-bottom: 4px !important; overflow: hidden;
    transition: box-shadow 0.18s ease, border-color 0.2s ease, opacity 0.18s ease, filter 0.18s ease !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}
.accordion-card:hover { border-color: #d1d5db !important; box-shadow: 0 4px 16px rgba(0,0,0,0.09) !important; }

.accordion-card:not(.expanded) .accordion-header {
    background: #ffffff; border-left: none; border-bottom: none; cursor: grab; position: relative; overflow: hidden;
}
.accordion-card:not(.expanded) .accordion-header:hover { background: linear-gradient(110deg, #0A0F1C 0%, #111827 55%, #1F2937 100%); }
.accordion-card:not(.expanded) .accordion-header:hover .accordion-title-display    { color: #E5E7EB !important; }
.accordion-card:not(.expanded) .accordion-header:hover .accordion-subtitle-display { color: #9CA3AF !important; }
.accordion-card:not(.expanded) .accordion-header:hover .accordion-grip             { opacity: 0.7; }
.accordion-card:not(.expanded) .accordion-header:hover .accordion-grip circle      { fill: rgba(16,185,129,0.55); }
.accordion-card:not(.expanded) .accordion-header:hover .accordion-chevron          { color: #10B981 !important; filter: none !important; }
.accordion-card:not(.expanded) .accordion-header:hover .accordion-remove-btn       { color: rgba(229,231,235,0.3); border-color: rgba(229,231,235,0.12); }
.accordion-card:not(.expanded) .accordion-header:active { cursor: grabbing; }
.accordion-card:not(.expanded) .accordion-header::before,
.accordion-card:not(.expanded) .accordion-header::after,
.accordion-card:not(.expanded) .accordion-header-icon  { display: none; }
.accordion-card:not(.expanded) .accordion-grip         { opacity: 0.45; }
.accordion-card:not(.expanded) .accordion-grip circle  { fill: #d1d5db; }
.accordion-card:not(.expanded) .accordion-title-display { color: #111827; font-size: clamp(12px, 1vw, 13.5px); font-weight: 700; letter-spacing: 0.01em; transition: color 0.2s; }
.accordion-card:not(.expanded) .accordion-subtitle-display { color: #9CA3AF; opacity: 1; font-size: clamp(10px, 0.85vw, 11.5px); font-weight: 500; transition: color 0.2s; }
.accordion-card:not(.expanded) .accordion-chevron { color: #10B981; filter: none; }
.accordion-card:not(.expanded) .accordion-remove-btn { color: #d1d5db; border: 1px solid #e5e7eb; background: transparent; transition: all 0.15s; }

.accordion-card.expanded { border: 1px solid #e2e8f0 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important; }
.accordion-card.expanded .accordion-header { background: #ffffff; border-left: none; border-bottom: 1px solid #f3f4f6 !important; cursor: default; }
.accordion-card.expanded .accordion-header:hover { background: #ffffff; }
.accordion-card.expanded .accordion-header:hover .accordion-title-display    { color: #111827 !important; }
.accordion-card.expanded .accordion-header:hover .accordion-subtitle-display { color: #9CA3AF !important; }
.accordion-card.expanded .accordion-header:hover .accordion-grip circle      { fill: #d1d5db; }
.accordion-card.expanded .accordion-header:hover .accordion-chevron          { color: #9CA3AF !important; }
.accordion-card.expanded .accordion-header:hover .accordion-remove-btn       { color: #d1d5db; border-color: #e5e7eb; }
.accordion-card.expanded .accordion-header-icon { display: none; }
.accordion-card.expanded .accordion-grip        { opacity: 0.35; }
.accordion-card.expanded .accordion-grip circle { fill: #d1d5db; }
.accordion-card.expanded .accordion-title-display    { color: #111827; font-size: clamp(12px, 1vw, 13.5px); font-weight: 700; }
.accordion-card.expanded .accordion-subtitle-display { color: #9CA3AF; font-size: clamp(10px, 0.85vw, 11.5px); }
.accordion-card.expanded .accordion-chevron    { color: #9CA3AF; filter: none; }
.accordion-card.expanded .accordion-remove-btn { color: #d1d5db; border: 1px solid #e5e7eb; background: transparent; }

.accordion-remove-btn:hover { background: #fee2e2 !important; border-color: #fecaca !important; color: #ef4444 !important; transform: scale(1.1); }

.accordion-header-divider { height: 1px; background: #f3f4f6; margin: 0; display: none; opacity: 1; }
.accordion-card.expanded .accordion-header-divider { display: block; }

.accordion-body { padding: clamp(10px, 1.5vh, 16px) clamp(10px, 1.2vw, 14px) clamp(10px, 1.2vh, 14px); }

.accordion-header {
    display: flex; align-items: center;
    padding: 0 10px;
    height: clamp(38px, 5.5vh, 44px) !important;
    min-height: clamp(38px, 5.5vh, 44px) !important;
    max-height: clamp(38px, 5.5vh, 44px) !important;
    user-select: none;
    transition: background 0.2s, box-shadow 0.2s; gap: 10px;
}
.accordion-grip {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 24px; height: 28px; cursor: grab; border-radius: 6px;
    transition: opacity 0.18s, background 0.18s;
}
.accordion-grip:active { cursor: grabbing; opacity: 1 !important; }
.accordion-header:hover .accordion-grip { opacity: 1 !important; }

.accordion-header-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.accordion-title-display,
.accordion-subtitle-display { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; transition: color 0.2s; }
.accordion-header-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.accordion-chevron { flex-shrink: 0; margin-left: 2px; transition: transform 0.25s ease, color 0.2s; }
.accordion-remove-btn {
    flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 6px;
    font-size: 18px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.18s, color 0.18s, transform 0.15s; padding: 0; line-height: 1;
}

/* ─────────────────────────────────────────────────────────────
   DRAG & DROP
───────────────────────────────────────────────────────────── */
#__drag-portal__ { position: fixed; inset: 0; z-index: 99999; pointer-events: none; overflow: visible; }
.card-placeholder { opacity: 0.35 !important; filter: blur(0.4px) grayscale(18%); pointer-events: none !important; transition: opacity 0.18s ease, filter 0.18s ease !important; }
.card-ghost {
    position: absolute; top: 0; left: 0; pointer-events: none; border-radius: 12px;
    background: #ffffff; opacity: 1; border: 1px solid #e2e8f0 !important; outline: none !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08) !important; will-change: transform; overflow: hidden;
    transform-origin: var(--ghost-ox, 50%) var(--ghost-oy, 50%);
    transform: translate(var(--ghost-x, 0px), var(--ghost-y, 0px)) rotate(0.4deg) scale(1.012);
    transition: box-shadow 0.15s ease;
}
.accordion-card.swap-target { border-color: #e2e8f0 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; transition: box-shadow 0.15s ease, border-color 0.15s ease !important; }
.accordion-card.drop-landed { animation: none !important; }

/* ─────────────────────────────────────────────────────────────
   PRESENT CHECKBOX
───────────────────────────────────────────────────────────── */
.present-checkbox-wrapper.checked { border-color: #10B981 !important; background: rgba(16,185,129,0.06) !important; }
.present-checkbox-wrapper.checked .custom-checkbox {
    background: #10B981 !important; border-color: #10B981 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 10px; background-repeat: no-repeat; background-position: center;
}
.present-checkbox-wrapper.checked span { color: #059669 !important; }
.disabled input, .disabled .date-input { opacity: 0.45; pointer-events: none; }

/* ─────────────────────────────────────────────────────────────
   MOBILE NAV BOTTOM BAR
───────────────────────────────────────────────────────────── */
.mobile-nav-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e5e7eb; padding: 10px 16px;
    gap: 10px; z-index: 8000; align-items: center; justify-content: space-between;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
@media (max-width: 768px) { .mobile-nav-bar { display: flex; } }

#mobilePrevSectionBtn, #mobileNextSectionBtn {
    display: flex; align-items: center; gap: 6px;
    font-size: clamp(11px, 0.95vw, 13px); font-weight: 600;
    padding: clamp(7px, 1vh, 9px) clamp(14px, 1.5vw, 18px);
    border-radius: 7px; cursor: pointer; font-family: inherit; transition: all 0.15s;
}
#mobilePrevSectionBtn { background: #f9fafb; color: #374151; border: 1px solid #e5e7eb; }
#mobilePrevSectionBtn:disabled { opacity: 0.4; cursor: not-allowed; }
#mobileNextSectionBtn { background: #10B981; color: #fff; border: none; flex: 1; justify-content: center; box-shadow: 0 1px 3px rgba(16,185,129,0.3); }
#mobileNextSectionBtn:hover    { background: #059669; }
#mobileNextSectionBtn:disabled { opacity: 0.4; cursor: not-allowed; }
#mobileNavStatus { font-size: 12px; font-weight: 600; color: #9CA3AF; white-space: nowrap; }
#mobileCompletionFill { height: 3px; background: #10B981; border-radius: 99px; transition: width 0.4s ease; }

/* ─────────────────────────────────────────────────────────────
   PERSONAL INFO STATUS BAR
───────────────────────────────────────────────────────────── */
.personal-info-status {
    display: flex; align-items: center; gap: 10px;
    padding: clamp(8px, 1.2vh, 10px) clamp(10px, 1.2vw, 14px);
    background: #fafafa; border: 1px solid #e5e7eb; border-radius: 8px;
    margin-bottom: clamp(10px, 1.5vh, 16px); transition: all 0.2s;
}
.personal-info-status.complete { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.2); }
.personal-info-status .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #d1d5db; transition: background 0.2s; }
.personal-info-status.complete .status-dot { background: #10B981; }
#personalStatusText { font-size: clamp(11px, 0.95vw, 12.5px); font-weight: 600; color: #9CA3AF; transition: color 0.2s; }
.personal-info-status.complete #personalStatusText { color: #059669; }

/* ─────────────────────────────────────────────────────────────
   COMPLETION BAR
───────────────────────────────────────────────────────────── */
.completion-ring { position: relative; flex-shrink: 0; }
#nav-status { font-size: 11px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.5px; }
#completion-fill { height: 3px; background: #10B981; border-radius: 99px; transition: width 0.4s ease; min-width: 0; }
.nav-item { transition: background 0.15s; }
.nav-item.active { background: rgba(16,185,129,0.08) !important; }
.nav-item.active .nav-item-name { color: #059669; }

/* ─────────────────────────────────────────────────────────────
   ENTRY TOAST
───────────────────────────────────────────────────────────── */
.entry-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #111827; color: #E5E7EB;
    padding: clamp(8px, 1.2vh, 10px) clamp(14px, 1.5vw, 20px);
    border-radius: 8px; font-size: clamp(11px, 0.95vw, 13px); font-weight: 600; font-family: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2); border-left: 3px solid #10B981;
    z-index: 99999; pointer-events: none;
    animation: ef-toastIn 0.25s ease, ef-toastOut 0.3s ease 1.7s forwards;
}

/* ─────────────────────────────────────────────────────────────
   PERSONAL INFO VALIDATION
───────────────────────────────────────────────────────────── */
.personal-info-input.invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important; animation: ef-shake 0.35s ease; }
.personal-info-input.invalid::placeholder { color: #fca5a5 !important; }
.personal-info-validation.show {
    display: flex !important; align-items: center; gap: 5px;
    color: #dc2626; font-size: clamp(10px, 0.85vw, 12px); font-weight: 500; margin-top: 5px;
}
.personal-info-validation.show::before {
    content: ''; display: inline-block; width: 14px; height: 14px; background: #ef4444; border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    background-size: 9px; background-repeat: no-repeat; background-position: center; flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────────────────── */
@keyframes ef-fadeIn  { from { opacity: 0; }                              to { opacity: 1; } }
@keyframes ef-slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ef-spin    { to { transform: rotate(360deg); } }
@keyframes ef-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
@keyframes ef-toastIn  { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes ef-toastOut { to { opacity: 0; transform: translateX(-50%) translateY(6px); } }

/* ─────────────────────────────────────────────────────────────
   BASE LAYOUT — original design at 896px+ height, untouched
───────────────────────────────────────────────────────────── */
html, body {
    margin: 0 !important; padding: 0 !important;
    background: #f1f5f9 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Lock overflow only below threshold */
@media (max-height: 895px) {
    html, body { overflow: hidden !important; height: 100vh !important; max-height: 100vh !important; }
}

/* ── Header ── */
.rd-header {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
    height: 64px !important; min-height: 64px !important;
    background: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
    border-bottom: 1px solid rgba(15,23,42,0.07) !important;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05), 0 4px 16px rgba(15,23,42,0.04) !important;
    z-index: 1000 !important;
    display: flex !important; align-items: center !important;
}
.rd-header-content { display: flex !important; align-items: center !important; width: 100% !important; padding: 0 20px !important; position: relative !important; }
.rd-header .brand-name { font-size: 18px !important; font-weight: 800 !important; letter-spacing: -0.03em !important; line-height: 1 !important; background: linear-gradient(120deg, #065f46 0%, #059669 30%, #10b981 50%, #059669 70%, #065f46 100%) !important; background-size: 220% 100% !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; color: transparent !important; white-space: nowrap !important; animation: atsLogoShimmer 2s ease-in-out infinite !important; }
@keyframes atsLogoShimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .rd-header .brand-name { animation: none !important; } }
.rd-header .header-nav { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; gap: 28px !important; }

/* Three zones (logo | nav | auth) floated in one white strip with nothing
   separating them. Push auth right, give it air, and mark the boundary
   with a faint vertical rule. */
.rd-header .header-right-section { margin-left: auto !important; display: flex !important; align-items: center !important; }
.rd-header .header-right-section::before { content: "" !important; display: block !important; width: 1px !important; height: 22px !important; background: rgba(15,23,42,0.10) !important; margin-right: 18px !important; flex-shrink: 0 !important; }
@media (max-width: 768px) {
    .rd-header .header-right-section::before { display: none !important; }
}
/* Nav links: real hover affordance + keyboard focus (there was none) */
.rd-header .nav-link { position: relative !important; font-size: 13px !important; color: #475569 !important; font-weight: 500 !important; text-decoration: none !important; padding: 6px 2px !important; transition: color 0.15s ease !important; }
.rd-header .nav-link::after { content: "" !important; position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; height: 2px !important; border-radius: 2px !important; background: #10b981 !important; transform: scaleX(0) !important; transform-origin: center !important; transition: transform 0.18s cubic-bezier(.4,0,.2,1) !important; }
.rd-header .nav-link:hover { color: #0f172a !important; }
.rd-header .nav-link:hover::after { transform: scaleX(1) !important; }
.rd-header .nav-link.active { color: #0f172a !important; font-weight: 600 !important; }
.rd-header .nav-link.active::after { transform: scaleX(1) !important; }
.rd-header .nav-link:focus-visible { outline: 2px solid #10b981 !important; outline-offset: 3px !important; border-radius: 3px !important; }
.rd-btn-new { background: #10b981 !important; color: #fff !important; font-size: 13px !important; font-weight: 700 !important; padding: 7px 16px !important; border-radius: 7px !important; text-decoration: none !important; white-space: nowrap !important; border: none !important; box-shadow: 0 1px 3px rgba(16,185,129,0.30) !important; transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease !important; }
.rd-btn-new:hover { background: #059669 !important; box-shadow: 0 3px 12px rgba(16,185,129,0.38) !important; transform: translateY(-1px) !important; }
.rd-btn-new:focus-visible { outline: 2px solid #10b981 !important; outline-offset: 2px !important; }
.rd-header .btn-login { background: transparent !important; color: #0f172a !important; border: 1px solid #cbd5e1 !important; font-size: 13px !important; font-weight: 600 !important; padding: 6px 14px !important; border-radius: 7px !important; margin-right: 8px !important; text-decoration: none !important; transition: background 0.15s ease, border-color 0.15s ease !important; }
.rd-header .btn-login:hover { background: #f8fafc !important; border-color: #94a3b8 !important; }
.rd-header .btn-login:focus-visible { outline: 2px solid #10b981 !important; outline-offset: 2px !important; }

/* ── 3-column app layout ── */
.rd-app-layout {
    display: grid !important;
    grid-template-columns: 200px 40fr 60fr !important;
    width: 100vw !important; max-width: 100vw !important;
    height: calc(100vh - 64px) !important; max-height: calc(100vh - 64px) !important;
    margin-top: 64px !important; overflow: hidden !important;
}

/* ── Left sidebar ── */
.rd-sidebar {
    width: 200px !important; min-width: 200px !important;
    background: #ffffff !important; border-right: 1px solid #e5e7eb !important;
    display: flex !important; flex-direction: column !important;
    height: 100% !important; max-height: 100% !important;
    overflow-y: auto !important; overflow-x: hidden !important;
}
.rd-sidebar::-webkit-scrollbar { width: 4px; }
.rd-sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.rd-sidebar-resume-label { padding: 12px 14px 10px !important; border-bottom: 1px solid #f1f5f9 !important; }
.rd-sidebar-resume-meta { font-size: 9px !important; font-weight: 700 !important; color: #94a3b8 !important; letter-spacing: 0.07em !important; text-transform: uppercase !important; display: block !important; margin-bottom: 4px !important; }
.rd-sidebar-resume-name { display: flex !important; align-items: center !important; justify-content: space-between !important; font-size: 12px !important; font-weight: 600 !important; color: #1e293b !important; }
.rd-rename-btn { background: none !important; border: none !important; color: #94a3b8 !important; cursor: pointer !important; font-size: 13px !important; padding: 0 !important; }
.rd-rename-btn:hover { color: #475569 !important; }

.rd-sidebar-section-label { padding: 10px 14px 4px !important; font-size: 9px !important; font-weight: 700 !important; color: #94a3b8 !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; }

.rd-nav-menu { display: flex !important; flex-direction: column !important; gap: 2px !important; padding: 0 6px !important; }
.rd-nav-item { display: flex !important; align-items: center !important; gap: 8px !important; padding: 6px 8px !important; border-radius: 7px !important; text-decoration: none !important; cursor: pointer !important; transition: background 0.12s !important; border: none !important; outline: none !important; position: relative !important; }
.rd-nav-item:hover { background: #f8fafc !important; box-shadow: none !important; }
.rd-nav-item:hover .rd-nav-title { color: #1e293b !important; }
.rd-nav-item:hover .rd-nav-icon-wrap { background: #e9eef4 !important; }
.rd-nav-item:hover .rd-nav-icon-wrap svg { stroke: #475569 !important; }
.rd-nav-item.active { background: #ecfdf5 !important; box-shadow: none !important; border: none !important; }
.rd-nav-item.active .rd-nav-title  { color: #065f46 !important; font-weight: 700 !important; }
.rd-nav-item.active .rd-nav-sub    { color: #6ee7b7 !important; }
.rd-nav-item.active .rd-nav-icon-wrap { background: #d1fae5 !important; }
.rd-nav-item.active .rd-nav-icon-wrap svg { stroke: #059669 !important; }
.rd-nav-item[style] { background: revert !important; border: none !important; box-shadow: none !important; color: revert !important; }

.rd-nav-icon-wrap { width: 28px !important; height: 28px !important; border-radius: 7px !important; background: #f1f5f9 !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; transition: background 0.12s !important; }
.rd-nav-icon-wrap svg { stroke: #64748b !important; }

.rd-nav-text-wrap { flex: 1; min-width: 0; }
.rd-nav-title { display: block !important; font-size: 12px !important; font-weight: 600 !important; color: #374151 !important; white-space: normal !important; overflow: visible !important; text-overflow: unset !important; line-height: 1.3 !important; word-break: break-word !important; }
.rd-nav-sub   { display: block !important; font-size: 10px !important; color: #94a3b8 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; margin-top: 1px !important; line-height: 1.2 !important; }
.rd-nav-check { font-size: 10px !important; font-weight: 700 !important; width: 14px !important; min-width: 14px !important; text-align: center !important; flex-shrink: 0 !important; opacity: 0 !important; transition: opacity 0.2s ease !important; }
.rd-check--done { opacity: 1 !important; color: #10b981 !important; }

/* ── Profile strength ── */
.rd-profile-strength {
    margin-top: auto !important; padding: 10px 12px !important;
    border-top: 1px solid #f1f5f9 !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    position: sticky !important; bottom: 0 !important; z-index: 2 !important;
}
.rd-ps-header { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 7px !important; }
.rd-ps-label  { font-size: 10px !important; font-weight: 600 !important; color: #374151 !important; }
.rd-ps-score  { font-size: 11px !important; font-weight: 700 !important; color: #10b981 !important; }
.rd-ps-bar-bg { height: 5px !important; background: #e9f5ee !important; border-radius: 99px !important; overflow: hidden !important; margin-bottom: 8px !important; }
.rd-ps-bar-fill { height: 100% !important; background: linear-gradient(90deg, #10b981, #34d399) !important; border-radius: 99px !important; transition: width 0.5s ease !important; }
.rd-ps-hint {
    font-size: 9.5px !important; color: #94a3b8 !important; line-height: 1.4 !important; margin: 0 !important;
    white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}

/* ── Sidebar top progress ── */
.rd-sidebar-top { padding: 14px 14px 12px !important; border-bottom: 1px solid #f1f5f9 !important; }
.rd-progress-header { display: flex !important; align-items: center !important; justify-content: space-between !important; margin-bottom: 8px !important; }
.rd-progress-label { font-size: 10px !important; font-weight: 700 !important; color: #94a3b8 !important; text-transform: uppercase !important; letter-spacing: 0.07em !important; }
.rd-progress-pct   { font-size: 13px !important; font-weight: 800 !important; color: #10b981 !important; letter-spacing: -0.02em !important; }
.rd-progress-track { height: 5px !important; background: #e9f5ee !important; border-radius: 99px !important; overflow: hidden !important; margin-bottom: 10px !important; }
.rd-progress-fill  { height: 100% !important; background: linear-gradient(90deg, #10b981 0%, #34d399 100%) !important; border-radius: 99px !important; transition: width 0.5s cubic-bezier(0.4,0,0.2,1) !important; }

.rd-progress-steps { display: flex !important; align-items: center !important; justify-content: space-between !important; margin-bottom: 8px !important; position: relative !important; padding: 2px 4px !important; }
.rd-progress-steps::before { content: '' !important; position: absolute !important; top: 50% !important; left: 6px !important; right: 6px !important; height: 1px !important; background: #e5e7eb !important; transform: translateY(-50%) !important; z-index: 0 !important; }
.rd-progress-step  { position: relative !important; z-index: 1 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.rd-step-dot { width: 12px !important; height: 12px !important; border-radius: 50% !important; background: #e5e7eb !important; border: 2px solid #fff !important; display: block !important; transition: background 0.3s ease, transform 0.2s ease !important; box-shadow: 0 0 0 1px #e5e7eb !important; }
.rd-step-dot.done   { background: #10b981 !important; box-shadow: 0 0 0 1px #10b981 !important; transform: scale(1.15) !important; }
.rd-step-dot.active { background: #ffffff !important; border: 2px solid #10b981 !important; box-shadow: 0 0 0 2px rgba(16,185,129,0.2) !important; transform: scale(1.2) !important; }
.rd-progress-hint { font-size: 10px !important; color: #94a3b8 !important; line-height: 1.4 !important; margin: 0 !important; text-align: center !important; }

/* ── Center form panel ── */
.rd-form-main { height: 100% !important; max-height: 100% !important; overflow-y: auto !important; overflow-x: hidden !important; background: #f1f5f9 !important; display: flex !important; flex-direction: column !important; }
.rd-form-main::-webkit-scrollbar { width: 5px; }
.rd-form-main::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ── Step bar ── */
.rd-step-bar {
    height: 46px !important; min-height: 46px !important; max-height: 46px !important;
    padding: 0 20px !important; background: #10b981 !important;
    border-bottom: 1px solid rgba(255,255,255,0.14) !important;
    display: flex !important; align-items: center !important; flex-shrink: 0 !important;
    position: sticky !important; top: 0 !important; z-index: 10 !important;
    animation: none !important;
    /* subtle glass lift: inner top highlight + soft drop below */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 2px 8px rgba(6,95,70,0.18) !important;
    backdrop-filter: saturate(120%) !important; -webkit-backdrop-filter: saturate(120%) !important;
}
.rd-preview-header::before { display: none !important; }

.rd-step-bar { justify-content: space-between !important; }
.rd-step-left  { display: flex !important; align-items: center !important; gap: 10px !important; flex: 1 !important; }
.rd-step-right { display: flex !important; align-items: stretch !important; gap: 8px !important; flex: 1 !important; justify-content: flex-end !important; }

.rd-step-icon { font-size: 0 !important; width: 30px !important; height: 30px !important; min-width: 30px !important; border-radius: 8px !important; background: rgba(255,255,255,0.15) !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
.rd-step-icon svg, .rd-step-icon svg path, .rd-step-icon svg circle, .rd-step-icon svg rect, .rd-step-icon svg polyline, .rd-step-icon svg line { stroke: #ffffff !important; fill: none !important; display: block !important; }

.rd-step-title { font-size: 13px !important; font-weight: 700 !important; color: #ffffff !important; letter-spacing: -0.01em !important; }
.rd-step-meta  { font-size: 11px !important; color: rgba(255,255,255,0.75) !important; margin-top: 1px !important; }

.rd-step-btn { height: 28px !important; padding: 0 14px !important; font-size: 12px !important; font-weight: 600 !important; border-radius: 5px !important; cursor: pointer !important; transition: all 0.15s !important; white-space: nowrap !important; border: none !important; }
.rd-step-btn--prev { background: rgba(255,255,255,0.12) !important; color: rgba(255,255,255,0.9) !important; border: 1px solid rgba(255,255,255,0.25) !important; height: auto !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 0 13px !important; font-size: 11.5px !important; }
.rd-step-btn--prev:hover:not(:disabled) { background: rgba(255,255,255,0.22) !important; color: #ffffff !important; }
.rd-step-btn--prev:disabled { opacity: 0.35 !important; cursor: not-allowed !important; }
.rd-step-btn--next { background: linear-gradient(135deg,#0f172a 0%,#1e293b 100%) !important; color: #ffffff !important; font-weight: 700 !important; border: 1px solid rgba(255,255,255,0.14) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.28) !important; }
.rd-step-btn--next:hover { background: linear-gradient(135deg,#111c33 0%,#25324a 100%) !important; box-shadow: 0 4px 14px rgba(0,0,0,0.36) !important; }
/* Continue button: label + next-section subtitle + step badge */
.rd-step-btn--next { display: inline-flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; height: auto !important; min-height: 32px !important; padding: 4px 5px 4px 11px !important; line-height: 1.05 !important; }
.rd-next-text { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 1px !important; }
.rd-next-label { font-size: 11.5px !important; font-weight: 700 !important; line-height: 1.1 !important; color: #ffffff !important; }
.rd-next-sub { font-size: 8.5px !important; font-weight: 500 !important; line-height: 1.1 !important; color: rgba(255,255,255,0.55) !important; letter-spacing: 0.01em !important; }
.rd-next-badge { flex-shrink: 0 !important; font-size: 9px !important; font-weight: 700 !important; line-height: 1 !important; padding: 3px 5px !important; border-radius: 3px !important; background: rgba(52,211,153,0.18) !important; color: #6ee7b7 !important; }
@media (max-width: 640px) {
    .rd-step-btn--next { padding: 3px 4px 3px 9px !important; gap: 6px !important; min-height: 27px !important; }
    .rd-step-btn--prev { min-height: 27px !important; padding: 0 10px !important; font-size: 11px !important; }
    .rd-next-label { font-size: 11px !important; }
    .rd-next-sub { display: none !important; }
    .rd-next-badge { font-size: 9.5px !important; padding: 3px 5px !important; }
}


/* Section body */
.rd-section-body { padding: 18px 20px 100px !important; display: none !important; flex-direction: column !important; gap: 14px !important; background: #f1f5f9 !important; }
.rd-section-body.active { display: flex !important; }

/* ── Cards ── */
.rd-card { background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; padding: 18px 18px 16px !important; box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important; transition: box-shadow 0.2s ease !important; }
.rd-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important; }

.rd-card-header { display: flex !important; align-items: center !important; gap: 7px !important; margin-bottom: 14px !important; }
.rd-card-dot    { width: 7px !important; height: 7px !important; border-radius: 50% !important; flex-shrink: 0 !important; }
.rd-dot--green  { background: #10b981 !important; }
.rd-dot--gray   { background: #d1d5db !important; }
.rd-card-title  { font-size: 11px !important; font-weight: 700 !important; color: #374151 !important; letter-spacing: 0.07em !important; text-transform: uppercase !important; flex: 1 !important; }
.rd-required    { color: #ef4444 !important; }
.rd-optional-badge { font-size: 10px !important; font-weight: 500 !important; color: #94a3b8 !important; background: #f1f5f9 !important; padding: 2px 7px !important; border-radius: 99px !important; }
.rd-import-btn { display: flex !important; align-items: center !important; gap: 5px !important; padding: 5px 10px !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; background: #fff !important; font-size: 11px !important; font-weight: 600 !important; color: #475569 !important; cursor: pointer !important; margin-left: auto !important; transition: all 0.15s !important; }
.rd-import-btn:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; }

/* ── Grid helpers ── */
.rd-name-row, .rd-two-col { display: flex !important; flex-direction: column !important; gap: 12px !important; grid-template-columns: unset !important; }

/* ── Field group ── */
.rd-field-group { display: flex !important; flex-direction: column !important; margin-bottom: 12px !important; }
.rd-field-group:last-child { margin-bottom: 0 !important; }
.rd-label { font-size: 11.5px !important; font-weight: 600 !important; color: #64748b !important; letter-spacing: 0 !important; text-transform: none !important; margin-bottom: 5px !important; }

/* ── Inputs ── */
.rd-input-wrap { position: relative !important; display: block !important; width: 100% !important; }
.rd-input-icon { position: absolute !important; left: 12px !important; top: 50% !important; transform: translateY(-50%) !important; pointer-events: none !important; color: #94a3b8 !important; display: flex !important; align-items: center !important; z-index: 3 !important; width: 16px !important; flex-shrink: 0 !important; background: transparent !important; }
.rd-input-icon svg { stroke: #9ca3af !important; display: block !important; width: 14px !important; height: 14px !important; }
.rd-input { width: 100% !important; height: 40px !important; padding: 0 12px 0 38px !important; border: 1.5px solid #e2e8f0 !important; border-radius: 4px !important; font-size: 13.5px !important; font-weight: 500 !important; color: #1e293b !important; background: #fafbfc !important; outline: none !important; box-sizing: border-box !important; font-family: 'Inter', sans-serif !important; transition: border-color 0.15s, box-shadow 0.15s !important; line-height: 40px !important; }
.rd-input:focus { border-color: #10b981 !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(16,185,129,0.1) !important; }
.rd-input::placeholder { color: #a8b5c0 !important; font-weight: 400 !important; font-size: 12px !important; font-style: normal !important; opacity: 1 !important; }

/* ── Textarea ── */
.rd-textarea { width: 100% !important; padding: 10px 12px !important; border: 1.5px solid #e2e8f0 !important; border-radius: 4px !important; font-size: 13.5px !important; font-weight: 400 !important; color: #1e293b !important; background: #fafbfc !important; outline: none !important; box-sizing: border-box !important; font-family: 'Inter', sans-serif !important; resize: vertical !important; line-height: 1.6 !important; transition: border-color 0.15s, box-shadow 0.15s !important; }
.rd-textarea:focus { border-color: #10b981 !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(16,185,129,0.1) !important; }
.rd-textarea::placeholder { color: #b8c4ce !important; font-style: italic !important; }
.rd-char-count { font-size: 10px !important; color: #94a3b8 !important; text-align: right !important; margin-top: 4px !important; }
.rd-validation { display: block !important; position: static !important; width: 100% !important; margin-top: 4px !important; font-size: 11px !important; color: #ef4444 !important; font-weight: 500 !important; -webkit-text-fill-color: #ef4444 !important; line-height: 1.4 !important; }

/* ── Status bar ── */
.rd-status-bar { background: #fffbeb !important; border: 1px solid #fde68a !important; border-radius: 6px !important; padding: 8px 12px !important; display: flex !important; align-items: center !important; gap: 8px !important; transition: background 0.4s ease, border-color 0.4s ease !important; }
.rd-status-bar.complete { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important; border-color: rgba(16,185,129,0.35) !important; box-shadow: 0 2px 8px rgba(16,185,129,0.12) !important; }
.rd-status-dot { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: #f59e0b !important; box-shadow: 0 0 0 3px rgba(245,158,11,0.2) !important; flex-shrink: 0 !important; transition: background 0.3s ease, box-shadow 0.3s ease !important; }
.rd-status-bar.complete .rd-status-dot { background: #10b981 !important; box-shadow: 0 0 0 3px rgba(16,185,129,0.2) !important; }
.rd-status-text { font-size: 12px !important; font-weight: 600 !important; color: #92400e !important; -webkit-text-fill-color: #92400e !important; flex: 1 !important; }
.rd-status-bar.complete .rd-status-text { color: #065f46 !important; -webkit-text-fill-color: #065f46 !important; }
.rd-status-req { margin-left: auto !important; font-size: 11px !important; font-weight: 600 !important; color: #d97706 !important; }
.rd-status-bar.complete .rd-status-req { color: #059669 !important; }

/* ── AI button ── */
.rd-ai-btn { display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; width: 100% !important; padding: 13px 18px !important; background: #0f172a !important; color: #fff !important; border: none !important; border-radius: 9px !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer !important; font-family: 'Inter', sans-serif !important; transition: background 0.15s !important; margin-top: 4px !important; }
.rd-ai-btn:hover { background: #1e293b !important; }
.rd-ai-btn svg { stroke: #10b981 !important; }

/* ── Add buttons ── */
.rd-add-btn { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; padding: 12px 16px !important; background: #fff !important; color: #10b981 !important; border: 1.5px dashed #6ee7b7 !important; border-radius: 6px !important; font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important; font-family: 'Inter', sans-serif !important; transition: all 0.15s !important; margin-top: 10px !important; }
.rd-add-btn:hover { background: #f0fdf4 !important; border-color: #10b981 !important; border-style: solid !important; color: #059669 !important; }
.rd-add-btn--inline { margin-top: 12px !important; border-radius: 6px !important; }

/* ── Section note ── */
.rd-section-note { display: flex !important; align-items: flex-start !important; gap: 8px !important; padding: 10px 13px !important; background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important; border-radius: 8px !important; margin-bottom: 4px !important; }
.rd-section-note svg { stroke: #10b981 !important; flex-shrink: 0 !important; margin-top: 1px !important; }
.rd-section-note p   { font-size: 12px !important; color: #065f46 !important; line-height: 1.5 !important; margin: 0 !important; font-weight: 500 !important; }

/* ── Right preview panel ── */
.rd-preview-panel { background: #f8fafc !important; border-left: 1px solid #e5e7eb !important; display: flex !important; flex-direction: column !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 100% !important; max-height: 100% !important; overflow: hidden !important; box-sizing: border-box !important; }

.rd-preview-header { justify-content: center !important; position: sticky !important; height: 46px !important; min-height: 46px !important; max-height: 46px !important; padding: 0 20px !important; background: #10b981 !important; border-bottom: 1px solid rgba(255,255,255,0.14) !important; display: flex !important; align-items: center !important; flex-shrink: 0 !important; top: 0 !important; z-index: 10 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 2px 8px rgba(6,95,70,0.18) !important; backdrop-filter: saturate(120%) !important; -webkit-backdrop-filter: saturate(120%) !important; }

.preview-header-left { position: absolute !important; left: 20px !important; display: flex !important; align-items: center !important; gap: 10px !important; }
.preview-header-right { display: flex !important; align-items: center !important; gap: 6px !important; justify-content: center !important; }
.rd-preview-header .preview-header-left h3 { font-size: 12px !important; font-weight: 700 !important; color: #ffffff !important; margin: 0 !important; }
.rd-preview-header .pagination-status, .rd-preview-header #page-info { font-size: 11px !important; color: rgba(255,255,255,0.75) !important; }

.rd-preview-header .page-nav { height: 28px !important; background: rgba(255,255,255,0.12) !important; border: 1px solid rgba(255,255,255,0.22) !important; border-radius: 6px !important; display: flex !important; align-items: center !important; padding: 0 4px !important; }
.rd-preview-header .page-nav .icon-btn { background: transparent !important; border: none !important; color: rgba(255,255,255,0.9) !important; font-size: 14px !important; width: 22px !important; height: 22px !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 4px !important; cursor: pointer !important; }
.rd-preview-header .page-nav .icon-btn:hover { background: rgba(255,255,255,0.25) !important; }
.rd-preview-header .page-counter, .rd-preview-header .page-separator { font-size: 11px !important; font-weight: 600 !important; color: #ffffff !important; padding: 0 2px !important; }

.rd-preview-header .zoom-controls { height: 28px !important; background: rgba(255,255,255,0.12) !important; border: 1px solid rgba(255,255,255,0.22) !important; border-radius: 6px !important; display: flex !important; align-items: center !important; padding: 0 2px !important; }
.rd-preview-header .zoom-controls .icon-btn { background: transparent !important; border: none !important; color: rgba(255,255,255,0.9) !important; font-size: 14px !important; font-weight: 600 !important; width: 22px !important; height: 22px !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 4px !important; }
.rd-preview-header .zoom-controls .icon-btn:hover { background: rgba(255,255,255,0.2) !important; }
.rd-preview-header .zoom-level { font-size: 11px !important; font-weight: 600 !important; color: #ffffff !important; min-width: 36px !important; text-align: center !important; }

.rd-template-btn { height: 28px !important; padding: 0 11px !important; font-size: 11px !important; font-weight: 600 !important; border-radius: 6px !important; background: rgba(255,255,255,0.12) !important; border: 1px solid rgba(255,255,255,0.22) !important; color: rgba(255,255,255,0.9) !important; display: flex !important; align-items: center !important; gap: 5px !important; cursor: pointer !important; transition: all 0.15s !important; white-space: nowrap !important; }
.rd-template-btn:hover { background: rgba(255,255,255,0.22) !important; color: #ffffff !important; }
.rd-template-btn svg { stroke: rgba(255,255,255,0.9) !important; }

.rd-download-btn { height: 28px !important; padding: 0 13px !important; font-size: 11px !important; font-weight: 700 !important; border-radius: 6px !important; background: #ffffff !important; color: #0a8560 !important; border: none !important; display: flex !important; align-items: center !important; gap: 5px !important; cursor: pointer !important; box-shadow: 0 1px 4px rgba(0,0,0,0.12) !important; transition: all 0.15s !important; white-space: nowrap !important; }
.rd-download-btn:hover { background: #f0fdf4 !important; color: #047857 !important; }
.rd-download-btn svg { stroke: #0a8560 !important; }
.rd-download-btn:hover svg { stroke: #047857 !important; }

.rd-preview-panel .preview-content { flex: 1 1 0 !important; overflow-y: auto !important; overflow-x: hidden !important; height: 0 !important; width: 100% !important; background: #f1f5f9 !important; padding: 20px !important; display: flex !important; align-items: flex-start !important; justify-content: center !important; box-sizing: border-box !important; }

/* Preview panel scrolls but had no scrollbar styling -> browser default strip.
   Match the thin scrollbars used by the sidebar / form panel. */
.rd-preview-panel .preview-content { scrollbar-width: thin !important; scrollbar-color: #cbd5e1 transparent !important; }
.rd-preview-panel .preview-content::-webkit-scrollbar { width: 5px; }
.rd-preview-panel .preview-content::-webkit-scrollbar-track { background: transparent; }
.rd-preview-panel .preview-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.rd-preview-panel .preview-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
#previewContainer { width: 100% !important; min-height: 100% !important; }

/* ── Hide old layout elements ── */
.main-layout, .left-panel, .nav-panel, .form-panel, .preview-panel:not(.rd-preview-panel), .section-header-nav { display: none !important; }

/* ── Z-index stack ── */
.ai-popup       { z-index: 9999 !important; }
#toastContainer { z-index: 10000 !important; }
.fab-btn        { z-index: 999 !important; }

/* ── Autofill fix ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fafbfc inset !important;
    -webkit-text-fill-color: #1e293b !important;
    caret-color: #1e293b !important;
    transition: background-color 9999s ease-in-out 0s !important;
}
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(16,185,129,0.1) !important;
}

/* ── Accordion body inputs ── */
.rd-input, .accordion-body input[type="text"], .accordion-body input[type="email"], .accordion-body input[type="tel"], .accordion-body input[type="date"], .accordion-body input[type="url"], .accordion-body input[type="month"], .accordion-body select, .accordion-body textarea, .rd-textarea, .date-input, .accordion-body .date-input { background: #fafbfc !important; }
.rd-input:focus, .accordion-body input:focus, .accordion-body select:focus, .accordion-body textarea:focus, .rd-textarea:focus, .date-input:focus { background: #ffffff !important; }
.rd-input::placeholder, .rd-textarea::placeholder, .accordion-body input::placeholder, .accordion-body textarea::placeholder, .date-input::placeholder { color: #a8b5c0 !important; font-size: 12px !important; font-style: normal !important; font-weight: 400 !important; opacity: 1 !important; }
.accordion-body label { color: #374151 !important; -webkit-text-fill-color: #374151 !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 0.03em !important; text-transform: none !important; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — desktop breakpoints (max-width only, no height)
───────────────────────────────────────────────────────────── */
@media (max-width: 1280px) and (min-width: 769px) {
    .rd-app-layout { grid-template-columns: 185px 40fr 60fr !important; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .rd-app-layout { grid-template-columns: 170px 42fr 58fr !important; }
    .rd-nav-title  { font-size: 11.5px !important; }
}

/* ─────────────────────────────────────────────────────────────
   COMPACT STYLES — only below 895px viewport height
   Your 1830×896 setup is completely untouched above this.
───────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-height: 895px) {

    .rd-app-layout {
        grid-template-columns: 210px 40fr 60fr !important;
        height: calc(100vh - min(64px, 7vh)) !important;
        max-height: calc(100vh - min(64px, 7vh)) !important;
        margin-top: min(64px, 7vh) !important;
    }

    .rd-header, .header { height: min(64px, 7vh) !important; min-height: 48px !important; }

    /* Sidebar */
    .rd-sidebar { height: 100% !important; max-height: 100% !important; display: flex !important; flex-direction: column !important; }
    .rd-sidebar-top        { padding: 6px 12px 8px !important; }
    .rd-sidebar-section-label { padding: 8px 12px 2px !important; font-size: 8.5px !important; }
    .rd-nav-menu           { gap: 1px !important; padding: 0 4px !important; }
    .rd-nav-item           { padding: 4px 7px !important; }
    .rd-nav-sub            { display: block !important; font-size: 10px !important; }
    .rd-nav-icon-wrap      { width: 22px !important; height: 22px !important; }
    .rd-nav-title          { font-size: 11px !important; }

    /* Profile strength always visible */
    .rd-profile-strength {
        padding: 6px 10px !important; margin-top: auto !important;
        flex-shrink: 0 !important; min-height: 48px !important;
        border-top: 1px solid #f1f5f9 !important; background: #ffffff !important;
        position: sticky !important; bottom: 0 !important; z-index: 2 !important;
    }
    .rd-ps-label, .rd-ps-score { font-size: 9px !important; }
    .rd-ps-bar-bg  { height: 4px !important; margin-bottom: 3px !important; }
    .rd-ps-hint    { font-size: 9px !important; line-height: 1.2 !important; display: block !important; white-space: nowrap !important; overflow: visible !important; }

    /* Progress dots */
    .rd-progress-steps { margin-bottom: 2px !important; padding: 2px 4px !important; }
    .rd-step-dot { width: 9px !important; height: 9px !important; box-shadow: none !important; }
    .rd-step-dot.active { box-shadow: 0 0 0 2px rgba(16,185,129,0.15) !important; }
    .rd-progress-hint { font-size: 8.5px !important; }

    /* Step / preview bars */
    .rd-step-bar, .rd-preview-header { height: 38px !important; min-height: 38px !important; max-height: 38px !important; padding: 0 16px !important; }
    .rd-step-title { font-size: 12px !important; }
    .rd-step-meta  { font-size: 10px !important; margin-top: 0 !important; }
    .rd-step-icon  { width: 26px !important; height: 26px !important; }
    .rd-step-btn   { height: 24px !important; font-size: 11px !important; padding: 0 10px !important; }
    .rd-step-btn--next { height: auto !important; min-height: 29px !important; padding: 3px 4px 3px 10px !important; }
    .rd-step-btn--prev { height: auto !important; min-height: 29px !important; padding: 0 11px !important; }
    .rd-next-label { font-size: 11px !important; }
    .rd-next-sub   { font-size: 8px !important; }
    .rd-next-badge { padding: 3px 5px !important; font-size: 9.5px !important; }

    /* Form */
    .rd-form-main { height: 100% !important; max-height: 100% !important; }
    .rd-section-body { padding: 10px 16px 12px !important; gap: 8px !important; overflow-y: auto !important; flex: 1 1 0 !important; min-height: 0 !important; }
    .rd-card { padding: 10px 14px 8px !important; border-radius: 6px !important; }
    .rd-card-header { margin-bottom: 8px !important; }
    .rd-card-title  { font-size: 10px !important; }
    .rd-field-group { margin-bottom: 6px !important; }
    .rd-label       { font-size: 11px !important; margin-bottom: 3px !important; }
    .rd-input { height: 34px !important; font-size: 12.5px !important; padding: 0 10px 0 34px !important; }
    .rd-input-icon  { left: 10px !important; width: 14px !important; }
    .rd-input-icon svg { width: 13px !important; height: 13px !important; }

    /* Keep single column */
    .rd-name-row { flex-direction: column !important; gap: 6px !important; }
    .rd-name-row .rd-field-group { width: 100% !important; margin-bottom: 0 !important; }
    .rd-two-col  { flex-direction: column !important; gap: 6px !important; }
    .rd-two-col .rd-field-group  { width: 100% !important; margin-bottom: 0 !important; }

    .rd-validation, [id$="Validation"] { font-size: 10px !important; margin-top: 2px !important; min-height: 12px !important; }
    .rd-status-bar   { padding: 6px 10px !important; }
    .rd-status-dot   { width: 7px !important; height: 7px !important; }
    .rd-status-text  { font-size: 11px !important; }
    .rd-status-req   { font-size: 10px !important; }

    /* Preview panel */
    .rd-preview-panel .preview-content { padding: clamp(10px, 1.5vh, 20px) !important; }
}

/* Extra tight for landscape tablets */
@media (min-width: 769px) and (max-height: 700px) {
    .rd-progress-steps, .rd-progress-hint { display: none !important; }
    .rd-sidebar-top { padding-bottom: 4px !important; }
    .rd-card { padding: 8px 12px 6px !important; }
    .rd-input { height: 30px !important; font-size: 12px !important; }
    .rd-section-body { gap: 6px !important; }
}

/* ─────────────────────────────────────────────────────────────
   TABLETS — same as desktop layout at all orientations
   No special overrides needed; existing grid + compact rules
   handle everything. Just ensure 3 columns always show.
───────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .rd-sidebar       { display: flex !important; }
    .rd-preview-panel { display: flex !important; }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE — untouched
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rd-app-layout { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr auto !important; height: calc(100vh - 64px) !important; overflow: hidden !important; }
    .rd-sidebar       { display: none !important; }
    .rd-preview-panel { display: none !important; }
    .rd-form-main     { overflow-y: auto !important; }
    .rd-name-row, .rd-two-col { grid-template-columns: 1fr !important; }
    .rd-section-body  { padding: 14px 14px 80px !important; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .rd-app-layout { grid-template-columns: 180px 2fr 3fr !important; }
}

/* Print */
@media print {
    .rd-preview-panel { display: block !important; position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: auto !important; background: white !important; border: none !important; z-index: 9999 !important; }
    .preview-content  { display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; background: white !important; }
    #previewContainer { display: block !important; transform: none !important; width: 100% !important; background: white !important; }
    .resume-page { display: block !important; page-break-after: always !important; page-break-inside: avoid !important; margin: 0 auto !important; box-shadow: none !important; background: white !important; }
    .rd-sidebar, .rd-form-main, .rd-step-bar, .rd-header, .header, .fab-btn, .mobile-bottom-nav, #toastContainer, .preview-header, .page-nav, .zoom-controls, .rd-template-btn, .rd-download-btn, .resume-sections-panel, .mobile-menu-panel, .preview-overlay { display: none !important; }
}
/* =========================================================================
   BUILDER HEADER SPLIT + STEP DEDUPE + CONTINUE RESTYLE
   Green = editing zone (form header stays green). White = viewing zone.
   Reuses existing emerald tokens; no new stylesheet.
   ========================================================================= */

/* --- 1. Preview panel gets its own WHITE header -------------------------- */
.rd-preview-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.rd-preview-header .preview-header-left h3 {
  color: #0f172a !important; display: inline-flex !important; align-items: center !important;
}
.rd-preview-header .preview-header-left h3::before {
  content: "" !important; width: 7px !important; height: 7px !important;
  border-radius: 50% !important; background: #10b981 !important;
  margin-right: 8px !important; display: inline-block !important; flex-shrink: 0 !important;
}
.rd-preview-header .pagination-status,
.rd-preview-header .pagination-status.success,
.rd-preview-header .pagination-status.warning,
.rd-preview-header #page-info {
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* hide the injected green ✓ tick, keep the "N pages" text */
.rd-preview-header .pagination-status span:not(#page-info) { display: none !important; }

/* controls -> outlined on white */
.rd-preview-header .page-nav,
.rd-preview-header .zoom-controls {
  background: #ffffff !important; border: 1px solid #d8dee7 !important;
}
.rd-preview-header .page-nav .icon-btn,
.rd-preview-header .zoom-controls .icon-btn {
  color: #475569 !important; transition: background 0.15s ease, color 0.15s ease !important;
}
.rd-preview-header .page-nav .icon-btn:hover,
.rd-preview-header .zoom-controls .icon-btn:hover { background: #f1f5f9 !important; color: #0f172a !important; }
.rd-preview-header .page-counter,
.rd-preview-header .page-separator,
.rd-preview-header .zoom-level { color: #334155 !important; }

/* Template = outlined emerald secondary (pairs with the solid-green Download) */
.rd-template-btn {
  background: #ffffff !important; border: 1px solid #a7f3d0 !important; color: #059669 !important;
}
.rd-template-btn:hover { background: #f0fdf4 !important; border-color: #6ee7b7 !important; color: #047857 !important; }
.rd-template-btn svg { stroke: #059669 !important; }
.rd-template-btn:hover svg { stroke: #047857 !important; }

/* Download PDF = solid emerald primary */
.rd-download-btn {
  background: #10b981 !important; color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(16,185,129,0.30) !important;
}
.rd-download-btn:hover { background: #059669 !important; color: #ffffff !important; }
.rd-download-btn svg { stroke: #ffffff !important; }

/* --- 2. Step indicator dedupe ------------------------------------------- */
/* dot-stepper removed from markup; hide any remnant */
.rd-progress-steps { display: none !important; }
/* "Step X of 5" is shown by the sidebar Sections list on desktop -> hide in
   the green form header. Re-show on mobile where the sidebar is hidden. */
.rd-step-meta { display: none !important; }
@media (max-width: 768px) { .rd-step-meta { display: block !important; } }

/* --- 4. Continue button: white/light inside the green header ------------- */
.rd-step-btn--next {
  background: #ffffff !important; color: #059669 !important;
  border: 1px solid rgba(255,255,255,0.9) !important;
  box-shadow: 0 1px 3px rgba(6,78,59,0.20) !important;
}
.rd-step-btn--next:hover {
  background: #f0fdf4 !important; box-shadow: 0 3px 10px rgba(6,78,59,0.26) !important;
}
.rd-step-btn--next .rd-next-label { color: #059669 !important; }
.rd-step-btn--next .rd-next-sub   { color: #10b981 !important; }
.rd-step-btn--next .rd-next-badge {
  background: #ecfdf5 !important; color: #059669 !important; border: 1px solid #a7f3d0 !important;
}
.rd-step-btn--next svg { stroke: #059669 !important; }

/* =========================================================================
   VISIBLE FIELD BORDERS — crisp outline on every form field
   ========================================================================= */
.rd-input,
.rd-textarea,
.accordion-body input,
.accordion-body select,
.accordion-body textarea,
.date-input {
  border: 1px solid #cbd5e1 !important;   /* slate-300, clearly visible */
  background: #fafbfc !important;          /* faint fill keeps field shape */
}
.rd-input:hover,
.rd-textarea:hover,
.accordion-body input:hover,
.accordion-body select:hover,
.accordion-body textarea:hover,
.date-input:hover {
  border-color: #94a3b8 !important;        /* slate-400 on hover */
}
/* focus stays emerald (existing rule) */

/* =========================================================================
   ROUTE B — in-pane heading instead of a bright green strip
   The shared step bar becomes a page-heading row on the light workspace:
   dark h1 title + small emerald icon chip (brand) + Back/Continue action row.
   Solid-emerald Continue keeps the primary action anchored (no washout).
   ========================================================================= */
.rd-step-bar {
  background: #ffffff !important;                 /* white, matches the preview header */
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04) !important;
  height: 46px !important; min-height: 46px !important; max-height: 46px !important;
  padding: 0 20px !important; align-items: center !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}

/* small emerald icon chip = the brand moment */
.rd-step-icon {
  width: 28px !important; height: 28px !important; min-width: 28px !important;
  border-radius: 8px !important;
  background: #10b981 !important;
  box-shadow: 0 1px 3px rgba(16,185,129,0.35) !important;
}
/* (icon SVG stroke stays white -> reads on the emerald chip) */

/* title becomes a real heading */
.rd-step-title {
  font-size: 16px !important; font-weight: 700 !important;
  color: #0f172a !important; letter-spacing: -0.02em !important;
}

/* Back = outlined gray secondary */
.rd-step-btn--prev {
  background: #ffffff !important; border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}
.rd-step-btn--prev:hover:not(:disabled) {
  background: #f1f5f9 !important; border-color: #94a3b8 !important; color: #0f172a !important;
}

/* Continue = solid emerald primary (anchors the pane) */
.rd-step-btn--next {
  background: #10b981 !important; color: #ffffff !important;
  border: none !important; box-shadow: 0 1px 3px rgba(16,185,129,0.32) !important;
}
.rd-step-btn--next:hover {
  background: #059669 !important; box-shadow: 0 3px 10px rgba(16,185,129,0.40) !important;
}
.rd-step-btn--next .rd-next-label { color: #ffffff !important; }
.rd-step-btn--next .rd-next-sub   { color: rgba(255,255,255,0.72) !important; }
.rd-step-btn--next .rd-next-badge {
  background: rgba(255,255,255,0.22) !important; color: #ffffff !important; border: none !important;
}
.rd-step-btn--next svg { stroke: #ffffff !important; }

/* mobile: slightly smaller heading, keep the step meta line visible */
@media (max-width: 768px) {
  .rd-step-title { font-size: 14px !important; }
  .rd-step-bar { height: 38px !important; min-height: 38px !important; max-height: 38px !important; padding: 0 16px !important; }
}

/* =========================================================================
   FORM CONTRAST POLISH — darker entered text, clearer placeholder, stronger group headers
   ========================================================================= */
.rd-input, .rd-textarea,
.accordion-body input, .accordion-body textarea, .accordion-body select, .date-input {
  color: #111827 !important;                 /* entered text: max readable */
}
.rd-input::placeholder, .rd-textarea::placeholder,
.accordion-body input::placeholder, .accordion-body textarea::placeholder, .date-input::placeholder {
  color: #94a3b8 !important;                  /* placeholder: present, still clearly a hint */
}
.rd-card-title { color: #1f2937 !important; } /* FULL NAME / CONTACT etc: stronger structure */

/* =========================================================================
   TOP BARS — force the form header and preview header pixel-identical (desktop)
   ========================================================================= */
@media (min-width: 769px) {
  .rd-step-bar, .rd-preview-header {
    box-sizing: border-box !important;
    height: 46px !important; min-height: 46px !important; max-height: 46px !important;
    padding: 0 20px !important;
    display: flex !important; align-items: center !important;
  }
}

/* =========================================================================
   CONTINUE BUTTON POLISH
   Continue → (arrow) · smaller sub · semibold/medium · roomier · hover lift
   ========================================================================= */
.rd-step-btn--next {
  padding: 4px 16px !important;              /* more horizontal room */
  border-radius: 7px !important;            /* within 6–8px */
  gap: 10px !important;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease !important;
}
.rd-step-btn--next .rd-next-label {
  font-size: 12px !important;
  font-weight: 600 !important;              /* top: semibold */
}
.rd-step-btn--next .rd-next-label::after {
  content: " \2192" !important;             /* Continue →  */
  font-weight: 600 !important;
}
.rd-step-btn--next .rd-next-sub {
  font-size: 8px !important;                /* slightly smaller */
  font-weight: 500 !important;              /* bottom: medium */
  color: rgba(255,255,255,0.75) !important;
}
.rd-step-btn--next:hover {
  background: #059669 !important;           /* subtle darker green */
  transform: translateY(-1px) !important;   /* tiny elevation */
  box-shadow: 0 4px 12px rgba(16,185,129,0.40) !important;
}
.rd-step-btn--next:active { transform: translateY(0) !important; box-shadow: 0 1px 3px rgba(16,185,129,0.32) !important; }

/* =========================================================================
   TABLET / SMALL-DESKTOP (769–1024px) — keep both headers from wrapping
   Phones (<=768) use the existing single-column + bottom-nav + overlay system.
   ========================================================================= */
@media (min-width: 769px) and (max-width: 1024px) {
  /* preview toolbar: tighten so controls never wrap */
  .rd-preview-header .preview-header-right { gap: 6px !important; }
  .rd-preview-header .pagination-status,
  .rd-preview-header #page-info { display: none !important; } /* drop the "0 pages" caption to save room */
  .rd-template-btn, .rd-download-btn { padding: 0 10px !important; }
  .rd-preview-header .page-nav,
  .rd-preview-header .zoom-controls { padding: 2px 1px !important; }
  /* form header: slightly smaller title + tighter Continue */
  .rd-step-title { font-size: 15px !important; }
  .rd-step-btn--next { padding: 4px 12px !important; }
}

/* =========================================================================
   INPUTS → 8px (premium SaaS radius) + Continue button alignment fix
   ========================================================================= */
.rd-input, .rd-textarea,
.accordion-body input, .accordion-body select, .accordion-body textarea,
.date-input { border-radius: 8px !important; }
.rd-input-wrap { border-radius: 8px !important; }

/* Continue button: balanced padding, centered "2/5" chip, aligned text (desktop) */
@media (min-width: 769px) {
  .rd-step-btn--next {
    padding: 6px 8px 6px 14px !important;
    gap: 11px !important;
    min-height: 36px !important;
    align-items: center !important;
  }
  .rd-step-btn--next .rd-next-text { gap: 2px !important; }
  .rd-step-btn--next .rd-next-badge {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-width: 26px !important; height: 22px !important; padding: 0 6px !important;
    border-radius: 6px !important; font-size: 10px !important; align-self: center !important;
  }
}

/* =========================================================================
   Continue button — SVG chevron on Continue (premium, matches the icon set)
   ========================================================================= */
/* arrow → crisp SVG chevron */
.rd-step-btn--next .rd-next-label::after {
  content: "" !important;
  display: inline-block !important;
  width: 13px !important; height: 13px !important;
  margin-left: 6px !important; vertical-align: -1px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

/* =========================================================================
   LEFT header buttons → match the right side (28px). Continue is 2-line,
   so its text is compressed to fit the same height.
   ========================================================================= */
@media (min-width: 769px) {
  .rd-step-btn--prev, .rd-step-btn--next {
    height: 28px !important; min-height: 28px !important; max-height: 28px !important;
    box-sizing: border-box !important; align-items: center !important;
  }
  .rd-step-btn--prev { padding: 0 14px !important; }
  .rd-step-btn--next { padding: 0 6px 0 12px !important; gap: 9px !important; }
  .rd-step-btn--next .rd-next-text { gap: 0 !important; }
  .rd-step-btn--next .rd-next-label { font-size: 10.5px !important; line-height: 1.1 !important; }
  .rd-step-btn--next .rd-next-sub   { font-size: 7.5px !important; line-height: 1.05 !important; }
  .rd-step-btn--next .rd-next-badge {
    height: 18px !important; min-width: 22px !important; padding: 0 5px !important; font-size: 9px !important;
  }
  .rd-step-btn--next .rd-next-label::after { width: 11px !important; height: 11px !important; margin-left: 5px !important; }
}