/* ============================================================
   responsive.css — TABLET FIX ONLY
   Desktop + Mobile: handled by section-ditto-override.css 
   and mobile-responsive.css respectively. DO NOT TOUCH THOSE.
   ============================================================ */

   @media (min-width: 600px) and (max-width: 1024px) {

    /* Hide tab bar by default, show it on tablet */
    .rd-tab-bar {
      display: flex !important;
      position: fixed !important;
      top: 64px !important;
      left: 0 !important;
      right: 0 !important;
      height: 44px !important;
      z-index: 95 !important;
      background: #fff !important;
      border-bottom: 1px solid #e2e8f0 !important;
    }
  
    /* 2-column grid: sidebar + form */
    .rd-app-layout {
      display: grid !important;
      grid-template-columns: 230px 1fr !important;
      grid-template-rows: 1fr !important;
      width: 100% !important;
      height: calc(100vh - 108px) !important;   /* 64px header + 44px tab bar */
      max-height: calc(100vh - 108px) !important;
      margin-top: 108px !important;
      overflow: hidden !important;
    }
  
    /* Sidebar visible, full */
    .rd-sidebar {
      display: flex !important;
      flex-direction: column !important;
      width: 230px !important;
      min-width: 230px !important;
      height: 100% !important;
      position: relative !important;
      top: auto !important;
      left: auto !important;
      z-index: 1 !important;
      box-shadow: none !important;
      visibility: visible !important;
      opacity: 1 !important;
      overflow-y: auto !important;
      background: #fff !important;
      border-right: 1px solid #e5e7eb !important;
      transition: none !important;
    }
  
    /* Show nav subtitles */
    .rd-nav-sub       { display: block !important; }
    .rd-nav-item      { padding: 8px 12px !important; }
    .rd-progress-hint { display: block !important; }
  
    /* Form takes remaining width */
    .rd-form-main {
      display: block !important;
      width: 100% !important;
      min-width: 0 !important;
      height: 100% !important;
      max-height: 100% !important;
      overflow-y: auto !important;
      background: #f1f5f9 !important;
    }
  
    /* Hide preview by default */
    .preview-panel,
    .rd-preview-panel {
      display: none !important;
      visibility: hidden !important;
    }
  
    /* Show preview when JS activates it */
    .preview-panel[style*="flex"],
    .rd-preview-panel[style*="flex"] {
      display: flex !important;
      visibility: visible !important;
      flex-direction: column !important;
      position: relative !important;
      width: 100% !important;
      height: 100% !important;
      border-left: none !important;
      grid-column: 1 / -1 !important;
    }
  
    /* Hide sidebar + form when preview active */
    .rd-app-layout:has(.rd-preview-panel[style*="flex"]) .rd-sidebar,
    .rd-app-layout:has(.rd-preview-panel[style*="flex"]) .rd-form-main,
    .rd-app-layout:has(.preview-panel[style*="flex"]) .rd-sidebar,
    .rd-app-layout:has(.preview-panel[style*="flex"]) .rd-form-main {
      display: none !important;
    }
  
    /* Step bar */
    .rd-step-bar {
      display: flex !important;
      justify-content: space-between !important;
      flex-wrap: nowrap !important;
      height: 46px !important;
      padding: 0 20px !important;
    }
    .rd-step-right { display: flex !important; width: auto !important; }
    #prev-btn, #next-btn { display: flex !important; }
  
    /* Section body */
    .rd-section-body,
    .form-section.active {
      display: flex !important;
      flex-direction: column !important;
      padding: 18px 20px 80px !important;
      gap: 14px !important;
    }
  
    /* CRITICAL: fields side-by-side on tablet */
    .rd-name-row,
    .rd-two-col {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 14px !important;
    }
  
    /* Narrow tablet 600–768px */
    @media (max-width: 768px) {
      .rd-app-layout {
        grid-template-columns: 185px 1fr !important;
      }
      .rd-sidebar {
        width: 185px !important;
        min-width: 185px !important;
      }
      .rd-nav-sub { display: none !important; }
    }
  }
  
  /* ============================================================
     DESKTOP GUARD ≥1025px
     Restores section-ditto-override.css original values
     in case any tablet rule leaks up.
     ============================================================ */
  @media (min-width: 1025px) {
    .rd-tab-bar { display: none !important; }
  
    .rd-app-layout {
      display: grid !important;
      grid-template-columns: 200px 40fr 60fr !important;
      width: 100vw !important;
      height: calc(100vh - 64px) !important;
      margin-top: 64px !important;
      overflow: hidden !important;
    }
  
    .rd-sidebar {
      display: flex !important;
      width: 200px !important;
      min-width: 200px !important;
      position: relative !important;
      left: auto !important;
      visibility: visible !important;
      opacity: 1 !important;
      box-shadow: none !important;
    }
  
    .preview-panel,
    .rd-preview-panel {
      display: flex !important;
      visibility: visible !important;
      width: 100% !important;
      height: 100% !important;
    }
  
    /* Desktop: fields stacked (original design) */
    .rd-name-row,
    .rd-two-col {
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }
  }







  /* ============================================================
   BREAKPOINT CONFLICT FIX
   Add this block at the very END of mobile-responsive.css
   
   Problem: at exactly 768px width, BOTH mobile (max-width:768px)
   AND tablet (min-width:600px) rules fire simultaneously,
   causing the mobile menu panel to render alongside the tablet layout.
   
   Fix: at 600px–768px, forcibly hide all mobile-only UI elements
   and restore the tablet layout.
   ============================================================ */

@media (min-width: 600px) {

  /* Hide mobile overlay panels */
  .mobile-menu-panel,
  .mobile-menu-overlay,
  .resume-sections-panel,
  .resume-sections-overlay,
  .mobile-menu-status,
  .mobile-menu-header,
  .mobile-menu-items,
  .mobile-menu-auth-buttons,
  .mobile-logout-bar,
  .mobile-menu-upgrade {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Hide mobile bottom nav */
  .mobile-bottom-nav {
    display: none !important;
  }

  /* Hide hamburger button */
  .mobile-menu-btn {
    display: none !important;
  }

  /* Restore body scroll (mobile locks it) */
  html, body {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }

  /* Restore app layout to block/grid (mobile sets it to display:block) */
  .rd-app-layout {
    display: grid !important;
  }

  /* Restore sidebar visibility (mobile hides it) */
  .rd-sidebar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    left: auto !important;
  }

  /* Restore header elements hidden by mobile */
  .header-content,
  .rd-header-content {
    display: flex !important;
    height: 64px !important;
  }

  /* Restore logo to normal (mobile centers it absolutely) */
  .logo-section,
  .header .logo-section,
  .rd-header .logo-section {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    flex-shrink: 0 !important;
  }

  .logo-section > a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  /* Show Sign In on tablet */
  .header-auth-buttons {
    display: flex !important;
    visibility: visible !important;
    width: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }

  /* Show desktop nav */
  .header-nav {
    display: flex !important;
    visibility: visible !important;
    width: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Restore body padding (mobile adds padding-top for fixed header) */
  body {
    padding-top: 0 !important;
  }

  /* Restore header to sticky (mobile makes it fixed) */
  .header, .rd-header {
    position: sticky !important;
    top: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
  }

  /* Restore form visibility */
  .rd-form-main {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
  }

  /* Restore FAB */
  #fabBuildResume,
  .fab-btn {
    display: inline-flex !important;
  }

  /* Show hamburger only for tablet (not desktop) */
  .resume-hamburger-container {
    display: none !important;
  }
}
/* ============================================================
   TAB BAR + GAP FIX
   Add at the very END of css/responsive.css
   ============================================================ */

   @media (min-width: 600px) and (max-width: 1024px) {

    /* ── Remove ALL top gaps ─────────────────────────────── */
    body {
      padding-top: 0 !important;
      margin-top: 0 !important;
    }
  
    .rd-header, .header {
      position: sticky !important;
      top: 0 !important;
      z-index: 100 !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  
    /* Tab bar: glued directly under header, no gap */
    .rd-tab-bar {
      position: sticky !important;
      top: 64px !important;          /* exactly header height */
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      z-index: 95 !important;
      height: 44px !important;
      min-height: 44px !important;
      max-height: 44px !important;
      background: #ffffff !important;
      border-bottom: 1px solid #e2e8f0 !important;
      box-shadow: 0 1px 0 #e2e8f0 !important;
      display: flex !important;
      align-items: stretch !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  
    /* ── Tab buttons ─────────────────────────────────────── */
    .rd-tab-btn {
      flex: 1 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      height: 44px !important;
      padding: 0 16px !important;
      background: #ffffff !important;
      border: none !important;
      border-bottom: 2.5px solid transparent !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #94a3b8 !important;
      cursor: pointer !important;
      transition: color .15s, border-color .15s, background .15s !important;
      white-space: nowrap !important;
    }
  
    .rd-tab-btn:hover {
      color: #475569 !important;
      background: #f8fafc !important;
    }
  
    .rd-tab-btn.active {
      color: #0BAF78 !important;
      border-bottom-color: #0BAF78 !important;
      background: #ffffff !important;
    }
  
    /* Divider between the two tabs */
    #tabEditBtn {
      border-right: 1px solid #f1f5f9 !important;
    }
  
    /* ── App layout: sits right below sticky header+tabbar ── */
    .rd-app-layout {
      display: grid !important;
      grid-template-columns: 230px 1fr !important;
      width: 100% !important;
      /* height fills viewport below header(64) + tabbar(44) */
      height: calc(100vh - 108px) !important;
      max-height: calc(100vh - 108px) !important;
      margin-top: 0 !important;   /* NO margin — sticky handles offset */
      overflow: hidden !important;
    }
  
    /* ── Sidebar ─────────────────────────────────────────── */
    .rd-sidebar {
      display: flex !important;
      flex-direction: column !important;
      width: 230px !important;
      min-width: 230px !important;
      max-width: 230px !important;
      height: 100% !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      background: #ffffff !important;
      border-right: 1px solid #e5e7eb !important;
      position: relative !important;
      top: auto !important;
      left: auto !important;
      z-index: 1 !important;
      box-shadow: none !important;
      visibility: visible !important;
      opacity: 1 !important;
      transition: none !important;
    }
  
    /* Show subtitles */
    .rd-nav-sub       { display: block !important; }
    .rd-nav-item      { padding: 8px 12px !important; }
    .rd-progress-hint { display: block !important; }
  
    /* ── Form ────────────────────────────────────────────── */
    .rd-form-main {
      display: block !important;
      min-width: 0 !important;
      width: 100% !important;
      height: 100% !important;
      max-height: 100% !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      background: #f1f5f9 !important;
    }
  
    /* Step bar inside form — sticky to form top */
    .rd-step-bar {
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      flex-wrap: nowrap !important;
      height: 46px !important;
      min-height: 46px !important;
      padding: 0 20px !important; background: linear-gradient(180deg, #0BAF78 0%, #059669 100%) !important;
      margin: 0 !important;
      border-radius: 0 !important;
    }
  
    /* Prev/Next buttons */
    .rd-step-right { display: flex !important; width: auto !important; }
    #prev-btn, #next-btn { display: flex !important; }
  
    /* Section content */
    .rd-section-body,
    .form-section.active {
      display: flex !important;
      flex-direction: column !important;
      padding: 16px 20px 80px !important;
      gap: 12px !important;
    }
  
    /* Side-by-side fields */
    .rd-name-row,
    .rd-two-col {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 12px !important;
    }
  
    /* ── Preview panel ───────────────────────────────────── */
    .preview-panel,
    .rd-preview-panel {
      display: none !important;
      visibility: hidden !important;
    }
  
    .preview-panel[style*="flex"],
    .rd-preview-panel[style*="flex"] {
      display: flex !important;
      visibility: visible !important;
      flex-direction: column !important;
      position: relative !important;
      width: 100% !important;
      height: 100% !important;
      border-left: none !important;
      grid-column: 1 / -1 !important;
    }
  
    .rd-app-layout:has(.rd-preview-panel[style*="flex"]) .rd-sidebar,
    .rd-app-layout:has(.rd-preview-panel[style*="flex"]) .rd-form-main,
    .rd-app-layout:has(.preview-panel[style*="flex"]) .rd-sidebar,
    .rd-app-layout:has(.preview-panel[style*="flex"]) .rd-form-main {
      display: none !important;
    }
  
    /* ── Narrow tablet 600–768px ─────────────────────────── */
    @media (max-width: 768px) {
      .rd-app-layout {
        grid-template-columns: 185px 1fr !important;
      }
      .rd-sidebar {
        width: 185px !important;
        min-width: 185px !important;
      }
      .rd-nav-sub { display: none !important; }
      .rd-section-body,
      .form-section.active { padding: 12px 14px 80px !important; }
    }
  }
  
  /* ── Desktop guard ≥1025px ───────────────────────────────── */
  @media (min-width: 1025px) {
    .rd-tab-bar { display: none !important; }
  
    .rd-app-layout {
      display: grid !important;
      grid-template-columns: 200px 40fr 60fr !important;
      width: 100vw !important;
      height: calc(100vh - 64px) !important;
      margin-top: 64px !important;
      overflow: hidden !important;
    }
  
    .rd-sidebar {
      display: flex !important;
      width: 200px !important;
      min-width: 200px !important;
      position: relative !important;
      left: auto !important;
      visibility: visible !important;
      opacity: 1 !important;
      box-shadow: none !important;
      transition: none !important;
    }
  
    .preview-panel,
    .rd-preview-panel {
      display: flex !important;
      visibility: visible !important;
    }
  
    .rd-name-row,
    .rd-two-col {
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }
  }

  /* ============================================================
   Replace the ENTIRE @media (min-width: 1025px) block
   at the bottom of your responsive.css with this.
   ============================================================ */

@media (min-width: 1025px) {

  /* Hide tab bar — desktop never shows it */
  .rd-tab-bar { display: none !important; }

  /* Restore original 3-column grid, NO margin-top (header is sticky) */
  .rd-app-layout {
    display: grid !important;
    grid-template-columns: 200px 40fr 60fr !important;
    width: 100vw !important;
    height: calc(100vh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
    margin-top: 0 !important;        /* ← was 64px, now 0 */
    overflow: hidden !important;
  }

  /* Sidebar: original */
  .rd-sidebar {
    display: flex !important;
    width: 200px !important;
    min-width: 200px !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transition: none !important;
  }

  /* Preview: always visible */
  .preview-panel,
  .rd-preview-panel {
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    height: 100% !important;
    position: sticky !important;
    top: 0 !important;
    grid-column: auto !important;
  }

  /* Fields: original stacked layout */
  .rd-name-row,
  .rd-two-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: unset !important;
  }
}







/* ============================================================
   Add at the very END of css/responsive.css
   Fixes: all sections showing at once on tablet
   Cause: section-ditto-override.css forces .rd-section-body 
   { display: flex !important } which shows ALL sections.
   ============================================================ */

   @media (min-width: 600px) and (max-width: 1024px) {

    /* Hide ALL sections by default */
    .form-section,
    .rd-section-body {
      display: none !important;
    }
  
    /* Show ONLY the active section */
    .form-section.active,
    .rd-section-body.active {
      display: flex !important;
      flex-direction: column !important;
      padding: 16px 20px 80px !important;
      gap: 12px !important;
    }
  }


  /* ============================================================
   Add at the very END of css/mobile-responsive.css
   Hides Edit Resume / Live Preview tab bar on phones only
   ============================================================ */

@media (max-width: 599px) {
  .rd-tab-bar {
    display: none !important;
  }
}




/* ============================================================
   Add at the very END of css/responsive.css

   When "Request Desktop Site" is tapped on phone:
   → Shows TABLET layout (fluid, 2-col, readable)
   → No cramped 1280px scaling
   → Normal mobile layout completely untouched
   ============================================================ */

   html[data-desktop-requested="true"] body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #f1f5f9 !important;
  }
  
  /* ── Header: sticky, full nav visible ─────────────────── */
  html[data-desktop-requested="true"] .header,
  html[data-desktop-requested="true"] .rd-header {
    position: sticky !important;
    top: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    z-index: 1000 !important;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  
  html[data-desktop-requested="true"] .header-content,
  html[data-desktop-requested="true"] .rd-header-content {
    display: flex !important;
    align-items: center !important;
    height: 56px !important;
    padding: 0 16px !important;
    position: relative !important;
  }
  
  /* Show full nav links */
  html[data-desktop-requested="true"] .header-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    gap: 24px !important;
  }
  
  /* Show Sign In / Sign Up */
  html[data-desktop-requested="true"] .header-auth-buttons {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    margin-left: auto !important;
  }
  
  /* Logo: normal inline (not centered pill) */
  html[data-desktop-requested="true"] .logo-section,
  html[data-desktop-requested="true"] .logo-section > a {
    position: static !important;
    transform: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  html[data-desktop-requested="true"] .logo-section > a > div > span:last-child {
    display: block !important; /* show subtitle */
  }
  
  /* Hide mobile-only elements */
  html[data-desktop-requested="true"] .mobile-bottom-nav,
  html[data-desktop-requested="true"] .mobile-menu-btn,
  html[data-desktop-requested="true"] .resume-hamburger-container,
  html[data-desktop-requested="true"] .preview-overlay {
    display: none !important;
  }
  
  /* ── Tab bar: show (like tablet) ───────────────────────── */
  html[data-desktop-requested="true"] .rd-tab-bar {
    display: flex !important;
    position: sticky !important;
    top: 56px !important;
    z-index: 90 !important;
    height: 44px !important;
    min-height: 44px !important;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  html[data-desktop-requested="true"] .rd-tab-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: #fff !important;
    border: none !important;
    border-bottom: 2.5px solid transparent !important;
    cursor: pointer !important;
  }
  
  html[data-desktop-requested="true"] .rd-tab-btn.active {
    color: #0BAF78 !important;
    border-bottom-color: #0BAF78 !important;
  }
  
  /* ── App layout: fluid 2-col (tablet style) ────────────── */
  html[data-desktop-requested="true"] .rd-app-layout {
    display: flex !important;          /* flex = fluid, not fixed */
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 56px - 44px) !important;
    max-height: calc(100vh - 56px - 44px) !important;
    margin-top: 0 !important;
    overflow: hidden !important;
  }
  
  /* ── Sidebar: fluid width ──────────────────────────────── */
  html[data-desktop-requested="true"] .rd-sidebar {
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 100% !important;
    max-height: 100% !important;
    /* NO overflow-y — let flex handle it */
    overflow: hidden !important;
    background: #fff !important;
    border-right: 1px solid #e5e7eb !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
    z-index: 1 !important;
    transition: none !important;
  }
  
  /* Progress block — fixed size, never grows */
  html[data-desktop-requested="true"] .rd-sidebar-top {
    flex-shrink: 0 !important;
  }
  
  /* Section label — fixed size */
  html[data-desktop-requested="true"] .rd-sidebar-section-label {
    flex-shrink: 0 !important;
  }
  
  /* Nav menu — scrollable middle area, takes available space */
  html[data-desktop-requested="true"] .rd-nav-menu {
    flex: 1 1 0 !important;
    overflow-y: auto !important;
    min-height: 0 !important;        /* crucial — allows flex child to shrink */
  }
  
  /* Subtitles visible */
  html[data-desktop-requested="true"] .rd-nav-sub {
    display: block !important;
  }
  
  /* Nav items compact so they fit */
  html[data-desktop-requested="true"] .rd-nav-item {
    padding: 6px 10px !important;
  }
  
  /* Profile strength — always visible at bottom, never scrolls away */
  html[data-desktop-requested="true"] .rd-profile-strength {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    position: relative !important;
    bottom: auto !important;
    background: #fff !important;
    border-top: 1px solid #f1f5f9 !important;
  }
  
  /* ── Form: fills remaining space ───────────────────────── */
  html[data-desktop-requested="true"] .rd-form-main {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #f1f5f9 !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* ── Preview: hidden by default (tab switches) ─────────── */
  html[data-desktop-requested="true"] .preview-panel,
  html[data-desktop-requested="true"] .rd-preview-panel {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Preview visible when tab active */
  html[data-desktop-requested="true"] .preview-panel[style*="flex"],
  html[data-desktop-requested="true"] .rd-preview-panel[style*="flex"] {
    display: flex !important;
    visibility: visible !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
    position: relative !important;
    border-left: none !important;
  }
  
  /* Hide sidebar + form when preview active */
  html[data-desktop-requested="true"] .rd-app-layout:has(.rd-preview-panel[style*="flex"]) .rd-sidebar,
  html[data-desktop-requested="true"] .rd-app-layout:has(.rd-preview-panel[style*="flex"]) .rd-form-main,
  html[data-desktop-requested="true"] .rd-app-layout:has(.preview-panel[style*="flex"]) .rd-sidebar,
  html[data-desktop-requested="true"] .rd-app-layout:has(.preview-panel[style*="flex"]) .rd-form-main {
    display: none !important;
  }
  
  /* ── Step bar ──────────────────────────────────────────── */
  html[data-desktop-requested="true"] .rd-step-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    height: 46px !important;
    min-height: 46px !important;
    flex-shrink: 0 !important;
    padding: 0 20px !important;
    border-radius: 0 !important;
  }
  
  html[data-desktop-requested="true"] .rd-step-right { display: flex !important; width: auto !important; }
  html[data-desktop-requested="true"] #prev-btn,
  html[data-desktop-requested="true"] #next-btn      { display: flex !important; }
  
  /* ── Section body ──────────────────────────────────────── */
  html[data-desktop-requested="true"] .rd-section-body,
  html[data-desktop-requested="true"] .form-section.active {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 20px 80px !important;
    gap: 14px !important;
  }
  
  /* ── Fields: side by side (tablet style) ───────────────── */
  html[data-desktop-requested="true"] .rd-name-row,
  html[data-desktop-requested="true"] .rd-two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    flex-direction: unset !important;
  }
  
  /* ── CRITICAL: hide inactive sections ─────────────────── */
  html[data-desktop-requested="true"] .form-section,
  html[data-desktop-requested="true"] .rd-section-body {
    display: none !important;
  }
  
  /* Show ONLY active section */
  html[data-desktop-requested="true"] .form-section.active,
  html[data-desktop-requested="true"] .rd-section-body.active {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 20px 80px !important;
    gap: 14px !important;
  }




  /* ============================================================
   Add at the very END of css/section-ditto-override.css
   Premium tablet header: logo + brand name, compact nav
   ============================================================ */

@media (min-width: 600px) and (max-width: 1024px) {

  /* Header */
  .rd-header, .header {
    height: 56px !important;
    min-height: 56px !important;
  }

  .rd-header-content, .header-content {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 0 24px !important;
    gap: 0 !important;
    height: 56px !important;
    position: static !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
  }

  /* ── Logo: icon + "ATS Perfect" only, no subtitle ─── */
  .logo-section {
    position: static !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .logo-section > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  /* Icon size */
  .logo-section > a > svg {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  /* Show brand name */
  .logo-section > a > div {
    display: flex !important;
    flex-direction: column !important;
  }

  .logo-section > a > div > span:first-child {
    display: block !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    -webkit-text-fill-color: transparent !important;
  }

  /* Hide subtitle — keeps it clean */
  .logo-section > a > div > span:last-child,
  .rd-header .logo-section > a > div > span:last-child,
  .header .logo-section > a > div > span:last-child,
  html body .logo-section > a > div > span:last-child {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  /* ── Nav: centered, compact ──────────────────────── */
  .header-nav {
    position: static !important;
    transform: none !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    margin: 0 32px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .header-nav .nav-link {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    white-space: nowrap !important;
  }

  .header-nav .nav-link:hover {
    color: #0BAF78 !important;
  }

  /* ── Auth: Sign In + Sign Up ─────────────────────── */
  .header-right-section,
  .header-auth-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    overflow: visible !important;
  }

  .btn-login {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    pointer-events: auto !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    white-space: nowrap !important;
  }

  .btn-signup, .rd-btn-new {
    display: inline-flex !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    white-space: nowrap !important;
  }

  /* Hide hamburger + 3-dot on tablet */
  .resume-hamburger-container { display: none !important; }
  .mobile-menu-btn            { display: none !important; }

  /* ── 600–750px: hide nav links, keep Sign In + Sign Up ── */
  @media (max-width: 750px) {
    .header-nav { display: none !important; }
  }

  /* ── 600–650px: hide Sign In too, keep Sign Up only ── */
  @media (max-width: 650px) {
    .btn-login { display: none !important; }
  }
}



/* ============================================================
   Add at the very END of css/section-ditto-override.css
   Premium tablet header: logo + brand name, compact nav
   ============================================================ */

   @media (min-width: 600px) and (max-width: 1024px) {

    /* Header */
    .rd-header, .header {
      height: 56px !important;
      min-height: 56px !important;
    }
  
    .rd-header-content, .header-content {
      display: flex !important;
      align-items: center !important;
      flex-wrap: nowrap !important;
      padding: 0 24px !important;
      gap: 0 !important;
      height: 56px !important;
      position: static !important;
      width: 100% !important;
      box-sizing: border-box !important;
      justify-content: space-between !important;
    }
  
    /* ── Logo: icon + "ATS Perfect" only, no subtitle ─── */
    .logo-section {
      position: static !important;
      transform: none !important;
      display: flex !important;
      align-items: center !important;
      flex-shrink: 0 !important;
    }
  
    .logo-section > a {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      background: none !important;
      border: none !important;
      border-radius: 0 !important;
      padding: 0 !important;
      box-shadow: none !important;
    }
  
    /* Icon size */
    .logo-section > a > svg {
      width: 32px !important;
      height: 32px !important;
      display: block !important;
      flex-shrink: 0 !important;
    }
  
    /* Show brand name */
    .logo-section > a > div {
      display: flex !important;
      flex-direction: column !important;
    }
  
    .logo-section > a > div > span:first-child {
      display: block !important;
      font-size: 16px !important;
      font-weight: 800 !important;
      -webkit-text-fill-color: transparent !important;
    }
  
    /* Hide subtitle — keeps it clean */
    .logo-section > a > div > span:last-child,
    .rd-header .logo-section > a > div > span:last-child,
    .header .logo-section > a > div > span:last-child,
    html body .logo-section > a > div > span:last-child {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      width: 0 !important;
      height: 0 !important;
      overflow: hidden !important;
      font-size: 0 !important;
      line-height: 0 !important;
    }
  
    /* ── Nav: centered, compact ──────────────────────── */
    .header-nav {
      position: static !important;
      transform: none !important;
      left: auto !important;
      display: flex !important;
      align-items: center !important;
      gap: 28px !important;
      margin: 0 32px !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      flex-shrink: 1 !important;
      min-width: 0 !important;
      width: auto !important;
    }
  
    .header-nav .nav-link {
      font-size: 13px !important;
      font-weight: 500 !important;
      color: #475569 !important;
      white-space: nowrap !important;
    }
  
    .header-nav .nav-link:hover {
      color: #0BAF78 !important;
    }
  
    /* ── Auth: replace Sign In/Up with circular avatar dropdown ── */
    .header-right-section,
    .header-auth-buttons {
      display: flex !important;
      align-items: center !important;
      flex-shrink: 0 !important;
      margin-left: 0 !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      width: auto !important;
      position: relative !important;
    }
  
    /* Hide Sign In + Sign Up text buttons — avatar replaces them */
    .header-auth-buttons .btn-login,
    .header-auth-buttons .btn-signup,
    .header-auth-buttons .rd-btn-new,
    .btn-login, .btn-signup, .rd-btn-new {
      display: none !important;
    }
  
  
    /* Hide desktop user dropdown on tablet — avatar handles it */
    #userDropdownMenu,
    .user-menu-trigger,
    .user-dropdown-content {
      display: none !important;
      visibility: hidden !important;
      width: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
    }
  
    /* Hide hamburger + 3-dot on tablet */
    .resume-hamburger-container { display: none !important; }
    .mobile-menu-btn            { display: none !important; }
  
    /* ── 600–750px: hide nav links, keep Sign In + Sign Up ── */
    @media (max-width: 750px) {
      .header-nav { display: none !important; }
    }
  
    /* ── 600–650px: hide Sign In too, keep Sign Up only ── */
    @media (max-width: 650px) {
      .btn-login { display: none !important; }
    }
  }


  
/* ============================================================
   Add at very END of section-ditto-override.css
   Fixes: red gap above tab bar + Prev/Next text not centered
   ============================================================ */

   @media (min-width: 600px) and (max-width: 1024px) {

    /* ── Remove ALL top gaps ─────────────────────────────── */
    body {
      padding-top: 0 !important;
      margin-top: 0 !important;
    }
  
    .rd-header, .header {
      margin: 0 !important;
      padding: 0 !important;
    }
  
    /* The gap is likely .rd-tab-bar having top offset 
       OR an empty element like #rdTabBar getting height */
    .rd-tab-bar, #rdTabBar {
      margin: 0 !important;
      padding: 0 !important;
      top: 0 !important;          /* sticky within normal flow */
      position: sticky !important;
    }
  
    /* Kill margin-top on layout — header is sticky not fixed */
    .rd-app-layout {
      margin-top: 0 !important;
      padding-top: 0 !important;
    }
  
    /* Hide any empty spacer divs that section-ditto may inject */
    .rd-header + div:empty,
    .header + div:empty {
      display: none !important;
      height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  
    /* ── Fix Prev/Next button text centering ─────────────── */
    .rd-step-bar {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      height: 46px !important;
      min-height: 46px !important;
      max-height: 46px !important;
      padding: 0 16px !important;
      margin: 0 !important;
      box-sizing: border-box !important;
    }
  
    .rd-step-left,
    .rd-step-right {
      display: flex !important;
      align-items: center !important;
      height: 100% !important;
    }
  
    .rd-step-left  { flex: 1 !important; gap: 10px !important; min-width: 0 !important; }
    .rd-step-right { flex-shrink: 0 !important; gap: 8px !important; margin-left: 12px !important; }
  
    /* Button: force text to center both axes */
    #prev-btn,
    #next-btn,
    .rd-step-btn {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      height: 30px !important;
      min-height: 30px !important;
      padding: 0 14px !important;
      margin: 0 !important;
      line-height: 1 !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      white-space: nowrap !important;
      vertical-align: middle !important;
      box-sizing: border-box !important;
      /* Remove any top/bottom padding that offsets text */
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }
  }


  
/* =========================================================================
   STEP BAR -> WHITE in tabbed + desktop-requested layouts (was emerald).
   Placed last in this file so it wins over the earlier green rules here.
   ========================================================================= */
.rd-step-bar,
html[data-desktop-requested="true"] .rd-step-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04) !important;
}
.rd-step-title,
html[data-desktop-requested="true"] .rd-step-title { color: #0f172a !important; }
.rd-step-meta,
html[data-desktop-requested="true"] .rd-step-meta  { color: #64748b !important; }
#rdStepIcon,
html[data-desktop-requested="true"] #rdStepIcon { background: #10b981 !important; }
#rdStepIcon svg,
html[data-desktop-requested="true"] #rdStepIcon svg { stroke: #ffffff !important; }